on 2023 Feb 28 3:22 PM
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:
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tim,
You mean the Customer invoice?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
12 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.