cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering a PPF-action with invoicing

t_jungesblut
Participant
0 Kudos

A certain PPF action in a freight order is supposed to be triggered as soon as an invoice has been issued. Since the invoice isn't an object known in TM, I don't see a way to implement this PPF-action.

Just to clarify: The basic process looks like this:

  1. Packaging is done in EWM. The relevant data is then transmitted from EWM to TM (Freight Unit)
  2. The Freight Units are processed in Freight Orders
  3. The goods issue is posted in EWM
  4. The invoice is issued

Afterwards, data from the freight order as well as the invoice is supposed to be sent to a third-party-software, which is supposed to be done with a PPF-action.

The question is: Is there a way to trigger a PPF-action with invoicing? Perhaps a BAdI or something else can be used for this?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member809312
Contributor

Hi Tim,

Once you created the Customer Invoice from the FO a trigger in TM is called and a register is filled in the BOBF node /SCMTMS/LINC.

I would suggest you to execute some test and call the PPF action from here if you get a register or if you're in SAP TM Embedded get all delivery and check Delivery status if all delivery are invoiced before send the PPF.

Regards

Rogerio

rsaundattikar
Member

Hi Tim,

One somewhat dirty approach could be that if you have a BAdI or ES on Invoice creation, go through the document flow, find the Freight Order related to the invoice and just update a Z-field/Note something on the ROOT Node of the FO. This will initiate a save of the FO and PPF will be invoked. In the PPF classes, you can now write your code.

Rohan

former_member809312
Contributor
t_jungesblut
Participant
0 Kudos

Hi Rogerio,

unfortunately not. The freight costs are transmitted from TM to the invoice as expected.

The problem we face is, that a PPF-action needs to occur when an invoice is posted (for example with the transaction VF04). The data from the invoice as well as the corresponding freight order is then transmitted to a third-party-software by a PPF-action.

If I understand PPF-actions correctly, the triggers for PPF-actions in TM need to come from TM objects, in our case the freight order. However, there must be some way to use the invoice as a trigger for a PPF-action or atleast change something in the freight order as soon as an invoice is posted, so that this change can trigger a PPF-action in the freight order.

Regards,

Tim