SAP Reports / Programs

RPCSTAD0 SAP ABAP Report - Employment Tax Notification (D)







RPCSTAD0 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 monthly employment tax notification A notification is created for each company office for employment tax...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 RPCSTAD0 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 RPCSTAD0. "Basic submit
SUBMIT RPCSTAD0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCSTAD0 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: UMSETZMM = Company Office f. Employm.Tax
Selection Text: SWERK = Personnel Area Saarland
Selection Text: SBTRT = Personnel Subarea Saarland
Selection Text: RB_TESTX = Internal Tables
Selection Text: RB_TESTS = Selected records
Selection Text: RB_TESTC = Check Environment
Selection Text: RB_TEST0 = Live run
Selection Text: LINKRAND = Distance from Left Margin
Selection Text: BWERK = Personnel Area Bremen
Selection Text: BBTRT = Personnel Subarea Bremen
Selection Text: ANSCHART = Address type
Title: Employment Tax Notification (G)
Text Symbol: H02 = Report Statistics:
Text Symbol: H03 = Errors that occurred
Text Symbol: H04 = No errors found.
Text Symbol: H05 = Total Selected:
Text Symbol: H06 = Accounted:
Text Symbol: H07 = Correctly Processed:
Text Symbol: H10 = Registration
Text Symbol: H11 = CCode PArea PSubA PG PF OrgS
Text Symbol: H12 = CC PArea PSub Con Form No. EE Records
Text Symbol: H20 = Selected Records:
Text Symbol: H21 = PersNo SeqNo +/-
Text Symbol: H30 = Selected Wage Types:
Text Symbol: H31 = CC PArea PSubA Period WType
Text Symbol: S30 = Test Utils
Text Symbol: T10 = No Entry in Table T536A for Address Type
Text Symbol: T11 = No Address in T536A for Plant/Co.Type
Text Symbol: E01 = Error while Reading Cluster Directory for Pers.No.
Text Symbol: E02 = Error During Reading of Payroll Results for Pers.No./Seq.No
Text Symbol: E03 = No Payroll Results Found for Personnel Number
Text Symbol: E04 = Error During Output of Tot.Wg.Ty: PArea/SbArea/Wage Ty.
Text Symbol: E05 = No Entry for Table T015M for Argument:
Text Symbol: E06 = PArea/SbArea Not in Saarlnd:
Text Symbol: E07 = PArea/SbArea Not in Bremen
Text Symbol: E08 = Error in Currency Conversion from/to:
Text Symbol: F00 = Error in Form Structure
Text Symbol: FE0 = No Entry in Table T512E for Form





Text Symbol: FE1 = Only RT Wage Types Can Be Read in T512E:
Text Symbol: FE2 = The First Seq.No. of Each Wage Type in T512E Must Be SPACE:
Text Symbol: FE3 = Always Specify a Cumulation Wage Type in T512E:
Text Symbol: FE4 = The Sign in T512E Must Be Plus or Minus:
Text Symbol: FE5 = The Function Section of T512E May Only Contain
Text Symbol: FE6 = the Fields: Cumulation Wage Type,
Text Symbol: FE7 = Sign:
Text Symbol: FEA = Number of Entries in T512E for Form
Text Symbol: FP0 = No Entry in Table T512P for Form
Text Symbol: FPA = Number of Entries in T512P for Form
Text Symbol: FQ0 = No Entry in Table T512Q for Form
Text Symbol: FQ1 = Use Only Page Type EP in T512Q:
Text Symbol: FQ2 = Only Cumulation Wage Types (ZRT-BETRG) Permitted in T512Q:
Text Symbol: FQ3 = Field Name in T512Q Cannot Be Interpreted:
Text Symbol: FQ4 = Invalid Field Conversion in T512Q:
Text Symbol: FQ5 = Rules Are Not Supported in T512Q:
Text Symbol: FQA = Number of Entries in T512Q for Form
Text Symbol: H01 = The Following Plant Sections and Forms Were Checked:


INCLUDES used within this REPORT RPCSTAD0

INCLUDE RPC2RX01.
INCLUDE RPC2RX02.
INCLUDE RPC2RDD1.
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' "YMTK123118 EXPORTING layout = 'X_90_120'. "YMTK123118

HR_REFRESH_STAT_LIST CALL FUNCTION 'HR_REFRESH_STAT_LIST'. "QIMK027111

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'. "QIMK027111

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' "QIMK027111 EXPORTING "QIMK027111 pernr = pernr-pernr "QIMK027111 arbgb = 'HRPAYDEST' "QIMK027111 msgty = 'E' "QIMK027111 msgno = '012'. "QIMK027111

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' "QIMK027111 EXPORTING "QIMK027111 pernr = $pernr "QIMK027111 arbgb = 'HRPAYDEST' "QIMK027111 msgty = 'E' "QIMK027111 msgno = '013' "QIMK027111 .

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' "QIMK027111 EXPORTING "QIMK027111 pernr = pernr-pernr "QIMK027111 arbgb = 'HRPAYDEST' "QIMK027111 msgty = 'E' "QIMK027111 msgno = '014' "QIMK027111 msgv1 = rx-key-pernr "QIMK027111 msgv2 = rx-key-seqno "QIMK027111 . "QIMK027111

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' "QIMK027111 EXPORTING "QIMK027111 pernr = pernr-pernr "QIMK027111 arbgb = 'HRPAYDEST' "QIMK027111 msgty = 'E' "QIMK027111 msgno = '015' "QIMK027111 msgv1 = xrt-waers "QIMK027111 msgv2 = besch_waer "QIMK027111 . "QIMK027111

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

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

HR_EXTEND_STAT_LIST CALL FUNCTION 'HR_EXTEND_STAT_LIST' "QIMK027111 EXPORTING "QIMK027111 msgno = 7 "QIMK027111 number = lines. "QIMK027111

HR_DISPLAY_STAT_LIST CALL FUNCTION 'HR_DISPLAY_STAT_LIST' "QIMK027111 EXPORTING "QIMK027111 no_popup = 'X' "QIMK027111 hidemsg = 'X' "QIMK027111 linesize = 100. "QIMK027111

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' "QIMK027111 EXPORTING "QIMK027111 no_popup = 'X' "QIMK027111 no_print = ' ' "QIMK027111 * NO_IMG = ' ' "QIMK027111 no_msgno = 'X' "QIMK027111 linesize = 100 "QIMK027111 listheader = 'Aufgetretene Fehler'(h03) "QIMK027111 hidemsg = 'X' "QIMK027111 . "QIMK027111

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

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' "QIMK027111 EXPORTING "QIMK027111 pernr = pernr-pernr "QIMK027111 arbgb = 'HRPAYDEST' "QIMK027111 msgty = 'E' "QIMK027111 msgno = '017' "QIMK027111 msgv1 = 'D' "QIMK027111 msgv2 = $monum "QIMK027111 . "QIMK027111

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

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

HR_DISPLAY_ERROR_LONGTEXT CALL FUNCTION 'HR_DISPLAY_ERROR_LONGTEXT'.



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