I have written a simple dependency for the system to select an input material for every product from a table. The table has 2 columns: the key field is a ref char with settings MARA-MATNR (Material), and the other column (result) is also a ref.char with settings STPO-IDNRK (BOM input).
The dependency simply says
Table xxxxxxx
( MARA_MATNR = $root.MARA-MATNR ,
STPO_IDNRK = $self.STPO_IDNRK )
I have tried to create this as a sel. condition and also as a procedure but it's not working in both instances. It is not selecting the material in the planned order. Guys what could be the problem?