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

BBP_ENHANCEMENT_INCLUDE SAP ABAP INCLUDE - Include BBP_ENHANCEMENT_INCLUDE







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


INCLUDES used within this REPORT BBP_ENHANCEMENT_INCLUDE

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:

BBP_REQREQ_GETDETAIL CALL FUNCTION 'BBP_REQREQ_GETDETAIL' EXPORTING reqno = reqreqno with_enqueue = ' ' IMPORTING req_header = disp_header req_header_srv = disp_header_srv TABLES * REQ_REFERENCE = req_line = disp_tab1 req_line_mat = disp_tab2 req_line_srv = disp_tab3 req_text = text_tab req_acct = disp_tab4 req_att = attachments req_address = address_tab EXCEPTIONS not_found = 1 foreign_lock = 2 no_enqueue_possible = 3 OTHERS = 4 .

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 = lt_workitems.

SWD_API_WORKFLOW_GRAPHIC_GET * CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET' * EXPORTING * wi_id = lt_workitems-wi_id * TABLES * nodes = nodes * lines = lines * agnts = agnts * tasks = tasks.

SWD_API_REVIEW_WFS_GET * CALL FUNCTION 'SWD_API_REVIEW_WFS_GET' * EXPORTING * IM_WI_ID = lt_workitems-wi_id * IMPORTING * EX_ADHOC_WORKFLOWS = lt_adhoc_workflows * EXCEPTIONS * OTHERS = 1.

SWI_READ_CONTAINER_ELEMENT * CALL FUNCTION 'SWI_READ_CONTAINER_ELEMENT' * EXPORTING * wi_id = nodes-node_wi_id * element = 'APPROVE_OR_REJECT' ** TAB_INDEX = 000000 * IMPORTING * value = approve * EXCEPTIONS * read_failed = 1 * OTHERS = 2 * .

BBP_READ_LAST_WI_ATTACHMENT * CALL FUNCTION 'BBP_READ_LAST_WI_ATTACHMENT' * EXPORTING * wi_id = nodes-node_wi_id * IMPORTING * attachment_data = attach_data * TABLES * attachment_lines = attach_lines * EXCEPTIONS * not_text_attachment = 1 * x_error = 2 * OTHERS = 3.

SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = p_wi_id TABLES wi_container = wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.

ENQUEUE_REQREQ CALL FUNCTION 'ENQUEUE_REQREQ' EXPORTING mode_reqhead = 'E' client = sy-mandt reqno = reqreqno x_reqno = ' ' _scope = '2' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = p_wi_id TABLES wi_container = wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.

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

SWI_WORKITEMS_OF_OBJECT_GET CALL FUNCTION 'SWI_WORKITEMS_OF_OBJECT_GET' EXPORTING objtype = 'BUS2123' objkey = objkey TABLES itemlist = itlist.

SWD_API_WORKFLOW_GRAPHIC_GET CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET' EXPORTING wi_id = itlist-wi_id * langu = sy-langu * view = 'L' TABLES nodes = nodes lines = lines agnts = agnts tasks = tasks.

SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = p_wi_id TABLES wi_container = wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.

BBP_PD_CONF_LOCK CALL FUNCTION 'BBP_PD_CONF_LOCK' EXPORTING i_header_guid = guid TABLES e_messages = errtab.

SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = p_wi_id TABLES wi_container = wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.

BBP_PD_CONF_UNLOCK CALL FUNCTION 'BBP_PD_CONF_UNLOCK' EXPORTING i_header_guid = guid * TABLES * E_MESSAGES = .

SWW_WI_CONTAINER_READ CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = p_wi_id TABLES wi_container = wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.

BBP_PD_INV_LOCK CALL FUNCTION 'BBP_PD_INV_LOCK' EXPORTING i_header_guid = guid TABLES e_messages = errtab.

SWW_WI_CONTAINER_READ





CALL FUNCTION 'SWW_WI_CONTAINER_READ' EXPORTING wi_id = p_wi_id TABLES wi_container = wi_container EXCEPTIONS container_does_not_exist = 1 OTHERS = 2.

BBP_PD_INV_UNLOCK CALL FUNCTION 'BBP_PD_INV_UNLOCK' EXPORTING i_header_guid = guid * TABLES * E_MESSAGES = .

BBP_REQREQ_INS_ATT CALL FUNCTION 'BBP_REQREQ_INS_ATT' TABLES req_att = attachments1 EXCEPTIONS update_error = 1 OTHERS = 2.

BBP_QUOTE_GET_ATTACHMENT CALL FUNCTION 'BBP_QUOTE_GET_ATTACHMENT' EXPORTING logical_system = wa_attachments-logical_system classname = wa_attachments-classname classtype = wa_attachments-classtype objkey = wa_attachments-objkey client = wa_attachments-client doc_id = wa_attachments-doc_id doc_ver_no = wa_attachments-doc_ver_no doc_var_id = wa_attachments-doc_var_id IMPORTING mimetype = lt_mimetype comp_size = lt_comp_size TABLES content = tab_bds_objcont EXCEPTIONS nothing_found = 1 parameter_error = 2 not_allowed = 3 internal_error = 4 error_kpro = 5 not_authorized = 6 OTHERS = 7.

BBP_REQREQ_INS_ATT CALL FUNCTION 'BBP_REQREQ_INS_ATT' TABLES req_att = attachments1 EXCEPTIONS update_error = 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 BBP_ENHANCEMENT_INCLUDE or its description.