Source IDOC has the followign fields :
MATNR
STLNR
IDNRK
STLNR1
Receiver side file :
Mat_stock
+Mat_level
++field1
++field2
++field3
++BOM
++BOM_parent
The Mapping rules I need to follow are:
STLNR is corresponding parent material ID of MATNR
STLNR1 is corresponding child material ID of IDNRK
If STLNR exists, fetch corresponding MATNR
same way if IDNRK exists, fetch corresponding STLNR1 and compare it with STLNR. If they are same, insert the first row for Mat_stock in such a way that Matnr exists as parent BOM
same way, since STLNR == STLNR1, display Mat_stock as a record with IDNRK as the child node
how do I do this? please help
thanks and regards,
Venkat.