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

Passing number

Former Member
0 Likes
698

Hi All,

Want to pass numeric value through 'counter', but it not taking numeric value, problem with quotes, please provide correct code .

data: counter type i.

counter = 1.

perform bdc_field using 'BDC_CURSOR'

'RF05L-ANZDT('"counter"')'.

Thanks

jog

Hi All,

Want to pass numeric value through 'counter', but it not taking numeric value, problem with quotes, please provide correct code .

data: counter type i.

counter = 1.

perform bdc_field using 'BDC_CURSOR'

'RF05L-ANZDT('"counter"')'.

Thanks

jog

3 REPLIES 3
Read only

Former Member
0 Likes
663

<b>data: counter type c.

counter = 1.

perform bdc_field using 'BDC_CURSOR'

'RF05L-ANZDT('counter')'.</b>

ex--

loop at itab.

IDX      TYPE C.
  MOVE 1 TO IDX.
LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
  CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
  perform bdc_field       using FNAM
                                IT_BANK-BANKS.

  CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
  perform bdc_field       using FNAM
                                IT_BANK-BANKL.

endloop.

Message was edited by: kishan negi

Read only

Former Member
0 Likes
663

data :

counter type NUMC3,

ws_string TYPE string.

counter = '1'.

CONCATENATE ''RF05L-ANZDT(' counter ')' INTO ws_string.

perform bdc_field using 'BDC_CURSOR'

ws_string.

Read only

Former Member
0 Likes
663

HI jog

why are you using 'RF05L-ANZDT' structure there

data: counter type i.

counter = 1.

perform bdc_field using 'BDC_CURSOR'

'counter'.

or else

data: counter type i.

data: c_counter(5) type c.

counter = 1.

move counter to c_counter

perform bdc_field using 'BDC_CURSOR'

'c_counter'.

Give points

thanks Naval