Q
Problem solve Get help with specific problems with your technologies, process and projects.

Best way to create an internal table with different record types

What is the best way to create an internal table with different record types? Find out here.

What is the best way to create an internal table with different record types? For example, using the header record, detail record and trailer record. Is there something useful in the download function itself?
I assume the header, details and trailer records are of different structures. The most straightforward way to do this is to have seperate internal tables (or work areas, if single lines) for the header and trailer records, and the detail again in its own internal table. You pass all of the records to a structureless internal table of type character, with a large enough length to accomodate all your data. It is this table you pass to the download function.
This was last published in April 2005

Dig Deeper on SAP ABAP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchHRSoftware

Close