SAP Reports / Programs

RPCSTBD0 SAP ABAP Report - Employment Tax Statement (D)







RPCSTBD0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is used to display the employment tax statement For each statement period (infotype 0012 tax data D) in the statement year, the system checks whether a general employment tax statement (employment tax card sticker), a special employment tax statement or no statement at all needs to be created...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 RPCSTBD0 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_CSTB - Employment Tax Statement (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 RPCSTBD0. "Basic submit
SUBMIT RPCSTBD0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCSTBD0 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: ALL_ZTRM = All Statements
Selection Text: ANSCHART = Address type
Selection Text: ANZFORM = No. of Forms for Each Page
Selection Text: ARCH_TOO = Take Into Account
Selection Text: AUSTRITT = Only Former Employees
Selection Text: ELSTER = Periods with Elster
Selection Text: FORM_A = Gen. Statement
Selection Text: FORM_B = Spec. Statement
Selection Text: FORM_BR = Width of form
Selection Text: FORM_C = Statement Part-time Employees
Selection Text: LI_RAND = Distance from Left Margin
Selection Text: OB_RAND = Distance from Upper Margin
Selection Text: PROTKOLL = Extended log
Selection Text: SEL_ALLG = General Statement
Selection Text: SEL_BESB = Special Statement
Selection Text: SEL_GERB = Statement Part-time Employees
Selection Text: TEXT = Print Form in Background
Selection Text: UMSETZMM = Company Office f. Employm.Tax
Title: Employment Tax Statement (G)
Text Symbol: S00 = R E P O R T S T A T I S T I C S:
Text Symbol: S01 = | Selected People: |
Text Symbol: S02 = | Of Which, Irrelevant: |
Text Symbol: S03 = | People Accounted: |
Text Symbol: S04 = | People Processed: |
Text Symbol: S05 = | People Rejected: |
Text Symbol: S06 = | Printed Forms: |
Text Symbol: T10 = Statement Selection
Text Symbol: T30 = Print output
Text Symbol: T31 = General Form/Spec./PT Employees
Text Symbol: T32 = Distance Left/Upper Margin
Text Symbol: T40 = Employer's Address
Text Symbol: T50 = Debugger
Text Symbol: T60 = Archived Payroll Results
Text Symbol: P42 = | | | | |
Text Symbol: E00 = | Errors Found:
Text Symbol: E01 = Payroll Results - Import Errors for Pers. No. xxxxxxxx, Seq. No. xxxxx |
Text Symbol: E02 = No Payroll Result for Pers. No. xxxxxxxx for Period xx/xxxx |
Text Symbol: E03 = Certified Previous Year Record Missing for Pers. No. xxxxxxxx |





Text Symbol: E04 = No Entry in Table 'T512E' for Country Grouping '01', Form 'xxxx' |
Text Symbol: E05 = No Entry in Table 'T512P' for Country Modifier: D, 01, Form 'xxxx' |
Text Symbol: E06 = No Entry in Table 'T512Q' for Country Grouping '01', Form 'xxxx' |
Text Symbol: E07 = No Entry in Table T536A for Address Type 'xx'
Text Symbol: E08 = Error with Currency Conversion from to
Text Symbol: E09 = Error Reading Mthly Text (T015M) for Month 'xx' / PersNo 'xxxxxxxx' |
Text Symbol: E10 = Return Feature DSTLB not 01 .. 12 for Pers. No. xxxxxxxx / year xxxx
Text Symbol: E11 = Feature DSTLB Could Not Be Reported for Pers No. xxxxxxxx
Text Symbol: E12 = Pers No. xxxxxxxx Is Not Calculated Until xx.xx.xxxx (Output Month)
Text Symbol: E13 = Error in Address Formatting for Pers.No. xxxxxxxx
Text Symbol: E14 = Error in Feature 'ADDRS'. |
Text Symbol: E20 = Cluster Import (CA/CU) Error for Pers.No. &1
Text Symbol: E21 = No Authorization for Cluster Import CA for Pers.No. &1
Text Symbol: E22 = Error Reading Archived Results for Pers. No. &1
Text Symbol: E23 = No Authorization for Cluster Import CU for Pers.No. &1
Text Symbol: I00 = | No Errors Were Found
Text Symbol: P01 = R E A D R E C O R D S :
Text Symbol: P02 = | Personnel Number |
Text Symbol: P03 = | Record Type | Seqno | T | For-per | In-per | StaD ForP | EndD ForP |
Text Symbol: P04 = | | _____ | _ | __.____ | __.____ | __.__.____ | __.__.____ |
Text Symbol: P05 = Current record
Text Symbol: P06 = Latest Dec. Record
Text Symbol: P07 = Certif.Rec.
Text Symbol: P08 = Certif.Rec. Cur. Yr
Text Symbol: P30 = R E L E V A N T P E R S O N N E L D A T A :
Text Symbol: P31 = | Start | End | St| PArea/PSA | PgPf | OrgS | SP | Tb/Ga | A? | B? |
Text Symbol: P32 = | | | | / | | | | | | |
Text Symbol: P40 = T A B L E :
Text Symbol: P41 = | Period | Wage type | Number | Amount |


INCLUDES used within this REPORT RPCSTBD0

INCLUDE RPUPMF00. "WEFL9BK006427


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:

SET_PRINT_PARAMETERS CALL FUNCTION 'SET_PRINT_PARAMETERS' "YMTK020198 EXPORTING layout = 'X_90_120'. "

CA_CU_READ_RGDIR_NEW CALL FUNCTION 'CA_CU_READ_RGDIR_NEW' EXPORTING persnr = pernr-pernr * CHECK_READ_AUTHORITY = 'X' * IMP_CLIENT = * IMPORTING * MOLGA = TABLES cu_ca_rgdir = rgdir EXCEPTIONS import_mismatch_error_cu = 1 import_mismatch_error_ca = 2 no_read_authority_ca = 3 no_read_authority_cu = 4 error_reading_cu = 5 error_reading_ca = 6 no_record_found = 7 OTHERS = 8.

CD_READ_RGDIR CALL FUNCTION 'CD_READ_RGDIR' EXPORTING persnr = pernr-pernr TABLES in_rgdir = rgdir EXCEPTIONS OTHERS = 4.

CA_CU_READ_RGDIR_NEW





CALL FUNCTION 'CA_CU_READ_RGDIR_NEW' EXPORTING persnr = pernr-pernr * CHECK_READ_AUTHORITY = 'X' * IMP_CLIENT = * IMPORTING * MOLGA = TABLES cu_ca_rgdir = rgdir EXCEPTIONS import_mismatch_error_cu = 1 import_mismatch_error_ca = 2 no_read_authority_ca = 3 no_read_authority_cu = 4 error_reading_cu = 5 error_reading_ca = 6 no_record_found = 7 OTHERS = 8.

PYDE_GET_STARTMONAT CALL FUNCTION 'PYDE_GET_STARTMONAT' EXPORTING i_pernr = pernr-pernr i_besch_ende = persd-endda IMPORTING e_period = persd-perps EXCEPTIONS OTHERS = 01.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = sy-msgid msgty = 'E' msgno = sy-msgno msgv1 = sy-msgv1.

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. "

RP_SET_NAME_FORMAT CALL FUNCTION 'RP_SET_NAME_FORMAT' "QIMN0338292 EXPORTING " repid = c_repid " IMPORTING " format = name_format. "

RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' " EXPORTING " format = name_format " langu = sy-langu " molga = c_molga " pp0002 = p0002 " IMPORTING " edit_name = edit_name " retcode = retcode. "

RP_GET_CURRENCY CALL FUNCTION 'RP_GET_CURRENCY' " EXPORTING " molga = '01' " begda = '19980101' " endda = '19981231' " IMPORTING " waers = p_besch_waehrung " 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_EMPLOYEE_ADDRESS CALL FUNCTION 'HR_GET_EMPLOYEE_ADDRESS' EXPORTING molga = c_molga repid = c_repid pn_begda = pn-begda pn_endda = high_date format = '01' IMPORTING address = adrs TABLES t0001 = p0001 t0002 = p0002 t0006 = p0006 EXCEPTIONS table_error = 1 feature_error = 2 OTHERS = 3.

RP_ARCHIVE_READ_ARCHIVE_CALC CALL FUNCTION 'RP_ARCHIVE_READ_ARCHIVE_CALC' EXPORTING arc_pernr = p_persnr TABLES buffer = p_tbuff buffer_directory = p_buffer_dir arc_groups = t_arc_groups EXCEPTIONS error_reading_archive = 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 RPCSTBD0 or its description.