SAP FVKM0_GENERATE_FLOW_NEW Function Module for Generate Flows for Corporate Action (from CFM 1.0)
FVKM0_GENERATE_FLOW_NEW is a standard fvkm0 generate flow new SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Flows for Corporate Action (from CFM 1.0) processing and below is the pattern details for this FM, 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 fvkm0 generate flow new FM, simply by entering the name FVKM0_GENERATE_FLOW_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVKM0
Program Name: SAPLFVKM0
Main Program: SAPLFVKM0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVKM0_GENERATE_FLOW_NEW 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 'FVKM0_GENERATE_FLOW_NEW'"Generate Flows for Corporate Action (from CFM 1.0).
EXPORTING
IM_HEAD = "Kapitalmaßnahmen (Kopf)
IM_TAB_POS = "
IM_TAB_STOCK = "Treasury: Table Position per Diff. Values with Quantity
IMPORTING
EX_TAB_FLOW = "Table Type of the Corporate Action Flows
EXCEPTIONS
ARITHMETIC_OVERFLOW = 1 INVALID_CONVERSION = 2 NO_FLOWTYPE = 3
IMPORTING Parameters details for FVKM0_GENERATE_FLOW_NEW
IM_HEAD - Kapitalmaßnahmen (Kopf)
Data type: VWKMKOOptional: No
Call by Reference: Yes
IM_TAB_POS -
Data type: TRPM_IT_VWKMPOOptional: No
Call by Reference: Yes
IM_TAB_STOCK - Treasury: Table Position per Diff. Values with Quantity
Data type: TRQY_POS_QUANTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FVKM0_GENERATE_FLOW_NEW
EX_TAB_FLOW - Table Type of the Corporate Action Flows
Data type: TCAY_FLOWOptional: No
Call by Reference: Yes
EXCEPTIONS details
ARITHMETIC_OVERFLOW - Überlauf bei Berechnung
Data type:Optional: No
Call by Reference: Yes
INVALID_CONVERSION - Umrechnungs Fehler
Data type:Optional: No
Call by Reference: Yes
NO_FLOWTYPE - keine Fortschreibungsart gepflegt wird
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVKM0_GENERATE_FLOW_NEW 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_im_head | TYPE VWKMKO, " | |||
| lv_ex_tab_flow | TYPE TCAY_FLOW, " | |||
| lv_arithmetic_overflow | TYPE TCAY_FLOW, " | |||
| lv_im_tab_pos | TYPE TRPM_IT_VWKMPO, " | |||
| lv_invalid_conversion | TYPE TRPM_IT_VWKMPO, " | |||
| lv_no_flowtype | TYPE TRPM_IT_VWKMPO, " | |||
| lv_im_tab_stock | TYPE TRQY_POS_QUANT. " |
|   CALL FUNCTION 'FVKM0_GENERATE_FLOW_NEW' "Generate Flows for Corporate Action (from CFM 1.0) |
| EXPORTING | ||
| IM_HEAD | = lv_im_head | |
| IM_TAB_POS | = lv_im_tab_pos | |
| IM_TAB_STOCK | = lv_im_tab_stock | |
| IMPORTING | ||
| EX_TAB_FLOW | = lv_ex_tab_flow | |
| EXCEPTIONS | ||
| ARITHMETIC_OVERFLOW = 1 | ||
| INVALID_CONVERSION = 2 | ||
| NO_FLOWTYPE = 3 | ||
| . " FVKM0_GENERATE_FLOW_NEW | ||
ABAP code using 7.40 inline data declarations to call FM FVKM0_GENERATE_FLOW_NEW
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