Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hi

Former Member
0 Likes
396

This is one of the performance tuning method:

Internal Table is defined with “TYPE STANDARD TABLE OF” & Work-Areas is used instead of header lines

please tell me the reason for this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
378

To declare a internal table you use a simple type ) Instead of table type) in declaration. So that you create a table you declare the table as the table type of the simple type.

SAP recomands to use work area instead of header line. In also increase the readability of the program and avoid confusions between header and table.

This is one of the performance tuning method:

Internal Table is defined with “TYPE STANDARD TABLE OF” & Work-Areas is used instead of header lines

please tell me the reason for this.

3 REPLIES 3
Read only

Former Member
0 Likes
379

To declare a internal table you use a simple type ) Instead of table type) in declaration. So that you create a table you declare the table as the table type of the simple type.

SAP recomands to use work area instead of header line. In also increase the readability of the program and avoid confusions between header and table.

Read only

0 Likes
378

Hi,

One crucial advantage, the OCCURS is simply not allowed in the OO context, and neither are header lines. So you should always use TYPE TABLE OF and explicit work areas instead of header lines.

OCCURS 0 by default can allocate 8KB of memory but OCCURS 0 is obsolete.

reusability is more with 'TYPES' and 'TYPE STANDARD TABLE OF'

Pls go through this link

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm

Regards,

Raj.

Read only

Former Member
0 Likes
378

Internal Table is defined with “TYPE STANDARD TABLE OF” & Work-Areas is used instead of header lines

Work-Areas this workarea defined with the required fields instead of referign to the table name.

So the selection of the fields which will be use ful for the exact requirement.

Instead of selecting all the fields from the table this is the best way and the performance wise is better by considering the memory wise and processing of the internal table records.

Regards,

madan.