Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

define internal table without OCCURS.

HI all,

In my program:

i have defined as below:

DATA: BEGIN OF r_tang OCCURS 0,

sign(1) TYPE c,

option(2) TYPE c,

low TYPE ekko-bsart,

high TYPE ekko-bsart,

END OF r_tang.

DATA: wa_tang LIKE r_tang.

and data appending as follows:

LOOP AT itab INTO wa_itab.

wa_tang-sign = 'I'.

wa_tang-option = 'EQ'.

wa_tang-low = wa_itab-bsart.

APPEND wa_tang TO r_tang.

ENDLOOP.

I want to define the above without OCCURS 0.

How can i do the same without effecting the functionality?

Please help me out.

thanks,

chinmay

Tags:
replied

Hi

Define a TABLE TYPE either in your program or in the data dictionary and then use that for reference.

Cheers

VJ

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question