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

RPUTX5D0 SAP ABAP Report - Test Report to Check HR Customizing







RPUTX5D0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Testing of HR Customizing activities for employment tax statements You made Customizing settings for B2A - employment tax data for employees...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 RPUTX5D0 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 RPUTX5D0. "Basic submit
SUBMIT RPUTX5D0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPUTX5D0 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: PA_PERR = Log Errors Only
Title: Test Report to Check HR Customizing
Text Symbol: 040 = No Entry in Table P01T_AGS
Text Symbol: 041 = No Entry in IT0006
Text Symbol: 042 = Country has No ISO Code
Text Symbol: 043 = State could not be determined
Text Symbol: 044 = Undefined error determining state
Text Symbol: 045 = Typ
Text Symbol: 046 = PA
Text Symbol: 047 = PSA
Text Symbol: 048 = Text
Text Symbol: 049 = Pers. no.
Text Symbol: 050 = Start
Text Symbol: 051 = End
Text Symbol: 052 = Start date is before selected period
Text Symbol: 053 = Stats.
Text Symbol: 054 = All Personal Areas/Subareas
Text Symbol: 055 = All Employment Tax Places of Work
Text Symbol: 056 = Participating Employment Tax Places of Work
Text Symbol: 057 = of which with errors
Text Symbol: 058 = of which w/o errors
Text Symbol: 059 = All Selected Personnel Numbers
Text Symbol: 060 = Non-Relevant Personnel Numbers
Text Symbol: 061 = Checked Personnel nos
Text Symbol: 062 = of which with errors
Text Symbol: 063 = of which w/o errors
Text Symbol: 064 = Tax Number:
Text Symbol: 065 = State:
Text Symbol: 066 = Check no.:
Text Symbol: 067 = Incorrect Check Digit
Text Symbol: 068 = Check Digit Calculation Error
Text Symbol: B01 = Organizational Log
Text Symbol: B02 = Personal Log
Text Symbol: 039 = in Fld LAND1
Text Symbol: 001 = Start Date:
Text Symbol: 002 = Error Reading IT0001
Text Symbol: 003 = Payroll Office Assigned- Personnel Area:
Text Symbol: 004 = Personnel Subarea:





Text Symbol: 005 = Assigned Data Center - Personnel Area:
Text Symbol: 006 = Personnel Subarea:
Text Symbol: 007 = Error Reading Tax Office Address
Text Symbol: 008 = No Entry for Address Type CA and
Text Symbol: 009 = Address Key PA
Text Symbol: 010 = PSA
Text Symbol: 011 = In Table T536C
Text Symbol: 017 = Tax Office Administrator Address Error
Text Symbol: 018 = Error Reading Data Center Address
Text Symbol: 019 = No Entry for Address Type CA and
Text Symbol: 020 = Address Key PA
Text Symbol: 021 = PSA
Text Symbol: 022 = In Table T536C
Text Symbol: 023 = Data Center Administrator Address Error
Text Symbol: 024 = Personnel Area Tax Number
Text Symbol: 025 = Personnel Subarea
Text Symbol: 026 = -
Text Symbol: 027 = contains invalid chars
Text Symbol: 028 = Error Evaluating Tax Number for Personnel Area
Text Symbol: 029 = Personnel Subarea
Text Symbol: 030 = Foreign Address Country Key (LAND1):
Text Symbol: 031 = Error Reading Table T005.
Text Symbol: 032 = No Entry in Field LAND1 =
Text Symbol: 033 = exists
Text Symbol: 034 = Error Determining Country. Field LANDD
Text Symbol: 035 = in Table T005 contains no Value for
Text Symbol: 036 = in Fld LAND1
Text Symbol: 037 = Error Determining Country. Field LANDK
Text Symbol: 038 = in Table T005 contains no Value for


INCLUDES used within this REPORT RPUTX5D0

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:

PYDE_GET_STARTMONAT CALL FUNCTION 'PYDE_GET_STARTMONAT' EXPORTING i_pernr = p_pernr i_besch_ende = p_endda IMPORTING E_PERIOD = l_startdatum * E_DTXPP = EXCEPTIONS ERROR_IT0001 = 1 ERROR_DTXPP = 2 INVALID_VALUE_DTXPP = 3 OTHERS = 4.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = '01' p_appl = 'LSTB' p_werks = L_werks p_btrtl = l_btrtl p_struc = l_pme01 p_date = p_endda IMPORTING WERKS_SUM = l_werks_lohn BTRTL_SUM = l_btrtl_lohn EXCEPTIONS REP_COMP_NOT_FOUND = 1 OTHERS = 2.

HR_GET_REPORTING_COMPANY CALL FUNCTION 'HR_GET_REPORTING_COMPANY' EXPORTING p_molga = '01' p_appl = 'LSTD' p_werks = L_werks p_btrtl = l_btrtl p_struc = l_pme01 p_date = sy-datum IMPORTING WERKS_SUM = l_werks_rz BTRTL_SUM = l_btrtl_rz EXCEPTIONS REP_COMP_NOT_FOUND = 1 OTHERS = 2.

HR_GET_ADDRESS





CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = l_ankey anart = 'CA' molga = '01' IMPORTING * ADDRESS = address_detail = l_address_detail EXCEPTIONS not_found = 1 OTHERS = 2.

HR_GET_ADDRESS CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = l_ankey anart = 'CA' molga = '01' IMPORTING * ADDRESS = address_detail = l_address_detail EXCEPTIONS not_found = 1 OTHERS = 2.

HR_GET_REPORTING_COMPANY_DATA CALL FUNCTION 'HR_GET_REPORTING_COMPANY_DATA' EXPORTING p_molga = '01' p_appl = 'LSTB' p_werks_sum = p_werks p_btrtl_sum = p_btrtl p_date = sy-datum p_anart = '/A' IMPORTING infodata = l_sachbearbeiter EXCEPTIONS rep_comp_not_found = 1 address_not_found = 2 sender_not_found = 3 clerk_not_found = 4 version_mismatch = 5 OTHERS = 6.

HR_DE_ST_CHECK_ADDRESS CALL FUNCTION 'HR_DE_ST_CHECK_ADDRESS' EXPORTING company_adress = l_address_detail clerk_adress = L_sachbearbeiter IMPORTING RC_ERROR = l_rc_error tables tab_error = lt_tab_error.

HR_GET_ADDRESS CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = l_ankey anart = 'CA' molga = '01' IMPORTING * ADDRESS = address_detail = l_address_detail EXCEPTIONS not_found = 1 OTHERS = 2.

HR_GET_ADDRESS CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = l_ankey anart = 'CA' molga = '01' IMPORTING * ADDRESS = address_detail = l_address_detail EXCEPTIONS not_found = 1 OTHERS = 2.

HR_GET_REPORTING_COMPANY_DATA CALL FUNCTION 'HR_GET_REPORTING_COMPANY_DATA' EXPORTING p_molga = '01' p_appl = 'LSTB' p_werks_sum = p_werks p_btrtl_sum = p_btrtl p_date = sy-datum p_anart = '/A' IMPORTING infodata = l_sachbearbeiter EXCEPTIONS rep_comp_not_found = 1 address_not_found = 2 sender_not_found = 3 clerk_not_found = 4 version_mismatch = 5 OTHERS = 6.

HR_DE_ST_CHECK_ADDRESS CALL FUNCTION 'HR_DE_ST_CHECK_ADDRESS' EXPORTING company_adress = l_address_detail clerk_adress = L_sachbearbeiter IMPORTING RC_ERROR = l_rc_error tables tab_error = lt_tab_error.

HR_GET_ADDRESS CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = l_ankey anart = 'CL' molga = '01' IMPORTING * ADDRESS = address_detail = l_address_detail EXCEPTIONS not_found = 1 OTHERS = 2.

HR_GET_ADDRESS CALL FUNCTION 'HR_GET_ADDRESS' EXPORTING ankey = l_ankey anart = 'CL' molga = '01' IMPORTING * ADDRESS = address_detail = l_address_detail EXCEPTIONS not_found = 1 OTHERS = 2.

P01T_GET_STEUERNUMMER CALL FUNCTION 'P01T_GET_STEUERNUMMER' EXPORTING werks = p_werks btrtl = p_btrtl datum = p_datum "XXX IMPORTING stnag = l_agsnr bland = l_bland "QCM#951492 EXCEPTIONS wrong_char_in_taxnumber = 1 OTHERS = 2.

P01T_CHECK_STEUERNUMMER CALL FUNCTION 'P01T_CHECK_STEUERNUMMER' ">>>QCM#951492 EXPORTING BLAND = l_bland AGSNR = l_agsnr IMPORTING PRUEFZIFFER = l_pruefziffer RC = l_rc EXCEPTIONS ERROR_FORMAT = 1 ERROR_PRUEFZIFFER = 2 * OTHERS = 3. "YMLN1013133

COUNTRY_CODE_SAP_TO_ISO CALL FUNCTION 'COUNTRY_CODE_SAP_TO_ISO' EXPORTING sap_code = p0006-land1 IMPORTING ISO_CODE = l_iso_code EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

PYDE_GET_BUNDESLAND CALL FUNCTION 'PYDE_GET_BUNDESLAND' EXPORTING DATUM = p0001-endda IMPORTING BLAND = l_bland BULND = l_bulnd TABLES t0006 = p0006 EXCEPTIONS P01T_AGS_ENTRY_NOT_FOUND = 1 P0006_ENTRY_NOT_FOUND = 2 SAP_CODE_NOT_FOUND = 3 BULND_NOT_UNIQUE = 4 OTHERS = 5.



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