SAP BBP_PDH_WFL_DATA_IMPORT Function Module for Export von Daten zur Workflow-Funktionsgruppe
BBP_PDH_WFL_DATA_IMPORT is a standard bbp pdh wfl data import SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Export von Daten zur Workflow-Funktionsgruppe processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bbp pdh wfl data import FM, simply by entering the name BBP_PDH_WFL_DATA_IMPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_PDH_WFL
Program Name: SAPLBBP_PDH_WFL
Main Program: SAPLBBP_PDH_WFL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BBP_PDH_WFL_DATA_IMPORT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BBP_PDH_WFL_DATA_IMPORT'"Export von Daten zur Workflow-Funktionsgruppe.
EXPORTING
* IV_DOCUMENT_GUID = "Globally Unique Identifier
IMPORTING
EV_OBJECT_TYPE = "Geschäftsvorgangstyp
EV_ITEM_REJECTED = "Einstelliges Kennzeichen
EV_REQLINE_STATUS = "Status der Bedarfsanforderungszeile
EV_MODE = "Einstelliges Kennzeichen
EV_DOC_DELETED = "Einstelliges Kennzeichen
EV_SCENARIO = "Szenarien in denen der 'ShoppingCart-Create' aufgerufen wird
EV_PREVIEW_NOT_ACTUAL = "boolsche Variable (X=true, -=false, space=unknown)
EV_DIALOG_WORKITEM_ID = "Workitem-Kennung
EV_ACTION_DATE = "Erzeugungsdatum eines Workitem
EV_ACTION_TIME = "Erzeugungszeit eines Workitem
EV_START_COND_TASK = "Task abbreviation
EV_OBJECT_ID = "Vorgangsnummer
EV_MAIN_WORKITEM_ID = "Work item ID
ES_NODE_INFO = "Structure to store the node level information
ET_NODES = "Table for Nodes of Workflow Definition
ET_REVIEWER = "SRM WF History V01 Table of Reviewers
ET_APPROVAL_PREVIEW = "table for approval preview
EV_BUFFER_WFDKEY = "Key Structure for All Workflow Definition Tables
EV_BUFFER_TASK = "Task abbreviation
ET_ALL_APO_ITEMS = "Table Type for Items to be Approved Together
ET_WF_APPROVER = "holds approvers
ET_WF_REVIEWER = "reviewer table
EV_GUID = "Globally Unique Identifier in 32-Char-Darstellung
ET_ADHOC_AGENTS = "adhoc agents
ET_VIRTUAL_NODES = "
ET_STEP_ITEM_APPROVER = "Struktur für die Ablage der Genehmiger
EV_IS_ITEM_BASED_WORKFLOW = "boolsche Variable (X=true, -=false, space=unknown)
EV_NO_WORKFLOW_FOUND = "Einstelliges Kennzeichen
EV_WORKFLOW_NOT_UNIQUE = "Einstelliges Kennzeichen
EV_USERTYPE = "
EV_GENERATED_GUID = "
ET_MAP_APPROVAL = "
EV_UNAME = "R/3-System, Anmeldename des Benutzers
EV_OBJ_CHANGED = "Einstelliges Kennzeichen
EV_WFL_CHANGED = "
EV_OKCODE = "Bildschirmbilder, Funktionscode, der PAI ausgelöst hat
EV_CHECK_STATUS = "Einstelliges Kennzeichen
EV_REJECT_WI = "Workitem-Kennung
IMPORTING Parameters details for BBP_PDH_WFL_DATA_IMPORT
IV_DOCUMENT_GUID - Globally Unique Identifier
Data type: BBP_GUIDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BBP_PDH_WFL_DATA_IMPORT
EV_OBJECT_TYPE - Geschäftsvorgangstyp
Data type: CRMD_ORDERADM_H-OBJECT_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EV_ITEM_REJECTED - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EV_REQLINE_STATUS - Status der Bedarfsanforderungszeile
Data type: EC_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
EV_MODE - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EV_DOC_DELETED - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EV_SCENARIO - Szenarien in denen der 'ShoppingCart-Create' aufgerufen wird
Data type: BBP_SC_SCENARIOOptional: No
Call by Reference: No ( called with pass by value option)
EV_PREVIEW_NOT_ACTUAL - boolsche Variable (X=true, -=false, space=unknown)
Data type: BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
EV_DIALOG_WORKITEM_ID - Workitem-Kennung
Data type: SWW_WIIDOptional: No
Call by Reference: No ( called with pass by value option)
EV_ACTION_DATE - Erzeugungsdatum eines Workitem
Data type: SWR_WIHDR-WI_CDOptional: No
Call by Reference: No ( called with pass by value option)
EV_ACTION_TIME - Erzeugungszeit eines Workitem
Data type: SWR_WIHDR-WI_CTOptional: No
Call by Reference: No ( called with pass by value option)
EV_START_COND_TASK - Task abbreviation
Data type: SWD_STEP_TOptional: No
Call by Reference: No ( called with pass by value option)
EV_OBJECT_ID - Vorgangsnummer
Data type: CRMD_ORDERADM_H-OBJECT_IDOptional: No
Call by Reference: No ( called with pass by value option)
EV_MAIN_WORKITEM_ID - Work item ID
Data type: SWW_WIIDOptional: No
Call by Reference: No ( called with pass by value option)
ES_NODE_INFO - Structure to store the node level information
Data type: BBP_PDH_WFL_NODE_INFOOptional: No
Call by Reference: No ( called with pass by value option)
ET_NODES - Table for Nodes of Workflow Definition
Data type: BBPT_WFL_NODESOptional: No
Call by Reference: No ( called with pass by value option)
ET_REVIEWER - SRM WF History V01 Table of Reviewers
Data type: BBPT_REVIEWEROptional: No
Call by Reference: No ( called with pass by value option)
ET_APPROVAL_PREVIEW - table for approval preview
Data type: BBPT_APPROVAL_PREVIEWOptional: No
Call by Reference: No ( called with pass by value option)
EV_BUFFER_WFDKEY - Key Structure for All Workflow Definition Tables
Data type: SWD_WFDKEYOptional: No
Call by Reference: No ( called with pass by value option)
EV_BUFFER_TASK - Task abbreviation
Data type: SWD_STEP_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_ALL_APO_ITEMS - Table Type for Items to be Approved Together
Data type: BBPT_WFL_ITEM_APPROVAL_BADIOptional: No
Call by Reference: No ( called with pass by value option)
ET_WF_APPROVER - holds approvers
Data type: BBPT_APPROVEROptional: No
Call by Reference: No ( called with pass by value option)
ET_WF_REVIEWER - reviewer table
Data type: BBPT_REVIEWEROptional: No
Call by Reference: No ( called with pass by value option)
EV_GUID - Globally Unique Identifier in 32-Char-Darstellung
Data type: BBP_GUID_32Optional: No
Call by Reference: No ( called with pass by value option)
ET_ADHOC_AGENTS - adhoc agents
Data type: SWDTAPI_AGOptional: No
Call by Reference: No ( called with pass by value option)
ET_VIRTUAL_NODES -
Data type: BBPT_WFL_VIRTUAL_NODESOptional: No
Call by Reference: Yes
ET_STEP_ITEM_APPROVER - Struktur für die Ablage der Genehmiger
Data type: BBPT_WFL_UI_ITEM_APPROVEROptional: No
Call by Reference: Yes
EV_IS_ITEM_BASED_WORKFLOW - boolsche Variable (X=true, -=false, space=unknown)
Data type: BOOLEANOptional: No
Call by Reference: Yes
EV_NO_WORKFLOW_FOUND - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: Yes
EV_WORKFLOW_NOT_UNIQUE - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: Yes
EV_USERTYPE -
Data type: BBP_WFL_USERTYPEOptional: No
Call by Reference: No ( called with pass by value option)
EV_GENERATED_GUID -
Data type: /SAPSRM/PDO_GENERATED_GUIDOptional: No
Call by Reference: No ( called with pass by value option)
ET_MAP_APPROVAL -
Data type: /SAPSRM/T_PDO_WF_PROC_DETAILOptional: No
Call by Reference: No ( called with pass by value option)
EV_UNAME - R/3-System, Anmeldename des Benutzers
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EV_OBJ_CHANGED - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EV_WFL_CHANGED -
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EV_OKCODE - Bildschirmbilder, Funktionscode, der PAI ausgelöst hat
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
EV_CHECK_STATUS - Einstelliges Kennzeichen
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EV_REJECT_WI - Workitem-Kennung
Data type: SWW_WIIDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BBP_PDH_WFL_DATA_IMPORT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_ev_object_type | TYPE CRMD_ORDERADM_H-OBJECT_TYPE, " | |||
| lv_iv_document_guid | TYPE BBP_GUID, " | |||
| lv_ev_item_rejected | TYPE CHAR1, " | |||
| lv_ev_reqline_status | TYPE EC_STATUS, " | |||
| lv_ev_mode | TYPE CHAR1, " | |||
| lv_ev_doc_deleted | TYPE CHAR1, " | |||
| lv_ev_scenario | TYPE BBP_SC_SCENARIO, " | |||
| lv_ev_preview_not_actual | TYPE BOOLEAN, " | |||
| lv_ev_dialog_workitem_id | TYPE SWW_WIID, " | |||
| lv_ev_action_date | TYPE SWR_WIHDR-WI_CD, " | |||
| lv_ev_action_time | TYPE SWR_WIHDR-WI_CT, " | |||
| lv_ev_start_cond_task | TYPE SWD_STEP_T, " | |||
| lv_ev_object_id | TYPE CRMD_ORDERADM_H-OBJECT_ID, " | |||
| lv_ev_main_workitem_id | TYPE SWW_WIID, " | |||
| lv_es_node_info | TYPE BBP_PDH_WFL_NODE_INFO, " | |||
| lv_et_nodes | TYPE BBPT_WFL_NODES, " | |||
| lv_et_reviewer | TYPE BBPT_REVIEWER, " | |||
| lv_et_approval_preview | TYPE BBPT_APPROVAL_PREVIEW, " | |||
| lv_ev_buffer_wfdkey | TYPE SWD_WFDKEY, " | |||
| lv_ev_buffer_task | TYPE SWD_STEP_T, " | |||
| lv_et_all_apo_items | TYPE BBPT_WFL_ITEM_APPROVAL_BADI, " | |||
| lv_et_wf_approver | TYPE BBPT_APPROVER, " | |||
| lv_et_wf_reviewer | TYPE BBPT_REVIEWER, " | |||
| lv_ev_guid | TYPE BBP_GUID_32, " | |||
| lv_et_adhoc_agents | TYPE SWDTAPI_AG, " | |||
| lv_et_virtual_nodes | TYPE BBPT_WFL_VIRTUAL_NODES, " | |||
| lv_et_step_item_approver | TYPE BBPT_WFL_UI_ITEM_APPROVER, " | |||
| lv_ev_is_item_based_workflow | TYPE BOOLEAN, " | |||
| lv_ev_no_workflow_found | TYPE CHAR1, " | |||
| lv_ev_workflow_not_unique | TYPE CHAR1, " | |||
| lv_ev_usertype | TYPE BBP_WFL_USERTYPE, " | |||
| lv_ev_generated_guid | TYPE /SAPSRM/PDO_GENERATED_GUID, " | |||
| lv_et_map_approval | TYPE /SAPSRM/T_PDO_WF_PROC_DETAIL, " | |||
| lv_ev_uname | TYPE SY-UNAME, " | |||
| lv_ev_obj_changed | TYPE CHAR1, " | |||
| lv_ev_wfl_changed | TYPE CHAR1, " | |||
| lv_ev_okcode | TYPE SY-UCOMM, " | |||
| lv_ev_check_status | TYPE CHAR1, " | |||
| lv_ev_reject_wi | TYPE SWW_WIID. " |
|   CALL FUNCTION 'BBP_PDH_WFL_DATA_IMPORT' "Export von Daten zur Workflow-Funktionsgruppe |
| EXPORTING | ||
| IV_DOCUMENT_GUID | = lv_iv_document_guid | |
| IMPORTING | ||
| EV_OBJECT_TYPE | = lv_ev_object_type | |
| EV_ITEM_REJECTED | = lv_ev_item_rejected | |
| EV_REQLINE_STATUS | = lv_ev_reqline_status | |
| EV_MODE | = lv_ev_mode | |
| EV_DOC_DELETED | = lv_ev_doc_deleted | |
| EV_SCENARIO | = lv_ev_scenario | |
| EV_PREVIEW_NOT_ACTUAL | = lv_ev_preview_not_actual | |
| EV_DIALOG_WORKITEM_ID | = lv_ev_dialog_workitem_id | |
| EV_ACTION_DATE | = lv_ev_action_date | |
| EV_ACTION_TIME | = lv_ev_action_time | |
| EV_START_COND_TASK | = lv_ev_start_cond_task | |
| EV_OBJECT_ID | = lv_ev_object_id | |
| EV_MAIN_WORKITEM_ID | = lv_ev_main_workitem_id | |
| ES_NODE_INFO | = lv_es_node_info | |
| ET_NODES | = lv_et_nodes | |
| ET_REVIEWER | = lv_et_reviewer | |
| ET_APPROVAL_PREVIEW | = lv_et_approval_preview | |
| EV_BUFFER_WFDKEY | = lv_ev_buffer_wfdkey | |
| EV_BUFFER_TASK | = lv_ev_buffer_task | |
| ET_ALL_APO_ITEMS | = lv_et_all_apo_items | |
| ET_WF_APPROVER | = lv_et_wf_approver | |
| ET_WF_REVIEWER | = lv_et_wf_reviewer | |
| EV_GUID | = lv_ev_guid | |
| ET_ADHOC_AGENTS | = lv_et_adhoc_agents | |
| ET_VIRTUAL_NODES | = lv_et_virtual_nodes | |
| ET_STEP_ITEM_APPROVER | = lv_et_step_item_approver | |
| EV_IS_ITEM_BASED_WORKFLOW | = lv_ev_is_item_based_workflow | |
| EV_NO_WORKFLOW_FOUND | = lv_ev_no_workflow_found | |
| EV_WORKFLOW_NOT_UNIQUE | = lv_ev_workflow_not_unique | |
| EV_USERTYPE | = lv_ev_usertype | |
| EV_GENERATED_GUID | = lv_ev_generated_guid | |
| ET_MAP_APPROVAL | = lv_et_map_approval | |
| EV_UNAME | = lv_ev_uname | |
| EV_OBJ_CHANGED | = lv_ev_obj_changed | |
| EV_WFL_CHANGED | = lv_ev_wfl_changed | |
| EV_OKCODE | = lv_ev_okcode | |
| EV_CHECK_STATUS | = lv_ev_check_status | |
| EV_REJECT_WI | = lv_ev_reject_wi | |
| . " BBP_PDH_WFL_DATA_IMPORT | ||
ABAP code using 7.40 inline data declarations to call FM BBP_PDH_WFL_DATA_IMPORT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single OBJECT_TYPE FROM CRMD_ORDERADM_H INTO @DATA(ld_ev_object_type). | ||||
| "SELECT single WI_CD FROM SWR_WIHDR INTO @DATA(ld_ev_action_date). | ||||
| "SELECT single WI_CT FROM SWR_WIHDR INTO @DATA(ld_ev_action_time). | ||||
| "SELECT single OBJECT_ID FROM CRMD_ORDERADM_H INTO @DATA(ld_ev_object_id). | ||||
| "SELECT single UNAME FROM SY INTO @DATA(ld_ev_uname). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_ev_okcode). | ||||
Search for further information about these or an SAP related objects