Skip to Content
avatar image
Former Member

Sales Order Create BDC/BAPI

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 14, 2010 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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