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: 

Sales Order Create BDC/BAPI

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

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