SAP Reports / Programs | Payroll | Germany | Tax(PY-DE-NT-TX) SAP PY

RPCTAVD0 SAP ABAP Report - Electronic Employment Tax Notification







RPCTAVD0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report creates the 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 RPCTAVD0 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_CTAV - Create Registration Data


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 RPCTAVD0. "Basic submit
SUBMIT RPCTAVD0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCTAVD0 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: P_UPDATE = D .
Selection Text: P_TABANZ = D .
Selection Text: P_PRNTR = D .
Selection Text: P_FRMANZ = D .
Selection Text: P_FORML = D .
Selection Text: PRT_PRNR = D .
Selection Text: PRT_KNNZ = D .
Selection Text: ARCH_TOO = D .
Title: Electronic Employment Tax Notification
Text Symbol: S30 = Archived Payroll Results
Text Symbol: S20 = Test Utils
Text Symbol: S10 = Live run
Text Symbol: E02 = Employer
Text Symbol: E01 = Tax Number
Text Symbol: A52 = Quarterly/Yearly Notification
Text Symbol: A51 = Notification Data with Sum and External Data
Text Symbol: A50 = Notification Data
Text Symbol: A40 = External Data
Text Symbol: A31 = Employment Tax Places of Work
Text Symbol: A30 = Places of Work
Text Symbol: A20 = Cumulation Wage Types
Text Symbol: A10 = Payroll Wage Types


INCLUDES used within this REPORT RPCTAVD0

INCLUDE RPCTAVD0_DATA. "DATENDEFINITIONEN
INCLUDE RPCTAVD0_PROT. "PROTOKOLLROUTINEN
INCLUDE RPFEHD00. "ERROR-HANDLING


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_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' EXPORTING use_abap_memory = 'X' EXCEPTIONS no_errors = 0.

HR_DISPLAY_ERROR_LONGTEXT CALL FUNCTION 'HR_DISPLAY_ERROR_LONGTEXT'.

HR_DISPLAY_STAT_LONGTEXT CALL FUNCTION 'HR_DISPLAY_STAT_LONGTEXT'.

HR_REFRESH_STAT_LIST CALL FUNCTION 'HR_REFRESH_STAT_LIST'.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = l_repid TABLES selection_table = gt_seltab EXCEPTIONS OTHERS = 1.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'DTXAP' struc_content = pme02 kind_of_error = space IMPORTING back = l_back EXCEPTIONS OTHERS = 7.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' no_dialog = 'X' IMPORTING out_parameters = print_params EXCEPTIONS OTHERS = 0.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' EXPORTING use_abap_memory = 'X' TABLES error = l_errortab EXCEPTIONS no_errors = 1.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' EXPORTING use_abap_memory = 'X' TABLES error = g_errortab EXCEPTIONS no_errors = 0.

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = wa_firma-werks btrtl = wa_firma-btrtl IMPORTING bland = wa_btrst-bland.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_molga p_appl = 'LSTA' p_werks = wa_firma-werks p_btrtl = wa_firma-btrtl p_struc = pme01 p_date = pn-endps IMPORTING werks_sum = wa_btrst-xwerk btrtl_sum = wa_btrst-xbtrt EXCEPTIONS OTHERS = 4.

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = wa_btrst-xwerk btrtl = wa_btrst-xbtrt IMPORTING bland = wa_btrst-xland.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_molga p_appl = 'LSTR' p_werks = wa_btrst-werks p_btrtl = wa_btrst-btrtl p_struc = pme01 p_date = pn-endps IMPORTING werks_sum = l_werks btrtl_sum = l_btrtl EXCEPTIONS OTHERS = 4.

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = l_werks btrtl = l_btrtl IMPORTING bland = wa_bland EXCEPTIONS OTHERS = 4.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_molga p_appl = 'LSTS' p_werks = wa_btrst-werks p_btrtl = wa_btrst-btrtl p_struc = pme01 p_date = pn-endps IMPORTING werks_sum = l_werks btrtl_sum = l_btrtl EXCEPTIONS OTHERS = 4.

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = l_werks btrtl = l_btrtl IMPORTING bland = wa_bland EXCEPTIONS OTHERS = 4.

HR_GET_REPORTING_COMPANY_DATA





CALL FUNCTION 'HR_GET_REPORTING_COMPANY_DATA' " EXPORTING " p_molga = c_molga " p_appl = 'LSTA' " p_werks_sum = wa_firma-werks " p_btrtl_sum = wa_firma-btrtl " p_date = g_stichtag " p_anart = '/A' " IMPORTING " data = l_data " EXCEPTIONS " OTHERS = 4. "

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = wa_zrt-werks btrtl = wa_zrt-btrtl IMPORTING bland = wa_bland EXCEPTIONS OTHERS = 4.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = c_molga p_appl = 'LSTA' p_werks = wa_ext-werks p_btrtl = wa_ext-btrtl p_struc = pme01 p_date = g_stichtag IMPORTING * werks_sum = wa_ext-werks "YMTN0816427 * btrtl_sum = wa_ext-btrtl " werks_sum = l_werks_sum " btrtl_sum = l_btrtl_sum "YMTN0816427 EXCEPTIONS OTHERS = 4.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' "YMTN0819067 EXPORTING " feature = 'DTXED' " struc_content = pme01 " kind_of_error = space " IMPORTING " back = l_back " EXCEPTIONS " OTHERS = 7. "

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = wa_anm-werks btrtl = wa_anm-btrtl IMPORTING bland = wa_bland.

PYDE_GET_BUNDESLAND_AG CALL FUNCTION 'PYDE_GET_BUNDESLAND_AG' EXPORTING werks = s_p01tkey-werks btrtl = s_p01tkey-btrtl IMPORTING bland = wa_adm-bland EXCEPTIONS OTHERS = 4.

DDIF_DOMA_GET CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = 'P01T_STATA' langu = sy-langu TABLES dd07v_tab = lt_doma_values EXCEPTIONS illegal_input = 1 OTHERS = 2.

P01T_GET_STEUERNUMMER CALL FUNCTION 'P01T_GET_STEUERNUMMER' EXPORTING werks = s_p01tkey-werks btrtl = s_p01tkey-btrtl datum = g_stichtag IMPORTING stnag = wa_dat-agsnr EXCEPTIONS OTHERS = 4.

HR_GET_REPORTING_COMPANY_DATA CALL FUNCTION 'HR_GET_REPORTING_COMPANY_DATA' EXPORTING p_molga = c_molga p_appl = 'LSTA' p_werks_sum = s_p01tkey-werks p_btrtl_sum = s_p01tkey-btrtl p_date = g_stichtag p_anart = '/A' IMPORTING sender = l_sender EXCEPTIONS OTHERS = 4.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' TABLES error = l_errortab EXCEPTIONS no_errors = 1.

PYDE_LSTA_CREATE_FORM CALL FUNCTION 'PYDE_LSTA_CREATE_FORM' EXPORTING i_form = p_forml i_printer = p_prntr TABLES t_adm = itab_adm t_ads = itab_ads t_dat = itab_dat t_btg = itab_btg EXCEPTIONS sap_script_error = 1 OTHERS = 2.

HR_DE_ST_SHOW_DATA_A * CALL FUNCTION 'HR_DE_ST_SHOW_DATA_A' * TABLES * t_key = anz_ads * t_dat = anz_dat * t_btg = anz_btg.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = 'HRPAYDEST' msgno = 456 number = l_anzahl.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = 'HRPAYDEST' msgno = 457 number = g_anz_btrst_ok.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = 'HRPAYDEST' msgno = 458 number = g_anz_btrst_notok.

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' " EXPORTING " arbgb = 'HRPAYDEST' " msgno = 470 " number = g_anz_btrst_j_vj. "

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' EXPORTING arbgb = 'HRPAYDEST' msgno = 466 number = l_anzahl.

HR_99S_LEGAL_INTERPRET_OPT CALL FUNCTION 'HR_99S_LEGAL_INTERPRET_OPT' EXPORTING IM_MOLGA = c_molga IM_OPTION = 'NFWOF' IM_DATE = sy-datum IM_SAP_OPT_VALUE = c_framework_off CHANGING CH_OPTION_VALUE = g_sw_framework CH_IS_DEFAULT_VALUE = g_sw_framework_default EXCEPTIONS OPTION_DOES_NOT_EXIST = 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 RPCTAVD0 or its description.