SAP SRM_WF_PATH_DYNP Function Module for









SRM_WF_PATH_DYNP is a standard srm wf path dynp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 srm wf path dynp FM, simply by entering the name SRM_WF_PATH_DYNP into the relevant SAP transaction such as SE37 or SE38.

Function Group: SRM_WF_PATH_DIALOG1
Program Name: SAPLSRM_WF_PATH_DIALOG1
Main Program: SAPLSRM_WF_PATH_DIALOG1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SRM_WF_PATH_DYNP 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 'SRM_WF_PATH_DYNP'"
EXPORTING
IM_UPDATE_MODE = "Processing Mode of Process Route
IM_ACTAREA = "Business segment
* IM_PATHID = "Process Route ID
* IM_POSID = "Item to Select
* IM_PATHDESC = "Description of Process Route
* IM_COMMIT = "
* IM_WORKFLOW = "'X' = Call Using Work Item
* IM_TEMPLATE = "

IMPORTING
EX_NEW_PATH = "Process Route ID

EXCEPTIONS
ACTAREA_NOT_VALID = 1 PATHID_NOT_VALID = 2 NOT_AUTHORIZED = 3
.



IMPORTING Parameters details for SRM_WF_PATH_DYNP

IM_UPDATE_MODE - Processing Mode of Process Route

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

IM_ACTAREA - Business segment

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

IM_PATHID - Process Route ID

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

IM_POSID - Item to Select

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

IM_PATHDESC - Description of Process Route

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

IM_COMMIT -

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

IM_WORKFLOW - 'X' = Call Using Work Item

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

IM_TEMPLATE -

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

EXPORTING Parameters details for SRM_WF_PATH_DYNP

EX_NEW_PATH - Process Route ID

Data type: SRMWFPTHID
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ACTAREA_NOT_VALID -

Data type:
Optional: No
Call by Reference: Yes

PATHID_NOT_VALID -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED - No Authorization for Current Action

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SRM_WF_PATH_DYNP 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_ex_new_path  TYPE SRMWFPTHID, "   
lv_im_update_mode  TYPE SRMWFMODE, "   
lv_actarea_not_valid  TYPE SRMWFMODE, "   
lv_im_actarea  TYPE SRMACTAR, "   
lv_pathid_not_valid  TYPE SRMACTAR, "   
lv_im_pathid  TYPE SRMWFPTHID, "   
lv_not_authorized  TYPE SRMWFPTHID, "   
lv_im_posid  TYPE SRMWFPOSID, "   
lv_im_pathdesc  TYPE SRMWFPTHDC, "   
lv_im_commit  TYPE C, "   
lv_im_workflow  TYPE C, "   
lv_im_template  TYPE C. "   

  CALL FUNCTION 'SRM_WF_PATH_DYNP'  "
    EXPORTING
         IM_UPDATE_MODE = lv_im_update_mode
         IM_ACTAREA = lv_im_actarea
         IM_PATHID = lv_im_pathid
         IM_POSID = lv_im_posid
         IM_PATHDESC = lv_im_pathdesc
         IM_COMMIT = lv_im_commit
         IM_WORKFLOW = lv_im_workflow
         IM_TEMPLATE = lv_im_template
    IMPORTING
         EX_NEW_PATH = lv_ex_new_path
    EXCEPTIONS
        ACTAREA_NOT_VALID = 1
        PATHID_NOT_VALID = 2
        NOT_AUTHORIZED = 3
. " SRM_WF_PATH_DYNP




ABAP code using 7.40 inline data declarations to call FM SRM_WF_PATH_DYNP

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.

 
 
 
 
 
 
 
 
 
 
 
 


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!