SAP Reports / Programs | Payroll(PY) SAP PY

HSIISLV0 SAP ABAP Report - Creating of absence records to shift shortening







HSIISLV0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter HSIISLV0 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 HSIISLV0. "Basic submit
SUBMIT HSIISLV0 AND RETURN. "Return to original report after report execution complete
SUBMIT HSIISLV0 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_SUBTY = Absence type
Selection Text: P_PERC = Reduction %
Title: Creating of absence records to shift shortening
Text Symbol: T02 = Enter data for batch processing
Text Symbol: T01 = Enter data interval for processing
Text Symbol: S16 = Update mode
Text Symbol: S15 = User name for map
Text Symbol: S14 = Processing mode
Text Symbol: S13 = Map name
Text Symbol: S12 = Call transaction
Text Symbol: S11 = Batch input map
Text Symbol: S06 = Orig.start of the illness
Text Symbol: S05 = or hour
Text Symbol: S04 = Reduction %
Text Symbol: S02 = to
Text Symbol: S01 = Illness from
Text Symbol: I03 = Batch input was called
Text Symbol: I02 = Selection is empty
Text Symbol: I01 = Batch input map was successfully created
Text Symbol: E07 = Enter only one value (percentage or hour).
Text Symbol: E06 = Reduction hours must be in interval 1-23.
Text Symbol: E05 = Reduction percentage must be in interval 1-99.
Text Symbol: E04 = Enter the reduction percentage
Text Symbol: E03 = Absence type
Text Symbol: E02 = Upper date is older then lower
Text Symbol: E01 = Enter less data scope


INCLUDES used within this REPORT HSIISLV0

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_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = pernr-pernr begda = p_datbe endda = p_daten TABLES perws = perws EXCEPTIONS error_occured = 1 abort_occured = 2 OTHERS = 3.

HR_WORK_SCHEDULE_TIMES CALL FUNCTION 'HR_WORK_SCHEDULE_TIMES' EXPORTING pernr = pernr-pernr begda = p_datbe endda = p_daten TABLES perws = perws daygen = daygen dayint = dayint EXCEPTIONS error_occured = 1 perws_error = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_name text = space info = 'Status 2001' add_stdinf = 'X' IMPORTING result = o_per_psp-ic2001 EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_name text = space info = 'Status 2002' add_stdinf = 'X' IMPORTING result = o_per_psp-ic2002 EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

COPF_DETERMINE_END_TIME * CALL FUNCTION 'COPF_DETERMINE_END_TIME' * EXPORTING * i_start_date = o_per_psp-datum * i_start_time = o_per_psp-nbegzt * i_duration = durat * i_unit_of_duration = 'H' * IMPORTING * e_end_date = datum2 * e_end_time = o_per_psp-nendzt.

END_TIME_DETERMINE CALL FUNCTION 'END_TIME_DETERMINE' EXPORTING DURATION = durat UNIT = 'H' * FACTORY_CALENDAR = IMPORTING END_DATE = datum2 END_TIME = o_per_psp-nendzt CHANGING START_DATE = o_per_psp-datum START_TIME = o_per_psp-nbegzt EXCEPTIONS FACTORY_CALENDAR_NOT_FOUND = 1 DATE_OUT_OF_CALENDAR_RANGE = 2 DATE_NOT_VALID = 3 UNIT_CONVERSION_ERROR = 4 SI_UNIT_MISSING = 5 PARAMETERS_NO_VALID = 6 OTHERS = 7.

COPF_DETERMINE_END_TIME * CALL FUNCTION 'COPF_DETERMINE_END_TIME' * EXPORTING * i_start_date = datum2 * i_start_time = o_per_psp-nendzt * i_duration = durat * i_unit_of_duration = 'H' * IMPORTING * e_end_date = datum2 * e_end_time = o_per_psp-nendzt.

END_TIME_DETERMINE CALL FUNCTION 'END_TIME_DETERMINE' EXPORTING DURATION = durat UNIT = 'H' * FACTORY_CALENDAR = IMPORTING END_DATE = datum2 END_TIME = o_per_psp-nendzt CHANGING START_DATE = datum2 START_TIME = o_per_psp-nendzt EXCEPTIONS FACTORY_CALENDAR_NOT_FOUND = 1 DATE_OUT_OF_CALENDAR_RANGE = 2 DATE_NOT_VALID = 3 UNIT_CONVERSION_ERROR = 4 SI_UNIT_MISSING = 5 PARAMETERS_NO_VALID = 6 OTHERS = 7.

COPF_DETERMINE_END_TIME * CALL FUNCTION 'COPF_DETERMINE_END_TIME' * EXPORTING * i_start_date = datum2 * i_start_time = o_per_psp-beguz * i_duration = durat * i_unit_of_duration = 'H' * IMPORTING * e_end_date = datum2 * e_end_time = o_per_psp-beguz.

END_TIME_DETERMINE CALL FUNCTION 'END_TIME_DETERMINE' EXPORTING DURATION = durat UNIT = 'H' * FACTORY_CALENDAR = IMPORTING END_DATE = datum2 END_TIME = o_per_psp-beguz CHANGING START_DATE = datum2 START_TIME = o_per_psp-beguz EXCEPTIONS FACTORY_CALENDAR_NOT_FOUND = 1 DATE_OUT_OF_CALENDAR_RANGE = 2 DATE_NOT_VALID = 3 UNIT_CONVERSION_ERROR = 4 SI_UNIT_MISSING = 5 PARAMETERS_NO_VALID = 6 OTHERS = 7.

ENQUEUE_EPPRELE CALL FUNCTION 'ENQUEUE_EPPRELE' EXPORTING pernr = p_pernr EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EPPRELE CALL FUNCTION 'DEQUEUE_EPPRELE' EXPORTING pernr = p_pernr.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = p_bname user = p_buser keep = 'X'.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

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

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = p_bname user = p_buser keep = 'X' holddate = sy-datum.

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

SCROLLING_IN_TABLE





CALL FUNCTION 'SCROLLING_IN_TABLE' EXPORTING entry_act = -top_line entry_from = 1 entry_to = -lines last_page_full = 'X' loops = ok_code = p_ok overlapping = 'X' IMPORTING entry_new = l_tc_new_top_line EXCEPTIONS * NO_ENTRY_OR_PAGE_ACT = 01 * NO_ENTRY_TO = 02 * NO_OK_CODE_OR_PAGE_GO = 03 OTHERS = 0.



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