cancel
Showing results for 
Search instead for 
Did you mean: 

Create Freight Unit Based on Z Logic

Former Member
0 Kudos

Dear TM Experts,

I have a requirement where i need to create freight units based on Z logic, during creation of OBTR based on Sales order of SAP ECC.

Step are as below:

1. 2 Z fields will be created in SAP ECC Sales Order screen, where user maintain data of no of 20 and 40 feet container.

2. Based on this container count maintained at Sales order Z fields, i need to create no of 20 or 40 foot containers while creation of OBTR in SAP TM

I know for this i need to enhance the PI structure for both Outbound and Inbound message structure. and add logic at Badi to send Z field data from SAP ECC & receive Z field data in SAP TM. But after receiving what is the best, easy and safe way to create Freight Units in SAP TM based on this container count coming from Z fields of SAP ECC.

Please suggest on this at requirement.

Thanks in advance.

Regards,

Md.Rafi

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Rafi,

right now we are in a very similar scenario, did you came up with a solution for this? we already had enhanced BOs and Proxys, so we keep the additional Z fields but we are not able to find out how methods FUB_PRE, FUB_POST, FUB_AUTO work,

any help would be greatly appreciated.

Regards!

Narender_khatri
Explorer
0 Kudos

Hi Alejandro,

These methods kick in when the FU building happens in the system.

As earlier said, these are a part of the class /scmtms/cl_pc_methods. Based on where you want your custom FU building logic to work (most likely FUB_PRE), or if you want to do some customization post the FU creation (FUB_POST), you can enhance these methods..

Hope it helps.

best regards

narender

Former Member
0 Kudos

Hello Rafi,

Try to enhance FUB_PRE, FUB_POST, FUB_AUTO methods.

This methods in the /SCMTMS/CL_PC_METHODS class.

Let me know if this information help you.

Kind regards,

Vicente Picardi

Former Member
0 Kudos

Hi Rafi,

You need to work the developer in determining the BO's and BADI's which are checked from TM.

I am just giving you a heads up about where the developer should dig in.

1) Sales order is sending output to TM, so you need to accommodate the Z fields in the program used by  TRSO output.

2) You also need to accommodate this in the Proxy Structure so that PI picks this.

3) Now since this should Populate in OTR and FU, add the new fields in the respective BO's so that these fields are updated.

Thanks,

Ajay Kaushik YGR

Former Member
0 Kudos

Dear TM Experts,

I have a requirement where i need to create freight units based on Z logic, during creation of OBTR based on Sales order of SAP ECC.

Step are as below:

1. 2 Z fields will be created in SAP ECC Sales Order screen, where user maintain data of no of 20 and 40 feet container.

2. Based on this container count maintained at Sales order Z fields, i need to create no of 20 or 40 foot containers while creation of OBTR in SAP TM

I know for this i need to enhance the PI structure for both Outbound and Inbound message structure. and add logic at Badi to send Z field data from SAP ECC & receive Z field data in SAP TM. But after receiving what is the best, easy and safe way to create Freight Units in SAP TM based on this container count coming from Z fields of SAP ECC.

Please suggest on this at requirement.

Thanks in advance.

Regards,

Md.Rafi

Former Member
0 Kudos

Dear TM Experts,

Can one please suggesst on approach that can be used to built Z logic for building the custom FUBR rule based on below requirements.

Thanks in advance.

Regards,

Md.Rafi

0 Kudos

Hi Rafi,

Some details about the business process would help propose a more holistic solution. Looks like the decision on what goes into a container & what type of container is made at a sales order level. Not sure if it's done by Customer Service group of users or Logistics users. Either way it would not be too difficult to build a custom transaction on the web UI made of floor plan manager building blocks.

This way users can see a list of FUs with sales order information and they can assign an equipment type to one or more FUs and it can be developed such a way that container lines with the relevant equipment type / group get added to FUs in the background. But this option requires more understanding of how FUs are built so the FUBRs can be set up accordingly. In any case users can always split FUs if one is large enough for a given equipment.

If you just want to replicate their 'as-is' process, i.e. to help them choose equipment on ECC sales orders, then the XML for TRS0 has to be enhanced. Every interface has a BAdI to be able to add more fields. And on the TM side, you could create a custom method and assign it to the FUBR strategy as the last method, i.e. after all the standard ones get executed. This custom method can be coded so as to create equipment lines ('TUR' items) and assign the relevant cargo ('PRD' items).

Best Regards,

KC