SAP Reports / Programs | Cross-Application Components | Time Sheet(CA-TS) SAP CA

RCATSCMP_CE SAP ABAP Report - Time Sheet: Time Leveling







RCATSCMP_CE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Time Leveling for the Time Sheet When recording their working times, employees sometimes enter too few or too many hours, or forget to record any working times at all...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 RCATSCMP_CE 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 RCATSCMP_CE. "Basic submit
SUBMIT RCATSCMP_CE AND RETURN. "Return to original report after report execution complete
SUBMIT RCATSCMP_CE 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: DISVAR = D .
Selection Text: CH_MAIL = D .
Selection Text: CH_ALL = D .
Title: Time Sheet: Time Leveling
Text Symbol: 200 = Time Settings
Text Symbol: 201 = Period Type
Text Symbol: 202 = Periods
Text Symbol: 203 = Profile
Text Symbol: 204 = Propose
Text Symbol: 205 = First Day of Week
Text Symbol: 300 = Target Hours
Text Symbol: 314 = Sub. HR hours
Text Symbol: 315 = Add overtime
Text Symbol: 400 = Output
Text Symbol: 401 = Display all time sheets
Text Symbol: 500 = Period
Text Symbol: 501 = -
Text Symbol: 600 = Selection Control
Text Symbol: 601 = Apply Selection Criteria to Each Day
Text Symbol: 602 = Apply Selection Criteria to Period
Text Symbol: 700 = Report-Specific Selection of Employees
Text Symbol: 701 = Employees required to record times in time sheet
Text Symbol: 800 = Calculate Non-Working Days
Text Symbol: 801 = Calculate Non-Work. Days by Factory Calendar
Text Symbol: 802 = Calculate Non-Working Days by Target Hours
Text Symbol: 001 = Dear employee,
Text Symbol: 002 = You have not recorded and released any times
Text Symbol: 003 = You have recorded and released too many hours
Text Symbol: 004 = You have recorded and released too few hours
Text Symbol: 005 = for the period(s):
Text Symbol: 006 = Regards,
Text Symbol: 007 = CATS: Record times
Text Symbol: 008 = You have recorded and released too many or too few hours
Text Symbol: 009 = You have not recorded and released times or quantities on all days
Text Symbol: 100 = Time Sheet Selection
Text Symbol: 101 = Select time sheets for which no times or quantities are recorded
Text Symbol: 102 = Select time sheets with no times recorded
Text Symbol: 103 = Select according to specified number of hours





Text Symbol: 104 = Fewer than
Text Symbol: 105 = More than
Text Symbol: 106 = Select according to target hours
Text Symbol: 107 = Time type target hours
Text Symbol: 108 = Too few hours recorded
Text Symbol: 109 = Upward tolerance
Text Symbol: 110 = %
Text Symbol: 111 = Too many hours recorded
Text Symbol: 112 = hours recorded
Text Symbol: 113 = Downward tolerance
Text Symbol: 114 = PersAssgmt
Text Symbol: 115 = Personnel Assignment


INCLUDES used within this REPORT RCATSCMP_CE

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:

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = is_variant * I_TABNAME_HEADER = * I_TABNAME_ITEM = * IT_DEFAULT_FIELDCAT = i_save = 'A' "standard & user-specific * I_DISPLAY_VIA_GRID = ' ' IMPORTING * E_EXIT = es_variant = es_variant EXCEPTIONS OTHERS = 0.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXCEPTIONS inconsistent_range = 1 no_messages = 0 OTHERS = 2.

DD_DOMA_GET CALL FUNCTION 'DD_DOMA_GET' EXPORTING domain_name = 'CATSPERTYP' * GET_STATE = 'M ' langu = sy-langu * PRID = 0 * WITHTEXT = 'X' * IMPORTING * DD01V_WA_A = * DD01V_WA_N = * GOT_STATE = TABLES dd07v_tab_a = idd07v1 dd07v_tab_n = idd07v_n EXCEPTIONS OTHERS = 0.

DD_DOMA_GET CALL FUNCTION 'DD_DOMA_GET' EXPORTING domain_name = 'CATSFIRSTD' * GET_STATE = 'M ' * LANGU = SY-LANGU * PRID = 0 * WITHTEXT = 'X' TABLES dd07v_tab_a = idd07v2 dd07v_tab_n = idd07v_n EXCEPTIONS OTHERS = 0.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_buffer_active = 'X' i_callback_program = callback_program * i_structure_name = ' ' is_layout = layout it_fieldcat = field_tab it_excluding = it_excluding * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = 'X' i_save = 'A' is_variant = is_variant it_events = it_events it_event_exit = it_event_exit * IS_PRINT = * IS_REPREP_ID = * 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 = li_disp_list EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_buffer_active = 'X' * I_INTERFACE_CHECK = ' ' i_callback_program = callback_program * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = ' ' * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout = layout it_fieldcat = field_tab it_excluding = it_excluding * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = 'X' i_save = 'A' is_variant = is_variant it_events = it_events it_event_exit = it_event_exit * IS_PRINT = * IS_REPREP_ID = * 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 = li_disp_list EXCEPTIONS program_error = 1 OTHERS = 2.

CATS_SEND_MAIL CALL FUNCTION 'CATS_SEND_MAIL' EXPORTING aenam = receiver header = text-007 execute = 'CALL_TRANSACTION_CATS' cpernr = lwa_disp_list-pernr date = inputdate TABLES objcont = objcont EXCEPTIONS OTHERS = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'LR' msgty = 'E' msgv1 = receiver msgv2 = pernr-pernr txtnr = '406' EXCEPTIONS message_type_not_valid = 1 not_active = 2 OTHERS = 3.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr infty = '0105' begda = sy-datum "#EC DOM_EQUAL endda = sy-datum "#EC DOM_EQUAL * IMPORTING * SUBRC = TABLES infty_tab = i0105 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'LR' msgty = 'E' msgv1 = pernr txtnr = '405' EXCEPTIONS message_type_not_valid = 1 not_active = 2 OTHERS = 3.

CALL_TRANSACTION_CATS CALL FUNCTION 'CALL_TRANSACTION_CATS' TABLES msgdial = li_msgdial.






REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = text.

REUSE_ALV_VARIANT_SELECT CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT' EXPORTING i_buffer_active = 'X' i_dialog = ' ' i_user_specific = 'X' i_default = ' ' it_default_fieldcat = field_tab i_layout = layout IMPORTING et_fieldcat = field_tab CHANGING cs_variant = is_variant EXCEPTIONS wrong_input = 1 fc_not_complete = 2 not_found = 3 program_error = 4.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING et_fieldcat = li_field_tab EXCEPTIONS OTHERS = 1.

CATS_GET_LEVELING_DATA CALL FUNCTION 'CATS_GET_LEVELING_DATA' EXPORTING begda = begda endda = endda ch_accnt = ch_accnt rd_sel = rd_sel dolim = dolim uplim = uplim ch_few = ch_few ch_many = ch_many rd_day = rd_day pertyp = pertyp period = period firstd = firstd rd_target = rd_targt ttype = ttype ch_subhr = ch_subhr ch_over = ch_over undertar = undertar overtar = overtar ch_all = ch_all TABLES sel_pernr_tab = p_pernr_tab cats_data_tab = leveling_list EXCEPTIONS no_abs_hour_limit = 1 no_few_many = 2 OTHERS = 3. "system error

GET_PERSONID_EXT_BY_PERNR CALL FUNCTION 'GET_PERSONID_EXT_BY_PERNR' EXPORTING pernr = wa_disp_list-pernr IMPORTING personid_ext = wa_disp_list-personid_ext EXCEPTIONS personid_ext_not_found = 1 system_error = 2 OTHERS = 3.

GET_PERNR_TEXT_BY_PERNR CALL FUNCTION 'GET_PERNR_TEXT_BY_PERNR' EXPORTING pernr = wa_disp_list-pernr IMPORTING prtxt = wa_disp_list-prtxt EXCEPTIONS system_error = 1 assignment_text_not_exist = 2 OTHERS = 3.



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 RCATSCMP_CE or its description.