SAP Reports / Programs | Payroll | Spain(PY-ES) SAP PY

RPCEREE0 SAP ABAP Report - Labor force adjustment plan (ERE)







RPCEREE0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program allows you to generate all the documents that the company will be required to submit to the National Employment Institute in the event of Employment Regulation (ERE)...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 RPCEREE0 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_M04_ERE_EXPED - Social Insurance contribution models


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 RPCEREE0. "Basic submit
SUBMIT RPCEREE0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPCEREE0 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: MAP_NAME = Batch input session name
Selection Text: R_BATCH = Create
Selection Text: R_BI0714 = Infotype 0714
Selection Text: R_BI2001 = Infotype 2001
Selection Text: R_CALEN = Regulation calendar
Selection Text: R_RC_NIF = Employee representative DNI
Selection Text: R_REPCOB = Employee representative
Selection Text: SBT_NAME = Absence subtype
Selection Text: S_CARGO = Charge
Selection Text: S_CAU_CE = Legal situation of unemplymt
Selection Text: S_CAU_PR = Benefit payment reason
Selection Text: S_CLA_NA = Country emplymt classification
Selection Text: S_COD_EN = Financial institution code
Selection Text: S_COD_LO = Town code
Selection Text: S_FECHA = Document issue date
Selection Text: S_L14 = Automatic debit
Selection Text: S_L15 = Generate Temse
Selection Text: S_L3 = Company certificate
Selection Text: R_DURAT = D .
Selection Text: S_TRANS = Transaction type
Selection Text: S_TIPO_P = Benefit type
Selection Text: S_RP_NIF = DNI, NIF or passport number
Selection Text: S_REPRES = Name and surnames
Selection Text: S_REG_CU = Contribution account category
Selection Text: S_PROF = Occupation of employee
Selection Text: S_PROC = Procedure type
Selection Text: S_PERI_C = Contribution period
Selection Text: S_OFIC_E = Employment office
Selection Text: S_NUMEX = File number
Selection Text: S_L9 = Application to restart bens
Selection Text: S_L8 = Regulation calendar
Selection Text: S_L7 = Registration (ApplContrBen)
Selection Text: S_L6 = Preemptive right
Selection Text: S_L5 = Children for INEM purposes
Selection Text: S_L4 = Employee initial entry
Title: Labor force adjustment plan (ERE)
Text Symbol: T99 = UNEMPLOYMENT DAYS CALENDER FOR THE PERIOD:
Text Symbol: T94 = Paymt





Text Symbol: T90 = Work
Text Symbol: T86 = Name
Text Symbol: T84 = EMPLOYEE-NAME
Text Symbol: T82 = DNI or passport
Text Symbol: E30 = Fatal error. Contact technical support
Text Symbol: E32 = File not found
Text Symbol: E34 = for CAC
Text Symbol: E36 = ERE day not found
Text Symbol: E38 = for date
Text Symbol: E40 = Category desc. not found
Text Symbol: E42 = for PS category
Text Symbol: E44 = Error creating BI IT 2001 data
Text Symbol: E46 = Error creating BI IT 0714 data
Text Symbol: E48 = T502t
Text Symbol: P12 = Table entry not found
Text Symbol: P30 = Form selection
Text Symbol: P31 = Company rep.
Text Symbol: P32 = ERE selection
Text Symbol: P33 = Infotypes by batch input
Text Symbol: P35 = ERE flat file
Text Symbol: P37 = Additional data
Text Symbol: P42 = Total
Text Symbol: P44 = Partial
Text Symbol: P46 = RED system
Text Symbol: T06 = Refusal. Error when calculating D.welfare payt limits
Text Symbol: T07 = Included
Text Symbol: T09 = Print listings
Text Symbol: T10 = Download file
Text Symbol: T20 = Company certificate
Text Symbol: T21 = Employee initial entry
Text Symbol: T22 = Children f.INEM purposes
Text Symbol: T23 = Preemptive right
Text Symbol: T24 = Regulation calendar
Text Symbol: T25 = Request for welfare payment resumption
Text Symbol: T26 = Direct debit payment
Text Symbol: T27 = ERE flat file
Text Symbol: T28 = Batch input
Text Symbol: T29 = Application for contr. benefits
Text Symbol: T40 = Rejected employees





Text Symbol: T42 = Successfully processed EEs
Text Symbol: T44 = Total employees processed
Text Symbol: T50 = Employer no.:
Text Symbol: T52 = Name, reg. co. name:
Text Symbol: T54 = Business activity:
Text Symbol: T80 = EMPLOYEE-NIF


INCLUDES used within this REPORT RPCEREE0

INCLUDE RPCERDE0. "DATA DECLARATION
INCLUDE RPCERSE0. "PANTALLA DE SELECCIÓN
INCLUDE RPCERME0. "NEW LOG
INCLUDE RPCERPE0. "PORTABILITY


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_E_GET_MIN_FAM CALL FUNCTION 'HR_E_GET_MIN_FAM' EXPORTING par_begda = p_fecha par_endda = p_fecha par_pernr = pernr-pernr IMPORTING p_min_fam_result = l_min_fam_result p_familiares = l_familiares TABLES t0021 = p0021 t0062 = p0062 EXCEPTIONS read_i0021_error = 1 read_i0062_error = 2 error = 3 OTHERS = 4.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'HRPAYES_FINE0' IMPORTING is_implemented = l_is_implemented CHANGING instance = exit_obj.

COMPUTE_YEARS_BETWEEN_DATES CALL FUNCTION 'COMPUTE_YEARS_BETWEEN_DATES' EXPORTING first_date = l_first_date second_date = l_second_date IMPORTING years_between_dates = anios EXCEPTIONS sequence_of_dates_not_valid = 1 OTHERS = 2.

HRCA_READ_BANK_ADDRESS_2 CALL FUNCTION 'HRCA_READ_BANK_ADDRESS_2' EXPORTING bank_country = p_banks bank_number = p_bankl IMPORTING bank_data = l_bnka_bf EXCEPTIONS not_found = 1 OTHERS = 2.

HR_ES_GET_NISSE_DATA CALL FUNCTION 'HR_ES_GET_NISSE_DATA' EXPORTING p_i_nisse = empresa-nisse_emp p_i_date = p_date IMPORTING p_e_nisse_data = l_nisse_data EXCEPTIONS error = 1 OTHERS = 2.

HR_E_GET_JUPER_DATA CALL FUNCTION 'HR_E_GET_JUPER_DATA' EXPORTING p_juper = p0001-juper p_actual_date = p_date IMPORTING p_juper_data = l_juper_data EXCEPTIONS error = 1 OTHERS = 2.

HR_E_GET_SV_TICON CALL FUNCTION 'HR_E_GET_SV_TICON' EXPORTING p_ticon = p0061-ticon p_pesoc = p0061-pesoc * P_T_PARC = p_codes = p0061-codes p_fecha = begin p_metod = p0061-metod IMPORTING p_idseg = l_idseg p_clcon = tip_cont p_returncode = p_return_code .

HR_E_GET_NISSE_FOR_PERNR CALL FUNCTION 'HR_E_GET_NISSE_FOR_PERNR' EXPORTING pers_num = per_num actual_date = p_actual_date IMPORTING nisse = p_nisse TABLES p_tab_p0001 = p0001 * P_TAB_WPBP = p_tab_p0061 = p0061 * P_TAB_SV = sv[] EXCEPTIONS error = 1 OTHERS = 2.

HR_E_GET_ACTIV_SOC_INSUR CALL FUNCTION 'HR_E_GET_ACTIV_SOC_INSUR' EXPORTING p_pernr = pernr-pernr p_actual_date = p_actual_date "pn-begda * P_WAY = * P_CTERELSS = IMPORTING p_begin_date = alta_date_ss "l_date p_end_date = baja_date_ss * P_ACTIV = * p_tab_phifi = l_tab_phifi TABLES * T0000 = P0000 t0001 = p0001 t0061 = p0061 * T0041 = EXCEPTIONS no_begin_date_found = 1 no_end_date_found = 2 error = 3 OTHERS = 4 .

HR_E_GET_DATES_PLUS_N_PERIODS CALL FUNCTION 'HR_E_GET_DATES_PLUS_N_PERIODS' EXPORTING p_abkrs = g_abkrs p_act_peri = wa_conf_br-fecha+4(2) p_act_year = wa_conf_br-fecha(4) p_n = wa_conf_br-noper IMPORTING p_begdate = wa_conf_br-imbeg EXCEPTIONS entry_not_found = 1 OTHERS = 2.

HR_E_GET_DATES_PLUS_N_PERIODS CALL FUNCTION 'HR_E_GET_DATES_PLUS_N_PERIODS' EXPORTING p_abkrs = g_abkrs p_act_peri = wa_conf_br-fecha+4(2) p_act_year = wa_conf_br-fecha(4) p_n = -1 IMPORTING p_enddate = wa_conf_br-imend EXCEPTIONS entry_not_found = 1 OTHERS = 2.

HR_ES_CD_ACTUALS_FOR_INPER CALL FUNCTION 'HR_ES_CD_ACTUALS_FOR_INPER' EXPORTING inper = h_iaper p_fpbeg = l_imbeg p_fpend = l_imend p_pernr = pernr-pernr TABLES evpdir = l_evp EXCEPTIONS no_record_found = 1 error = 2 OTHERS = 3.

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = wa_nupta-fpbeg IMPORTING last_day_of_month = l_ultimo_dia EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

RP_LAST_DAY_OF_MONTHS



CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = wa_depta-fpbeg IMPORTING last_day_of_month = l_ultimo_dia EXCEPTIONS day_in_no_date = 1 OTHERS = 2.

HR_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING mapname = map_name reportname = repname IMPORTING mapname = map_name.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING "Mandante client = sy-mandt "Nombre de la sesión de group = map_name "Batch-Input user = sy-uname. "Usuario

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'PA30' TABLES dynprotab = bdcdata EXCEPTIONS internal_error = 1 not_open = 2 queue_error = 3 tcode_invalid = 4 printing_invalid = 5 posting_invalid = 6 OTHERS = 7.

HR_APPEND_ERROR_LIST CALL FUNCTION 'HR_APPEND_ERROR_LIST' EXPORTING pernr = pernr-pernr arbgb = 'RP' msgno = '016' msgv1 = text-e44 "Error al crear datos BI IT 2001 EXCEPTIONS OTHERS = 1.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'PA30' TABLES dynprotab = bdcdata EXCEPTIONS internal_error = 1 not_open = 2 queue_error = 3 tcode_invalid = 4 printing_invalid = 5 posting_invalid = 6 OTHERS = 7.

HR_CONVERT_CURRENCY_RESULT CALL FUNCTION 'HR_CONVERT_CURRENCY_RESULT' EXPORTING country_grouping = pesu0_molga conversion_date = pn-endda foreign_currency = old_currency local_currency = new_currency pernr = pernr-pernr seqnr = l_seqnr TABLES result_table = ort cumulated_result_table = ocrt arrears_table = oarrrs deduction_table = oddntk
* CHANGING * p_buffer_t512w = buffer_t512w EXCEPTIONS invalid_wagetype = 1 error_conversion = 2 OTHERS = 3.

HR_ES_GET_CUSTOMER_DECISION CALL FUNCTION 'HR_ES_GET_CUSTOMER_DECISION' EXPORTING p_swnam = 'SEERE' p_date = datap IMPORTING p_customer_choice = p_opcion EXCEPTIONS multiple_options = 1 OTHERS = 2.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'HRPAYES_EREE0' IMPORTING is_implemented = l_is_implemented CHANGING instance = exit_obj.

HR_E_GET_PART_TIME_COEF CALL FUNCTION 'HR_E_GET_PART_TIME_COEF' EXPORTING p_pernr = p_pernr p_hocon = wa_p0061-hocon p_dicon = wa_p0061-dicon p_werks = p0001-werks p_btrtl = p0001-btrtl p_persg = p0001-persg p_persk = p0001-persk p_date = date IMPORTING p_coeficiente = l_coetp.

HR_E_RE5E33 CALL FUNCTION 'HR_E_RE5E33' EXPORTING land1 = p_pais_sap CHANGING wa_t5e33 = l_t5e33 EXCEPTIONS no_entries_found = 1 OTHERS = 2.

HR_99S_DOWNLOAD * CALL FUNCTION 'HR_99S_DOWNLOAD' * EXPORTING * p_bin_filesize = size * p_filetype = 'BIN' "'ASC' * TABLES * data_tab = download_data * EXCEPTIONS * file_save_dialog = 1 * file_write_error = 2 * no_batch = 3 * gui_refuse_filetransfer = 4 * invalid_type = 5 * unknown_error = 6 * wrong_tab_format = 7 * OTHERS = 8 * .

HR_99S_UPLOAD CALL FUNCTION 'HR_99S_UPLOAD' EXPORTING * P_INITIAL_DIRECTORY = 'C:\TEMP\' p_filename = 'loc_inem.txt'

HR_99S_APPCORRONDA CALL FUNCTION 'HR_99S_APPCORRONDA' EXPORTING p_molga = gc_molga p_cogrp = gc_cogrp p_corr_nr = gc_corrn p_val_date = p_fecha p_act_date = p_fecha IMPORTING p_aplicate = gv_forms_2009 EXCEPTIONS ERROR_LOCKING = 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 RPCEREE0 or its description.