‎2009 Mar 17 9:45 AM
Hi all,
I am trying to insert data to a new segment in COND_A idoc (outbound idoc) .To fill this segment , i need data from E1konh and Ekonp , the user exits are carrying only E1komg data.
I found a badi IDOC_DATA_INSERT where i would get the required data.
But when i fill the parameters and send it , an idoc is created but i dont find my segment in the idoc.
Can you give some sample code or tell me a way to fill this.
Thanks in advance.
Regards,
Vijay
‎2010 Dec 07 8:54 AM
http://wiki.sdn.sap.com/wiki/display/ABAP/AddingMultipleObjectstoan+IDoc
Check this link
‎2013 Mar 07 3:35 PM
Hi all,
I'm also having some issues adding segments at a specific level. Say that I have 4 main nodes in the IDoc:
HEADER
CHILD
HEADER
CHILD
HEADER
CHILD
HEADER
CHILD
and I want to add a child node to every one of the HEADER, in front of the other child nodes, resulting in:
HEADER
ADDEDCHILD
CHILD
etc.
What values should the new_entries in this BADI get for these fields:
SEGNUM
COUNTER
Also, what exactly does the protocol do in this BADI? Is there anyone who can help with these questions?