Application Development and Automation 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: 
Read only

Program to change Outbound Delivery Statusses back from 'C' ?

Former Member
0 Likes
4,215

I've looked, but cannot find; is there a SAP program/BAPI that can set back the Outbound Delivery statuses?

For instance VBUK-PKSTA or VBUP-PKSTA EQ 'C'. " Packing status: Completely processed

I'd like to set to 'B' or 'A'.

Thank you and best regards,

Adrian

I've looked, but cannot find; is there a SAP program/BAPI that can set back the Outbound Delivery statuses?

For instance VBUK-PKSTA or VBUP-PKSTA EQ 'C'. " Packing status: Completely processed

I'd like to set to 'B' or 'A'.

Thank you and best regards,

Adrian

3 REPLIES 3
Read only

Former Member
0 Likes
2,695

Hi,

You cannot directly change the Packing status from C to B or A, for this you need to cancel the packing of that delivery

Accd. to me their are 3 ways to change the status.

1) Go to VL02N and cancel the packing manually by clicking PACK button in menu bar.

If user does not want to do it manually then:-

2) Try using Function Module HU_UNPACK.

OR

3) Develop BDC for VL02N.

By doing this the status will be changed to B or A.

Hope it helps you...

Read only

0 Likes
2,695

Step-by-step:

1. We had to write a little abap that updates VBUK-WBSTK for the 'locked' entries.

2. We logged an OSS call with SAP and they sent us ZZRB_VBFA_NO_GI_DOC_5 that updates/deletes entries from VBFA. I'll post the code on request. This report deletes document flow entries for GI in delivery where no material document exsists on database. Afterwards, you have to run the report ZZDELSTA or RVDELSTA to correct the delivery status.

3. Cancel Billing Document with VF11

4. OSS Note #137011 or 506510 refers: We created ZZDELSTA according to this note. We had to comment out the ELSE in the following code snippet to "make it work"

IF GT_LIKP-VBTYP EQ '7'.

T180-TRVOG = 'D'.

  • ELSE.

  • T180-TRVOG = '0'.

ENDIF.

Best regards,

Adrian

Read only

0 Likes
2,695

Hi Adrian,

We have a similar requirement to change VBUK-WBSTK  field in IBD's from A to C.

Can you please provide procedure you used (in terms of ABAP)?

Thanks in Advance,

Kishan