Application Development 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: 

hi all doubt in field symbol.

Former Member
0 Kudos
105

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

.

5 REPLIES 5

former_member194669
Active Contributor
0 Kudos
75

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

0 Kudos
75

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

former_member194669
Active Contributor
0 Kudos
75

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

0 Kudos
75

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

Former Member
0 Kudos
75

thnxs