cancel
Showing results for 
Search instead for 
Did you mean: 

How to confirm the delivery using FM WS_DELIVERY_UPDATE_2

sanjeev_mishra_15aug
Active Participant
0 Kudos

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

Former Member
0 Kudos

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.

sanjeev_mishra_15aug
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

Did you try with BAPI_OUTB_DELIVERY_CONFIRM_DEC?

Regards,
Raymond

sanjeev_mishra_15aug
Active Participant
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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