‎2009 May 01 1:36 PM
Hi Experts,
instead of occurs we usually use STANDARD TABLE OF due to performance issue ,
but i noticed that stadard programs are using OCCURS statement only.
could u plz tell me why stadard programs are using OCCURS only.
Thanks.
‎2009 May 01 1:46 PM
Hi,
Occurs Statement created the internal table with header line. But Header Line is not supported in Oop's Concept. So it is better practice to create the table with TYPE/LIKE STANDARD TABLE OF statement without specifying Header line option in declaration.
Yes in most of the standard Programs OCCURS statement are used. This is because these are SAP standard and developed in older version of sap.
‎2009 May 01 1:46 PM
Hi,
Occurs Statement created the internal table with header line. But Header Line is not supported in Oop's Concept. So it is better practice to create the table with TYPE/LIKE STANDARD TABLE OF statement without specifying Header line option in declaration.
Yes in most of the standard Programs OCCURS statement are used. This is because these are SAP standard and developed in older version of sap.
‎2009 May 01 1:51 PM
Thanks Avinash
since SAP versions has been changing , why OCCURS are being not removed from the code.
‎2009 May 01 2:08 PM
>
> Hi Experts,
>
> instead of occurs we usually use STANDARD TABLE OF due to performance issue ,
>
> Thanks.
It's not a performance issue. It's an OOPS issue.
Rob
‎2009 May 01 2:47 PM
Because a lot of coding comes directly from old SAP systems where this way of programming was preferabble - for example in old 3.6 SAP / 4.0.
‎2009 May 07 4:47 PM