SAP Function Modules

BBP_PDH_WFL_DEF_APPROVER_CHECK SAP Function module - Prüfen ob ADHOC_AGENTS gehören der Liste möglicher Bearbeiter







BBP_PDH_WFL_DEF_APPROVER_CHECK 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_DEF_APPROVER_CHECK 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_DEF_APPROVER_CHECK - BBP PDH WFL DEF APPROVER CHECK





CALL FUNCTION 'BBP_PDH_WFL_DEF_APPROVER_CHECK' "Prüfen ob ADHOC_AGENTS gehören der Liste möglicher Bearbeiter
* EXPORTING
*   iv_workitem_id =            " sww_wiid      Workitem-Kennung
*   iv_general_task =           " char1         Einstelliges Kennzeichen
*   iv_no_assignment =          " char1         Einstelliges Kennzeichen
*   iv_excluded_agent =         " swp_agent     Bearbeiter
  IMPORTING
    ev_adhoc_agents_not_found =   " char1       Einstelliges Kennzeichen
    ev_agent_assignment_missing =   " char1     Einstelliges Kennzeichen
    ev_agent_assignment_wrong =   " char1       Einstelliges Kennzeichen
    ev_send_to_possible_agents =   " char1      Einstelliges Kennzeichen
* TABLES
*   it_adhoc_agents =           " swdaagnt      Adhoc-Beabeiter: Technischer und ausführlicher Name
*   it_possible_agents =        " swdaagnt      Adhoc-Beabeiter: Technischer und ausführlicher Name
    .  "  BBP_PDH_WFL_DEF_APPROVER_CHECK

ABAP code example for Function Module BBP_PDH_WFL_DEF_APPROVER_CHECK





The ABAP code below is a full code listing to execute function module BBP_PDH_WFL_DEF_APPROVER_CHECK 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_adhoc_agents_not_found  TYPE CHAR1 ,
ld_ev_agent_assignment_missing  TYPE CHAR1 ,
ld_ev_agent_assignment_wrong  TYPE CHAR1 ,
ld_ev_send_to_possible_agents  TYPE CHAR1 ,
it_it_adhoc_agents  TYPE STANDARD TABLE OF SWDAAGNT,"TABLES PARAM
wa_it_adhoc_agents  LIKE LINE OF it_it_adhoc_agents ,
it_it_possible_agents  TYPE STANDARD TABLE OF SWDAAGNT,"TABLES PARAM
wa_it_possible_agents  LIKE LINE OF it_it_possible_agents .

DATA(ld_iv_workitem_id) = 'Check type of data required'.
DATA(ld_iv_general_task) = 'Check type of data required'.
DATA(ld_iv_no_assignment) = 'Check type of data required'.
DATA(ld_iv_excluded_agent) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_adhoc_agents to it_it_adhoc_agents.

"populate fields of struture and append to itab
append wa_it_possible_agents to it_it_possible_agents. . CALL FUNCTION 'BBP_PDH_WFL_DEF_APPROVER_CHECK' * EXPORTING * iv_workitem_id = ld_iv_workitem_id * iv_general_task = ld_iv_general_task * iv_no_assignment = ld_iv_no_assignment * iv_excluded_agent = ld_iv_excluded_agent IMPORTING ev_adhoc_agents_not_found = ld_ev_adhoc_agents_not_found ev_agent_assignment_missing = ld_ev_agent_assignment_missing ev_agent_assignment_wrong = ld_ev_agent_assignment_wrong ev_send_to_possible_agents = ld_ev_send_to_possible_agents * TABLES * it_adhoc_agents = it_it_adhoc_agents * it_possible_agents = it_it_possible_agents . " BBP_PDH_WFL_DEF_APPROVER_CHECK
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_adhoc_agents_not_found  TYPE CHAR1 ,
ld_iv_workitem_id  TYPE SWW_WIID ,
it_it_adhoc_agents  TYPE STANDARD TABLE OF SWDAAGNT ,
wa_it_adhoc_agents  LIKE LINE OF it_it_adhoc_agents,
ld_ev_agent_assignment_missing  TYPE CHAR1 ,
ld_iv_general_task  TYPE CHAR1 ,
it_it_possible_agents  TYPE STANDARD TABLE OF SWDAAGNT ,
wa_it_possible_agents  LIKE LINE OF it_it_possible_agents,
ld_ev_agent_assignment_wrong  TYPE CHAR1 ,
ld_iv_no_assignment  TYPE CHAR1 ,
ld_ev_send_to_possible_agents  TYPE CHAR1 ,
ld_iv_excluded_agent  TYPE SWP_AGENT .

ld_iv_workitem_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_adhoc_agents to it_it_adhoc_agents.
ld_iv_general_task = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_possible_agents to it_it_possible_agents.
ld_iv_no_assignment = 'Check type of data required'.
ld_iv_excluded_agent = 'Check type of data required'.

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_DEF_APPROVER_CHECK or its description.