‎2008 Mar 05 10:13 AM
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,
‎2008 Mar 05 10:17 AM
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
‎2008 Mar 05 10:17 AM
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
‎2008 Mar 05 10:24 AM
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.
‎2008 Mar 05 10:42 AM
Yes its a solution but i think y can do that also by fields-symbol.