SAP PFM2_WORKFLOW_CHECK Function Module for









PFM2_WORKFLOW_CHECK is a standard pfm2 workflow check 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 pfm2 workflow check FM, simply by entering the name PFM2_WORKFLOW_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function PFM2_WORKFLOW_CHECK 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 'PFM2_WORKFLOW_CHECK'"
EXPORTING
* ID_SEQUENCE = "Name of flow definition
* ID_WFID = "Workflow ID

IMPORTING
OD_SEQUENCE = "Name of flow definition
OD_WFID = "Workflow ID
OD_REPORT = "Report
OD_VARIANT = "Report variant
OD_SEQUENCE_CALLER = "

EXCEPTIONS
NAME_NOT_FOUND = 1 NAME_AND_ID_NOT_FOUND = 2 WFID_NOT_FOUND_IN_WORKFLOW = 3 REPORT_NOT_FOUND = 4 VARIANT_NOT_FOUND = 5 NOTHING_SPECIFIED = 6 OTHERS = 7
.



IMPORTING Parameters details for PFM2_WORKFLOW_CHECK

ID_SEQUENCE - Name of flow definition

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

ID_WFID - Workflow ID

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

EXPORTING Parameters details for PFM2_WORKFLOW_CHECK

OD_SEQUENCE - Name of flow definition

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

OD_WFID - Workflow ID

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

OD_REPORT - Report

Data type: RSVAR-REPORT
Optional: No
Call by Reference: Yes

OD_VARIANT - Report variant

Data type: RSVAR-VARIANT
Optional: No
Call by Reference: Yes

OD_SEQUENCE_CALLER -

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

EXCEPTIONS details

NAME_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NAME_AND_ID_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

WFID_NOT_FOUND_IN_WORKFLOW -

Data type:
Optional: No
Call by Reference: Yes

REPORT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

VARIANT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NOTHING_SPECIFIED -

Data type:
Optional: No
Call by Reference: Yes

OTHERS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PFM2_WORKFLOW_CHECK 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_id_sequence  TYPE SCMASEQUENCE, "   
lv_od_sequence  TYPE SCMASEQUENCE, "   
lv_name_not_found  TYPE SCMASEQUENCE, "   
lv_id_wfid  TYPE WF_WITEM, "   
lv_od_wfid  TYPE WF_WITEM, "   
lv_name_and_id_not_found  TYPE WF_WITEM, "   
lv_od_report  TYPE RSVAR-REPORT, "   
lv_wfid_not_found_in_workflow  TYPE RSVAR, "   
lv_od_variant  TYPE RSVAR-VARIANT, "   
lv_report_not_found  TYPE RSVAR, "   
lv_variant_not_found  TYPE RSVAR, "   
lv_od_sequence_caller  TYPE SCMASEQUENCE, "   
lv_nothing_specified  TYPE SCMASEQUENCE, "   
lv_others  TYPE SCMASEQUENCE. "   

  CALL FUNCTION 'PFM2_WORKFLOW_CHECK'  "
    EXPORTING
         ID_SEQUENCE = lv_id_sequence
         ID_WFID = lv_id_wfid
    IMPORTING
         OD_SEQUENCE = lv_od_sequence
         OD_WFID = lv_od_wfid
         OD_REPORT = lv_od_report
         OD_VARIANT = lv_od_variant
         OD_SEQUENCE_CALLER = lv_od_sequence_caller
    EXCEPTIONS
        NAME_NOT_FOUND = 1
        NAME_AND_ID_NOT_FOUND = 2
        WFID_NOT_FOUND_IN_WORKFLOW = 3
        REPORT_NOT_FOUND = 4
        VARIANT_NOT_FOUND = 5
        NOTHING_SPECIFIED = 6
        OTHERS = 7
. " PFM2_WORKFLOW_CHECK




ABAP code using 7.40 inline data declarations to call FM PFM2_WORKFLOW_CHECK

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 REPORT FROM RSVAR INTO @DATA(ld_od_report).
 
 
"SELECT single VARIANT FROM RSVAR INTO @DATA(ld_od_variant).
 
 
 
 
 
 


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!