SAP Reports / Programs | Payroll(PY) SAP PY

RPBSJUH0 SAP ABAP Report - Generate anniversary bonus







RPBSJUH0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program calculates the anniversary bonus of the employees in the headcount during the period of query, and posts it to the appropriate infotype...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 RPBSJUH0 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_M21_RPBSJUH0 - Generate anniversary bonus


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 RPBSJUH0. "Basic submit
SUBMIT RPBSJUH0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPBSJUH0 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_RADI2 = Month-end
Selection Text: P_RADI1 = Mid-month
Selection Text: P_GEN = Generate
Selection Text: GROUP = Folder name
Title: Generate anniversary bonus
Text Symbol: C03 = Indirectly
Text Symbol: C10 = WageTyp
Text Symbol: C11 = Table
Text Symbol: C12 = Waget. part
Text Symbol: C13 = WPBP
Text Symbol: C14 = Summation
Text Symbol: C15 = Name
Text Symbol: E01 = There is no entry in table & for key & with & validity
Text Symbol: E02 = Employee Reason of rejection Name
Text Symbol: E03 = Employee Reason of warning Name
Text Symbol: E04 = Appointment date cannot be stated
Text Symbol: E05 = Public sector relationship start cannot be stated for anniversary bonus
Text Symbol: E06 = Other error: HR_HU_DATE_INTERVAL_SUMMA
Text Symbol: E07 = Error with last entry date (T5H4E / IT0041)
Text Symbol: E08 = From pers.gr/empl.subgr., anniv.group cannot be stated! T5HPBS79
Text Symbol: E09 = No data belong to the selection
Text Symbol: E10 = There is no record IT0008 on that day
Text Symbol: E11 = There is no record IT0639 or field JKEZM is empty
Text Symbol: I01 = Pers.number Name Period WPBP
Text Symbol: I02 = No.ofEmployees
Text Symbol: S01 = Evaluation type
Text Symbol: S02 = Display retroactive accounting results
Text Symbol: S03 = Display
Text Symbol: S04 = Multi-month display
Text Symbol: S05 = Enter wage types
Text Symbol: 001 = Specify selections
Text Symbol: 002 = Generate
Text Symbol: 003 = Pay salary
Text Symbol: 004 = Enter year
Text Symbol: 005 = Anua?
Text Symbol: 006 = Foldr
Text Symbol: 007 = User
Text Symbol: 008 = Keep session





Text Symbol: 009 = Date
Text Symbol: 010 = Batch input session data
Text Symbol: 025 = Company
Text Symbol: 026 = Personnel area
Text Symbol: 027 = Personnel subarea
Text Symbol: 028 = Cost center
Text Symbol: 029 = Employee group
Text Symbol: 030 = EmplSubgroup
Text Symbol: 031 = Org. unit
Text Symbol: 077 = Sort sequence
Text Symbol: 078 = Enter sort sequence
Text Symbol: 079 = Possible sort criteria
Text Symbol: 080 = Sort sequence
Text Symbol: 081 = Company
Text Symbol: 082 = Personnel area
Text Symbol: 083 = Personnel subarea
Text Symbol: 084 = Cost center
Text Symbol: 085 = Employee group
Text Symbol: 086 = EmplSubgroup
Text Symbol: 087 = Org. unit
Text Symbol: 090 = Sort
Text Symbol: C02 = Via form


INCLUDES used within this REPORT RPBSJUH0

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:

HR_HU_UTOLSO_BELEPES CALL FUNCTION 'HR_HU_UTOLSO_BELEPES' EXPORTING per_nr = pernr-pernr ref_date = pn-endda IMPORTING last_hire = g_belepes EXCEPTIONS not_found = 1 t5h4e_error = 2 p0041_begda = 3 p0041_future = 4 p0041_sequence = 5 OTHERS = 6.

RP_CHECK_DATE CALL FUNCTION 'RP_CHECK_DATE' EXPORTING date = dat EXCEPTIONS OTHERS = 2.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = group user = user keep = keep holddate = holddate.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = tcode TABLES dynprotab = bdcdata.

HR_HU_UTOLSO_BELEPES * CALL FUNCTION 'HR_HU_UTOLSO_BELEPES' * EXPORTING * PER_NR = PERNR * REF_DATE = ENDDA * IMPORTING * LAST_HIRE = HIRED ** MASSN = ** MASSG = * EXCEPTIONS * NOT_FOUND = 1 * T5H4E_ERROR = 2 * P0041_BEGDA = 3 * P0041_FUTURE = 4 * P0041_SEQUENCE = 5 * OTHERS = 6.

HR_HU_DATE_INTERVAL_SUM_SUBTY * CALL FUNCTION 'HR_HU_DATE_INTERVAL_SUM_SUBTY' * EXPORTING * PERNR = PERNR * SUBTY = 'KIM' * IMPORTING * TO_EV = Q0639-TO_EV_KIM * TO_HO = Q0639-TO_HO_KIM * TONAP = Q0639-TONAP_KIM ** tj_ev = $tj_ev ** tj_ho = $tj_ho ** tjnap = $tjnap ** tv_ev = $tv_ev ** tv_ho = $tv_ho ** tvnap = $tvnap * .






HR_HU_DATE_INTERVAL_SUM_SUBTY * CALL FUNCTION 'HR_HU_DATE_INTERVAL_SUM_SUBTY' * EXPORTING * PERNR = PERNR * SUBTY = 'KIMK' * IMPORTING * TO_EV = Q0639-TO_EV_KIMK * TO_HO = Q0639-TO_HO_KIMK * TONAP = Q0639-TONAP_KIMK ** tj_ev = $tj_ev ** tj_ho = $tj_ho ** tjnap = $tjnap ** tv_ev = $tv_ev ** tv_ho = $tv_ho ** tvnap = $tvnap * .

HR_HU_DATE_INTERVAL_SUM_SUBTY * CALL FUNCTION 'HR_HU_DATE_INTERVAL_SUM_SUBTY' * EXPORTING * PERNR = PERNR * SUBTY = 'KIH' * IMPORTING * TO_EV = Q0639-TO_EV_KIH * TO_HO = Q0639-TO_HO_KIH * TONAP = Q0639-TONAP_KIH ** tj_ev = $tj_ev ** tj_ho = $tj_ho ** tjnap = $tjnap ** tv_ev = $tv_ev ** tv_ho = $tv_ho ** tvnap = $tvnap * .

HR_HU_DATE_INTERVAL_SUMMA * CALL FUNCTION 'HR_HU_DATE_INTERVAL_SUMMA' * EXPORTING * PERNR = P0639-PERNR * IMPORTING * TO_EV = Q0639-TO_EV * TO_HO = Q0639-TO_HO * TONAP = Q0639-TONAP * TJ_EV = Q0639-TJ_EV * TJ_HO = Q0639-TJ_HO * TJNAP = Q0639-TJNAP * TV_EV = Q0639-TV_EV * TV_HO = Q0639-TV_HO * TVNAP = Q0639-TVNAP * EXCEPTIONS * NEGATIV = 1 * OTHERS = 2.

HR_HU_PS_KT_KSZ_KEZDETE * CALL FUNCTION 'HR_HU_PS_KT_KSZ_KEZDETE' * EXPORTING * pernr = pernr ** kinev = q0639-kinev * refda = endda * IMPORTING ** jkezd = q0639-jkezd * jkezj = jkezj ** jkezv = q0639-jkezv * EXCEPTIONS * missing_kinev = 1 * OTHERS = 2.

HR_HU_PS_JKEZD CALL FUNCTION 'HR_HU_PS_JKEZD' EXPORTING pernr = pernr datum = endda napig = endda "C5130669 fajta = 'JJU' p0639_jkezm = p0639-jkezm IMPORTING kezd = jkezj * EV_HO_NAP = * EV_NAP = * NAP = * CHANGING * BELEP = * MSZTI EXCEPTIONS belep_hiba = 1 "Nem állapítható meg a belépés ideje nincs_0008 = 2 "Nincs a vizsgált napon 0008 rekord nincs_jkezm = 3 "0639 rekord nem létezik /a JKEZM mezo üres OTHERS = 4.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = lv_feature struc_content = ls_pme04 kind_of_error = space IMPORTING back = pv_varky * CHANGING * status = status EXCEPTIONS OTHERS = 1.



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