Can you provide me with a sample of OO ABAP code for looping through a parser document and storing the infotype field data into internal tables? I'd also like code for the rendering of data into a CSV file.
data: int_edidd type table of edidd with header line. Data: csvtab type table of string. Field-symbols: <sdata> type any. Field-symbols: <fld> type any. Data: comps type I, typ type C. Data: sep type c. Data: str type string. Loop at int_edidd. Assign int_edidd-sdata to <sdata> casting type (int_edidd-segnam). Sep = space. Describe field <sdata> type typ components comps. Do comps times. Assign component sy-index of structure <sdata> to <fld>. Concatenate str <fld> into str. Enddo. Append str to csvtab. Endloop.
Dig Deeper on SAP integration
Related Q&A from Axel Angeli
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order. Continue Reading
SAP expert Axel Angeli explains how to update the "further dates" tab information in am SAP transaction through an SAP IDoc. Continue Reading
An SAP R/3 4.7 user wants looking to post a document entry using different trading partner fields for credit and debit for function FB01. Continue Reading