‎2007 Aug 07 8:08 AM
Hi,
when i execute the FM i am getting runtime errors: and in the anlysis it is showing one statement for the cause :
i had used the following code:
LOOP AT i_t_select.
CLEAR rangename.
MOVE 'T_' TO rangename.
CLEAR strucname.
MOVE 'S_' TO strucname.
MOVE i_t_select-fieldnm TO rangename+2(7).
MOVE i_t_select-fieldnm TO strucname+2(7).
ASSIGN (strucname) TO <line>.
ASSIGN (rangename) TO <range>.
MOVE-CORRESPONDING i_t_select TO <line>.
APPEND <line> TO <range>.
ENDLOOP.
here both line and range are declared as field symbols .
and the culprit statement is " move-corresponding i_t_select to <line>".
i_t_select is the table in which all the data to be stored after executing FM.
strucname & rangename are declared as char type of length 10.
any suggestions?
Thanks,
Ravi
‎2007 Aug 07 8:10 AM
HI
declare your field symbols as type any
Regards
Ravish Garg
<b>
*Reward if useful</b>
‎2007 Aug 07 8:20 AM
Hi,
Instead of statement,
move-corresponding i_t_select to <line>
try using :
assign i_t_select to <line>.
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 Aug 07 8:32 AM
Hi,
thank you very much for your answers!
i tried the ways you have suggested but problem remains the same:
Any suggestions ?
Thanks
Ravi