SAP Reports / Programs | Personnel Time Management | Time Data Recording and Administration | Attendances/Absences(PT-RC-AA) SAP PT

RCATSTHR SAP ABAP Report - Data Transfer CATS -> HR







RCATSTHR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use the data transfer report RCATSTHR (CATS -> HR) to transfer data from the time sheet to the relevant components in Human Resources (HR)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RCATSTHR into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RCATSTHR. "Basic submit
SUBMIT RCATSTHR AND RETURN. "Return to original report after report execution complete
SUBMIT RCATSTHR VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: USER = User name
Selection Text: TESTLAUF = Test run
Selection Text: SENDMAIL = Send mail
Selection Text: REPPERNR = Personnel number
Selection Text: PROTOKOL = Output log
Selection Text: ONLINE = Batch input session
Selection Text: MAPNAME = Session name
Selection Text: INSPERNR = Personnel number
Selection Text: INSDATUM = Date
Selection Text: DELPERNR = Personnel number
Selection Text: DELDATUM = Key date for reorganization
Selection Text: DEFAULT = Action
Selection Text: ABHUZEIT = Last retrieved at
Selection Text: ABHSTAT2 = Last retrieval unsuccessful
Selection Text: ABHSTAT1 = Last retrieval successful
Selection Text: ABHDATUM = Last retrieved on
Title: Data Transfer CATS -> HR
Text Symbol: 105 = Other data
Text Symbol: 104 = Data selection for reorganization
Text Symbol: 103 = Data selection for repeat transfer
Text Symbol: 102 = Data selection for initial transfer
Text Symbol: 101 = Batch input
Text Symbol: 020 = Delete only
Text Symbol: 019 = Transfer/Delete
Text Symbol: 018 = Repeat transfer
Text Symbol: 017 = Initial transfer
Text Symbol: 016 = No batch input session was generated
Text Symbol: 015 = Name of generated batch input session:
Text Symbol: 014 = Number of successful postings:
Text Symbol: 013 = Number of deleted data records:
Text Symbol: 012 = Number of unsuccessful postings:
Text Symbol: 011 = Number of successfully retrieved records:


INCLUDES used within this REPORT RCATSTHR

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING * PERNR = BDC_CATSHR-PERNR arbgb = 'LR' msgty = 'E' msgno = 070 EXCEPTIONS OTHERS = 1.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' no_print = space * NO_IMG = ' ' linesize = sy-linsz * TABLES * ERROR = EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST' EXCEPTIONS OTHERS = 1.

HR_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING mapname = mapname reportname = repname IMPORTING mapname = mapname.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = mapname user = sy-uname.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' no_print = space * NO_IMG = ' ' linesize = sy-linsz * TABLES * ERROR = EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

ENQUEUE_ECCATSHR CALL FUNCTION 'ENQUEUE_ECCATSHR' EXPORTING pernr = pernrtab EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING * PERNR = ' ' arbgb = 'LR' msgty = 'E' msgno = 064 msgv1 = sy-msgv1 msgv2 = pernrtab EXCEPTIONS OTHERS = 1.

CATS_HR_CHECK_INFOTYPE_BOOKED CALL FUNCTION 'CATS_HR_CHECK_INFOTYPE_BOOKED' EXPORTING pernr = catshr-pernr workdate = catshr-workdate logsys = catshr-logsys belnr = catshr-belnr awart = catshr-awart IMPORTING infty = infty dynnr = dynnr found = found EXCEPTIONS OTHERS = 1.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = catshr-pernr arbgb = 'LR' msgty = 'I' msgno = 164 msgv1 = date msgv2 = catshr-catshours EXCEPTIONS OTHERS = 1.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = catshr-pernr arbgb = 'LR' msgty = 'I' msgno = 174 msgv1 = date msgv2 = catshr-catshours EXCEPTIONS OTHERS = 1.

HR_INITIALIZE_BUFFER CALL FUNCTION 'HR_INITIALIZE_BUFFER' EXPORTING * TCLAS = ' ' pernr = catshr-pernr EXCEPTIONS OTHERS = 1.

DEQUEUE_ECCATSHR CALL FUNCTION 'DEQUEUE_ECCATSHR' EXPORTING pernr = pernrtab EXCEPTIONS OTHERS = 1.

ENQUEUE_ECCATSHR CALL FUNCTION 'ENQUEUE_ECCATSHR' EXPORTING pernr = pernrtab EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING * PERNR = ' ' arbgb = 'LR' msgty = 'E' msgno = 064 msgv1 = sy-msgv1 msgv2 = pernrtab EXCEPTIONS OTHERS = 1.

CATS_BATCH_TRANSFER_HR CALL FUNCTION 'CATS_BATCH_TRANSFER_HR' EXPORTING online = online liste = protokol TABLES icatshr = icatshr icatsdb_lst = icatsdb_lst CHANGING datasets_failed = datasets_failed datasets_ok = datasets_ok EXCEPTIONS OTHERS = 1.

DEQUEUE_ECCATSHR CALL FUNCTION 'DEQUEUE_ECCATSHR' EXPORTING pernr = pernrtab EXCEPTIONS OTHERS = 1.

CATS_BUILD_SEND_MAIL





CALL FUNCTION 'CATS_BUILD_SEND_MAIL' EXPORTING number = num datasets_ok = datasets_ok datasets_failed = datasets_failed EXCEPTIONS OTHERS = 1.

ENQUEUE_ECCATSHR CALL FUNCTION 'ENQUEUE_ECCATSHR' EXPORTING pernr = pernrtab EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING * PERNR = ' ' arbgb = 'LR' msgty = 'E' msgno = 064 msgv1 = sy-msgv1 msgv2 = pernrtab EXCEPTIONS OTHERS = 1.

CATS_BATCH_TRANSFER_HR CALL FUNCTION 'CATS_BATCH_TRANSFER_HR' EXPORTING online = online liste = protokol TABLES icatshr = icatshr icatsdb_lst = icatsdb_lst CHANGING datasets_failed = datasets_failed datasets_ok = datasets_ok EXCEPTIONS OTHERS = 1.

DEQUEUE_ECCATSHR CALL FUNCTION 'DEQUEUE_ECCATSHR' EXPORTING pernr = pernrtab EXCEPTIONS OTHERS = 1.

CATS_BUILD_SEND_MAIL CALL FUNCTION 'CATS_BUILD_SEND_MAIL' EXPORTING number = num datasets_ok = datasets_ok datasets_failed = datasets_failed EXCEPTIONS OTHERS = 1.

GET_FIELDTAB CALL FUNCTION 'GET_FIELDTAB' EXPORTING langu = sy-langu tabname = tabname withtext = ' ' TABLES fieldtab = idd03p EXCEPTIONS internal_error = 01 no_texts_found = 02 table_has_no_fields = 03 table_not_activ = 04.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING * PERNR = arbgb = 'LR' msgty = 'E' msgno = 020 EXCEPTIONS OTHERS = 1.

K_KKB_LIST_DISPLAY * call function 'K_KKB_LIST_DISPLAY' * exporting * i_callback_program = 'RCATSTHR' * I_CALLBACK_USER_COMMAND = 'USER_COMMAND' * I_CALLBACK_TOP_OF_PAGE = 'WRITE_MESSAGES' * I_CALLBACK_END_OF_PAGE = * i_callback_end_of_list = 'WRITE_MESSAGES' * I_CALLBACK_PF_STATUS_SET = 'SET_STATUS' * I_CALLBACK_LAYOUT_SAVE = * I_CALLBACK_FIELDCAT_SAVE = * i_tabname = 'ICATSDB_LST' * is_layout = layout * it_fieldcat = field_list * I_FCTYPE = 'R' * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IS_SEL_HIDE = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * tables * t_outtab = icatsdb_lst * exceptions * others = 1.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = program * i_callback_pf_status_set = 'SET_PF_STATUS' * i_callback_user_command = 'USER_COMMAND' * i_structure_name = tab is_layout = layout it_fieldcat = field_list * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = 'X' i_save = 'X' is_variant = is_variant it_events = it_events * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = icatsdb_lst EXCEPTIONS program_error = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RCATSTHR or its description.