SAP CK_F_ELEMENTS_ADD Function Module for
CK_F_ELEMENTS_ADD is a standard ck f elements add 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 ck f elements add FM, simply by entering the name CK_F_ELEMENTS_ADD into the relevant SAP transaction such as SE37 or SE38.
Function Group: CK2U
Program Name: SAPLCK2U
Main Program: SAPLCK2U
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CK_F_ELEMENTS_ADD 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 'CK_F_ELEMENTS_ADD'".
EXPORTING
ELEMENTESCHEMA = "Cost component layout for rollup
* KALKULATIONSVARIANTE = ' ' "
* KOSTENELEMENT = ' ' "
SCHICHTUNG = "
* SELEKTIONSKENNZEICHEN = ' ' "
* SUMMIERE_NUR_WAELZELEMENTE = ' ' "
* ELEMENTEGRUPPE = "
* ELEMENTEGRUPPE_2 = "
* I_TCKH8 = "
IMPORTING
BEWERTUNG_FIX = "
INVENTUR_STEUERRECHT_GESAMT = "
KOSTEN_ZUR_SICHT_GESAMT = "
KOSTEN_ZUR_SICHT_FIX = "
SCHICHTUNG_MODIF = "
VERTRIEB_VERWALTUNG_FIX = "
VERTRIEB_VERWALTUNG_GESAMT = "
ZUGANG_EXTERN_FIX = "
ZUGANG_EXTERN_GESAMT = "
GEWINN_PC = "
GEWINN_BK = "
BEWERTUNG_GESAMT = "
GEWINNZUSCHLAG_FIX = "
GEWINNZUSCHLAG_GESAMT = "
HERSTELLKOSTEN_FIX = "
HERSTELLKOSTEN_GESAMT = "
INVENTUR_HANDELSRECHT_FIX = "
INVENTUR_HANDELSRECHT_GESAMT = "
INVENTUR_STEUERRECHT_FIX = "
IMPORTING Parameters details for CK_F_ELEMENTS_ADD
ELEMENTESCHEMA - Cost component layout for rollup
Data type: TCKH1-ELEHKOptional: No
Call by Reference: No ( called with pass by value option)
KALKULATIONSVARIANTE -
Data type: TCK03-KLVARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOSTENELEMENT -
Data type: TCKH3-ELEMTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SCHICHTUNG -
Data type: KEPHOptional: No
Call by Reference: No ( called with pass by value option)
SELEKTIONSKENNZEICHEN -
Data type: TCK10-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUMMIERE_NUR_WAELZELEMENTE -
Data type: CKI64A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ELEMENTEGRUPPE -
Data type: TCKH7-EGRUPOptional: Yes
Call by Reference: No ( called with pass by value option)
ELEMENTEGRUPPE_2 -
Data type: TCKH7-EGRUPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TCKH8 -
Data type: TCKH8Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CK_F_ELEMENTS_ADD
BEWERTUNG_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
INVENTUR_STEUERRECHT_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
KOSTEN_ZUR_SICHT_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
KOSTEN_ZUR_SICHT_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
SCHICHTUNG_MODIF -
Data type: KEPHOptional: No
Call by Reference: No ( called with pass by value option)
VERTRIEB_VERWALTUNG_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
VERTRIEB_VERWALTUNG_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
ZUGANG_EXTERN_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
ZUGANG_EXTERN_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
GEWINN_PC -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
GEWINN_BK -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
BEWERTUNG_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
GEWINNZUSCHLAG_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
GEWINNZUSCHLAG_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
HERSTELLKOSTEN_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
HERSTELLKOSTEN_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
INVENTUR_HANDELSRECHT_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
INVENTUR_HANDELSRECHT_GESAMT -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
INVENTUR_STEUERRECHT_FIX -
Data type: CKI64A-H_WERTV8Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CK_F_ELEMENTS_ADD 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_bewertung_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_elementeschema | TYPE TCKH1-ELEHK, " | |||
| lv_inventur_steuerrecht_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_kosten_zur_sicht_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_kosten_zur_sicht_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_schichtung_modif | TYPE KEPH, " | |||
| lv_vertrieb_verwaltung_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_vertrieb_verwaltung_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_zugang_extern_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_zugang_extern_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_gewinn_pc | TYPE CKI64A-H_WERTV8, " | |||
| lv_gewinn_bk | TYPE CKI64A-H_WERTV8, " | |||
| lv_bewertung_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_kalkulationsvariante | TYPE TCK03-KLVAR, " SPACE | |||
| lv_kostenelement | TYPE TCKH3-ELEMT, " SPACE | |||
| lv_gewinnzuschlag_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_schichtung | TYPE KEPH, " | |||
| lv_gewinnzuschlag_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_herstellkosten_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_selektionskennzeichen | TYPE TCK10-SELKZ, " SPACE | |||
| lv_herstellkosten_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_summiere_nur_waelzelemente | TYPE CKI64A-SELKZ, " SPACE | |||
| lv_elementegruppe | TYPE TCKH7-EGRUP, " | |||
| lv_inventur_handelsrecht_fix | TYPE CKI64A-H_WERTV8, " | |||
| lv_elementegruppe_2 | TYPE TCKH7-EGRUP, " | |||
| lv_inventur_handelsrecht_gesamt | TYPE CKI64A-H_WERTV8, " | |||
| lv_i_tckh8 | TYPE TCKH8, " | |||
| lv_inventur_steuerrecht_fix | TYPE CKI64A-H_WERTV8. " |
|   CALL FUNCTION 'CK_F_ELEMENTS_ADD' " |
| EXPORTING | ||
| ELEMENTESCHEMA | = lv_elementeschema | |
| KALKULATIONSVARIANTE | = lv_kalkulationsvariante | |
| KOSTENELEMENT | = lv_kostenelement | |
| SCHICHTUNG | = lv_schichtung | |
| SELEKTIONSKENNZEICHEN | = lv_selektionskennzeichen | |
| SUMMIERE_NUR_WAELZELEMENTE | = lv_summiere_nur_waelzelemente | |
| ELEMENTEGRUPPE | = lv_elementegruppe | |
| ELEMENTEGRUPPE_2 | = lv_elementegruppe_2 | |
| I_TCKH8 | = lv_i_tckh8 | |
| IMPORTING | ||
| BEWERTUNG_FIX | = lv_bewertung_fix | |
| INVENTUR_STEUERRECHT_GESAMT | = lv_inventur_steuerrecht_gesamt | |
| KOSTEN_ZUR_SICHT_GESAMT | = lv_kosten_zur_sicht_gesamt | |
| KOSTEN_ZUR_SICHT_FIX | = lv_kosten_zur_sicht_fix | |
| SCHICHTUNG_MODIF | = lv_schichtung_modif | |
| VERTRIEB_VERWALTUNG_FIX | = lv_vertrieb_verwaltung_fix | |
| VERTRIEB_VERWALTUNG_GESAMT | = lv_vertrieb_verwaltung_gesamt | |
| ZUGANG_EXTERN_FIX | = lv_zugang_extern_fix | |
| ZUGANG_EXTERN_GESAMT | = lv_zugang_extern_gesamt | |
| GEWINN_PC | = lv_gewinn_pc | |
| GEWINN_BK | = lv_gewinn_bk | |
| BEWERTUNG_GESAMT | = lv_bewertung_gesamt | |
| GEWINNZUSCHLAG_FIX | = lv_gewinnzuschlag_fix | |
| GEWINNZUSCHLAG_GESAMT | = lv_gewinnzuschlag_gesamt | |
| HERSTELLKOSTEN_FIX | = lv_herstellkosten_fix | |
| HERSTELLKOSTEN_GESAMT | = lv_herstellkosten_gesamt | |
| INVENTUR_HANDELSRECHT_FIX | = lv_inventur_handelsrecht_fix | |
| INVENTUR_HANDELSRECHT_GESAMT | = lv_inventur_handelsrecht_gesamt | |
| INVENTUR_STEUERRECHT_FIX | = lv_inventur_steuerrecht_fix | |
| . " CK_F_ELEMENTS_ADD | ||
ABAP code using 7.40 inline data declarations to call FM CK_F_ELEMENTS_ADD
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 H_WERTV8 FROM CKI64A INTO @DATA(ld_bewertung_fix). | ||||
| "SELECT single ELEHK FROM TCKH1 INTO @DATA(ld_elementeschema). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_inventur_steuerrecht_gesamt). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_kosten_zur_sicht_gesamt). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_kosten_zur_sicht_fix). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_vertrieb_verwaltung_fix). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_vertrieb_verwaltung_gesamt). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_zugang_extern_fix). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_zugang_extern_gesamt). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_gewinn_pc). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_gewinn_bk). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_bewertung_gesamt). | ||||
| "SELECT single KLVAR FROM TCK03 INTO @DATA(ld_kalkulationsvariante). | ||||
| DATA(ld_kalkulationsvariante) | = ' '. | |||
| "SELECT single ELEMT FROM TCKH3 INTO @DATA(ld_kostenelement). | ||||
| DATA(ld_kostenelement) | = ' '. | |||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_gewinnzuschlag_fix). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_gewinnzuschlag_gesamt). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_herstellkosten_fix). | ||||
| "SELECT single SELKZ FROM TCK10 INTO @DATA(ld_selektionskennzeichen). | ||||
| DATA(ld_selektionskennzeichen) | = ' '. | |||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_herstellkosten_gesamt). | ||||
| "SELECT single SELKZ FROM CKI64A INTO @DATA(ld_summiere_nur_waelzelemente). | ||||
| DATA(ld_summiere_nur_waelzelemente) | = ' '. | |||
| "SELECT single EGRUP FROM TCKH7 INTO @DATA(ld_elementegruppe). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_inventur_handelsrecht_fix). | ||||
| "SELECT single EGRUP FROM TCKH7 INTO @DATA(ld_elementegruppe_2). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_inventur_handelsrecht_gesamt). | ||||
| "SELECT single H_WERTV8 FROM CKI64A INTO @DATA(ld_inventur_steuerrecht_fix). | ||||
Search for further information about these or an SAP related objects