Skip to Content
0
Former Member
Jul 11, 2007 at 03:08 PM

Assigning values to a range dynamically

13 Views

Hello All,

I want to assign the values to a range dynamically.

For example in the following piece of code, I cannot directly assign wa-kunnr to

r_kunnr-low.

LOOP AT ITAB INTO WA.

r_kunnr-sign = 'I'.

r_kunnr-option = 'EQ'.

r_kunnr-low = wa-kunnr.

APPEND r_kunnr.

ENDLOOP.

Can this be done dynamically? If I use following code I am getting a short dump.

lv_fnam = 'wa-kunnr'.

LOOP AT ITAB INTO WA.

r_kunnr-sign = 'I'.

r_kunnr-option = 'EQ'.

r_kunnr-low = ( lv_fnam ).

APPEND r_kunnr.

ENDLOOP.

Could anyone please suggest how to do this?

Regards

Indrajit