Hi Vishnu,
thank you very much for your suggestion. ![]()
I see one problem with your solution for my scenario. In my case, I can only use one AOT per freight document, because there is only one FB type and one FO type.
So if I modiy FM of AOT Z_ODT30_TO this will affect all FB's since there is only one AOT and so there is also only one EH Type.
What I need is:
-> When FB with EXW is created create EE Profile 1:
-> For all other FB's take EE Profile 2.
That's why I came up with the idea to create two EH Types for FB's
One with a condition: AOT=Z_ODT30_TO and Incoterm=EXW
and another condition which says: AOT_Z_ODT30_TO
and for each EH Type I could create an EE Profile (one for FB's with EXW and one for the remaining FB's)
As I said in my first post, I'm still a rookie in this field and I've not much ABAP knowledge. That's why I came up with the idea using Conditions for EH, since this worked very well as described by Gopi and Kevin. But if you still suggest to modify FM for AOT for my scenario, I will talk to our Developer, he will support me with any modification.
Thanks for the support and apologies for my inexperience ![]()
-Houshyar