SAP Reports / Programs

RPCSTAD1 SAP ABAP Report - documentation and ABAP source code







RPCSTAD1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Employment tax notification This report creates the monthly employment tax notification...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 RPCSTAD1 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M01_CSTA - Employment Tax Notification (G)


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 RPCSTAD1. "Basic submit
SUBMIT RPCSTAD1 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCSTAD1 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: ARCH_TOO = Take Into Account
Selection Text: PA_FORM = Form
Selection Text: PA_PRNTR = Printer
Selection Text: RB_TEST0 = Live run
Selection Text: RB_TESTS = Selected records
Selection Text: RB_TESTX = Internal tables
Selection Text: TEST_DET = Detail information per per no.
Title: Employment Tax Notification
Text Symbol: H01 = Employment Tax Notif.
Text Symbol: H20 = Selected records
Text Symbol: H33 = Cum. Wage Types
Text Symbol: S30 = Test Utils
Text Symbol: S40 = Archived Payroll Results


INCLUDES used within this REPORT RPCSTAD1

INCLUDE RPUPMF00.


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_REFRESH_STAT_LIST CALL FUNCTION 'HR_REFRESH_STAT_LIST'.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'.

HR_GET_MOLGA_FROM_ORGDATA CALL FUNCTION 'HR_GET_MOLGA_FROM_ORGDATA' EXPORTING bukrs = p0001-bukrs werks = p0001-werks IMPORTING molga = molga EXCEPTIONS no_entry_in_t500p = 1 OTHERS = 2.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = sy-msgid msgty = sy-msgty msgno = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

HR_GET_PAYROLL_RESULTS CALL FUNCTION 'HR_GET_PAYROLL_RESULTS' EXPORTING pernr = pernr-pernr permo = pn-permo pabrj = pn-pabrj pabrp = pn-pabrp inper_lst = paper inper_act = paper arch_too = arch_too "YMOH627456 TABLES result_tab = payroll_result EXCEPTIONS no_results = 1 error_in_currency_conversion = 2 t500l_entry_not_found = 3 t549q_entry_not_found = 4 OTHERS = 5.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = 12 msgv1 = pernr-pernr.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = 2 msgv1 = pernr-pernr.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = 26.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = 27.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = 25.

HR_DISPLAY_ERROR_LIST * CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' "GSGN0711496 * EXPORTING " * no_popup = 'X' " * linesize = 80 " * no_print = space. "

HR_DISPLAY_STAT_LIST * CALL FUNCTION 'HR_DISPLAY_STAT_LIST'. "GSGN0711496

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = 'HRPAYDEAL' i_msgty = 'I' i_msgno = '150' EXCEPTIONS program_error = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = pn-begda foreign_amount = xrt-betrg foreign_currency = xrt-waers local_currency = besch_waer IMPORTING local_amount = xrt-betrg EXCEPTIONS OTHERS = 01.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = '015' msgv1 = xrt-waers msgv2 = besch_waer.

HR_DE_LSTA_READ_ALV_TEXT CALL FUNCTION 'HR_DE_LSTA_READ_ALV_TEXT' EXPORTING werks = firma-werks btrtl = firma-btrtl bulnd = rpcstad0l-bulnd IMPORTING werks_txt = rpcstad0l-werks_txt btrtl_txt = rpcstad0l-btrtl_txt bulnd_txt = rpcstad0l-bulnd_txt.

HR_DE_LSTA_CREATE CALL FUNCTION 'HR_DE_LSTA_CREATE' EXPORTING appl = $appl werks = $werks btrtl = $btrtl bland = $bland anzbe = $anzbe begda = pn-begda endda = pn-endda abper = $pn_abper anschart = anschart waehrung = besch_waer IMPORTING pruefsatz = dataset_wa-dir datensatz = dataset_wa-data summensatz = dataset_wa-sum TABLES zrt = zrt.

HR_APPEND_STAT_LIST CALL FUNCTION 'HR_APPEND_STAT_LIST' EXPORTING selected = anzsl processed = anzok rejected = 0.

HR_EXTEND_STAT_LIST





CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING msgno = 5 number = anzab.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING msgno = 7 number = anzerr.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_molga p_appl = appl p_werks = $xwerk p_btrtl = $xbtrt p_struc = pme01 "GSGN0381006 * P_STRUC = pmebg "GSGN0381006 p_date = pn-endps IMPORTING werks_sum = werks_sum btrtl_sum = btrtl_sum EXCEPTIONS rep_comp_not_found = 1 OTHERS = 2 .

HR_COLLECT_ERROR_LIST CALL FUNCTION 'HR_COLLECT_ERROR_LIST' EXPORTING * PERNR = ' ' arbgb = sy-msgid msgty = 'W' msgno = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4. "#EC *

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING * PERNR = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = '016' msgv1 = zrt-werks msgv2 = zrt-btrtl msgv3 = zrt-lgart .

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = '018' msgv1 = $swerk msgv2 = $sbtrt.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'HRPAYDEST' msgty = 'E' msgno = '019' msgv1 = $bwerk msgv2 = $bbtrt.

HR_DE_LSTA_CONVERT_TO_FORM CALL FUNCTION 'HR_DE_LSTA_CONVERT_TO_FORM' EXPORTING directory = dataset_wa-dir lsta_data = dataset_wa-data bulnd = p_buland applk = appl * PROTOCOL = ' ' * CONTINUE_ON_ERROR = ' ' IMPORTING form_data = rpcstad0f .

HR_DE_LSTA_DISPLAY_FORM CALL FUNCTION 'HR_DE_LSTA_DISPLAY_FORM' EXPORTING p_appl = appl object_data = rpcstad0l form_name = pa_form pa_prntr = pa_prntr pa_repid = c_repid * SINGLE = 'X' .

HR_ALV_LIST_REFRESH CALL FUNCTION 'HR_ALV_LIST_REFRESH'.

HR_DE_LSTA_CONVERT_TO_FORM CALL FUNCTION 'HR_DE_LSTA_CONVERT_TO_FORM' EXPORTING directory = dataset_wa-dir lsta_data = dataset_wa-data bulnd = rpcstad0l-bulnd applk = appl * PROTOCOL = ' ' * CONTINUE_ON_ERROR = ' ' IMPORTING form_data = rpcstad0f .

HR_DE_LSTA_OPEN_FORM CALL FUNCTION 'HR_DE_LSTA_OPEN_FORM' EXPORTING pa_repid = c_repid pa_prntr = pa_prntr form_name = pa_form EXCEPTIONS cancelled = 1 unknown_error = 2.

HR_DE_LSTA_DISPLAY_FORM CALL FUNCTION 'HR_DE_LSTA_DISPLAY_FORM' EXPORTING p_appl = 'LSTA' object_data = rpcstad0l form_name = pa_form single = ' ' pa_prntr = pa_prntr pa_repid = c_repid * PROTOCOL = ' ' * CONTINUE_ON_ERROR = ' ' .

HR_DE_LSTA_CLOSE_FORM CALL FUNCTION 'HR_DE_LSTA_CLOSE_FORM'.

HR_ALV_LIST_DISPLAY * CALL FUNCTION 'HR_ALV_LIST_DISPLAY' * EXPORTING * data_structure = struct * current_report = c_repid ** LIST_TITLE = ** LIST_TITLE2 = ** GUI_STATUS = ' ' * variant = pa_varia * hr_display_error_list = 'X' * hr_display_stat_list = 'X' * callback_end_of_list = 'CB_END_OF_LIST' * callback_button1 = 'CB_PRINT_FORMS' * text_button1 = 'Drucken'(prt) * callback_user_command = 'CB_LINE_SELECTED' * mark_fieldname = 'MARKER' ** STATUS_FIELDNAME = ' ' * TABLES * data_tab = rpcstad0l * EXCEPTIONS * program_error = 1 * OTHERS = 2 * .

HR_ALV_HIERSEQ_LIST_DISPLAY * CALL FUNCTION 'HR_ALV_HIERSEQ_LIST_DISPLAY' * EXPORTING * data_structure = struct_data * data_structure_header = struct_header * current_report = c_repid ** LIST_TITLE = ** LIST_TITLE2 = ** GUI_STATUS = ' ' * callback_end_of_list = 'CB_END_OF_LIST' * variant = pa_varia_testhilf * hr_display_error_list = 'X' * hr_display_stat_list = 'X' * expand_fieldname = 'EXPAND' * TABLES * data_tab_header = xrt * data_tab = xrt_detail * EXCEPTIONS * program_error = 1 * OTHERS = 2 * .

HR_ALV_HIERSEQ_LIST_DISPLAY * CALL FUNCTION 'HR_ALV_HIERSEQ_LIST_DISPLAY' * EXPORTING * data_structure = struct_data2 * data_structure_header = struct_header2 * current_report = c_repid ** LIST_TITLE = ** LIST_TITLE2 = ** GUI_STATUS = ' ' * callback_end_of_list = 'CB_END_OF_LIST' ** VARIANT = pa_varia_testhilf * hr_display_error_list = 'X' * hr_display_stat_list = 'X' * expand_fieldname = 'EXPAND' * TABLES * data_tab_header = sel_saetze_header * data_tab = selektierte_saetze * EXCEPTIONS * program_error = 1 * OTHERS = 2 * .

HR_DE_LSTA_CONVERT_TO_FORM CALL FUNCTION 'HR_DE_LSTA_CONVERT_TO_FORM' EXPORTING directory = dataset_wa-dir lsta_data = dataset_wa-data bulnd = rpcstad0l-bulnd applk = appl * PROTOCOL = ' ' * CONTINUE_ON_ERROR = ' ' IMPORTING form_data = rpcstad0f .

HR_DE_LSTA_OPEN_FORM CALL FUNCTION 'HR_DE_LSTA_OPEN_FORM' EXPORTING pa_repid = c_repid pa_prntr = pa_prntr form_name = pa_form EXCEPTIONS cancelled = 1 unknown_error = 2.

HR_DE_LSTA_DISPLAY_FORM CALL FUNCTION 'HR_DE_LSTA_DISPLAY_FORM' EXPORTING p_appl = 'LSTA' object_data = rpcstad0l form_name = pa_form single = ' ' pa_prntr = pa_prntr pa_repid = c_repid * PROTOCOL = ' ' * CONTINUE_ON_ERROR = ' ' .




HR_DE_LSTA_CLOSE_FORM CALL FUNCTION 'HR_DE_LSTA_CLOSE_FORM'.

HR_ALV_LIST_REFRESH CALL FUNCTION 'HR_ALV_LIST_REFRESH'.

HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = c_xrtdid i_structure_name = c_struct_xrt i_save = c_a is_variant = ls_variant i_default = c_x EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = c_root i_node_txt = text-h33 i_categ_id = c_xrtdid IMPORTING e_node_key = l_node_key EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = l_node_key i_row_data = EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = c_selsid i_structure_name = c_struct_sels i_save = c_a is_variant = ls_variant i_default = c_x EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = c_root i_node_txt = text-h20 i_categ_id = c_selsid IMPORTING e_node_key = l_node_key EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = l_node_key i_row_data = EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_LOG_AND_ALV_DISPLAY CALL FUNCTION 'HR_PAL_LOG_AND_ALV_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile i_callback_program = c_repid i_callback_user_command = c_cb_line_selected i_structure_name = c_struct_main i_grid_title = l_grid_title is_layout = ls_layout i_default = c_x i_save = c_a is_variant = ls_variant TABLES t_outtab = pt_rpcstad0l 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 RPCSTAD1 or its description.