SAP BBP_PDH_WFL_APPROVAL_SIMULATE Function Module for Ermittlung von Daten für Genehmigungsvorschau









BBP_PDH_WFL_APPROVAL_SIMULATE is a standard bbp pdh wfl approval simulate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ermittlung von Daten für Genehmigungsvorschau 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 approval simulate FM, simply by entering the name BBP_PDH_WFL_APPROVAL_SIMULATE 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_APPROVAL_SIMULATE 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_APPROVAL_SIMULATE'"Ermittlung von Daten für Genehmigungsvorschau
EXPORTING
IV_OBJECT_TYPE = "Geschäftsvorgangstyp
* IV_BUFFER_WFDKEY = "Schlüsselstruktur für alle Workflow-Definitions-Tabellen
* IV_DIALOG_WI = "Workitem-Kennung
* IV_PREVIEW_NOT_ACTUAL = "boolsche Variable (X=true, -=false, space=unknown)
* IV_CHECK_STATUS = "boolsche Variable (X=true, -=false, space=unknown)
IV_OBJECT_ID = "Belegnummer der Bedarfsanforderung
* IV_DB_TASK = "DB-Workflow
* IV_USER = "R/3-System, Anmeldename des Benutzers
* IV_GUID = "Globally Unique Identifier in 32-Char-Darstellung
* IV_DB_WORKITEM_ID = "Workitem-Kennung
* IV_OBJ_CHANGED = "Feld zum Ankreuzen
* IV_BUF_TASK = "Aufgabenkürzel
* IV_BUF_WORKITEM_ID = "Workitem-Kennung

IMPORTING
EV_START_COND_TASK = "Simulierter WF-Typ zum Starten
EV_DB_WORKITEM_ID = "Workitem von DB-Workflow
EV_DB_TASK = "Aufgabenkürzel
EV_RESTART = "boolsche Variable (X=true, -=false, space=unknown)
EV_BUFFER_TASK = "Aufgabenkürzel
EV_BUFFER_WFDKEY = "Schlüsselstruktur für alle Workflow-Definitions-Tabellen
EV_START_TASK = "Aufgabenkürzel
EV_START_WI_ID = "Workitem-Kennung

TABLES
* ET_ADHOC_AGENTS = "WF: Adhoc-Bearbeiter
* ET_REVIEWER = "Struktur für die Ablage von Reviewer

EXCEPTIONS
WORKFLOW_NOT_FOUND = 1 WORKFLOW_NOT_ACTUAL = 2
.



IMPORTING Parameters details for BBP_PDH_WFL_APPROVAL_SIMULATE

IV_OBJECT_TYPE - Geschäftsvorgangstyp

Data type: CRMD_ORDERADM_H-OBJECT_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

IV_BUFFER_WFDKEY - Schlüsselstruktur für alle Workflow-Definitions-Tabellen

Data type: SWD_WFDKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DIALOG_WI - Workitem-Kennung

Data type: SWR_STRUCT-WORKITEMID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PREVIEW_NOT_ACTUAL - boolsche Variable (X=true, -=false, space=unknown)

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CHECK_STATUS - boolsche Variable (X=true, -=false, space=unknown)

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_OBJECT_ID - Belegnummer der Bedarfsanforderung

Data type: CRMD_ORDERADM_H-OBJECT_ID
Optional: No
Call by Reference: No ( called with pass by value option)

IV_DB_TASK - DB-Workflow

Data type: SWD_STEP_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_USER - R/3-System, Anmeldename des Benutzers

Data type: SYST-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GUID - Globally Unique Identifier in 32-Char-Darstellung

Data type: BBP_GUID_32
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DB_WORKITEM_ID - Workitem-Kennung

Data type: SWW_WIID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_OBJ_CHANGED - Feld zum Ankreuzen

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_BUF_TASK - Aufgabenkürzel

Data type: SWD_STEP_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_BUF_WORKITEM_ID - Workitem-Kennung

Data type: SWR_STRUCT-WORKITEMID
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BBP_PDH_WFL_APPROVAL_SIMULATE

EV_START_COND_TASK - Simulierter WF-Typ zum Starten

Data type: SWD_STEP_T
Optional: No
Call by Reference: No ( called with pass by value option)

EV_DB_WORKITEM_ID - Workitem von DB-Workflow

Data type: SWW_WIID
Optional: No
Call by Reference: No ( called with pass by value option)

EV_DB_TASK - Aufgabenkürzel

Data type: SWD_STEP_T
Optional: No
Call by Reference: No ( called with pass by value option)

EV_RESTART - boolsche Variable (X=true, -=false, space=unknown)

Data type: BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

EV_BUFFER_TASK - Aufgabenkürzel

Data type: SWD_STEP_T
Optional: No
Call by Reference: No ( called with pass by value option)

EV_BUFFER_WFDKEY - Schlüsselstruktur für alle Workflow-Definitions-Tabellen

Data type: SWD_WFDKEY
Optional: No
Call by Reference: No ( called with pass by value option)

EV_START_TASK - Aufgabenkürzel

Data type: SWD_STEP_T
Optional: No
Call by Reference: No ( called with pass by value option)

EV_START_WI_ID - Workitem-Kennung

Data type: SWW_WIID
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BBP_PDH_WFL_APPROVAL_SIMULATE

ET_ADHOC_AGENTS - WF: Adhoc-Bearbeiter

Data type: SWD_API_AG
Optional: Yes
Call by Reference: Yes

ET_REVIEWER - Struktur für die Ablage von Reviewer

Data type: BBP_S_REVIEWER
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

WORKFLOW_NOT_FOUND - Workflow nicht gefunden

Data type:
Optional: No
Call by Reference: Yes

WORKFLOW_NOT_ACTUAL - Workflowanzeige ist nicht aktuell

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BBP_PDH_WFL_APPROVAL_SIMULATE 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_iv_object_type  TYPE CRMD_ORDERADM_H-OBJECT_TYPE, "   
lt_et_adhoc_agents  TYPE STANDARD TABLE OF SWD_API_AG, "   
lv_ev_start_cond_task  TYPE SWD_STEP_T, "   
lv_workflow_not_found  TYPE SWD_STEP_T, "   
lv_iv_buffer_wfdkey  TYPE SWD_WFDKEY, "   
lv_iv_dialog_wi  TYPE SWR_STRUCT-WORKITEMID, "   
lv_iv_preview_not_actual  TYPE BOOLEAN, "   
lv_iv_check_status  TYPE BOOLEAN, "   
lt_et_reviewer  TYPE STANDARD TABLE OF BBP_S_REVIEWER, "   
lv_iv_object_id  TYPE CRMD_ORDERADM_H-OBJECT_ID, "   
lv_ev_db_workitem_id  TYPE SWW_WIID, "   
lv_workflow_not_actual  TYPE SWW_WIID, "   
lv_ev_db_task  TYPE SWD_STEP_T, "   
lv_iv_db_task  TYPE SWD_STEP_T, "   
lv_iv_user  TYPE SYST-UNAME, "   
lv_ev_restart  TYPE BOOLEAN, "   
lv_iv_guid  TYPE BBP_GUID_32, "   
lv_ev_buffer_task  TYPE SWD_STEP_T, "   
lv_ev_buffer_wfdkey  TYPE SWD_WFDKEY, "   
lv_iv_db_workitem_id  TYPE SWW_WIID, "   
lv_ev_start_task  TYPE SWD_STEP_T, "   
lv_iv_obj_changed  TYPE XFELD, "   
lv_iv_buf_task  TYPE SWD_STEP_T, "   
lv_ev_start_wi_id  TYPE SWW_WIID, "   
lv_iv_buf_workitem_id  TYPE SWR_STRUCT-WORKITEMID. "   

  CALL FUNCTION 'BBP_PDH_WFL_APPROVAL_SIMULATE'  "Ermittlung von Daten für Genehmigungsvorschau
    EXPORTING
         IV_OBJECT_TYPE = lv_iv_object_type
         IV_BUFFER_WFDKEY = lv_iv_buffer_wfdkey
         IV_DIALOG_WI = lv_iv_dialog_wi
         IV_PREVIEW_NOT_ACTUAL = lv_iv_preview_not_actual
         IV_CHECK_STATUS = lv_iv_check_status
         IV_OBJECT_ID = lv_iv_object_id
         IV_DB_TASK = lv_iv_db_task
         IV_USER = lv_iv_user
         IV_GUID = lv_iv_guid
         IV_DB_WORKITEM_ID = lv_iv_db_workitem_id
         IV_OBJ_CHANGED = lv_iv_obj_changed
         IV_BUF_TASK = lv_iv_buf_task
         IV_BUF_WORKITEM_ID = lv_iv_buf_workitem_id
    IMPORTING
         EV_START_COND_TASK = lv_ev_start_cond_task
         EV_DB_WORKITEM_ID = lv_ev_db_workitem_id
         EV_DB_TASK = lv_ev_db_task
         EV_RESTART = lv_ev_restart
         EV_BUFFER_TASK = lv_ev_buffer_task
         EV_BUFFER_WFDKEY = lv_ev_buffer_wfdkey
         EV_START_TASK = lv_ev_start_task
         EV_START_WI_ID = lv_ev_start_wi_id
    TABLES
         ET_ADHOC_AGENTS = lt_et_adhoc_agents
         ET_REVIEWER = lt_et_reviewer
    EXCEPTIONS
        WORKFLOW_NOT_FOUND = 1
        WORKFLOW_NOT_ACTUAL = 2
. " BBP_PDH_WFL_APPROVAL_SIMULATE




ABAP code using 7.40 inline data declarations to call FM BBP_PDH_WFL_APPROVAL_SIMULATE

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_iv_object_type).
 
 
 
 
 
"SELECT single WORKITEMID FROM SWR_STRUCT INTO @DATA(ld_iv_dialog_wi).
 
 
 
 
"SELECT single OBJECT_ID FROM CRMD_ORDERADM_H INTO @DATA(ld_iv_object_id).
 
 
 
 
 
"SELECT single UNAME FROM SYST INTO @DATA(ld_iv_user).
 
 
 
 
 
 
 
 
 
 
"SELECT single WORKITEMID FROM SWR_STRUCT INTO @DATA(ld_iv_buf_workitem_id).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!