SAP Function Modules

SRM_WF_PATH_DYNP SAP Function module







SRM_WF_PATH_DYNP 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 SRM_WF_PATH_DYNP into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SRM_WF_PATH_DYNP - SRM WF PATH DYNP





CALL FUNCTION 'SRM_WF_PATH_DYNP' "
  EXPORTING
    im_update_mode =            " srmwfmode     Processing Mode of Process Route
    im_actarea =                " srmactar      Business segment
*   im_pathid =                 " srmwfpthid    Process Route ID
*   im_posid =                  " srmwfposid    Item to Select
*   im_pathdesc =               " srmwfpthdc    Description of Process Route
*   im_commit =                 " c
*   im_workflow =               " c             'X' = Call Using Work Item
*   im_template =               " c
  IMPORTING
    ex_new_path =               " srmwfpthid    Process Route ID
  EXCEPTIONS
    ACTAREA_NOT_VALID = 1       "
    PATHID_NOT_VALID = 2        "
    NOT_AUTHORIZED = 3          "               No Authorization for Current Action
    .  "  SRM_WF_PATH_DYNP

ABAP code example for Function Module SRM_WF_PATH_DYNP





The ABAP code below is a full code listing to execute function module SRM_WF_PATH_DYNP 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_ex_new_path  TYPE SRMWFPTHID .

DATA(ld_im_update_mode) = 'Check type of data required'.
DATA(ld_im_actarea) = 'Check type of data required'.
DATA(ld_im_pathid) = 'Check type of data required'.
DATA(ld_im_posid) = 'Check type of data required'.
DATA(ld_im_pathdesc) = 'Check type of data required'.
DATA(ld_im_commit) = 'Check type of data required'.
DATA(ld_im_workflow) = 'Check type of data required'.
DATA(ld_im_template) = 'Check type of data required'. . CALL FUNCTION 'SRM_WF_PATH_DYNP' EXPORTING im_update_mode = ld_im_update_mode im_actarea = ld_im_actarea * im_pathid = ld_im_pathid * im_posid = ld_im_posid * im_pathdesc = ld_im_pathdesc * im_commit = ld_im_commit * im_workflow = ld_im_workflow * im_template = ld_im_template IMPORTING ex_new_path = ld_ex_new_path EXCEPTIONS ACTAREA_NOT_VALID = 1 PATHID_NOT_VALID = 2 NOT_AUTHORIZED = 3 . " SRM_WF_PATH_DYNP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_ex_new_path  TYPE SRMWFPTHID ,
ld_im_update_mode  TYPE SRMWFMODE ,
ld_im_actarea  TYPE SRMACTAR ,
ld_im_pathid  TYPE SRMWFPTHID ,
ld_im_posid  TYPE SRMWFPOSID ,
ld_im_pathdesc  TYPE SRMWFPTHDC ,
ld_im_commit  TYPE C ,
ld_im_workflow  TYPE C ,
ld_im_template  TYPE C .

ld_im_update_mode = 'Check type of data required'.
ld_im_actarea = 'Check type of data required'.
ld_im_pathid = 'Check type of data required'.
ld_im_posid = 'Check type of data required'.
ld_im_pathdesc = 'Check type of data required'.
ld_im_commit = 'Check type of data required'.
ld_im_workflow = 'Check type of data required'.
ld_im_template = '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 SRM_WF_PATH_DYNP or its description.