SAP Reports / Programs | Payroll | United Kingdom | B2A: Business to Administration(PY-GB-BA) SAP PY

RPCP45GN_PRESELECTION SAP ABAP Report - HR-GB: P45 form for Great Britain







RPCP45GN_PRESELECTION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Editing Payroll Results: P45 Form for Great Britain Leavers The report creates a P45 form (all parts 1, 1A, 2 and 3) with the details for those employees leaving the company within the period specified...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 RPCP45GN_PRESELECTION 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_M08_CP45_PBS - P45 processing (PBS)


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 RPCP45GN_PRESELECTION. "Basic submit
SUBMIT RPCP45GN_PRESELECTION AND RETURN. "Return to original report after report execution complete
SUBMIT RPCP45GN_PRESELECTION 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: AGAIN = Repeat P45 issue
Selection Text: ALV = ALV Output
Selection Text: ALV_VAR = ALV Variant
Selection Text: FORM = SAPScript form name
Selection Text: ISS_DATE = Issue date of P45 form
Selection Text: SAPSCRIP = SAP Script
Selection Text: SEPLT = Print pages in separate lot
Selection Text: TAX_YEAR = Tax year ending April 5th
Selection Text: TDNUM = Tax district number
Selection Text: TDREF = Tax district indicator
Selection Text: TEST = Test run
Selection Text: THEOR = Test for active employees
Title: HR-GB: P45 form for Great Britain
Text Symbol: R30 = No messages exist
Text Symbol: SAC = SAPScript
Text Symbol: SFN = with form
Text Symbol: ST1 = Selected persons
Text Symbol: ST2 = Person left in selected period
Text Symbol: ST3 = P45 already issued
Text Symbol: ST4 = P45 Forms processed
Text Symbol: ST5 = Person rejected
Text Symbol: ST6 = Employee to Pension
Text Symbol: T04 = No currency found for
Text Symbol: T05 = No Personal area text found for
Text Symbol: T06 = No Employee Group text found for
Text Symbol: T07 = No Employee Subgroup text found for
Text Symbol: T08 = No constant found for
Text Symbol: T09 = No wage type text found for
Text Symbol: T10 = No Form-of-Address text found for
Text Symbol: T11 = No Organizational unit text found for
Text Symbol: T12 = No payroll area text found for
Text Symbol: T13 = No Subapplication text found for
Text Symbol: R15 = and
Text Symbol: R14 = Payroll result not converted to New NI. Seq.nr.:
Text Symbol: R0C = Employee does not belong selected Tax Reference
Text Symbol: R07 = No Org.Assignment/Action between
Text Symbol: R03 = No payroll result for Sequence number
Text Symbol: R02 = No payroll result in P45 timeframe between





Text Symbol: R01 = No payroll result directory found
Text Symbol: P45 = (P45)
Text Symbol: N07 = is not a valid NINO Prefix on
Text Symbol: N05 = Employee didn't leave in this period.
Text Symbol: N04 = on the end date of selection period:
Text Symbol: N03 = on today's date:
Text Symbol: N02 = The leaving date set
Text Symbol: N01 = Test mode.
Text Symbol: LVD = after the leaving date
Text Symbol: LK2 = The personnel number could not be locked.
Text Symbol: LK1 = The lock entriy list is full. No new locks could be produced.
Text Symbol: LIV = Test in Live
Text Symbol: L09 = No
Text Symbol: Y03 = No Payroll year/period for date
Text Symbol: Y02 = in payroll area
Text Symbol: Y01 = No payroll periods for payroll year
Text Symbol: XML = Generate XML
Text Symbol: X02 = Invalid Characters 0123456789
Text Symbol: X01 = Invalid Characters .,()/=!"%&*+;<>:?
Text Symbol: W02 = Tax Year
Text Symbol: USD = Create New BR Tax code from
Text Symbol: U0T = Create New 0T Tax code from
Text Symbol: TX2 = Form P45 (separate output)
Text Symbol: TX1 = Form P45
Text Symbol: TR1 = Tax Reference changes on
Text Symbol: TI1 = Information by which P45 forms will be generated
Text Symbol: TGB = No valid NI categories found
Text Symbol: TGA = No engine size tax entries found for
Text Symbol: TG9 = No CO2 emission values found for
Text Symbol: TG8 = No fuel scale charge values found for
Text Symbol: TG7 = No CO2 value for car model
Text Symbol: TG6 = No external input found for tax reference
Text Symbol: TG5 = No tax references found
Text Symbol: TG4 = No address found for tax reference
Text Symbol: TG3 = No Tax reference assignment for payroll area
Text Symbol: TG2 = No Tax district text found for
Text Symbol: TG1 = No Pension scheme found for
Text Symbol: T99 = not found
Text Symbol: T29 = No car model details found for





Text Symbol: T28 = No payroll time unit found for
Text Symbol: T27 = No Car model text found for
Text Symbol: T26 = No Car manufacture text found for
Text Symbol: T25 = No Car manufacture found for
Text Symbol: T24 = No pay date found for period
Text Symbol: T23 = No payment method text found for
Text Symbol: T22 = No personal subgroup text for
Text Symbol: T21 = No company code text for
Text Symbol: T17 = No dynamic field assignments for Subapplication
Text Symbol: T16 = Wage type definition for Subapplication
Text Symbol: T15 = No Cost Center text found for
Text Symbol: T14 = No Summation wage type text found for
Text Symbol: L08 = Type
Text Symbol: E16 = No Period param. in table T549A for Payroll Area
Text Symbol: E18 = No entry in table T5G51 for argument
Text Symbol: E19 = No Taxcode found in payroll result
Text Symbol: E20 = No address for key
Text Symbol: E21 = No result found for feature
Text Symbol: E22 = No name entered for Tax Reference
Text Symbol: E23 = Return value
Text Symbol: E24 = not valid for Feature GBENA
Text Symbol: E29 = Please enter name of SAPscript stationary form
Text Symbol: E30 = Please enter valid SAPScript form
Text Symbol: E31 = The Pers. area is not found in infotype 0001 for
Text Symbol: E32 = The leaving date
Text Symbol: E33 = before entering date
Text Symbol: E42 = Tax Code on P45 (
Text Symbol: E43 = ) doesn't correspond with the Tax Data GB.
Text Symbol: E44 = Tax Basis on P45 form does not
Text Symbol: E45 = correspond with the Tax Data GB.
Text Symbol: E46 = The begin date of the tay year
Text Symbol: E47 = could not be found for payroll area
Text Symbol: E50 = No Org.Assignment data for ALV header
Text Symbol: E51 = Repeat processing only in test run available
Text Symbol: E52 = P45 for active employee only in test run available
Text Symbol: 090 = Internal Error: FIELD_CHOICE failed
Text Symbol: 091 = Selection Fields
Text Symbol: 092 = Selection Fields
Text Symbol: 093 = Selection possibilities



Text Symbol: ALV = ALV Output
Text Symbol: ALY = with ALV layout
Text Symbol: B01 = Do you really want to run the report without the test flag ?
Text Symbol: B02 = Yes
Text Symbol: B03 = No
Text Symbol: B04 = Verify test flag
Text Symbol: B05 = Table
Text Symbol: B06 = locked by user
Text Symbol: D01 = Field length is greater than maximum allowed length
Text Symbol: D02 = Field length is less than minimum allowed length
Text Symbol: D03 = Mandatory field has no value
Text Symbol: DIS = Display with
Text Symbol: E01 = No termination reason for death found in feature
Text Symbol: E03 = The payroll period and year couldn be determined
Text Symbol: E04 = for
Text Symbol: E09 = The start and end date of the tax period
Text Symbol: E10 = could not be calculated.
Text Symbol: E14 = The last payroll result for
Text Symbol: E53 = No tax year beg.date found for given payroll area
Text Symbol: FR1 = Output options
Text Symbol: FR2 = Tax record details
Text Symbol: FR3 = Processing criteria's
Text Symbol: FR4 = Submission media
Text Symbol: FRM = PDF Display
Text Symbol: I01 = No modification of Infotype 0065 from
Text Symbol: I02 = to
Text Symbol: I03 = New Tax record not created. IT0065 is limited to
Text Symbol: I04 = . The new Tax Data record begins at
Text Symbol: I05 = Leaving details changed in Tax Data GB for
Text Symbol: I06 = The Tax Data GB was splitted in
Text Symbol: I07 = and
Text Symbol: I08 = The new Tax Code is
Text Symbol: I09 = . The new Tax Basis is
Text Symbol: I11 = The new Tax Data GB record is created from
Text Symbol: I12 = . It is before the last payment date
Text Symbol: ID1 = From Issue Date of P45 Form
Text Symbol: ISD = From 1 day after pay date of the leaving period
Text Symbol: L04 = Statistics
Text Symbol: L05 = Category
Text Symbol: L06 = Number
Text Symbol: L07 = Pernr
Text Symbol: E54 = The P45 issue date must be after leaving date:
Text Symbol: E55 = Use another issue date to update infotype.
Text Symbol: E56 = Change not possible as forms ar
Text Symbol: E57 = Enter the payroll area.
Text Symbol: E58 = P45 processing only for s
Text Symbol: E59 = Use only single select options
Text Symbol: E60 = The issue date should be before
Text Symbol: E61 = the beginning date of the next employ
Text Symbol: E62 = . Enter a new issue date.
Text Symbol: E63 = The issue date should be after the last pay date:
Text Symbol: E64 = The issue date of P45 is not on IT0065 between
Text Symbol: E65 = The leaving date is before the paydate
Text Symbol: E66 = of the leaving payroll period.
Text Symbol: E67 = No creation of a new Tax Code record is possible.
Text Symbol: E68 = Could not check the P45 form is already processed.
Text Symbol: E69 = The IT0065 records could not be found.
Text Symbol: E70 = No P45 form produced
Text Symbol: E71 = because the employee has tax code NI
Text Symbol: E72 = and tax code source is 'P38 student form'.
Text Symbol: E73 = because the employee has tax code NT
Text Symbol: EM1 = Not permissible input of tax year
Text Symbol: ER1 = Error outputting


INCLUDES used within this REPORT RPCP45GN_PRESELECTION

INCLUDE RPCP45GN_PRESELECTION_DATA.
INCLUDE RPCP45GN_PRESELECTION_SCREEN.


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_GB_ME_SWITCH CALL FUNCTION 'HR_GB_ME_SWITCH' IMPORTING p_me_active = g_me_active.

HR_GB_ME_NI_SWITCH CALL FUNCTION 'HR_GB_ME_NI_SWITCH' IMPORTING p_me_ni_active = l_me_ni_active.



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