SAP Reports / Programs | Payroll | Venezuela(PY-VE) SAP PY

HVECSSO0 SAP ABAP Report - Calculation of SSO and SPF contributions and deductions







HVECSSO0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for External routine of the payroll function used for calculating contributions and deductions for Compulsory Social Insurance (SSO) and Employment Welfare Scheme (RPE)...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 HVECSSO0 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 HVECSSO0. "Basic submit
SUBMIT HVECSSO0 AND RETURN. "Return to original report after report execution complete
SUBMIT HVECSSO0 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: SSO_SAL = Weekly wage for SSO
Selection Text: NUMPER = Personnel number
Selection Text: END = Period end
Selection Text: BEG = Period start
Title: Calculation of SSO and SPF contributions and deductions
Text Symbol: 021 = InternalError
Text Symbol: 020 = You must enter assessment basis (weekly wage)
Text Symbol: 019 = Period start date must not be greater than period end date
Text Symbol: 018 = You must enter period end date
Text Symbol: 017 = You must enter period start date
Text Symbol: 016 = You must enter employee number
Text Symbol: 015 = No valid information in period in infotype 0400
Text Symbol: 014 = Error reading table T7VES1
Text Symbol: 013 = Error reading HRVE_GET_PAYROLL_FREQUENCY function
Text Symbol: 012 = 'VEMIN' constant not found in table T511K
Text Symbol: 011 = Error reading HRVE_RETRIEVE_T511P_BY_MOLGA function
Text Symbol: 010 = 'VESPW' constant not found in table T511K
Text Symbol: 009 = 'VESPC' constant not found in table T511K
Text Symbol: 008 = 'VESPM' constant not found in table T511K
Text Symbol: 007 = 'VESIM' constant not found in table T511K
Text Symbol: 006 = Error reading HRVE_RETRIEVE_T511K_BY_MOLGA function
Text Symbol: 005 = Company contributions
Text Symbol: 004 = Employee deductions
Text Symbol: 003 = Compul. Unemploy. Ben. (SPF)
Text Symbol: 002 = Statutory Social Ins. (SSO)
Text Symbol: 001 = Employee:
Text Symbol: 022 = Personnel number:
Text Symbol: 023 = Ins.
Text Symbol: 024 = Insurance type
Text Symbol: 025 = B.
Text Symbol: 040 = Total
Text Symbol: 037 = Co. contribution %
Text Symbol: 036 = Co.contr.%
Text Symbol: 035 = Co. contr.
Text Symbol: 034 = A.
Text Symbol: 033 = Deduction %
Text Symbol: 032 = Deduc%
Text Symbol: 031 = %





Text Symbol: 029 = EmplDeduc.
Text Symbol: 028 = R.
Text Symbol: 027 = Bsis
Text Symbol: 026 = Bsis


INCLUDES used within this REPORT HVECSSO0

INCLUDE PCALDVE0.
INCLUDE PCSSDVE0.


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:

HRVE_RETRIEVE_T511K_BY_MOLGA CALL FUNCTION 'HRVE_RETRIEVE_T511K_BY_MOLGA' EXPORTING p_molga = c_calcmolga p_begda = p_pvesi_input-end p_endda = p_pvesi_input-end TABLES local_t511k = ve_t511k EXCEPTIONS not_found = 1 OTHERS = 2.

HRVE_RETRIEVE_T511K_BY_MOLGA CALL FUNCTION 'HRVE_RETRIEVE_T511K_BY_MOLGA' EXPORTING p_molga = c_calcmolga p_begda = p_pvesi_input-beg p_endda = p_pvesi_input-end TABLES local_t511k = ve_t511k EXCEPTIONS not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = P_NUMPER infty = '0001' begda = P_PVESI_INPUT-BEG endda = P_PVESI_INPUT-END TABLES infty_tab = i0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_99S_APPCORRONDA call function 'HR_99S_APPCORRONDA' exporting p_molga = '17' p_cogrp = 'VLC' p_corr_nr = '00000001' P_val_date = P_PVESI_INPUT-BEG p_act_date = P_PVESI_INPUT-BEG p_simulation = 'X' importing p_aplicate = CONDITION_AP EXCEPTIONS ERROR_LOCKING = 1 OTHERS = 2.

HR_FEATURE_BACKFIELD call function 'HR_FEATURE_BACKFIELD' exporting feature = 'VETRA' struc_content = pme01 importing back = input exceptions dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 others = 7.

HRVE_RETRIEVE_T511P_BY_MOLGA CALL FUNCTION 'HRVE_RETRIEVE_T511P_BY_MOLGA' EXPORTING p_molga = c_calcmolga p_begda = p_pvesi_input-end p_endda = p_pvesi_input-end TABLES local_t511p = ve_t511p EXCEPTIONS OTHERS = 1.

HRVE_SALARY_CONVERSION CALL FUNCTION 'HRVE_SALARY_CONVERSION' EXPORTING amount = p_salary salary_from = p_from salary_to = p_to IMPORTING amount_conv = p_ve_salary EXCEPTIONS invalid_parameters = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = numper infty = '0400' begda = beg endda = end IMPORTING subrc = subrc TABLES infty_tab = i0400 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

RP_GET_CURRENCY * CALL FUNCTION 'RP_GET_CURRENCY' * EXPORTING * MOLGA = C_CALCMOLGA * BEGDA = P_PVESI_INPUT-BEG * IMPORTING * WAERS = CURR * EXCEPTIONS * MOLGA_NOT_IN_T001P = 1 * NO_ENTRY_FOUND_IN_TABLE_T001 = 2 * NO_ENTRY_FOUND_IN_TABLE_T500P = 3 * NO_ENTRY_FOUND_IN_TABLE_T500C = 4 * OTHERS = 5.

HR_READ_INFOTYPE * CALL FUNCTION 'HR_READ_INFOTYPE' * EXPORTING * pernr = numper * infty = '0001' * begda = p_pvesi_input-beg * endda = p_pvesi_input-end * TABLES * infty_tab = i0001 * EXCEPTIONS * infty_not_found = 1 * OTHERS = 2.

REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' * EXPORTING * i_buffer_active = 'X' * i_callback_program = g_repid * i_structure_name = 'WA_ALV' * is_layout = g_layout * it_fieldcat = fieldcat * it_events = it_events * TABLES * t_outtab = it_alv * EXCEPTIONS * program_error = 1 * OTHERS = 2.

HR_PAL_GENRL_MSG_ADD CALL FUNCTION 'HR_PAL_GENRL_MSG_ADD' EXPORTING i_msgid = gc_aplg_msgid i_msgty = 'E' i_msgno = gc_aplg_msgno i_msgv1 = ls_msgtext-msgv1 i_msgv2 = ls_msgtext-msgv2 i_msgv3 = ls_msgtext-msgv3 i_msgv4 = ls_msgtext-msgv4 EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY'.



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