cancel
Showing results for 
Search instead for 
Did you mean: 

Structure of a flat file created with IDOCXmlToFlatConvertor

szimara_1
Explorer
0 Kudos
306

Hi all,

when I use the IDOCXmlToFlatConvertor module on the SAP PI the created file looks like this

First row is different from the rest the structure is clear for me. Second row and following have a similar structure.
Each row start with:

  • Segment definition, 30 characters
  • Client, 3 characters (is that right)
  • Document number / Idoc Number, 16 characters
  • Sequenz, 6 Chatacters (A counter)

But I don't find out what the next 9 characters stands for
What can 00000002 or 00000001 be?

Any ideas?

Thanks in advance for your answers.

cheers,
Stefan

View Entire Topic
JaySchwendemann
Active Contributor
0 Kudos

IMHO no need to go th ERP and look there for the IDoc. The IDOCXmlToFlatConvertor basically takes the already existing IDoc XML (probalby generated for your by means of the IDoc SND Channel) and converts it to a flat file. Just look at the Segments (with EDI_DC40 being the segment of the control record).

The XML before the conversion has a field within each segment to represent the value. The IDOCXmlToFlatConvertor just strips the field names and concatenates the field values with fixed lenghts.

So you basically look at the XML field names in sequence to see what's what.

If you don't know what the fields are for, you might then need to hit ERP after all, e.g. WE60 or WE30 to see what's what

PS: There's also standard XI content (often in SAP_APPL) that hold several IDocs in their xsd represenation. Those IDoc definitions on PO might have field descriptions and field lenghts to help you out