Skip to Content
avatar image
Former Member

How to confirm the delivery using FM WS_DELIVERY_UPDATE_2

Hello friends,

I need to confirm the delivery number in sap using any function module or bapi.

I tried FM 'WS_DELIVERY_UPDATE_2' but couldn't get the proper result.

The POD status is not getting changed from 'A' to 'C'.

Even it is not confirming the delivery which should result the change in movement type of delivery number to '601'.

It's only changing the date and time of confirmation entered in the FM while running it.

So please help. I searched the SCN for my query but couldn't find solution.

Thanks in advance.

Sanjeev

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Hi Sanjeev,

    Could you please elaborate your situation here?

    1. What is it that you are trying to do?

    2. Why are you using WS_DELIVERY_UPDATE_2?

    3. What is your input? what is the expected output?

    --

    With Regards,

    Anirudh Vishwamithra.

  • Former Member Former Member

    Hi Aniruddha,

    As I mentioned in my query, I have to make auto confirmation of the delivery for Tcode VLPOD.

    So for that I am using the above mentioned FM,

    My input parameters are:

    VBKOK_WA-VBELN_VL = delivery number

    VBKOK_WA-VBTYP_VL = 'J'

    VBKOK_WA-VBELN = sales order

    VBKOK_WA-PODAT = POD DATE

    VBKOK_WA-POTIM = POD TIME

    VBKOK_WA-KZPOD = 'C'

    COMMIT = 'X'

    DELIVERY = delivery number

    IF_DATABASE_UPDATE_1 = 1

    IF_ERROR_MESSAGES_SEND = 'X'

    TABLES:

    VBPOK_TAB-VBELN_VL = DELIVERY NUMBER

    VBPOK_TAB-POSNR_VL = DELIVERY NUMBER LINE ITEM NUMBER AS IN TABLE VBFA

    VBPOK_TAB-VBELN = SALES ORDER

    VBPOK_TAB-POSNN = SALES ORDER LINE ITEM NUMBER AS IN TABLE VBFA

    PROT-VBELN = DELIVERY NUMBER

    PROT-POSNR= DELIVERY NUMBER LINE ITEM NUMBER AS IN TABLE VBFA

    My expected output is:

    The field PDSTK (Confirmation status) for that delivery number should be updated from 'A' to 'C' in the table VBUK &

    The new entry in the table MSEG should be done with movement type as '601' with same delivery number

    after execution of the function module.

    But unfortunately this is not happening. So please correct me if I am wrong any where in my use of this FM. i.e. 'WS_DELIVERY_UPDATE_2'

    Thanks in advance.

    Sanjeev

    SAP ABAP Consultant.

  • Get RSS Feed

1 Answer

  • Dec 09, 2016 at 12:31 PM

    Did you try with BAPI_OUTB_DELIVERY_CONFIRM_DEC?

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded