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

HINUPEWB_FORMS SAP ABAP INCLUDE - Include HINUPEWB_FORMS







HINUPEWB_FORMS is a standard ABAP INCLUDE 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 HINUPEWB_FORMS 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 HINUPEWB_FORMS. "Basic submit
SUBMIT HINUPEWB_FORMS AND RETURN. "Return to original report after report execution complete
SUBMIT HINUPEWB_FORMS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include HINUPEWB_FORMS


INCLUDES used within this REPORT HINUPEWB_FORMS

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:

SAP_WAPI_WORKITEM_RECIPIENTS CALL FUNCTION 'SAP_WAPI_WORKITEM_RECIPIENTS' EXPORTING workitem_id = ls_swwwihead-wi_id * LANGUAGE = SY-LANGU * USER = SY-UNAME * CHECK_POSSIBLE_AGENTS = ' ' * BUFFERED_ACCESS = ' ' * IMPORTING * RETURN_CODE = TABLES recipients = lt_recipients * MESSAGE_LINES = * MESSAGE_STRUCT = * ORIGINAL_RULE_RESULT = .

SWI_GET_USERS_OF_ORG_UNIT CALL FUNCTION 'SWI_GET_USERS_OF_ORG_UNIT' EXPORTING otype = ls_recipients-otype objid = ls_recipients-objid TABLES user_list = lt_users EXCEPTIONS not_found = 1 no_active_plvar = 2 OTHERS = 3.

RP_GET_PERNR_FROM_USERID CALL FUNCTION 'RP_GET_PERNR_FROM_USERID' EXPORTING begda = sy-datum endda = sy-datum usrid = lv_userid usrty = '0001' IMPORTING usr_pernr = lv_pernr EXCEPTIONS retcd = 1 OTHERS = 2.

HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = lv_pernr begda = begda endda = endda * KUG = * REFRESH = 'X' * WORKING_HOURS = 'X' * SWITCH_ACTIV = * MODIFY_ENTRIES = 'X' * I0001_I0007_ERROR = '0' * READ_CLUSTER = * IMPORTING * WARNING_OCCURED = TABLES * I0000 = * I0001 = * I0002 = * I0007 = * I0049 = * I2001 = * I2002 = * I2003 = perws = lt_ptpsp * I0003 = EXCEPTIONS error_occured = 1 abort_occured = 2 OTHERS = 3 .

SAP_WAPI_READ_CONTAINER CALL FUNCTION 'SAP_WAPI_READ_CONTAINER' EXPORTING workitem_id = ls_swwwihead_req-parent_wi language = sy-langu user = sy-uname TABLES simple_container = lt_swr_cont.

FIMA_DAYS_AND_MONTHS_AND_YEARS * CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS' * EXPORTING * i_date_from = ls_swwwihead-wi_cd ** I_KEY_DAY_FROM = * i_date_to = sy-datum ** I_KEY_DAY_TO = ** I_FLG_SEPARATE = ' ' * IMPORTING * e_days = lv_days ** E_MONTHS = ** E_YEARS = * .

SAP_WAPI_WORKITEM_RECIPIENTS CALL FUNCTION 'SAP_WAPI_WORKITEM_RECIPIENTS' EXPORTING workitem_id = ls_swwwihead_req-wi_id language = sy-langu user = sy-uname TABLES recipients = lt_recipients.

SWI_GET_USERS_OF_ORG_UNIT CALL FUNCTION 'SWI_GET_USERS_OF_ORG_UNIT' EXPORTING otype = ls_recipients-otype objid = ls_recipients-objid TABLES user_list = lt_users_temp EXCEPTIONS not_found = 1 no_active_plvar = 2 OTHERS = 3.

RP_GET_PERNR_FROM_USERID CALL FUNCTION 'RP_GET_PERNR_FROM_USERID' EXPORTING begda = sy-datum endda = sy-datum usrid = lv_userid usrty = '0001' IMPORTING usr_pernr = lv_pernr EXCEPTIONS retcd = 1 OTHERS = 2.

HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = lv_pernr begda = ls_swwwihead_req-wi_cd endda = sy-datum TABLES perws = lt_ptpsp EXCEPTIONS error_occured = 1 abort_occured = 2 OTHERS = 3.

SWI_GET_USERS_OF_ORG_UNIT CALL FUNCTION 'SWI_GET_USERS_OF_ORG_UNIT' EXPORTING otype = lv_otype objid = lv_objid TABLES user_list = lt_users EXCEPTIONS not_found = 1 no_active_plvar = 2 OTHERS = 3.

SAP_WAPI_FORWARD_WORKITEM CALL FUNCTION 'SAP_WAPI_FORWARD_WORKITEM' EXPORTING workitem_id = ls_swwwihead_req-wi_id user_id = ls_users-objid language = sy-langu do_commit = 'X' current_user = sy-uname TABLES message_lines = lt_message.

EFG_GEN_SEND_EMAIL CALL FUNCTION 'EFG_GEN_SEND_EMAIL' EXPORTING i_title = lv_title "#EC NOTEXT * I_SENDER = SY-UNAME i_recipient = ls_agent_details-email i_flg_commit = 'X' i_flg_send_immediately = 'X' * I_FLG_SENDER_IS_UNAME = TABLES i_tab_lines = lt_mail_body * i_tab_lines = it_display i_tab_recipients = lt_userid EXCEPTIONS not_qualified = 1 failed = 2 OTHERS = 3.

SAP_WAPI_WORKITEM_COMPLETE CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE' EXPORTING workitem_id = ls_swwwihead_req-wi_id * ACTUAL_AGENT = SY-UNAME * LANGUAGE = SY-LANGU * SET_OBSOLET = ' ' do_commit = 'X' * DO_CALLBACK_IN_BACKGROUND = 'X' * IFS_XML_CONTAINER = IMPORTING return_code = lv_rc new_status = lv_status TABLES simple_container = lv_cont * MESSAGE_LINES = * MESSAGE_STRUCT = .

SAP_WAPI_WORKITEM_COMPLETE CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE' EXPORTING workitem_id = ls_swwwihead_req-wi_id * ACTUAL_AGENT = SY-UNAME * LANGUAGE = SY-LANGU * SET_OBSOLET = ' ' do_commit = 'X' * DO_CALLBACK_IN_BACKGROUND = 'X' * IFS_XML_CONTAINER = IMPORTING return_code = lv_rc new_status = lv_status TABLES simple_container = lv_cont * MESSAGE_LINES = * MESSAGE_STRUCT = .

HR_PERSONAL_WORK_SCHEDULE *** CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' *** EXPORTING *** pernr = ls_agent_details-pernr *** begda = ls_swwwihead_req-WI_CD *** endda = sy-datum *** TABLES *** perws = lt_ptpsp *** EXCEPTIONS *** error_occured = 1 *** abort_occured = 2 *** OTHERS = 3.

HR_PERSONAL_WORK_SCHEDULE * CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' * EXPORTING * pernr = ls_agent_details-pernr * begda = ls_t7inpew9-rmdat * endda = sy-datum * TABLES * perws = lt_ptpsp * EXCEPTIONS * error_occured = 1 * abort_occured = 2 * OTHERS = 3.

EFG_GEN_SEND_EMAIL CALL FUNCTION 'EFG_GEN_SEND_EMAIL' EXPORTING i_title = lv_title "#EC NOTEXT * I_SENDER = SY-UNAME i_recipient = ls_agent_details-email i_flg_commit = 'X' i_flg_send_immediately = 'X' * I_FLG_SENDER_IS_UNAME = TABLES i_tab_lines = lt_mail_body i_tab_recipients = lt_userid EXCEPTIONS not_qualified = 1 failed = 2 OTHERS = 3.

SAP_WAPI_READ_CONTAINER





CALL FUNCTION 'SAP_WAPI_READ_CONTAINER' EXPORTING workitem_id = ls_swwwihead_pol-parent_wi language = sy-langu user = sy-uname TABLES simple_container = lt_swr_cont_pol.

HR_PERSONAL_WORK_SCHEDULE * CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' * EXPORTING * pernr = ls_agent_details-pernr * begda = ls_t7inpew10-rmdat * endda = sy-datum * TABLES * perws = lt_ptpsp_pol * EXCEPTIONS * error_occured = 1 * abort_occured = 2 * OTHERS = 3.

HR_PERSONAL_WORK_SCHEDULE * CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' * EXPORTING * pernr = ls_agent_details-pernr * begda = ls_t7inpew10-rmdat * endda = sy-datum * TABLES * perws = lt_ptpsp_pol * EXCEPTIONS * error_occured = 1 * abort_occured = 2 * OTHERS = 3.

EFG_GEN_SEND_EMAIL CALL FUNCTION 'EFG_GEN_SEND_EMAIL' EXPORTING i_title = 'System generated mail' "#EC NOTEXT * I_SENDER = SY-UNAME i_recipient = ls_agent_details-email i_flg_commit = 'X' i_flg_send_immediately = 'X' * I_FLG_SENDER_IS_UNAME = TABLES i_tab_lines = lt_mail_body i_tab_recipients = lt_userid EXCEPTIONS not_qualified = 1 failed = 2 OTHERS = 3.

HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = ls_agent_details-pernr begda = uv_begda endda = uv_endda TABLES perws = lt_ptpsp EXCEPTIONS error_occured = 1 abort_occured = 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 HINUPEWB_FORMS or its description.