Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC_DATA_INSERT

Former Member
0 Likes
2,194

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,009

http://wiki.sdn.sap.com/wiki/display/ABAP/AddingMultipleObjectstoan+IDoc

Check this link

Read only

0 Likes
1,009

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?