cancel
Showing results for 
Search instead for 
Did you mean: 

TM Freight Order Type: Possible to have more than 1 AOT?

ZenonK
Participant
0 Kudos

Hello Gurus.

In TM config there is a 1 to 1 relationship between Freight Order Type and AOT.

Is it possible to associate 2 (or more) AOT with 1 FO Type?

Looks like the only way to do this is to create a new FO Type.

I have 2 consignees in TM using FO Type ZZZZ.   Consignee1 wants Expected Events A and B.

Consignee2 wants Expected Events B and C.

I could also do this in the EE extractor but want to avoid too much abap logic if possible.

Cheers.

Zenon.

Accepted Solutions (1)

Accepted Solutions (1)

former_member190756
Active Contributor
0 Kudos

Hi Zenon,

the check for AO Type and assigned AO Type in FO Type is done in the standard Relevance Function:

IF <fs_act_tor_root>-aotype = i_app_object-appobjtype.

       e_result = 'T'.

     ENDIF.


I think you could do your own checks here. There is no real 1:1 relationship.


Another possible way would be to have on EM side 2 EH Types with different EE profiles and a condition function checking e.g. for consignee. Then you only need one EE Extractor.


Best regards,

Steffen

ZenonK
Participant
0 Kudos

Thanks Steffen.

I'll test with removing the check on AOT in the Relevance check.

The TM config is 1 to 1 so I hope this does not impact the EM Execution tab.

I'll check and let you know.

Former Member
0 Kudos

Hi Zenon,

You can use Two AOT Types for one event handler type.

Go to EH Type Conditions and use Logical operator OR and specify both AOT types separately or use EH Type Condition Functions.

Check and let me know.

Regards


GGOPII

Answers (1)

Answers (1)

ZenonK
Participant
0 Kudos

I've changed the AOT Relavance function so that it does not check the AOT  (as Steffen suggested).

I now have 2 AOTs and 2 EH Types linked to 1 FO type.

My main concern is that TM config for FO Type only allows 1 entry for the AOT,  but it appears to work OK.   TM Execution tab is updated correctly.