cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Action Validation not working/getting triggered for SAP standard Action in BOPF in SAP TM

0 Kudos

For the SAP standard Action SET_EXM_STATUS_IN_EXECUTION (Set Execution Status to in Execution) of Standard Business Object /SCMTMS/TOR (Transportation Order) of BOPF in SAP TM, there was a need to add Action Validation. I have added the Custom Action Validation in the custom enhanced Business Object (in /BOBF/CUST_UI), but the Action Validation is not getting triggered/ not getting called when I am changing the Execution Status of the Transportation Order to 'In Execution' in NWBC.

The steps are same as mentioned Section 3.3.7 (Creating Action Validations) in the SAP Transportation Management 9.x Enhancement Guide. Also after creating the Action Validation, I tried manually calling the CHECK_ACTION method (as mentioned in the blog Navigating the BOPF: Part 4 – Advanced BOPF API Features) of the BO Service Manager to check if the custom Action Validation gets triggered but it also does not trigger the custom Action Validation.

Any help would be appreciated

Accepted Solutions (0)

Answers (2)

Answers (2)

jerry_wang5
Explorer

Hi Singh,

No issue can be found from your setting, some points you can try.

  • Process extended check for your enhancement in BOBF and verify whether there are errror or not
  • check your validation class, whether check_delta/check method is implemented and the key is filtered

If above doesn't work, you can try to find the cause via debug.

you can put one break-point at /bobf/cl_frw->do_action(not interface method) line 480 where check_action is involved.

And in check_action, line 313, you can verify whether your validation is considered or not.

Best Regards.

Jerry

0 Kudos

Hi Jerry,

Sorry for the late response.

  • Process extended check for your enhancement in BOBF and verify whether there are errror or not

For this step do we need to check the Enhanced BO in BOBT?

  • check your validation class, whether check_delta/check method is implemented and the key is filtered

Yes I tried implementing the CHECK_DELTA and CHECK methods also in the Validation Class but still the validation does not happen.

  • you can put one break-point at /bobf/cl_frw->do_action(not interface method) line 480 where check_action is involved.
  • And in check_action, line 313, you can verify whether your validation is considered or not.

Thank you for this recommendation, I tried to debug by putting the breakpoint at DO_ACTION method of Class /BOBF/CL_FRW and also checked the CHECK_ACTION method, but the validation is still not called. While debugging I found that the VAL_LIST in Action Configuration (LS_ACTCONF) is empty. It should have the value of our validation right ?

Also I tried to manually call the CHECK_ACTION method of the BO Service Manager Class as mentioned in the blog Navigating the BOPF: Part 4 – Advanced BOPF API Features. Still our validation is not called.

jerry_wang5
Explorer

Hi Singh,

Can you take some screenshot for how the action validation is defined in /bobf/cust_ui? Also,please make sure you've assigned the action to this action validation.

Best Regards.

Jerry

0 Kudos

Hi Jerry,

Thank you for your response. Yes the Action SET_EXM_STATUS_IN_EXECUTION is assigned to the custom Action Validation.

1. Action Validation configuration as defined in /BOBF/CUST/UI:

2. The Node Category Assignment details of the custom Action Validation: