Sunday, October 21, 2007

Update Routines for HR Structural Authorizations

1 : ODS - HR Structural Authorizations (0PA_DS03)
Info Source - 0HR_PA_3
Info Object - TCTIOBJNM



* fill the internal table "MONITOR", to make monitor entries
RETURNCODE = 0.

* result value of the routine
case COMM_STRUCTURE-HR_OBJTYPE.
when 'O'. RESULT = '0ORGUNIT'.
when 'C'. RESULT = '0JOB'.
when 'S'. RESULT = '0HRPOSITION'.
when 'P'. RESULT = '0EMPLOYEE'.
when 'Q'. RESULT = '0QUALIFICTN'.
when 'QK'. RESULT = '0QUALIGROUP'.
when 'BA'. RESULT = '0APPRAISAL'.
when 'A'. RESULT = '0HRWORKCNTR'.
when 'BK'. RESULT = '0AP_CRIT'.
when 'BS'. RESULT = '0AP_SCHEME'.
when 'E'. RESULT = '0EVENT'.
when 'D'. RESULT = '0EVENTTYPE'.
when 'L'. RESULT = '0EVENTGROUP'.
when 'F'. RESULT = '0EVLOCATION'.
when 'G'. RESULT = '0RESOU'.
when 'R'. RESULT = '0RESTYPE'.
when 'H'. RESULT = '0EXTPERS'.
when 'U'. RESULT = '0EXTORG'.
when others.RETURNCODE = 4.
endcase.

* if the returncode is not equal zero, the result will not be updated

* if abort is not equal zero, the update process will be canceled
ABORT = 0.

No comments: