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

RSWD_DEMO_ADHOC_EXTENSION_EC SAP ABAP Report - Test ad-hoc extensions







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


Text pool values


Title: Test ad-hoc extensions


INCLUDES used within this REPORT RSWD_DEMO_ADHOC_EXTENSION_EC

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:

SWD_API_ADHOC_EXTENSION_INSERT CALL FUNCTION 'SWD_API_ADHOC_EXTENSION_INSERT' EXPORTING im_target_nodeid = nodeid im_extension_task = fragment im_adhoc_extension_mode = 'X' IMPORTING ex_wfdkey = l_wfdkey ex_task = l_new_task EXCEPTIONS adhoc_extension_failed = 1 OTHERS = 2.

SWD_API_EVENT_TO_WF_CONTAINER CALL FUNCTION 'SWD_API_EVENT_TO_WF_CONTAINER' EXPORTING im_event = 'SAVED' im_task = task im_objtype = 'BUS2121' im_objkey = '10019305' im_event_container = lcl_container_event IMPORTING ex_workitem_container = lcl_container_start EXCEPTIONS binding_failed = 1 OTHERS = 2.

SWD_API_SIMULATED_WF_START CALL FUNCTION 'SWD_API_SIMULATED_WF_START' EXPORTING im_task = task im_create_only = 'X' im_workitem_container = lcl_container_start IMPORTING ex_wi_id = l_wiid EXCEPTIONS workflow_not_started = 1 OTHERS = 2.

SWD_API_ADHOC_EXTENSION_STORE CALL FUNCTION 'SWD_API_ADHOC_EXTENSION_STORE' EXPORTING im_target_wi_id = l_wiid im_wfdkey = l_wfdkey im_task = task IMPORTING ex_new_wfdkey = l_new_wfdkey EXCEPTIONS adhoc_extension_failed = 1 OTHERS = 2.

SWD_API_WORKFLOW_GRAPHIC_GET CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET' EXPORTING * WI_ID = * LANGU = SY-LANGU * VIEW = ' ' * STEPS_HIDE = 'X' * task = task adhoc_extension_mode = 'X' "flag of a buffer wf * IMPORTING * adhoc_agents = TABLES nodes = lt_nodes lines = lt_lines agnts = lt_agnts tasks = lt_tasks EXCEPTIONS workflow_not_found = 1 OTHERS = 2 .

SWD_API_SIMULATED_WF_SCHEDULE CALL FUNCTION 'SWD_API_SIMULATED_WF_SCHEDULE' EXPORTING im_wiid = l_wiid EXCEPTIONS workflow_not_started = 1 no_workflows_not_found = 2 OTHERS = 3.

SWD_API_SIMULATED_WF_SCHEDULE *CALL FUNCTION 'SWD_API_SIMULATED_WF_SCHEDULE' * EXPORTING * im_wiid = l_wiid * EXCEPTIONS * workflow_not_started = 1 * no_workflows_not_found = 2 * OTHERS = 3.

SWD_API_WORKFLOW_PROTOCOL_GET CALL FUNCTION 'SWD_API_WORKFLOW_PROTOCOL_GET' EXPORTING task = im_task use_buffer = im_use_buffer IMPORTING protocol = l_data EXCEPTIONS OTHERS = 1.

DISPLAY_XML_DOCUMENT CALL FUNCTION 'DISPLAY_XML_DOCUMENT' EXPORTING xml_document = l_xml EXCEPTIONS 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 RSWD_DEMO_ADHOC_EXTENSION_EC or its description.