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

Work area vs. header lines for developing tables

Wondering about the difference between work areas and header lines in tables? Application development expert Matt Billingham advises a user who is developing tables.

What is the difference between a work area and a header line of an internal table?
Work areas are what you should be using for tables. Header lines are no longer in fashion (although they are still existing in FM parameters and ranges!).

A table with a header was simply a table with a built-in work area, with the same name as the table. So the ABAP...

code:

RANGES: r_myrng ...
...gives you an internal table, r_myrng, and a work area r_myrng. You only know from the context whether a specific instance of r_myrng is the table or the work area (= the header line).

Use seperately defined and differently named work areas.

For example, for the internal table T_MYDATA, use this work area:

DATA W_MYDATA TYPE LINE OF T_MYDATA

This was last published in October 2005

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close