‎2005 Oct 18 2:25 PM
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?
‎2005 Oct 18 2:27 PM
Hi Denise,
SM31 should do the job. It will list all fields with their data-elements for the segment given.
‎2005 Oct 18 2:29 PM
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
‎2005 Oct 18 2:36 PM
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.
‎2005 Oct 18 2:42 PM
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.