SAP Reports / Programs

HINUPE_P2E SAP ABAP INCLUDE - Program for object type BUSP2E : Policy To Execution







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


Text pool values


Title: Program for object type BUSP2E : Policy To Execution


INCLUDES used within this REPORT HINUPE_P2E

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:

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_agent EXCEPTIONS retcd = 1 OTHERS = 2.

SAP_WAPI_GET_CHILD_WORKITEMS CALL FUNCTION 'SAP_WAPI_GET_CHILD_WORKITEMS' EXPORTING workitem_id = lv_top_wi_id user = sy-uname text = 'X' language = sy-langu TABLES worklist = lt_swr_wihdr.

HR_IN_PE_CALL_MAIN_PROG CALL FUNCTION 'HR_IN_PE_CALL_MAIN_PROG' STARTING NEW TASK 'T1' EXPORTING iv_regui = lv_regui iv_outcome = 'X' " Approved iv_pernr = lv_pernr_requester iv_seqnm = lv_seqnm.

SAP_WAPI_GET_WORKITEM_DETAIL CALL FUNCTION 'SAP_WAPI_GET_WORKITEM_DETAIL' EXPORTING workitem_id = ls_t7inpew9-wi_id IMPORTING workitem_detail = ls_detail.

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

HR_IN_PE_CALL_MAIN_PROG CALL FUNCTION 'HR_IN_PE_CALL_MAIN_PROG' STARTING NEW TASK 'T1' EXPORTING iv_regui = lv_regui iv_outcome = ' ' "Rejected iv_pernr = lv_pernr_requester iv_seqnm = lv_seqnm.

SAP_WAPI_GET_WORKITEM_DETAIL CALL FUNCTION 'SAP_WAPI_GET_WORKITEM_DETAIL' EXPORTING workitem_id = ls_t7inpew9-wi_id IMPORTING workitem_detail = ls_detail.

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

SAP_WAPI_GET_CHILD_WORKITEMS CALL FUNCTION 'SAP_WAPI_GET_CHILD_WORKITEMS' EXPORTING workitem_id = lv_top_wi_id user = sy-uname text = 'X' language = sy-langu TABLES worklist = lt_swr_wihdr.

HR_IN_PE_CALL_MAIN_PROG CALL FUNCTION 'HR_IN_PE_CALL_MAIN_PROG' STARTING NEW TASK 'T1' EXPORTING iv_regui = lv_regui iv_outcome = 'X' " Approved iv_pernr = lv_pernr_requester iv_seqnm = lv_seqnm.

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

HR_IN_PE_CALL_MAIN_PROG CALL FUNCTION 'HR_IN_PE_CALL_MAIN_PROG' STARTING NEW TASK 'T1' EXPORTING iv_regui = lv_regui iv_outcome = ' ' "Rejected iv_pernr = lv_pernr_requester iv_seqnm = lv_seqnm.

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

EFG_GEN_SEND_EMAIL CALL FUNCTION 'EFG_GEN_SEND_EMAIL' EXPORTING i_title = lv_title "#EC NOTEXT i_recipient = ls_team_email i_flg_commit = 'X' i_flg_send_immediately = 'X' TABLES i_tab_lines = lt_mail_body * i_tab_recipients = lt_userid EXCEPTIONS not_qualified = 1 failed = 2 OTHERS = 3.

SAP_WAPI_ADM_WORKFLOW_CANCEL CALL FUNCTION 'SAP_WAPI_ADM_WORKFLOW_CANCEL' EXPORTING workitem_id = lv_wi_id actual_agent = sy-uname language = sy-langu do_commit = 'X'.

EFG_GEN_SEND_EMAIL CALL FUNCTION 'EFG_GEN_SEND_EMAIL' EXPORTING i_title = lv_title "#EC NOTEXT i_recipient = ls_agent_details-email i_flg_commit = 'X' i_flg_send_immediately = 'X' TABLES i_tab_lines = lt_mail_body i_tab_recipients = lt_userid EXCEPTIONS not_qualified = 1 failed = 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 HINUPE_P2E or its description.