Hello everyone,
I'm a BW-guy with some ABAP background, but it has been a while since I've used field symbos. I'm writing an enhancement for a BI-extractor using a badi. This is the situation:
I have a dynamic table <t_data> over which I need to loop to change data. The fields I need to change are in another table, t_fields. I've written the following code, but in <fieldname>, I get the value of temp instead of the value in <s_data>-fieldname.
-
LOOP AT <t_data> INTO <s_data>.
LOOP AT t_fields INTO s_fields.
concatenate '<s_data>-' s_fields-fieldname into temp.
ASSIGN temp TO <fieldname>.
ENDLOOP.
ENDLOOP.
-
for example a possible result is:
<fieldname> = '<s_data>-calday' in stead of '01.01.2009'
Can anyone tell me what I've been doing wrong? Your help is greatly appreciated.