cancel
Showing results for 
Search instead for 
Did you mean: 

How to update VEPO-VBELN after HU Repack

SampathReddy
Participant
0 Kudos

Hello All,

I am using BAPI_HU_REPACK to create a new HU with Qty from the source HU and it works well.

My issue is after Repack source HU Item VEPO-VBELN is blank, before VBELN is has value filled with Inbound delivery number.

Before Repack HU Header VPOBJKEY is filled with Inbound delivery and getting overwritten after Unpack. And I was able to update Inbound delivery using FM HU_HEADER_UPDATE.

I couldn't use FM HU_ITEM_CHANGE as the structure doen't have VBELN field. Please let me know how to update VEPO-VBELN with Inbound delivery value.

Thanks in advance !

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

already seen OSS note 581282 - Packing of deliveries via BAPI or function module

SampathReddy
Participant
0 Kudos

Hello Jurgen,

Thank you for the reply.

After doing Inbound delivery Goods receipt, Object is changes to 12(free to use) from 03(Inbound delivery).

So in this case I cant use WS_DELIVERY_UPDATE as HUs are not assigned to Inbound delivery anymore.

If I want to unpack/repack after GR is done, it is a bit tricky, so we are using the history table VEVW to check whether HU was previously assigned to Inbound delivery or not.

For your information, LT03 is also behaves the same, if we unpack/repack HU then we cant the see the HU in the LT03 transaction.

Thanks,

Sampath

Answers (1)

Answers (1)

SampathReddy
Participant
0 Kudos

Hello Jurgen,

Appreciate your answer and sorry for the late response from my end.

What I understood from the Note 58128 is, we cant use BAPI/FM to repack/unpack HUs which are assigned to Inbound delivery(Object -03).

But the real issue after we do Goods receipt(GI), HUs are no longer assigned to Inbound delivery as the object value is changes to 12(free to use) from 03-Inbound delivery.

So in this case WS_DELIVERY_UPDATE is of no use but still if we want to update VEKP-VPOBJ, we should do system modification.

Thanks,
Sampath