SAP FKK_BELEG_WRITE_CHANGEDOC Function Module for









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

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



Function FKK_BELEG_WRITE_CHANGEDOC 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_BELEG_WRITE_CHANGEDOC'"
EXPORTING
* OBJECTCLAS = 'MKK_BELEG' "Object Class
* UPD_FKKOPW = 'U' "
* UPD_FKKOPKX = ' ' "Change Type (U, I, E, D)
* UPD_FKKOPL = 'U' "Change Type (U, I, E, D)
* UNAME = SY-UNAME "SAP System, User Logon Name
* UPD_FKKOPWH = 'U' "Change Type (U, I, E, D)
OPBEL = "Document
* UPD_ICDTXT_MKK_BELEG = ' ' "
* UPD_ICDTXT_MKK_BELEG_WF = ' ' "
N_FKKKO = "
O_FKKKO = "
* UPD_FKKKO = 'U' "
* UPD_FKKOP = 'U' "
* UPD_FKKOPK = 'U' "

IMPORTING
OBJECTID = "Object Value
UZEIT = "Date and Time, Current Application Server Time
DATUM = "Date and Time, Current (Application Server) Date

TABLES
ICDTXT_MKK_BELEG = "Text Changes
* YFKKOPKX = "
* XFKKOPL = "
* YFKKOPL = "
* XFKKOPWH = "Withholding Tax Data for Business Partner Item
* YFKKOPWH = "Withholding Tax Data for Business Partner Item
* ICDTXT_MKK_BELEG_WF = "
XFKKOP = "
YFKKOP = "
XFKKOPK = "
YFKKOPK = "
XFKKOPW = "
YFKKOPW = "
* XFKKOPKX = "
.



IMPORTING Parameters details for FKK_BELEG_WRITE_CHANGEDOC

OBJECTCLAS - Object Class

Data type: CDHDR-OBJECTCLAS
Default: 'MKK_BELEG'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPD_FKKOPW -

Data type: CDPOS-CHNGIND
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPD_FKKOPKX - Change Type (U, I, E, D)

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPD_FKKOPL - Change Type (U, I, E, D)

Data type: CDPOS-CHNGIND
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UNAME - SAP System, User Logon Name

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

UPD_FKKOPWH - Change Type (U, I, E, D)

Data type: CDPOS-CHNGIND
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPBEL - Document

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

UPD_ICDTXT_MKK_BELEG -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPD_ICDTXT_MKK_BELEG_WF -

Data type: CDPOS-CHNGIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

N_FKKKO -

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

O_FKKKO -

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

UPD_FKKKO -

Data type: CDPOS-CHNGIND
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPD_FKKOP -

Data type: CDPOS-CHNGIND
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPD_FKKOPK -

Data type: CDPOS-CHNGIND
Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FKK_BELEG_WRITE_CHANGEDOC

OBJECTID - Object Value

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

UZEIT - Date and Time, Current Application Server Time

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

DATUM - Date and Time, Current (Application Server) Date

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

TABLES Parameters details for FKK_BELEG_WRITE_CHANGEDOC

ICDTXT_MKK_BELEG - Text Changes

Data type: CDTXT
Optional: No
Call by Reference: Yes

YFKKOPKX -

Data type: DFKKOPKX
Optional: Yes
Call by Reference: Yes

XFKKOPL -

Data type: DFKKOPL
Optional: Yes
Call by Reference: Yes

YFKKOPL -

Data type: DFKKOPL
Optional: Yes
Call by Reference: Yes

XFKKOPWH - Withholding Tax Data for Business Partner Item

Data type: DFKKOPWH
Optional: Yes
Call by Reference: Yes

YFKKOPWH - Withholding Tax Data for Business Partner Item

Data type: DFKKOPWH
Optional: Yes
Call by Reference: Yes

ICDTXT_MKK_BELEG_WF -

Data type: CDTXT
Optional: Yes
Call by Reference: Yes

XFKKOP -

Data type: FKKOP
Optional: No
Call by Reference: Yes

YFKKOP -

Data type: FKKOP
Optional: No
Call by Reference: Yes

XFKKOPK -

Data type: FKKOPK
Optional: No
Call by Reference: Yes

YFKKOPK -

Data type: FKKOPK
Optional: No
Call by Reference: Yes

XFKKOPW -

Data type: FKKOPW
Optional: No
Call by Reference: Yes

YFKKOPW -

Data type: FKKOPW
Optional: No
Call by Reference: Yes

XFKKOPKX -

Data type: DFKKOPKX
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FKK_BELEG_WRITE_CHANGEDOC 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_objectid  TYPE CDHDR-OBJECTID, "   
lv_objectclas  TYPE CDHDR-OBJECTCLAS, "   'MKK_BELEG'
lt_icdtxt_mkk_beleg  TYPE STANDARD TABLE OF CDTXT, "   
lt_yfkkopkx  TYPE STANDARD TABLE OF DFKKOPKX, "   
lv_upd_fkkopw  TYPE CDPOS-CHNGIND, "   'U'
lt_xfkkopl  TYPE STANDARD TABLE OF DFKKOPL, "   
lv_upd_fkkopkx  TYPE CDPOS-CHNGIND, "   SPACE
lt_yfkkopl  TYPE STANDARD TABLE OF DFKKOPL, "   
lv_upd_fkkopl  TYPE CDPOS-CHNGIND, "   'U'
lv_uname  TYPE SYST-UNAME, "   SY-UNAME
lt_xfkkopwh  TYPE STANDARD TABLE OF DFKKOPWH, "   
lt_yfkkopwh  TYPE STANDARD TABLE OF DFKKOPWH, "   
lv_upd_fkkopwh  TYPE CDPOS-CHNGIND, "   'U'
lv_opbel  TYPE FKKKO-OPBEL, "   
lv_uzeit  TYPE SY-UZEIT, "   
lt_icdtxt_mkk_beleg_wf  TYPE STANDARD TABLE OF CDTXT, "   
lv_datum  TYPE SY-DATUM, "   
lt_xfkkop  TYPE STANDARD TABLE OF FKKOP, "   
lv_upd_icdtxt_mkk_beleg  TYPE CDPOS-CHNGIND, "   SPACE
lt_yfkkop  TYPE STANDARD TABLE OF FKKOP, "   
lv_upd_icdtxt_mkk_beleg_wf  TYPE CDPOS-CHNGIND, "   SPACE
lv_n_fkkko  TYPE FKKKO, "   
lt_xfkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lv_o_fkkko  TYPE FKKKO, "   
lt_yfkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lt_xfkkopw  TYPE STANDARD TABLE OF FKKOPW, "   
lv_upd_fkkko  TYPE CDPOS-CHNGIND, "   'U'
lt_yfkkopw  TYPE STANDARD TABLE OF FKKOPW, "   
lv_upd_fkkop  TYPE CDPOS-CHNGIND, "   'U'
lt_xfkkopkx  TYPE STANDARD TABLE OF DFKKOPKX, "   
lv_upd_fkkopk  TYPE CDPOS-CHNGIND. "   'U'

  CALL FUNCTION 'FKK_BELEG_WRITE_CHANGEDOC'  "
    EXPORTING
         OBJECTCLAS = lv_objectclas
         UPD_FKKOPW = lv_upd_fkkopw
         UPD_FKKOPKX = lv_upd_fkkopkx
         UPD_FKKOPL = lv_upd_fkkopl
         UNAME = lv_uname
         UPD_FKKOPWH = lv_upd_fkkopwh
         OPBEL = lv_opbel
         UPD_ICDTXT_MKK_BELEG = lv_upd_icdtxt_mkk_beleg
         UPD_ICDTXT_MKK_BELEG_WF = lv_upd_icdtxt_mkk_beleg_wf
         N_FKKKO = lv_n_fkkko
         O_FKKKO = lv_o_fkkko
         UPD_FKKKO = lv_upd_fkkko
         UPD_FKKOP = lv_upd_fkkop
         UPD_FKKOPK = lv_upd_fkkopk
    IMPORTING
         OBJECTID = lv_objectid
         UZEIT = lv_uzeit
         DATUM = lv_datum
    TABLES
         ICDTXT_MKK_BELEG = lt_icdtxt_mkk_beleg
         YFKKOPKX = lt_yfkkopkx
         XFKKOPL = lt_xfkkopl
         YFKKOPL = lt_yfkkopl
         XFKKOPWH = lt_xfkkopwh
         YFKKOPWH = lt_yfkkopwh
         ICDTXT_MKK_BELEG_WF = lt_icdtxt_mkk_beleg_wf
         XFKKOP = lt_xfkkop
         YFKKOP = lt_yfkkop
         XFKKOPK = lt_xfkkopk
         YFKKOPK = lt_yfkkopk
         XFKKOPW = lt_xfkkopw
         YFKKOPW = lt_yfkkopw
         XFKKOPKX = lt_xfkkopkx
. " FKK_BELEG_WRITE_CHANGEDOC




ABAP code using 7.40 inline data declarations to call FM FKK_BELEG_WRITE_CHANGEDOC

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 OBJECTID FROM CDHDR INTO @DATA(ld_objectid).
 
"SELECT single OBJECTCLAS FROM CDHDR INTO @DATA(ld_objectclas).
DATA(ld_objectclas) = 'MKK_BELEG'.
 
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkopw).
DATA(ld_upd_fkkopw) = 'U'.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkopkx).
DATA(ld_upd_fkkopkx) = ' '.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkopl).
DATA(ld_upd_fkkopl) = 'U'.
 
"SELECT single UNAME FROM SYST INTO @DATA(ld_uname).
DATA(ld_uname) = SY-UNAME.
 
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkopwh).
DATA(ld_upd_fkkopwh) = 'U'.
 
"SELECT single OPBEL FROM FKKKO INTO @DATA(ld_opbel).
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_uzeit).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_datum).
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_icdtxt_mkk_beleg).
DATA(ld_upd_icdtxt_mkk_beleg) = ' '.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_icdtxt_mkk_beleg_wf).
DATA(ld_upd_icdtxt_mkk_beleg_wf) = ' '.
 
 
 
 
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkko).
DATA(ld_upd_fkkko) = 'U'.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkop).
DATA(ld_upd_fkkop) = 'U'.
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_fkkopk).
DATA(ld_upd_fkkopk) = 'U'.
 


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!