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: 

problem in BDC va02

Former Member
0 Kudos

HI all,

while recoding va02 the screen SAPLATP4 no. 500 is missing, i want that screen to select push button DELIVERY ON PROPOSEL, with out that screen system selecting ONE TIME DELIVRY which is wrong for our requirement..

from total order qty it should confirm the available stock and should deliver.. but if i recorded va02 bdc , if the total order qty is greater than confirm qty, confirm qty becomes zero.

its not confirming the stock if the order is greater than available stock.....

i tried to inclue the screen manually

program SAPLATP4

No.500

function code is 'TEIL'.

but that sreen is not selecting, im sending code plz let me know where i did mistake

oop at i_vbak.

v_mode = 'A'.

i_options-dismode = v_mode.

i_options-defsize = 'X'.

append i_options.

v_vbeln = i_vbak-vbeln.

perform bdc_dynpro using 'SAPMV45A' '0102'.

perform bdc_field using 'BDC_CURSOR'

'VBAK-VBELN'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'VBAK-VBELN'

v_vbeln.

clear i_vbap.

loop at i_vbap where vbeln = v_vbeln.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'=POPO'.

  • perform bdc_field using 'BDC_OKCODE'

  • '=MKAL'.

perform bdc_dynpro using 'SAPMV45A' '0251'.

perform bdc_field using 'BDC_CURSOR'

'RV45A-POSNR'.

perform bdc_field using 'BDC_OKCODE'

'=POSI'.

perform bdc_field using 'RV45A-POSNR'

i_vbap-posnr.

perform bdc_field using 'RV45A-PO_MATNR'

i_vbap-matnr.

*

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'PORE'.

perform bdc_field using 'RV45A-VBAP_SELKZ(01)'

'X'.

perform bdc_dynpro using 'SAPLATP4' '500'.

perform bdc_field using 'BDC_OKCODE'

'TEIL'.

endloop.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

call transaction 'VA02' using i_bdc messages into i_message

options from i_options.

commit work. " and wait.

thanks

4 REPLIES 4

Former Member
0 Kudos

hi,

i am correcting as per my knowledge, if this is useful, kindly reward points

oop at i_vbak.

v_mode = 'A'.

i_options-dismode = v_mode.

i_options-defsize = 'X'.

append i_options.

v_vbeln = i_vbak-vbeln.

perform bdc_dynpro using 'SAPMV45A' '0102'.

perform bdc_field using 'BDC_CURSOR'

'VBAK-VBELN'.

perform bdc_field using 'VBAK-VBELN'

v_vbeln.

<b>perform bdc_field using 'BDC_OKCODE'

'/00'.</b>

clear i_vbap.

loop at i_vbap where vbeln = v_vbeln.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'=POPO'.

  • perform bdc_field using 'BDC_OKCODE'

  • '=MKAL'.

perform bdc_dynpro using 'SAPMV45A' '0251'.

perform bdc_field using 'BDC_CURSOR'

'RV45A-POSNR'.

perform bdc_field using 'RV45A-POSNR'

i_vbap-posnr.

perform bdc_field using 'RV45A-PO_MATNR'

i_vbap-matnr.

<b>perform bdc_field using 'BDC_OKCODE'

'=POSI'.</b>

*

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'RV45A-VBAP_SELKZ(01)'

'X'.

<b>perform bdc_field using 'BDC_OKCODE'

'PORE'.</b>

perform bdc_dynpro using 'SAPLATP4' '500'.

perform bdc_field using 'BDC_OKCODE'

'TEIL'.

endloop.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

call transaction 'VA02' using i_bdc messages into i_message

options from i_options.

commit work. " and wait.

regards,

Pavan

0 Kudos

hi pavan,

thanks for response.. i'll check the code and get back to u...

but upto that screen its going well but from that point that screen is not selecting.

kindly reply me if u have solution

thanks

Former Member
0 Kudos

try giving 0500 (screen number)

perform bdc_dynpro using 'SAPLATP4' <u><b>'0500'.</b></u>

perform bdc_field using 'BDC_OKCODE'

'TEIL'.

Regards,

Siva .

Reward points if found usefull.

0 Kudos

hi siva,

thanks for response but i have tried with '0500' even though its not selecting.

what else i can do.... kindly reply if u have solution

regerads