cancel
Showing results for 
Search instead for 
Did you mean: 

Block a freight order for billing

0 Kudos

Hi all,

we will create freight orders from an external system and I would like to know if there is a way to block this FO for billing as soon as it is saved. (S/4 Hana embedded TM)

I'm new to TM, so maybe there can be ways to do this by customization, but I did not find it.

Specifically, I think my question is related to what class/method to use in order to achieve this requirement. Maybe I could use it the save strategy.

Thanks for any help.

Paulo Café

Accepted Solutions (0)

Answers (1)

Answers (1)

GRABLERE
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Paulo,

if you say billing block. I assume you are referring to the carrier invoicing process. There is a standard change controller method that can set automatic execution blocks, which can easily be used as a basis to build the same bevhavior in regards to invoicing blocks, with some copy&paste and code adjustments. As a prerequisit you should be aware of the change controller framework, you can find an explanation for exmaple in the TM enhancement guide linked below section 4.4:

TM Enhancement Guide

The standard process controller method for execution blocks is called SET_EX_BLK and is mapped to /SCMTMS/CL_CHACO_METHODS=>SET_EXECUTION_BLOCK. As mentioned with minor changes to the code you should be able to create a default invoicing block via this logic, when saving the freight order.

Regards,

Emanuel

0 Kudos

Hi Emanuel,

Your are right, I'm refferring to the block that avoids fregiht order invoicing (Freight order --> Blocking information --> Invoicing block).

As I mentioned, I'm new to TM and there is a lot of features I'm not aware of. Change controller is one of them.

But at least, now I have a direction to follow. I will take a look at the documentation.

Thank you for the answer.

Regards,

Paulo Café