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

Repacking HUs in Shipment

LeonardoAraujo
SAP Mentor
SAP Mentor
0 Likes
743

Hi all,

I need to repack HUs in a shipment. The scenario is this:

SHIPMENT 1

HU1 - Assigned to SHIPMENT

HU2 - Assigned to DEL1 that in turn is assigned to SHIPMENT

I need to pack the HU2 into HU1. For that I cannot use BAPI_HU_REPACK since this function deals only with free (unnassigned) HUs.

Has anyone found a way of doing it? I've been trying BAPI_SHIPMENT_CHANGE but the log returns me ok but no changes are made.

Any suggestions?

Thanks in advance,

Leonardo De Araujo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
630

Did you run BAPI_TRANSACTION_COMMIT after BAPI_SHIPMENT_CHANGE?

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
631

Did you run BAPI_TRANSACTION_COMMIT after BAPI_SHIPMENT_CHANGE?

Rob

Read only

0 Likes
630

Yes I did run BAPI TRANSACTION COMMIT. No updates took place though.

Recommendations on how to fill out the paramaters?

Thanks so far,

Leonardo De Araujo

Read only

0 Likes
630

Hi Leonardo,

I have the same requirement. can you help me what fn module you use?

My goal is

Scneario 1 : Repack HUs in a shipment.

SHIPMENT 1

HU1 - Assigned to SHIPMENT

HU2 - Assigned to DEL1 that in turn is assigned to SHIPMENT

Move HU2 to HU1.

Scneario 2 : Move one HUs to another HU in a shipment.

SHIPMENT 1

HU1 - Assigned to SHIPMENT

HU2 - Assigned to same SHIPMENT

Move content of HU1 to HU2 and delete HU1.

Scneario 3:

SHIPMENT 1

HU1 - Assigned to SHIPMENT

HU2 - Assigned to DEL1 that in turn is assigned to SHIPMENT and child of HU1

HU3 - Assigned to same Shipment 1.

HU4 - Assigned to DEL1 that in turn is assigned to SHIPMENT and child of HU3

Move HU4 and assign to HU1. Delete the HU3 is nothing is left in HU3.

Thanks,

VS

Read only

0 Likes
630

Can anybody eplain me how to pack HU assigned to delivery in HU created in shipment using BAPI_SHIPMENT_CHANGE