Skip to Content
0
Former Member
Mar 20, 2009 at 04:50 AM

Need Help in Field Symbol for Dynamically passing table field value

19 Views

Hi All,

In my internal table I am having data.

I am dynamically forming table field name and substitute for the another table field name to pass DATA.

but I am getting the Variable name insted of Value ie Data.

I am using Field Symbol for this.

data:

Field-symbols <TS> type any.

field1 type string.

LOOP AT TABLEFIELDS INTO WA_TABLEFIELDS.

READ TABLE TEST WITH KEY NAME = WA_TABLEFIELDS-FIELDNAME.

IF SY-SUBRC = 0.

CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO Field1.

Assign Field1 to <TS>.

ALL_VAL-VALUE = <TS>

  • "After substituting the <TS> into ALL_VAL-VALUE field I need a DATA to be passed but the variable name is appending"*

APPEND ALL_VAL.

ENDIF.

ENDLOOP.

kindly how to pass the value into the table.

Thanks in advance.

San