SAP K_WF_QUANT_GET_FROM_WORKFLOW Function Module for
K_WF_QUANT_GET_FROM_WORKFLOW is a standard k wf quant 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 quant get from workflow FM, simply by entering the name K_WF_QUANT_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_QUANT_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_QUANT_GET_FROM_WORKFLOW'".
EXPORTING
* KOKRS = ABC_CON-KOKRS "
* CALL_PROG = ABC_CON-CPROG "
* PRZNR = RCBPR-PRZNR "
SOBJNR = "
* GJAHR = ABC_CON-GJAHR "
* DATAB = ABC_CON-DATAB "
* DATBI = ABC_CON-DATBI "
* LINE_TYPE = ABC_CON-LINE_TYPE "
* PERIOD_FROM = ABC_CON-PERIODFROM "
* PERIOD_CNT = ABC_CON-PERIODTO "
TABLES
RTABLE_VAL = "
IMPORTING Parameters details for K_WF_QUANT_GET_FROM_WORKFLOW
KOKRS -
Data type: ABC_CON-KOKRSDefault: ABC_CON-KOKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALL_PROG -
Data type: ABC_CON-CPROGDefault: ABC_CON-CPROG
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRZNR -
Data type: RCBPR-PRZNRDefault: RCBPR-PRZNR
Optional: Yes
Call by Reference: No ( called with pass by value option)
SOBJNR -
Data type: ABC_CON-CO_OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
GJAHR -
Data type: ABC_CON-GJAHRDefault: ABC_CON-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATAB -
Data type: ABC_CON-DATABDefault: ABC_CON-DATAB
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATBI -
Data type: ABC_CON-DATBIDefault: ABC_CON-DATBI
Optional: Yes
Call by Reference: No ( called with pass by value option)
LINE_TYPE -
Data type: ABC_CON-LINE_TYPEDefault: ABC_CON-LINE_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERIOD_FROM -
Data type: ABC_CON-PERIODFROMDefault: ABC_CON-PERIODFROM
Optional: Yes
Call by Reference: No ( called with pass by value option)
PERIOD_CNT -
Data type: ABC_CON-PERIODCNTDefault: ABC_CON-PERIODTO
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_WF_QUANT_GET_FROM_WORKFLOW
RTABLE_VAL -
Data type: TPLIC_RVAL_TABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_WF_QUANT_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_val | TYPE STANDARD TABLE OF TPLIC_RVAL_TAB, " | |||
| lv_call_prog | TYPE ABC_CON-CPROG, " ABC_CON-CPROG | |||
| lv_prznr | TYPE RCBPR-PRZNR, " RCBPR-PRZNR | |||
| lv_sobjnr | TYPE ABC_CON-CO_OBJECT, " | |||
| 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_line_type | TYPE ABC_CON-LINE_TYPE, " ABC_CON-LINE_TYPE | |||
| lv_period_from | TYPE ABC_CON-PERIODFROM, " ABC_CON-PERIODFROM | |||
| lv_period_cnt | TYPE ABC_CON-PERIODCNT. " ABC_CON-PERIODTO |
|   CALL FUNCTION 'K_WF_QUANT_GET_FROM_WORKFLOW' " |
| EXPORTING | ||
| KOKRS | = lv_kokrs | |
| CALL_PROG | = lv_call_prog | |
| PRZNR | = lv_prznr | |
| SOBJNR | = lv_sobjnr | |
| GJAHR | = lv_gjahr | |
| DATAB | = lv_datab | |
| DATBI | = lv_datbi | |
| LINE_TYPE | = lv_line_type | |
| PERIOD_FROM | = lv_period_from | |
| PERIOD_CNT | = lv_period_cnt | |
| TABLES | ||
| RTABLE_VAL | = lt_rtable_val | |
| . " K_WF_QUANT_GET_FROM_WORKFLOW | ||
ABAP code using 7.40 inline data declarations to call FM K_WF_QUANT_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 CPROG FROM ABC_CON INTO @DATA(ld_call_prog). | ||||
| DATA(ld_call_prog) | = ABC_CON-CPROG. | |||
| "SELECT single PRZNR FROM RCBPR INTO @DATA(ld_prznr). | ||||
| DATA(ld_prznr) | = RCBPR-PRZNR. | |||
| "SELECT single CO_OBJECT FROM ABC_CON INTO @DATA(ld_sobjnr). | ||||
| "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 LINE_TYPE FROM ABC_CON INTO @DATA(ld_line_type). | ||||
| DATA(ld_line_type) | = ABC_CON-LINE_TYPE. | |||
| "SELECT single PERIODFROM FROM ABC_CON INTO @DATA(ld_period_from). | ||||
| DATA(ld_period_from) | = ABC_CON-PERIODFROM. | |||
| "SELECT single PERIODCNT FROM ABC_CON INTO @DATA(ld_period_cnt). | ||||
| DATA(ld_period_cnt) | = ABC_CON-PERIODTO. | |||
Search for further information about these or an SAP related objects