Skip to Content
avatar image
Former Member

Validate a custom field in SAP TM while pressing Save

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.

tm.jpg (123.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 27, 2017 at 09:46 AM

    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

    Add comment
    10|10000 characters needed characters exceeded