cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger automatic Email through action profile in TM

0 Likes
2,816

Hello,

I have requirement where i need to trigger an action in Freight Order that will send email to consignee only when the status of Freight Order has changed to fixed or the execution status of Freight Order is "In Execution"

As a starting point i have created a new action definition with processing method as External communication but not sure which form name to be used for email generation?

I request if anyone can provide me the details of the configuration i need to make in the system. Also how to enable the conditions so that the action is generated only after the status of Freight Order is changed to fixed

Thank you in advance.

Deb

Accepted Solutions (1)

Accepted Solutions (1)

former_member779
Explorer
0 Likes

Hello debtirtha,

Don't give /BOFU/EVAL_START_CONDITION create the condition i.e. Click on edit condition and click on create button and create the custom condition. Condition will be the filter value for the BADI definition EVAL_SCHEDCOND_PPF..

Please find the sample code..If condition is true the set ep_rc = 0 else set ep_rc = 4.

For the Email logic we can find the agent class in below config check the suitable class based on your output configuration.

Implement the logic in PERSONALIZE_DOC_BY_ABAP method for email body you need to implement the logic based on your requirement for reference check standard PPF classes..

hope it will be helpful and you can explore more..

Regards,

Surendra

Answers (1)

Answers (1)

former_member779
Explorer
0 Likes

Hello debtirtha,

For the action definitions we have two options for conditions i.e. Start condition and Schedule condition.

Start condition: on which criteria or on what basis we need to start..

In the Start condition we can implement the logic i.e. Based on Fixed status we can check the condition i.e if Status is Fixed action definition will trigger else it won't trigger.

Regarding email communication no need to add Form but in case if you want to send specific form via mail then we need a form.

Regarding the mail and form calling logic we need to implement the logic in the Agent class.

Regards,

Surendra

0 Likes

Hello Surendra,

Thank you for your time to reply on my question. In start condition, how do i implement the logic? for now i have updated the standard condition as - /BOFU/EVAL_START_CONDITION. Can you please mention under which method do i have to implement the logic?

And for external communication, yes I dont have to send any specific form, just have to trigger an email to the consignee about the status of the Freight Order, as you have mentioned just wanted to confirm will the logic need to be build under the method /BOFU/IF_PPF_SERV_FOR_BO~COMPLETE_SEND?

Regards,

Debtirtha