Skip to Content
avatar image
Former Member

Auto change shipment status on PGI

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 28, 2014 at 11:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • May 28, 2014 at 05:21 PM

    hi Krutika,

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 28, 2014 at 05:47 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.