cancel
Showing results for 
Search instead for 
Did you mean: 

Auto change shipment status on PGI

Former Member
0 Kudos

Hello,

We have a scenario where we need to update shipment document status to 'Shipment end' (7), when all the deliveries under that shipment, are PGIed.

This updating status should be automatic.

Shipments are created with VT04. Then subsequently shipment loaded. When the shipments leave physically from location, the PGI is posted in delivery. This should trigger the status change to 7 for shipments.

How to set this up?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Krutika,

And also , I doubt  why do you want to update the status to Shipment End once PGI is done..It makes sense if we update the status to shipment complete thru any user exit if i am correct.

Please explain what is the reason you want shipment end to be checked once upon PGI.

With regards

S.Siva

Former Member
0 Kudos

Hi Sivaraman,

We need to make some manual changes after the shipment end, hence need to goto each delivery and update the delivery, then only mark shipment end. So the PGI is done manually. After that the shipment end also triggers a shipment print output, which is using information form delivery, which is updated manually.

former_member187652
Contributor
0 Kudos

hi Krutika,

I agree with JM, it is probably easier and more reasonable to PGI through shipment completion other than delivery document PGI.

Former Member
0 Kudos

Hi,

if you PGI in the delivery, not in the shipment,  I´m afraid you´ll have to develop your own abap program.

if you PGI in the shipment thru a profile, then you could try to update status thru a user exit (see in custo documentation on shipment enhancements).

Regards,

JM

Former Member
0 Kudos

Hello JM, Thank you for your help! If we decide to go with ABAP coding, I have the logic. But There is one condition that, if it is multiple deliveries are clubbed into one shipment scenario, we need to trigger 'shipment end' status change only after all the deliveries are PGIed. How to add this check in the code logic? I guess this also needs to be managed through document flow check in ABAP and then triggering shipment status change.

Thanks n Regards

Former Member
0 Kudos

Hi Krutika,

you can use shipment document flow table VTFA to retrieve deliveries in a shipment (table VTTK) and from deliveries check their status (table VBUK).

Finally decide if you execute program manually or/and you create a job that runs the program every x minutes.

Regards,

JM