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

Internal tables with header lines -- good or bad idea?

We are a new SAP site developing ABAP coding standards for the first time. Those of us who have attended SAP training...

were told to avoid using internal tables with header lines. Online documentation also suggests avoiding header lines to avoid confusion (and in some cases - tables in structures, you CAN'T use header lines.) Our consultant insists that we should use header lines as a standard because they are more efficient. What do you think?

I don't think it makes very much difference - I've never heard of efficiency issues regarding header lines. I would question your consultant on exactly what is meant. I can't imagine a program having its performance issues solved by using tables with headers!

Following SAPs advice will prevent confusion as to whether the object being address is the whole table, or just the work area, which may help in maintenance and support. However, much of standard SAP using tables with headers. Also, RANGES and SELECT-OPTIONS have headers by default.

This being the case, I would not include a statement on the use of tables with headers in your coding standards, as whichever you chose, you would have exceptions.

This was last published in May 2002

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.