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

value of variable

Former Member
0 Likes
611

Hi,

i have in call transaction 'PERFORM f_bdcfield USING 'RV50A-LIPS_SELKZ(01)' 'X'.

I want replace (01) by the value of i (i is increment value). How can i do?

Plse is urgent

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
576

first construct a string using your numeric value and concatenating it

like concatenate 'RV50A-LIPS_SELKZ(' i ')' into <var>.....probably you might want to put it in a loop for changing values of i.

take care that i should be of type N and not type I. (integers cannot be concatenated). If you cant change the type of i then copy the value in another variable of type N

then use

PERFORM f_bdcfield USING var 'X'.

hope it helps...

Edited by: Priyank Jain on Mar 5, 2008 5:18 AM

3 REPLIES 3
Read only

Former Member
0 Likes
577

first construct a string using your numeric value and concatenating it

like concatenate 'RV50A-LIPS_SELKZ(' i ')' into <var>.....probably you might want to put it in a loop for changing values of i.

take care that i should be of type N and not type I. (integers cannot be concatenated). If you cant change the type of i then copy the value in another variable of type N

then use

PERFORM f_bdcfield USING var 'X'.

hope it helps...

Edited by: Priyank Jain on Mar 5, 2008 5:18 AM

Read only

Former Member
0 Likes
576

data : var(2) type n.

Data : v_data(30).

Loop ....

var = var + 1.

concatenate 'RV50A-LIPS_SELKZ(' var )' into v_data.

PERFORM f_bdcfield USING v_data 'X'.

.

.

.

.

endloop.

Read only

0 Likes
576

Yes its a solution but i think y can do that also by fields-symbol.