Skip to Content
0
Former Member
Nov 21, 2012 at 06:15 PM

How to move IDOC SDATA content to its corresponding fields

5907 Views

Hi IDOC Experts,

If I go to transaction WE02/05 and key in my IDOC Number (say for example 1234567) and hit execute, I see my IDOC with its control record, data record and status records. If I go to my Data records and click on any one of the segment (say for example 000002), I see contents of my segment with 3 fields.

I have written ABAP code using structure EDIDD which shows me the data record values for a particular IDOC number, segment number, and segment name. But the field content of the segment is shown in SDATA (which is combined in one line. In my case 3 fields content is combined in one line. SDATA does not give the field name it only combines the field content). Till here I am clear how IDOC works.

My question here is I need to get fields and field contents of a particular IDOC number with segment name, segment number and segment type.

Do we have a table for all the fields and field contents if given a IDOC number? How can we achieve this? In other words, I need the fields of the IDOC and the SDATA should be split into each of its corresponding field. Please let me know how to do this.

Thanks,

Nani