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

Creating IDocs

Former Member
0 Likes
628

I am creating an IDoc (ORDERS05) from an ABAP application. What is the best way to retrieve the format layout of the data portion of the IDoc to populate the elements for each format? For example, if I want to populate the data for the E1EDKA1 format, what is the best way to retrieve the layout for this format?

4 REPLIES 4
Read only

Former Member
0 Likes
600

Hi Denise,

SM31 should do the job. It will list all fields with their data-elements for the segment given.

Read only

Former Member
0 Likes
600

WE60 is the transaction to see all segments and fields and some explanation as well.

Else you can also use WE30 ( IDOC Type ) & WE31 ( Segment Type ) , or if you know the segment name just goto SE11 .

Cheers.

Message was edited by: Sanjay Sinha

Read only

0 Likes
600

I need to retieve the formats from within an ABAP program, and return them to a structure in the program so I can populate the elements.

Read only

0 Likes
600

Not sure what your requirement is ??

Wont you define structures directly like

WA_E1EDKA1 LIKE E1EDKA1 ,

fill structure WA_E1EDKA1 and then pass it to IDOC data records EDIDD-SDATA.

Or if you want to get fields of a structure you can use FM DDIF_FIELDINFO_GET

Cheers.