04-13-2010 1:35 PM
Dear All,
I want to upload Sales Orders using BAPI or BDC. But, in both the cases, system is not catching availability check confirmation screen.
1. When we mannually create Sales Order, system does availability check evrytime; when less stock is available the given in the Order, system shows confirmation screen with the available stock. On confirmation, this stock is taken as confirmed in Schedule Lines.
2. But, when I tried to do it through BDC, the confirmation screen is not available; system takes 0 as confirmed qty in Schedule Lines when Order Qty is more than the available stock.
I want that the same thing as is available in Mannual Sales Order creation, should be available with BDC too.
How can I achieve this?
Can anyone pls help on this?
Thanks & Regards.
04-14-2010 6:17 AM
Try using the function module "SD_SALESDOCUMENT_CREATE" to create Sales order, This will confirm even partial available quantity.
Through BDC also this is possible. Refer Some lines of BDC recording for availability check.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=POPO'.
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'
l_posnr . " '30'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=ITEM'.
Regards
Vinod
04-22-2011 5:36 AM
Hi,
I am now having an issue where function module SD_SALESDOCUMENT_CREATE do not confirm automatically when there are partial availability of stock. May I know the reason for this?
Thanks,
Zheng