Skip to Content
0

How to confirm the delivery using FM WS_DELIVERY_UPDATE_2

Dec 09, 2016 at 11:37 AM

643

avatar image
Former Member

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

10 |10000 characters needed characters left 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.

0
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.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Dec 09, 2016 at 12:31 PM
0

Did you try with BAPI_OUTB_DELIVERY_CONFIRM_DEC?

Regards,
Raymond

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Yes Raymond.

I used this BAPI, but not resolution. Also I don't find any parameter to add the POD date and Time.

any other solution?

Thanks for your suggestion.

Sanjeev

0

Could you check if enhancement implementation AUTO_BOR_LV50LF01 is active in your system, or debug form delivery_update_header of function group V50S during a call of your FM.

Regards,
Raymond

0