SAP Function Modules

FKK_ACCOUNT_UPDATE SAP Function module







FKK_ACCOUNT_UPDATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FKK_ACCOUNT_UPDATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FKKU
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM FKK_ACCOUNT_UPDATE - FKK ACCOUNT UPDATE





CALL FUNCTION 'FKK_ACCOUNT_UPDATE' "
  EXPORTING
    x_fkkvk =                   " fkkvk
*   y_fkkvk =                   " fkkvk
    vk_upd_mode =               " bus_istat-xchng
*   i_write_only_change_docs =   " boole-boole
*   udate =                     " cdhdr-udate
*   utime =                     " cdhdr-utime
*   planned_change_number = SPACE  " cdhdr-planchngnr
*   planned_or_real_changes = SPACE  " cdpos-chngind
*   upd_onl_change_docs =       " boole-boole   Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
*   xwrite_change_docs = 'X'    " boole-boole
*   username = SY-UNAME         " sy-uname      User Name
  TABLES
    x_fkkvkp =                  " fkkvkp
*   y_fkkvkp =                  " fkkvkp
*   x_fkkvk_corr =              " fkkvk_corr
*   y_fkkvk_corr =              " fkkvk_corr
*   it_actv_pcdhdr =            " pcdhdr
*   x_fkktaxex =                " dfkktaxex
*   y_fkktaxex =                " dfkktaxex
*   x_fkkvkp_chgdisc =          " fkkvkp_chgdisc  Charges and Discounts for CtrAcct<->Partner Relationship
*   y_fkkvkp_chgdisc =          " fkkvkp_chgdisc  Charges and Discounts for CtrAcct<->Partner Relationship
    .  "  FKK_ACCOUNT_UPDATE

ABAP code example for Function Module FKK_ACCOUNT_UPDATE





The ABAP code below is a full code listing to execute function module FKK_ACCOUNT_UPDATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_x_fkkvkp  TYPE STANDARD TABLE OF FKKVKP,"TABLES PARAM
wa_x_fkkvkp  LIKE LINE OF it_x_fkkvkp ,
it_y_fkkvkp  TYPE STANDARD TABLE OF FKKVKP,"TABLES PARAM
wa_y_fkkvkp  LIKE LINE OF it_y_fkkvkp ,
it_x_fkkvk_corr  TYPE STANDARD TABLE OF FKKVK_CORR,"TABLES PARAM
wa_x_fkkvk_corr  LIKE LINE OF it_x_fkkvk_corr ,
it_y_fkkvk_corr  TYPE STANDARD TABLE OF FKKVK_CORR,"TABLES PARAM
wa_y_fkkvk_corr  LIKE LINE OF it_y_fkkvk_corr ,
it_it_actv_pcdhdr  TYPE STANDARD TABLE OF PCDHDR,"TABLES PARAM
wa_it_actv_pcdhdr  LIKE LINE OF it_it_actv_pcdhdr ,
it_x_fkktaxex  TYPE STANDARD TABLE OF DFKKTAXEX,"TABLES PARAM
wa_x_fkktaxex  LIKE LINE OF it_x_fkktaxex ,
it_y_fkktaxex  TYPE STANDARD TABLE OF DFKKTAXEX,"TABLES PARAM
wa_y_fkktaxex  LIKE LINE OF it_y_fkktaxex ,
it_x_fkkvkp_chgdisc  TYPE STANDARD TABLE OF FKKVKP_CHGDISC,"TABLES PARAM
wa_x_fkkvkp_chgdisc  LIKE LINE OF it_x_fkkvkp_chgdisc ,
it_y_fkkvkp_chgdisc  TYPE STANDARD TABLE OF FKKVKP_CHGDISC,"TABLES PARAM
wa_y_fkkvkp_chgdisc  LIKE LINE OF it_y_fkkvkp_chgdisc .

DATA(ld_x_fkkvk) = 'Check type of data required'.
DATA(ld_y_fkkvk) = 'Check type of data required'.

DATA(ld_vk_upd_mode) = some text here

DATA(ld_i_write_only_change_docs) = some text here

SELECT single UDATE
FROM CDHDR
INTO @DATA(ld_udate).


SELECT single UTIME
FROM CDHDR
INTO @DATA(ld_utime).


SELECT single PLANCHNGNR
FROM CDHDR
INTO @DATA(ld_planned_change_number).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_planned_or_real_changes).


DATA(ld_upd_onl_change_docs) = some text here

DATA(ld_xwrite_change_docs) = some text here
DATA(ld_username) = 'some text here'.

"populate fields of struture and append to itab
append wa_x_fkkvkp to it_x_fkkvkp.

"populate fields of struture and append to itab
append wa_y_fkkvkp to it_y_fkkvkp.

"populate fields of struture and append to itab
append wa_x_fkkvk_corr to it_x_fkkvk_corr.

"populate fields of struture and append to itab
append wa_y_fkkvk_corr to it_y_fkkvk_corr.

"populate fields of struture and append to itab
append wa_it_actv_pcdhdr to it_it_actv_pcdhdr.

"populate fields of struture and append to itab
append wa_x_fkktaxex to it_x_fkktaxex.

"populate fields of struture and append to itab
append wa_y_fkktaxex to it_y_fkktaxex.

"populate fields of struture and append to itab
append wa_x_fkkvkp_chgdisc to it_x_fkkvkp_chgdisc.

"populate fields of struture and append to itab
append wa_y_fkkvkp_chgdisc to it_y_fkkvkp_chgdisc. . CALL FUNCTION 'FKK_ACCOUNT_UPDATE' EXPORTING x_fkkvk = ld_x_fkkvk * y_fkkvk = ld_y_fkkvk vk_upd_mode = ld_vk_upd_mode * i_write_only_change_docs = ld_i_write_only_change_docs * udate = ld_udate * utime = ld_utime * planned_change_number = ld_planned_change_number * planned_or_real_changes = ld_planned_or_real_changes * upd_onl_change_docs = ld_upd_onl_change_docs * xwrite_change_docs = ld_xwrite_change_docs * username = ld_username TABLES x_fkkvkp = it_x_fkkvkp * y_fkkvkp = it_y_fkkvkp * x_fkkvk_corr = it_x_fkkvk_corr * y_fkkvk_corr = it_y_fkkvk_corr * it_actv_pcdhdr = it_it_actv_pcdhdr * x_fkktaxex = it_x_fkktaxex * y_fkktaxex = it_y_fkktaxex * x_fkkvkp_chgdisc = it_x_fkkvkp_chgdisc * y_fkkvkp_chgdisc = it_y_fkkvkp_chgdisc . " FKK_ACCOUNT_UPDATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_x_fkkvk  TYPE FKKVK ,
it_x_fkkvkp  TYPE STANDARD TABLE OF FKKVKP ,
wa_x_fkkvkp  LIKE LINE OF it_x_fkkvkp,
ld_y_fkkvk  TYPE FKKVK ,
it_y_fkkvkp  TYPE STANDARD TABLE OF FKKVKP ,
wa_y_fkkvkp  LIKE LINE OF it_y_fkkvkp,
ld_vk_upd_mode  TYPE BUS_ISTAT-XCHNG ,
it_x_fkkvk_corr  TYPE STANDARD TABLE OF FKKVK_CORR ,
wa_x_fkkvk_corr  LIKE LINE OF it_x_fkkvk_corr,
ld_i_write_only_change_docs  TYPE BOOLE-BOOLE ,
it_y_fkkvk_corr  TYPE STANDARD TABLE OF FKKVK_CORR ,
wa_y_fkkvk_corr  LIKE LINE OF it_y_fkkvk_corr,
ld_udate  TYPE CDHDR-UDATE ,
it_it_actv_pcdhdr  TYPE STANDARD TABLE OF PCDHDR ,
wa_it_actv_pcdhdr  LIKE LINE OF it_it_actv_pcdhdr,
ld_utime  TYPE CDHDR-UTIME ,
it_x_fkktaxex  TYPE STANDARD TABLE OF DFKKTAXEX ,
wa_x_fkktaxex  LIKE LINE OF it_x_fkktaxex,
ld_planned_change_number  TYPE CDHDR-PLANCHNGNR ,
it_y_fkktaxex  TYPE STANDARD TABLE OF DFKKTAXEX ,
wa_y_fkktaxex  LIKE LINE OF it_y_fkktaxex,
ld_planned_or_real_changes  TYPE CDPOS-CHNGIND ,
it_x_fkkvkp_chgdisc  TYPE STANDARD TABLE OF FKKVKP_CHGDISC ,
wa_x_fkkvkp_chgdisc  LIKE LINE OF it_x_fkkvkp_chgdisc,
ld_upd_onl_change_docs  TYPE BOOLE-BOOLE ,
it_y_fkkvkp_chgdisc  TYPE STANDARD TABLE OF FKKVKP_CHGDISC ,
wa_y_fkkvkp_chgdisc  LIKE LINE OF it_y_fkkvkp_chgdisc,
ld_xwrite_change_docs  TYPE BOOLE-BOOLE ,
ld_username  TYPE SY-UNAME .

ld_x_fkkvk = 'some text here'.

"populate fields of struture and append to itab
append wa_x_fkkvkp to it_x_fkkvkp.
ld_y_fkkvk = 'some text here'.

"populate fields of struture and append to itab
append wa_y_fkkvkp to it_y_fkkvkp.

ld_vk_upd_mode = some text here

"populate fields of struture and append to itab
append wa_x_fkkvk_corr to it_x_fkkvk_corr.

ld_i_write_only_change_docs = some text here

"populate fields of struture and append to itab
append wa_y_fkkvk_corr to it_y_fkkvk_corr.

SELECT single UDATE
FROM CDHDR
INTO ld_udate.


"populate fields of struture and append to itab
append wa_it_actv_pcdhdr to it_it_actv_pcdhdr.

SELECT single UTIME
FROM CDHDR
INTO ld_utime.


"populate fields of struture and append to itab
append wa_x_fkktaxex to it_x_fkktaxex.

SELECT single PLANCHNGNR
FROM CDHDR
INTO ld_planned_change_number.


"populate fields of struture and append to itab
append wa_y_fkktaxex to it_y_fkktaxex.

SELECT single CHNGIND
FROM CDPOS
INTO ld_planned_or_real_changes.


"populate fields of struture and append to itab
append wa_x_fkkvkp_chgdisc to it_x_fkkvkp_chgdisc.

ld_upd_onl_change_docs = some text here

"populate fields of struture and append to itab
append wa_y_fkkvkp_chgdisc to it_y_fkkvkp_chgdisc.

ld_xwrite_change_docs = some text here
ld_username = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FKK_ACCOUNT_UPDATE or its description.