Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IN_UPDATE HRPAD00INFTY

Former Member
0 Kudos

Hello All,

I just implement the methode IN_UPDATE using the BADi HRPAD00INFTY,

problem that I have, i need to trigger messages or exceptions when Errors comes, i dont have unfortunately any exports Parameters for triggering errors messages or exceptions in the Methode IN_UPDATE !!

can any tell to solve this? to trigger messages in IN_UPDATE methode?

thank you very much,

regards

2 REPLIES 2

yury_sichov
Active Contributor

example

IF DAYS1 = 0 OR DAYS2 = 0.

        CONCATENATE 'Data error!' ' ' INTO MES_T SEPARATED BY SPACE.

        MESSAGE MES_T  TYPE 'S' RAISING ERROR_WITH_MESSAGE.

      ENDIF.

      IF LV_DATE1 > LV_DATE2.

        CONCATENATE 'Error number 2'  ' '  INTO MES_T SEPARATED BY SPACE.

        MESSAGE MES_T  TYPE 'S' RAISING ERROR_WITH_MESSAGE.

      ENDIF.

raymond_giuseppi
Active Contributor

This method is executed after the commit, too late for errors and MUST not be used for check (or 'A' abort error to rollback databse update already performed, and don't expect good reaction from users...) only provided to update some specific tables.

Better perform your checks in AFTER_INPUT method, there the MESSAGE ... RAISING ERROR_WITH_MESSAGE is available.

Regards,

Raymond