Skip to Content
0
Former Member
May 04, 2009 at 05:47 AM

Field Symbol

31 Views

hi all...

i made one internal table using following code

FIELD-SYMBOLS : <DTAB> TYPE STANDARD TABLE ,

<DWA> TYPE ANY ,

<FLD> TYPE ANY.

CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE

EXPORTING

IT_FIELDCATALOG = IFC

I_LENGTH_IN_BYTE = 'X'

IMPORTING

EP_TABLE = DY_TABLE.

ASSIGN DY_TABLE->* TO <DTAB>.

CREATE DATA DY_LINE LIKE LINE OF <DTAB>.

ASSIGN DY_LINE->* TO <DWA>.

now i want to loop at <DTAB>

So, i wrote

LOOP AT <DTAB> ASSIGNING <DWA>.

"withing this loop i want to modify the value of one field, say, FLD1.

" so i have to write like <DWA>-FLD1 = VAL1. -


> HOW TO WRITE THIS STATEMENT.

MODIFY <DTAB> FROM <DWA> TRANSPORITNG FLD1.

ENDLOOP.

Also tell me if my FLD1 is also dynamic, means, it is in variable. than how to write the code???