SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Workflow(SRM-EBP-WFL) SAP SRM

SAPMTS10008069NEXTAPPROVER SAP ABAP INCLUDE - Include SAPMTS10008069NEXTAPPROVER







SAPMTS10008069NEXTAPPROVER 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 SAPMTS10008069NEXTAPPROVER 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 SAPMTS10008069NEXTAPPROVER. "Basic submit
SUBMIT SAPMTS10008069NEXTAPPROVER AND RETURN. "Return to original report after report execution complete
SUBMIT SAPMTS10008069NEXTAPPROVER 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 SAPMTS10008069NEXTAPPROVER


INCLUDES used within this REPORT SAPMTS10008069NEXTAPPROVER

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:

BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_username IMPORTING address = address TABLES return = return2.

ENQUEUE_REQREQ CALL FUNCTION 'ENQUEUE_REQREQ' EXPORTING reqno = reqnum EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_REQREQ ENDIF. " <-- CALL FUNCTION 'ENQUEUE_REQREQ'

BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_username IMPORTING address = address TABLES return = return2.

DEQUEUE_REQREQ CALL FUNCTION 'DEQUEUE_REQREQ' EXPORTING mode_reqhead = 'E' client = sy-mandt reqno = reqno x_reqno = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

RH_USER_SEARCH_VIA_NAME CALL FUNCTION 'RH_USER_SEARCH_VIA_NAME' EXPORTING search_string = reviewer_eingabe TABLES * USER_TAB = user_name = rev_names.

BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_username IMPORTING address = address TABLES return = return2.

SWW_WI_TO_OBJECT_FIND * CALL FUNCTION 'SWW_WI_TO_OBJECT_FIND' * EXPORTING * existence_check_only = space * unfinished_wis_only = 'X' * objtype = 'BUS2121' * objkey = objkey * TABLES * workitem_list = workitems.

SWD_API_REVIEW_WF_OF_WI_ID_GET * CALL FUNCTION 'SWD_API_REVIEW_WF_OF_WI_ID_GET' * EXPORTING * im_wi_id = main_wi * IMPORTING * ex_task = l_task_review * EXCEPTIONS * no_review_workflow_found = 1 * OTHERS = 2.

BAPI_USER_GET_DETAIL * CALL FUNCTION 'BAPI_USER_GET_DETAIL' * EXPORTING * username = lv_username * IMPORTING * address = address * TABLES * return = return2.

BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = lv_username IMPORTING address = address TABLES return = return2.

RH_USER_SEARCH_VIA_NAME CALL FUNCTION 'RH_USER_SEARCH_VIA_NAME' EXPORTING search_string = reviewer_eingabe TABLES * USER_TAB = user_name = rev_names.

SWW_WI_TO_OBJECT_FIND CALL FUNCTION 'SWW_WI_TO_OBJECT_FIND' EXPORTING existence_check_only = space unfinished_wis_only = '' objtype = 'BUS2121' objkey = objkey TABLES workitem_list = workitems.

SWD_API_REVIEW_WF_OF_WI_ID_GET CALL FUNCTION 'SWD_API_REVIEW_WF_OF_WI_ID_GET' EXPORTING im_wi_id = main_wi IMPORTING ex_task = l_task_review EXCEPTIONS no_review_workflow_found = 1 OTHERS = 2.

SWD_API_REVIEW_WF_OF_WI_ID_GET CALL FUNCTION 'SWD_API_REVIEW_WF_OF_WI_ID_GET' EXPORTING im_wi_id = main_wi IMPORTING ex_task = l_task_review EXCEPTIONS no_review_workflow_found = 1 OTHERS = 2.

BBP_ALERT_WFL_APPROV_ASSIGN CALL FUNCTION 'BBP_ALERT_WFL_APPROV_ASSIGN' EXPORTING MSGID = 'BBP_WFL' MSGNO = '010' * MSGARG1 = main_wi * MSGARG2 = * MSGARG3 = * MSGARG4 = EXCEPTIONS INVALID_PARAMETERS = 1 OTHERS = 2 .

SWD_API_REVIEW_WF_START CALL FUNCTION 'SWD_API_REVIEW_WF_START' EXPORTING im_wi_id = main_wi im_task = l_task_review IMPORTING ex_wi_id = l_wiid_review TABLES im_agent_container = lt_container_review EXCEPTIONS OTHERS = 1.

BBP_ALERT_WFL_APPROV_ASSIGN CALL FUNCTION 'BBP_ALERT_WFL_APPROV_ASSIGN' EXPORTING MSGID = 'BBP_WFL' MSGNO = '010' * MSGARG1 = main_wi * MSGARG2 = * MSGARG3 = * MSGARG4 = EXCEPTIONS INVALID_PARAMETERS = 1 OTHERS = 2 .

BAPI_USER_GET_DETAIL





* CALL FUNCTION 'BAPI_USER_GET_DETAIL' * EXPORTING * username = lv_username * IMPORTING * address = address * TABLES * return = return2.

SWD_API_ADHOC_EXTENSION_CREATE CALL FUNCTION 'SWD_API_ADHOC_EXTENSION_CREATE' EXPORTING im_target_wi_id = main_wi im_target_nodeid = node_id_task im_extension_task = node_task IMPORTING ex_new_wfdkey = new_wf_def_key EXCEPTIONS adhoc_extension_failed = 1 OTHERS = 2.

RH_USER_SEARCH_VIA_NAME CALL FUNCTION 'RH_USER_SEARCH_VIA_NAME' EXPORTING search_string = reviewer_eingabe TABLES * USER_TAB = user_name = rev_names.

SWW_WI_TO_OBJECT_FIND * CALL FUNCTION 'SWW_WI_TO_OBJECT_FIND' * EXPORTING * existence_check_only = space * unfinished_wis_only = '' * objtype = 'BUS2121' * objkey = objkey * TABLES * workitem_list = workitems.

SWD_API_WORKFLOW_GRAPHIC_GET CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET' EXPORTING wi_id = main_wi TABLES nodes = nodes lines = lines agnts = agnts " vorhandene Genehmigende tasks = tasks. " Aufgabe-ID an den Anker-Punkte

SWD_API_REVIEW_WFS_GET CALL FUNCTION 'SWD_API_REVIEW_WFS_GET' EXPORTING im_wi_id = main_wi " WI-ID des Hauptworkflows IMPORTING * ex_adhoc_workflows = lt_adhoc_workflows ex_wi_ids = lt_wi_ids " WI-ID der Reviewer-WF's EXCEPTIONS OTHERS = 1.

RH_USER_SEARCH_VIA_NAME CALL FUNCTION 'RH_USER_SEARCH_VIA_NAME' EXPORTING search_string = reviewer_eingabe TABLES * USER_TAB = user_name = rev_names.

ITS_GET_SYNC_INFO CALL FUNCTION 'ITS_GET_SYNC_INFO' TABLES sync_info = sync_itab EXCEPTIONS its_not_available = 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 SAPMTS10008069NEXTAPPROVER or its description.