SAP FKK_ACCOUNT_CHANGE Function Module for









FKK_ACCOUNT_CHANGE is a standard fkk account change 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 fkk account change FM, simply by entering the name FKK_ACCOUNT_CHANGE into the relevant SAP transaction such as SE37 or SE38.

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



Function FKK_ACCOUNT_CHANGE 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 'FKK_ACCOUNT_CHANGE'"
EXPORTING
* I_VKONT = "Account
* I_FULLSCREEN = "
* I_UPD_ONLINE = "Ind.: Realtime update
* I_GPART = "Business Partner
* I_CH_MODE = 1 "
* I_VKTYP = "Account Type
* I_APPLK = "
* I_NO_DIALOG = "
* I_NO_OTHER = "
* I_NO_CHANGE = "

IMPORTING
E_DB_UPDATE = "
E_EXIT_TYPE = "
E_GPART = "
E_INP_ERR = "

CHANGING
* IE_ENQ_DONE = "Blocking Indicator
* IE_CURFIELD = "Cursor Position
* IE_ACCOUNT = "Contract Account Data
* IE_AUTO = "Automation data

EXCEPTIONS
INTERNAL_ERROR = 1 INPUT_ERROR = 2 FOREIGN_LOCK = 3 NOT_FOUND = 4 EXISTING = 5 NUMBER_ERROR = 6 NOT_QUALIFIED = 7
.



IMPORTING Parameters details for FKK_ACCOUNT_CHANGE

I_VKONT - Account

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

I_FULLSCREEN -

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

I_UPD_ONLINE - Ind.: Realtime update

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

I_GPART - Business Partner

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

I_CH_MODE -

Data type: SY-BATCH
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VKTYP - Account Type

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

I_APPLK -

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

I_NO_DIALOG -

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

I_NO_OTHER -

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

I_NO_CHANGE -

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

EXPORTING Parameters details for FKK_ACCOUNT_CHANGE

E_DB_UPDATE -

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

E_EXIT_TYPE -

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

E_GPART -

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

E_INP_ERR -

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

CHANGING Parameters details for FKK_ACCOUNT_CHANGE

IE_ENQ_DONE - Blocking Indicator

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

IE_CURFIELD - Cursor Position

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

IE_ACCOUNT - Contract Account Data

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

IE_AUTO - Automation data

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

EXCEPTIONS details

INTERNAL_ERROR - Internal Error

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

INPUT_ERROR -

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

FOREIGN_LOCK - Locking Error

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

NOT_FOUND -

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

EXISTING -

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

NUMBER_ERROR - Error in number assignment

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

NOT_QUALIFIED -

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

Copy and paste ABAP code example for FKK_ACCOUNT_CHANGE 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_i_vkont  TYPE FKKVK-VKONT, "   
lv_e_db_update  TYPE SY-BATCH, "   
lv_ie_enq_done  TYPE BOOLE-BOOLE, "   
lv_internal_error  TYPE BOOLE, "   
lv_i_fullscreen  TYPE BOOLE-BOOLE, "   
lv_e_exit_type  TYPE RSEUI-PUSH_TEST, "   
lv_ie_curfield  TYPE RSEUI, "   
lv_input_error  TYPE RSEUI, "   
lv_i_upd_online  TYPE SY-BATCH, "   
lv_e_gpart  TYPE FKKVKP-GPART, "   
lv_i_gpart  TYPE FKKVKP-GPART, "   
lv_ie_account  TYPE FKK20_ACCOUNT, "   
lv_foreign_lock  TYPE FKK20_ACCOUNT, "   
lv_ie_auto  TYPE FKK20_ACCOUNT_AUTO, "   
lv_e_inp_err  TYPE BOOLE-BOOLE, "   
lv_i_ch_mode  TYPE SY-BATCH, "   1
lv_not_found  TYPE SY, "   
lv_i_vktyp  TYPE FKKVK-VKTYP, "   
lv_existing  TYPE FKKVK, "   
lv_i_applk  TYPE TFK002A-APPLK, "   
lv_number_error  TYPE TFK002A, "   
lv_i_no_dialog  TYPE BOOLE-BOOLE, "   
lv_not_qualified  TYPE BOOLE, "   
lv_i_no_other  TYPE BOOLE-BOOLE, "   
lv_i_no_change  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'FKK_ACCOUNT_CHANGE'  "
    EXPORTING
         I_VKONT = lv_i_vkont
         I_FULLSCREEN = lv_i_fullscreen
         I_UPD_ONLINE = lv_i_upd_online
         I_GPART = lv_i_gpart
         I_CH_MODE = lv_i_ch_mode
         I_VKTYP = lv_i_vktyp
         I_APPLK = lv_i_applk
         I_NO_DIALOG = lv_i_no_dialog
         I_NO_OTHER = lv_i_no_other
         I_NO_CHANGE = lv_i_no_change
    IMPORTING
         E_DB_UPDATE = lv_e_db_update
         E_EXIT_TYPE = lv_e_exit_type
         E_GPART = lv_e_gpart
         E_INP_ERR = lv_e_inp_err
    CHANGING
         IE_ENQ_DONE = lv_ie_enq_done
         IE_CURFIELD = lv_ie_curfield
         IE_ACCOUNT = lv_ie_account
         IE_AUTO = lv_ie_auto
    EXCEPTIONS
        INTERNAL_ERROR = 1
        INPUT_ERROR = 2
        FOREIGN_LOCK = 3
        NOT_FOUND = 4
        EXISTING = 5
        NUMBER_ERROR = 6
        NOT_QUALIFIED = 7
. " FKK_ACCOUNT_CHANGE




ABAP code using 7.40 inline data declarations to call FM FKK_ACCOUNT_CHANGE

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 VKONT FROM FKKVK INTO @DATA(ld_i_vkont).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_e_db_update).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ie_enq_done).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_fullscreen).
 
"SELECT single PUSH_TEST FROM RSEUI INTO @DATA(ld_e_exit_type).
 
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_upd_online).
 
"SELECT single GPART FROM FKKVKP INTO @DATA(ld_e_gpart).
 
"SELECT single GPART FROM FKKVKP INTO @DATA(ld_i_gpart).
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_inp_err).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_ch_mode).
DATA(ld_i_ch_mode) = 1.
 
 
"SELECT single VKTYP FROM FKKVK INTO @DATA(ld_i_vktyp).
 
 
"SELECT single APPLK FROM TFK002A INTO @DATA(ld_i_applk).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_dialog).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_other).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_change).
 


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!