SAP Reports / Programs | Personnel Management | Personnel Administration(PA-PA) SAP PA

HGRUDCE0 SAP ABAP Report - Dismissal Compensation Estimation Report







HGRUDCE0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to generate an overview report of the estimated dismissal compensation amounts for all active employees in a company on a certain date...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 HGRUDCE0 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_M45_DCE0 - Dismiss.Compensat. Estimation report


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 HGRUDCE0. "Basic submit
SUBMIT HGRUDCE0 AND RETURN. "Return to original report after report execution complete
SUBMIT HGRUDCE0 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_SPLTY = Specialty for Labor Auth.
Selection Text: P_SEQNR = Company Data Sequential No.
Selection Text: P_LEGAL = Estimation Based on Legal Perc
Selection Text: P_LASTDT = Last date of payroll run
Selection Text: P_INCR = Increment calculation
Selection Text: P_EDATE = Estimation Date
Selection Text: P_DAR = Type of Previous Employment
Selection Text: P_CURR = D .
Title: Dismissal Compensation Estimation Report
Text Symbol: T01 = Submission Type
Text Symbol: P04 = Percent of Legal Dismissal Compensation
Text Symbol: P01 = Page:
Text Symbol: H03 = Estimation date
Text Symbol: H02 = Dismissal Compensation Estimation
Text Symbol: C17 = Lockdate Factor
Text Symbol: C16 = Lock date Employment
Text Symbol: C15 = Net amount
Text Symbol: C14 = TAX
Text Symbol: C13 = Increment
Text Symbol: C12 = Salary
Text Symbol: C11 = Salaried/Daily
Text Symbol: C10 = Dismissal Salary
Text Symbol: C09 = Salary
Text Symbol: C08 = Compensation
Text Symbol: C07 = Factor
Text Symbol: C06 = Prev.Months
Text Symbol: C05 = Employment
Text Symbol: C04 = Hire Date
Text Symbol: C03 = Group Entry Date
Text Symbol: C02 = Surname
Text Symbol: A03 = Salaried
Text Symbol: A02 = Daily
Text Symbol: A01 = Hourly
Text Symbol: 004 = Submit Time Schedule Changes
Text Symbol: 003 = Submit Leaving/Retirements
Text Symbol: 002 = Submit Specialty Changes
Text Symbol: 001 = Submit Hiring/Rehirings


INCLUDES used within this REPORT HGRUDCE0

INCLUDE HGRUCMP0.




INCLUDE HGRUINS0.
INCLUDE HGRUACT0.


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:

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = h_begda IMPORTING last_day_of_month = h_endda EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = h_begda_py IMPORTING last_day_of_month = h_endda_py EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = w_repid i_internal_tabname = itabname i_inclname = w_repid CHANGING ct_fieldcat = i_fieldcat_alv.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = i_events.

REUSE_ALV_GRID_DISPLAY

REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * i_background_id = 'ALV_BACKGROUND' " i_callback_program = w_variant-report i_default = 'X' " i_save = 'A' * is_variant = w_variant is_layout = w_layout " it_fieldcat = i_fieldcat_alv it_sort = i_sort it_events = i_events * i_callback_top_of_page = 'TOP_OF_PAGE' is_print = w_print " TABLES t_outtab = W_MINUS.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = p_endda IMPORTING last_day_of_month = p_endda EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

HR_GR_READ_PYRES_INTERVAL CALL FUNCTION 'HR_GR_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'P' fmper = period_fm toper = period_to permo = lv_permo * BEGDA = * ENDDA = * INPER = p_inper * BONDT = APER-BONDT * PAYTY = APER-PAYTY * PAYID = APER-PAYID * TPRUN = ACURR = a_curr ACUDT = a_currdt TABLES all_runs = p_evp ** evp_runs = p_evp rtdet = lt_rtgr.

HR_IT_READ_T503 CALL FUNCTION 'HR_IT_READ_T503' EXPORTING p_persg = p0001-persg p_persk = p0001-persk p_sele = 'S' TABLES p_tab = lt_t503 EXCEPTIONS no_entry_found = 1 OTHERS = 2.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING PERSNR = pernr-pernr RCLAS = 'A' BEGDA = '18000101' ENDDA = '99991231' * VARKY = IMPORTING ENTRYDATE = w_date.

HR_GET_TOTAL_AMOUNT_P0008 CALL FUNCTION 'HR_GET_TOTAL_AMOUNT_P0008' EXPORTING pernr = pernr-pernr date = p_edate p0008 = p0008 p0001 = p0001 leave_hourly = 'X' IMPORTING amount = w_minus1-salary.

HR_GR_CALC_SCALES CALL FUNCTION 'HR_GR_CALC_SCALES' EXPORTING SCALE_CODE = scale SCALE_ENDDA = p_edate SCALE_AMOUNT = mhnes * SCALE_DAYS = IMPORTING AMOUNT = scale_AMOUNT PERCENT = scale_PERCENT SCVAL = SCVAL SCLIF = SCLIF SCLIT = SCLIT .

HR_GR_CALC_SCALES CALL FUNCTION 'HR_GR_CALC_SCALES' EXPORTING SCALE_CODE = scale_lock SCALE_ENDDA = p_edate SCALE_AMOUNT = mhnes_lock * SCALE_DAYS = IMPORTING AMOUNT = scale_AMOUNT_lock PERCENT = scale_PERCENT_lock SCVAL = SCVAL SCLIF = SCLIF SCLIT = SCLIT .

HR_GR_CALC_DURATION CALL FUNCTION 'HR_GR_CALC_DURATION' EXPORTING DATE_FROM = date_f DATE_TO = date_t * ADDING = ' ' IMPORTING YEARS = years_e MONTHS = months_e DAYS = days_e EXCEPTIONS INVALID_DATES = 1 DATE_FROM_GREATER = 2 OTHERS = 3.



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