SAP Reports / Programs

RPCPL2A0 SAP ABAP Report - Evaluation of Garnishment Results







RPCPL2A0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for With the report RPCPL2A0 you can perform various evaluations for the results of garnishments/cessions/pledges that are valid for the selected payroll period...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 RPCPL2A0 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 RPCPL2A0. "Basic submit
SUBMIT RPCPL2A0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCPL2A0 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_WAERG = D .
Selection Text: P_PFNUM = D .
Selection Text: P_PFART = Garnishment Type
Title: Evaluation of Garnishment Results
Text Symbol: D57 = Accumulated Credit
Text Symbol: D56 = Retained Credit
Text Symbol: D55 = Employer costs
Text Symbol: D50 = Garnishment almost repaid; request creditor for outstand. claim
Text Symbol: D30 = Garnishment Stats
Text Symbol: D25 = One-Time Int.-Bearing Costs
Text Symbol: D24 = Court Costs
Text Symbol: D23 = Totals
Text Symbol: D22 = Monthly claim
Text Symbol: D21 = Employer costs
Text Symbol: D20 = Monthly Credit Charges on Costs
Text Symbol: D19 = Monthly Costs
Text Symbol: D18 = Interest on One-Time Costs
Text Symbol: D17 = One-Time Interest-Free Costs
Text Symbol: D16 = Monthly Credit Charges on Claim
Text Symbol: D15 = Interest on Debt
Text Symbol: D14 = Curr. maint. pymnts
Text Symbol: D13 = Main Claim/Maint. Arrears
Text Symbol: D12 = All Garnish. Payments
Text Symbol: D11 = Payroll status
Text Symbol: D58 = Bank transf
Text Symbol: D59 = Total Compliances
Text Symbol: D60 = Garnishments in Payroll
Text Symbol: D61 = Garnishments Not Honored
Text Symbol: D65 = BNo:
Text Symbol: D66 = ANo:
Text Symbol: D67 = IBAN:
Text Symbol: D75 = History
Text Symbol: D76 = Period
Text Symbol: D77 = List for Period
Text Symbol: D80 = Print Output for PerNo.
Text Symbol: D81 = No personnel no. was selected
Text Symbol: D83 = Print Output for All PerNo.
Text Symbol: D85 = History





Text Symbol: D86 = for Garnish.
Text Symbol: D87 = List
Text Symbol: D88 = for period
Text Symbol: D90 = Select print output
Text Symbol: F01 = Garnish.
Text Symbol: F02 = Add. Information
Text Symbol: D10 = All amounts in
Text Symbol: A29 = | | Amount | Transfer Data |
Text Symbol: A28 = Retentions in
Text Symbol: A27 = | | To Repay | Repaid | Rest |
Text Symbol: A26 = Repayt in
Text Symbol: A23 = | | Net Part 1 | Net Part 2 | Net Part 3 |S|R|
Text Symbol: A22 = Garn. Net Parts In
Text Symbol: A21 = Period
Text Symbol: A20 = List of Garnishment Results
Text Symbol: A15 = | | | | | | CCntr | Unit | Rem.|
Text Symbol: A14 = |Period | Claim | Coll. Amt | Rem. Claim| Credit | Employer |
Text Symbol: A13 = Amounts in
Text Symbol: A12 = Creditor
Text Symbol: A11 = Garn. Type/Number
Text Symbol: A10 = History of Garnishment Results to Period
Text Symbol: A07 = | | Master Data | | |Rem.|
Text Symbol: A06 = |Type/No| Total Claim |Stnd Claim| Creditor |No.|
Text Symbol: A05 = Outstanding Garnishments in
Text Symbol: A04 = | |All Periods | |All Periods | | |Rem.|
Text Symbol: A03 = |Type/No| Total Claim |Stnd Claim| Total Amt | Outstnd Amt| Credit |No. |
Text Symbol: A02 = Garnishments in Payroll in
Text Symbol: A01 = Personnel No.
Text Symbol: A00 = Overview of Garnishment Results for Period
Text Symbol: D07 = Frm
Text Symbol: D06 = Garnishment Results for Period
Text Symbol: D05 = Reference
Text Symbol: D02 = Served on
Text Symbol: D01 = Garnishment and Transfer Ruling
Text Symbol: A48 = Garnishments Not Taken
Text Symbol: A46 = Garnishments Repaid
Text Symbol: A45 = Almost Repaid Garnishments
Text Symbol: A44 = Garnishments in Payroll
Text Symbol: A43 = Pledges





Text Symbol: A42 = Total
Text Symbol: A41 = Cessions
Text Symbol: A40 = Preferred Garnishments
Text Symbol: A39 = Normal Garnishments
Text Symbol: A38 = Garnish.Type
Text Symbol: A37 = Garnishments in Master Data
Text Symbol: A35 = Pers. No. with Garnishments
Text Symbol: A34 = Personnel numbers selected
Text Symbol: A33 = Number
Text Symbol: A32 = Selection
Text Symbol: A31 = for period
Text Symbol: A30 = Total Statistics for Garn. Results


INCLUDES used within this REPORT RPCPL2A0

INCLUDE RPCPL2AB. "PBO
INCLUDE RPCPL2AI. "PAI


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_F4_COUNTRY_CURRENCY CALL FUNCTION 'HR_F4_COUNTRY_CURRENCY' EXPORTING molga = c_molga IMPORTING waers = p_waerg.

HR_DISPLAY_ERROR_LONGTEXT CALL FUNCTION 'HR_DISPLAY_ERROR_LONGTEXT'.

HRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'HRCA_COMPANYCODE_GETDETAIL' EXPORTING companycode = t500p-bukrs IMPORTING country = g_land1 EXCEPTIONS not_found = 1 OTHERS = 2.

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = c_molga begda = datum IMPORTING waers = p_waerg EXCEPTIONS molga_not_in_t001p = 1 no_entry_found_in_table_t001 = 2 no_entry_found_in_table_t500p = 3 no_entry_found_in_table_t500c = 4 OTHERS = 5.

HR_GET_PAYROLL_RESULTS CALL FUNCTION 'HR_GET_PAYROLL_RESULTS' EXPORTING pernr = pernr-pernr permo = 01 pabrj = l_jahr pabrp = l_perio inper_act = g_inper_act arch_too = c_true "WJOM1511194 TABLES result_tab = paytab EXCEPTIONS no_results = 1 error_in_currency_conversion = 2 t500l_entry_not_found = 3 period_mismatch_error = 4 t549q_entry_not_found = 5 internal_error = 6 OTHERS = 7.

HR_CONVERT_CURRENCY_RESULT_AT CALL FUNCTION 'HR_CONVERT_CURRENCY_RESULT_AT' EXPORTING conversion_date = pn-endda foreign_currency = paytab-inter-versc-waers local_currency = p_waerg TABLES masse = paytab-nat-masse gutha = paytab-nat-gutha EXCEPTIONS invalid_wagetype = 1 error_conversion = 2 OTHERS = 3.

HR_AT_GET_GARNISHMENT_RESULTS CALL FUNCTION 'HR_AT_GET_GARNISHMENT_RESULTS' EXPORTING pernr = pfaendung-pfkey-pernr pfart = pfaendung-pfkey-pfart pfnum = pfaendung-pfkey-pfnum pabrj_end = pn-pabrj pabrp_end = pn-pabrp waers = p_waerg TABLES result_tab = pftab EXCEPTIONS no_results = 1 period_mismatch_error = 2 cluster_version_mismatch = 3 inconsistency_ae_af = 4 no_authority = 5 error_in_currency_conversion = 6 OTHERS = 7.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' EXCEPTIONS no_errors = 1 OTHERS = 2.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING no_popup = 'X' "Ausgabe mit WRITE no_print = ' ' no_img = ' ' no_msgno = ' ' linesize = sy-linsz listheader = ' ' colheader = ' ' hidemsg = 'X' "mit HIDE-Option für * TABLES "Langtexte bei Doppelklick * error = EXCEPTIONS invalid_linesize = 1 OTHERS = 2.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING arbgb = '5H' msgty = 'I' msgno = '153'.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = pn-endda foreign_amount = betrag foreign_currency = alte_waerg local_currency = neue_waerg IMPORTING local_amount = betrag EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.

RP_GET_CURRENCY



CALL FUNCTION 'RP_GET_CURRENCY' EXPORTING molga = c_molga begda = l_seldat endda = l_seldat IMPORTING waers = l_waers EXCEPTIONS molga_not_in_t001p = 1 no_entry_found_in_table_t001 = 2 no_entry_found_in_table_t500p = 3 no_entry_found_in_table_t500c = 4 OTHERS = 5.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = conv_date foreign_amount = l_betrag foreign_currency = alte_waerg local_currency = neue_waerg IMPORTING local_amount = l_betrag EXCEPTIONS no_rate_found = 1 overflow = 2.

HR_AT_GET_GARNISHMENT_RANK CALL FUNCTION 'HR_AT_GET_GARNISHMENT_RANK' EXPORTING pernr = l_pernr begda = pn-begda endda = pn-endda pfdat = l_pfdat pfsta = l_pfsta IMPORTING pfrng = l_pfrng EXCEPTIONS infty_not_read = 1 no_authority = 2 OTHERS = 3.

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

HRPY_PROCESS_FIRE_EVENT CALL FUNCTION 'HRPY_PROCESS_FIRE_EVENT' EXPORTING imp_parcel = pyparaid TABLES imp_container = py_pm_container.



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