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 interface technologies
Related Q&A from Axel Angeli
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled.continue reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order.continue reading
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.