11-16-2009 9:56 AM
Hi Experts,
I have created an dynamic itab using create_dynamic_table method of cl_alv_table_create class. Now in the dynamic itab created i want to fill a particular column with value from a particular column of an static internal table.
May i know how could i do this ?
Thanks in advance,
Akash
11-16-2009 10:15 AM
Hello,
You have to use ASSIGN COMPONENT stmt for this:
FIELD-SYMBOL: <VAR> TYPE ANY.
"Field Symbol <VAR> points to the column COLUMN of the structure <DYN_STRUC>
ASSIGN COMPONENT COLUMN OF STRUCTURE <DYN_STRUC> TO <VAR>.
IF SY-SUBRC = 0.
<VAR> = STAT_STRUC-COLUMN.
ENDIF.
Further details on SDN.
BR,
Suhas