Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Run time errors in FM execution:

Former Member
0 Likes
491

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

3 REPLIES 3
Read only

Former Member
0 Likes
468

HI

declare your field symbols as type any

Regards

Ravish Garg

<b>

*Reward if useful</b>

Read only

Former Member
0 Likes
468

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

Read only

0 Likes
468

Hi,

thank you very much for your answers!

i tried the ways you have suggested but problem remains the same:

Any suggestions ?

Thanks

Ravi