cancel
Showing results for 
Search instead for 
Did you mean: 

Validate a custom field in SAP TM while pressing Save

Former Member
0 Kudos

Hello Experts I have a requirement to validate a custom field which I have added at the BO level. The validation needs to done such way that if condition does not satisfy it should give error message while pressing save button.

Accepted Solutions (0)

Answers (1)

Answers (1)

Clark_Huang
Advisor
Advisor
0 Kudos

Hi,
This check could be achievied in the BOPF consistency/action validation.

TOR already provide the consistency/action validation check during save. You can enhance the according class as below.

1.Enhance the excute method

2.If condistion not satisfy, put the tor key in the ET_FAILED_KEY.

3. In case request to highlight the error field, put the attributes in the EO_MESSAGE.

Best Regards

Clark Huang