08-28-2014 3:13 PM
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
08-31-2014 8:57 AM
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.
09-01-2014 7:38 AM
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