SAP K_WF_OBJECTS_GET_FROM_WORKFLOW Function Module for









K_WF_OBJECTS_GET_FROM_WORKFLOW is a standard k wf objects get from workflow 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 k wf objects get from workflow FM, simply by entering the name K_WF_OBJECTS_GET_FROM_WORKFLOW into the relevant SAP transaction such as SE37 or SE38.

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



Function K_WF_OBJECTS_GET_FROM_WORKFLOW 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 'K_WF_OBJECTS_GET_FROM_WORKFLOW'"
EXPORTING
* KOKRS = ABC_CON-KOKRS "
* PRZNR = RCBPR-PRZNR "
* GJAHR = ABC_CON-GJAHR "
* DATAB = ABC_CON-DATAB "
* DATBI = ABC_CON-DATBI "
* PERAB = ABC_CON-PERIODFROM "
* PERBI = ABC_CON-PERIODTO "
* LINE_TYPE = ABC_CON-LINE_TYPE "
* CALL_PROG = ABC_CON-CPROG "

TABLES
* RTABLE_SEL = "
.



IMPORTING Parameters details for K_WF_OBJECTS_GET_FROM_WORKFLOW

KOKRS -

Data type: ABC_CON-KOKRS
Default: ABC_CON-KOKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PRZNR -

Data type: RCBPR-PRZNR
Default: RCBPR-PRZNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

GJAHR -

Data type: ABC_CON-GJAHR
Default: ABC_CON-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATAB -

Data type: ABC_CON-DATAB
Default: ABC_CON-DATAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATBI -

Data type: ABC_CON-DATBI
Default: ABC_CON-DATBI
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERAB -

Data type: ABC_CON-PERIODFROM
Default: ABC_CON-PERIODFROM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERBI -

Data type: ABC_CON-PERIODTO
Default: ABC_CON-PERIODTO
Optional: Yes
Call by Reference: No ( called with pass by value option)

LINE_TYPE -

Data type: ABC_CON-LINE_TYPE
Default: ABC_CON-LINE_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALL_PROG -

Data type: ABC_CON-CPROG
Default: ABC_CON-CPROG
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for K_WF_OBJECTS_GET_FROM_WORKFLOW

RTABLE_SEL -

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

Copy and paste ABAP code example for K_WF_OBJECTS_GET_FROM_WORKFLOW 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_kokrs  TYPE ABC_CON-KOKRS, "   ABC_CON-KOKRS
lt_rtable_sel  TYPE STANDARD TABLE OF SELOPT, "   
lv_prznr  TYPE RCBPR-PRZNR, "   RCBPR-PRZNR
lv_gjahr  TYPE ABC_CON-GJAHR, "   ABC_CON-GJAHR
lv_datab  TYPE ABC_CON-DATAB, "   ABC_CON-DATAB
lv_datbi  TYPE ABC_CON-DATBI, "   ABC_CON-DATBI
lv_perab  TYPE ABC_CON-PERIODFROM, "   ABC_CON-PERIODFROM
lv_perbi  TYPE ABC_CON-PERIODTO, "   ABC_CON-PERIODTO
lv_line_type  TYPE ABC_CON-LINE_TYPE, "   ABC_CON-LINE_TYPE
lv_call_prog  TYPE ABC_CON-CPROG. "   ABC_CON-CPROG

  CALL FUNCTION 'K_WF_OBJECTS_GET_FROM_WORKFLOW'  "
    EXPORTING
         KOKRS = lv_kokrs
         PRZNR = lv_prznr
         GJAHR = lv_gjahr
         DATAB = lv_datab
         DATBI = lv_datbi
         PERAB = lv_perab
         PERBI = lv_perbi
         LINE_TYPE = lv_line_type
         CALL_PROG = lv_call_prog
    TABLES
         RTABLE_SEL = lt_rtable_sel
. " K_WF_OBJECTS_GET_FROM_WORKFLOW




ABAP code using 7.40 inline data declarations to call FM K_WF_OBJECTS_GET_FROM_WORKFLOW

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 KOKRS FROM ABC_CON INTO @DATA(ld_kokrs).
DATA(ld_kokrs) = ABC_CON-KOKRS.
 
 
"SELECT single PRZNR FROM RCBPR INTO @DATA(ld_prznr).
DATA(ld_prznr) = RCBPR-PRZNR.
 
"SELECT single GJAHR FROM ABC_CON INTO @DATA(ld_gjahr).
DATA(ld_gjahr) = ABC_CON-GJAHR.
 
"SELECT single DATAB FROM ABC_CON INTO @DATA(ld_datab).
DATA(ld_datab) = ABC_CON-DATAB.
 
"SELECT single DATBI FROM ABC_CON INTO @DATA(ld_datbi).
DATA(ld_datbi) = ABC_CON-DATBI.
 
"SELECT single PERIODFROM FROM ABC_CON INTO @DATA(ld_perab).
DATA(ld_perab) = ABC_CON-PERIODFROM.
 
"SELECT single PERIODTO FROM ABC_CON INTO @DATA(ld_perbi).
DATA(ld_perbi) = ABC_CON-PERIODTO.
 
"SELECT single LINE_TYPE FROM ABC_CON INTO @DATA(ld_line_type).
DATA(ld_line_type) = ABC_CON-LINE_TYPE.
 
"SELECT single CPROG FROM ABC_CON INTO @DATA(ld_call_prog).
DATA(ld_call_prog) = ABC_CON-CPROG.
 


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!