2007 Jul 07 5:17 AM
hi all,
how to assign field symbol to fval in bdcdata.
in my requiremnet. i have to define type in formal parameters of bdcdata :
ex:
form bdc_field using fnam TYPE C
fval TYPe c.
but in some cases fval is not compatible with type c its gving error so .
i need to take field symbol n then define type.
how to come accros this situation..
please gv the asw its urgent.!!!!!!!!!!!!!
thanxs
.
2007 Jul 07 5:40 AM
Hi,
I think you don't need a field symbol for this
for example
data : v_fval(40) type c.
write p_l_lifn2 to v_fval.
perform bdc_field using 'RF02K-LIFNR'
v_fval.
.............
.............
form bdc_field using fnam TYPE C
fval TYPe c.
aRs
2007 Jul 07 6:42 AM
hii A@s ,
but in my req its gving error if i directly define type c..
im doing in HP module n in some radio button of fval its taking value from infotype..
so i need to define field symbol.. to hold this..
for other filds its okay means not gving any error only i m getting for this fld if i derectly gv type c.
please gv how to define this
2007 Jul 07 6:56 AM
Hi,
In a form using value you cannot able to declare as field symbol.
form bdc_field using fnam TYPE C
fval TYPe c.
May be you can use a macro instead of form
DEFINE bdc_field.
fnam = &1.
fval = &2.
END-OF-DEFINITION.
then you can use macro in place of perform statement
ie
bdc_field using 'RF02K-LIFNR' 123.89.
aRs
2007 Jul 07 7:14 AM
HI A@s ,,
thanxs a lot..
solved my prob with field symbol..
i defined in perform statement field symbol. n type c in form statemnet..
bye
2007 Jul 07 7:41 AM