Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem in BDC va02

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question