i’m populating ADRMAS02 idoc with E1ADRMAS and E1BPAD1VL segments filled. I’m having multiple ADRMAS02 idocs and using pub.list:appendToRecordList to get a combined idocs and using pub.sap.idoc:transformHierarchyToFlat & pub.sap.transport.ALEutboundProcess to send them to SAP. But in SAP when i see the idoc each ADRMAS02 has got those two segments duplicated and it’s a syntax error in SAP.
Could any one of you throw some light on this issue ?
Hi,
Try to check the output of the appendToRecordList in the pipeline using Trace. If you have not dropped the fromItem and toItem in this built inservice, such duplications happen.
Thanks for ur reply. I did drop those from and to items from the pipeline still the problem persists.
In the pipeline the IDOC_DATA_REC_40 has four entries (2 E1ADRMAS & 2 E1BPAD1VL)…
I think appendToRecordlist mapping is messing the logic,please step thru the flow you might have missed to drop the variables.Since i have seen many cases like this.