SAP FVKM_CORP_ACT_EDIT Function Module for Edit a Corporate Action in User Dialog









FVKM_CORP_ACT_EDIT is a standard fvkm corp act edit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Edit a Corporate Action in User Dialog 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 fvkm corp act edit FM, simply by entering the name FVKM_CORP_ACT_EDIT into the relevant SAP transaction such as SE37 or SE38.

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



Function FVKM_CORP_ACT_EDIT 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 'FVKM_CORP_ACT_EDIT'"Edit a Corporate Action in User Dialog
EXPORTING
* EDIT_KZ = 'A' "zulässige Editierfunktionen -->
* KMNR = '0' "Corporate Action Number
* KMTYP = '00' "Corporate action category
* KMART = "

EXCEPTIONS
WRONG_NUMBER_INTERVALL = 1 KMNR_USED = 2 WRONG_KMNR = 3 WRONG_MODUS = 4 NOT_CHANGEABLE = 5 INTERN_NUMBER = 6
.



IMPORTING Parameters details for FVKM_CORP_ACT_EDIT

EDIT_KZ - zulässige Editierfunktionen -->

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

KMNR - Corporate Action Number

Data type: VWKMKO-KMNR
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KMTYP - Corporate action category

Data type: VWKMKO-HERK
Default: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KMART -

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

EXCEPTIONS details

WRONG_NUMBER_INTERVALL -

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

KMNR_USED -

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

WRONG_KMNR -

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

WRONG_MODUS -

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

NOT_CHANGEABLE -

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

INTERN_NUMBER -

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

Copy and paste ABAP code example for FVKM_CORP_ACT_EDIT 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_edit_kz  TYPE C, "   'A'
lv_wrong_number_intervall  TYPE C, "   
lv_kmnr  TYPE VWKMKO-KMNR, "   '0'
lv_kmnr_used  TYPE VWKMKO, "   
lv_kmtyp  TYPE VWKMKO-HERK, "   '00'
lv_wrong_kmnr  TYPE VWKMKO, "   
lv_kmart  TYPE VWKMKO-KMART, "   
lv_wrong_modus  TYPE VWKMKO, "   
lv_not_changeable  TYPE VWKMKO, "   
lv_intern_number  TYPE VWKMKO. "   

  CALL FUNCTION 'FVKM_CORP_ACT_EDIT'  "Edit a Corporate Action in User Dialog
    EXPORTING
         EDIT_KZ = lv_edit_kz
         KMNR = lv_kmnr
         KMTYP = lv_kmtyp
         KMART = lv_kmart
    EXCEPTIONS
        WRONG_NUMBER_INTERVALL = 1
        KMNR_USED = 2
        WRONG_KMNR = 3
        WRONG_MODUS = 4
        NOT_CHANGEABLE = 5
        INTERN_NUMBER = 6
. " FVKM_CORP_ACT_EDIT




ABAP code using 7.40 inline data declarations to call FM FVKM_CORP_ACT_EDIT

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.

DATA(ld_edit_kz) = 'A'.
 
 
"SELECT single KMNR FROM VWKMKO INTO @DATA(ld_kmnr).
DATA(ld_kmnr) = '0'.
 
 
"SELECT single HERK FROM VWKMKO INTO @DATA(ld_kmtyp).
DATA(ld_kmtyp) = '00'.
 
 
"SELECT single KMART FROM VWKMKO INTO @DATA(ld_kmart).
 
 
 
 


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!