SAP Function Modules

BBP_PDH_WFL_APPROVAL_SIMULATEL SAP Function module - Ermittlung von Genehmigungsvorschau-Daten bei partieller Ablehnung







BBP_PDH_WFL_APPROVAL_SIMULATEL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BBP_PDH_WFL_APPROVAL_SIMULATEL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_PDH_WFL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BBP_PDH_WFL_APPROVAL_SIMULATEL - BBP PDH WFL APPROVAL SIMULATEL





CALL FUNCTION 'BBP_PDH_WFL_APPROVAL_SIMULATEL' "Ermittlung von Genehmigungsvorschau-Daten bei partieller  Ablehnung
* EXPORTING
*   iv_dialog_wi_id =           " sww_wiid      Workitem-Kennung
*   iv_user =                   " syst-uname    R/3-System, Anmeldename des Benutzers
  IMPORTING
    ev_start_cond_task =        " swd_step_t    Simulierter WF-Typ zum Starten
    ev_db_workitem_id =         " sww_wiid      Workitem von DB-Workflow
    ev_db_task =                " swd_step_t    Aufgabenkürzel
* TABLES
*   et_reviewer =               " bbp_s_reviewer  Struktur für die Ablage von Reviewer
    .  "  BBP_PDH_WFL_APPROVAL_SIMULATEL

ABAP code example for Function Module BBP_PDH_WFL_APPROVAL_SIMULATEL





The ABAP code below is a full code listing to execute function module BBP_PDH_WFL_APPROVAL_SIMULATEL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ev_start_cond_task  TYPE SWD_STEP_T ,
ld_ev_db_workitem_id  TYPE SWW_WIID ,
ld_ev_db_task  TYPE SWD_STEP_T ,
it_et_reviewer  TYPE STANDARD TABLE OF BBP_S_REVIEWER,"TABLES PARAM
wa_et_reviewer  LIKE LINE OF it_et_reviewer .

DATA(ld_iv_dialog_wi_id) = 'Check type of data required'.

DATA(ld_iv_user) = some text here

"populate fields of struture and append to itab
append wa_et_reviewer to it_et_reviewer. . CALL FUNCTION 'BBP_PDH_WFL_APPROVAL_SIMULATEL' * EXPORTING * iv_dialog_wi_id = ld_iv_dialog_wi_id * iv_user = ld_iv_user IMPORTING ev_start_cond_task = ld_ev_start_cond_task ev_db_workitem_id = ld_ev_db_workitem_id ev_db_task = ld_ev_db_task * TABLES * et_reviewer = it_et_reviewer . " BBP_PDH_WFL_APPROVAL_SIMULATEL
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ev_start_cond_task  TYPE SWD_STEP_T ,
ld_iv_dialog_wi_id  TYPE SWW_WIID ,
it_et_reviewer  TYPE STANDARD TABLE OF BBP_S_REVIEWER ,
wa_et_reviewer  LIKE LINE OF it_et_reviewer,
ld_ev_db_workitem_id  TYPE SWW_WIID ,
ld_iv_user  TYPE SYST-UNAME ,
ld_ev_db_task  TYPE SWD_STEP_T .

ld_iv_dialog_wi_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_reviewer to it_et_reviewer.

ld_iv_user = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BBP_PDH_WFL_APPROVAL_SIMULATEL or its description.