SAP K_ACTIVITY_INPUT_VALUATION Function Module for
K_ACTIVITY_INPUT_VALUATION is a standard k activity input valuation 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 k activity input valuation FM, simply by entering the name K_ACTIVITY_INPUT_VALUATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: KAIV
Program Name: SAPLKAIV
Main Program: SAPLKAIV
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_ACTIVITY_INPUT_VALUATION 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 'K_ACTIVITY_INPUT_VALUATION'".
EXPORTING
KOKRS = "Controlling Area
* TOTALS_UPDATE = 'X' "
* BLTXT = "
* WSDAT = '00000000' "
* P_SCHEDMAN_KEY = "
* TESTRUN = "Test Run
VERSN = "
GJAHR = "Fiscal Year
* PIKZ = 'P' "
* MODUS = '1' "
* WPDFX = "
* COMMIT = "Perform Commit
* SHOW_INTERNAL = "
* ONLINE_VB = "
TABLES
ICOEJTA = "
* ICOKLU = "
* ICSSL = "
* ICOKA = "
* ICOKAU = "
OCOKL = "
* ITCOSLA_DEL = "
* ITCOSTA_DEL = "
* ITCOKL_DEL = "
* ITCSSL_DEL = "
* I_KEKPOM = "Components
* ICOEJLA = "
* ICOSLA = "
* ICOSTA = "
ICOAIV = "
ICOIOB = "
ICOAIB = "
IPERIOD = "
* ICOKL = "
EXCEPTIONS
MISSING_COKL = 1 INTEGRATION_ERROR = 2 NUMBER_ERROR = 3 MASTER_READ_ERROR = 4 ENQUEUE_PROBLEM = 5 OVERFLOW_ERROR = 6 SENDER_RECEIVER_MISMATCH = 7
IMPORTING Parameters details for K_ACTIVITY_INPUT_VALUATION
KOKRS - Controlling Area
Data type: COBK-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
TOTALS_UPDATE -
Data type: TKA07-EPSKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BLTXT -
Data type: COBK-BLTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
WSDAT -
Data type: COBK-WSDATDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_SCHEDMAN_KEY -
Data type: SCHEDMAN_KEYOptional: Yes
Call by Reference: Yes
TESTRUN - Test Run
Data type: C1Optional: Yes
Call by Reference: Yes
VERSN -
Data type: COBK-VERSNOptional: No
Call by Reference: No ( called with pass by value option)
GJAHR - Fiscal Year
Data type: COBK-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
PIKZ -
Data type:Default: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODUS -
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WPDFX -
Data type: RKSPI-WPDFXOptional: Yes
Call by Reference: No ( called with pass by value option)
COMMIT - Perform Commit
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_INTERNAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLINE_VB -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_ACTIVITY_INPUT_VALUATION
ICOEJTA -
Data type: COEJTAOptional: No
Call by Reference: No ( called with pass by value option)
ICOKLU -
Data type: RKSTAOptional: Yes
Call by Reference: No ( called with pass by value option)
ICSSL -
Data type: CSSLOptional: Yes
Call by Reference: No ( called with pass by value option)
ICOKA -
Data type: COKAOptional: Yes
Call by Reference: No ( called with pass by value option)
ICOKAU -
Data type: RKSTAOptional: Yes
Call by Reference: No ( called with pass by value option)
OCOKL -
Data type: COKLOptional: No
Call by Reference: No ( called with pass by value option)
ITCOSLA_DEL -
Data type: COSLA_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
ITCOSTA_DEL -
Data type: COSTA_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
ITCOKL_DEL -
Data type: COKL_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
ITCSSL_DEL -
Data type: CSSL_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KEKPOM - Components
Data type: KEKPOMOptional: Yes
Call by Reference: Yes
ICOEJLA -
Data type: COEJLAOptional: Yes
Call by Reference: No ( called with pass by value option)
ICOSLA -
Data type: COSLAOptional: Yes
Call by Reference: No ( called with pass by value option)
ICOSTA -
Data type: COSTAOptional: Yes
Call by Reference: No ( called with pass by value option)
ICOAIV -
Data type: COAIVOptional: No
Call by Reference: No ( called with pass by value option)
ICOIOB -
Data type: COIOBOptional: No
Call by Reference: No ( called with pass by value option)
ICOAIB -
Data type: COAIBOptional: No
Call by Reference: No ( called with pass by value option)
IPERIOD -
Data type: PERIODSOptional: No
Call by Reference: No ( called with pass by value option)
ICOKL -
Data type: COKLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MISSING_COKL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTEGRATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MASTER_READ_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_PROBLEM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OVERFLOW_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SENDER_RECEIVER_MISMATCH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_ACTIVITY_INPUT_VALUATION 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_kokrs | TYPE COBK-KOKRS, " | |||
| lt_icoejta | TYPE STANDARD TABLE OF COEJTA, " | |||
| lv_missing_cokl | TYPE COEJTA, " | |||
| lt_icoklu | TYPE STANDARD TABLE OF RKSTA, " | |||
| lv_totals_update | TYPE TKA07-EPSKZ, " 'X' | |||
| lv_bltxt | TYPE COBK-BLTXT, " | |||
| lt_icssl | TYPE STANDARD TABLE OF CSSL, " | |||
| lt_icoka | TYPE STANDARD TABLE OF COKA, " | |||
| lv_wsdat | TYPE COBK-WSDAT, " '00000000' | |||
| lt_icokau | TYPE STANDARD TABLE OF RKSTA, " | |||
| lv_p_schedman_key | TYPE SCHEDMAN_KEY, " | |||
| lt_ocokl | TYPE STANDARD TABLE OF COKL, " | |||
| lv_testrun | TYPE C1, " | |||
| lt_itcosla_del | TYPE STANDARD TABLE OF COSLA_KEY, " | |||
| lt_itcosta_del | TYPE STANDARD TABLE OF COSTA_KEY, " | |||
| lt_itcokl_del | TYPE STANDARD TABLE OF COKL_KEY, " | |||
| lt_itcssl_del | TYPE STANDARD TABLE OF CSSL_KEY, " | |||
| lt_i_kekpom | TYPE STANDARD TABLE OF KEKPOM, " | |||
| lv_versn | TYPE COBK-VERSN, " | |||
| lt_icoejla | TYPE STANDARD TABLE OF COEJLA, " | |||
| lv_integration_error | TYPE COEJLA, " | |||
| lv_gjahr | TYPE COBK-GJAHR, " | |||
| lt_icosla | TYPE STANDARD TABLE OF COSLA, " | |||
| lv_number_error | TYPE COSLA, " | |||
| lv_pikz | TYPE COSLA, " 'P' | |||
| lt_icosta | TYPE STANDARD TABLE OF COSTA, " | |||
| lv_master_read_error | TYPE COSTA, " | |||
| lv_modus | TYPE COSTA, " '1' | |||
| lt_icoaiv | TYPE STANDARD TABLE OF COAIV, " | |||
| lv_enqueue_problem | TYPE COAIV, " | |||
| lv_wpdfx | TYPE RKSPI-WPDFX, " | |||
| lt_icoiob | TYPE STANDARD TABLE OF COIOB, " | |||
| lv_overflow_error | TYPE COIOB, " | |||
| lv_commit | TYPE COIOB, " | |||
| lt_icoaib | TYPE STANDARD TABLE OF COAIB, " | |||
| lv_sender_receiver_mismatch | TYPE COAIB, " | |||
| lt_iperiod | TYPE STANDARD TABLE OF PERIODS, " | |||
| lv_show_internal | TYPE PERIODS, " | |||
| lt_icokl | TYPE STANDARD TABLE OF COKL, " | |||
| lv_online_vb | TYPE COKL. " |
|   CALL FUNCTION 'K_ACTIVITY_INPUT_VALUATION' " |
| EXPORTING | ||
| KOKRS | = lv_kokrs | |
| TOTALS_UPDATE | = lv_totals_update | |
| BLTXT | = lv_bltxt | |
| WSDAT | = lv_wsdat | |
| P_SCHEDMAN_KEY | = lv_p_schedman_key | |
| TESTRUN | = lv_testrun | |
| VERSN | = lv_versn | |
| GJAHR | = lv_gjahr | |
| PIKZ | = lv_pikz | |
| MODUS | = lv_modus | |
| WPDFX | = lv_wpdfx | |
| COMMIT | = lv_commit | |
| SHOW_INTERNAL | = lv_show_internal | |
| ONLINE_VB | = lv_online_vb | |
| TABLES | ||
| ICOEJTA | = lt_icoejta | |
| ICOKLU | = lt_icoklu | |
| ICSSL | = lt_icssl | |
| ICOKA | = lt_icoka | |
| ICOKAU | = lt_icokau | |
| OCOKL | = lt_ocokl | |
| ITCOSLA_DEL | = lt_itcosla_del | |
| ITCOSTA_DEL | = lt_itcosta_del | |
| ITCOKL_DEL | = lt_itcokl_del | |
| ITCSSL_DEL | = lt_itcssl_del | |
| I_KEKPOM | = lt_i_kekpom | |
| ICOEJLA | = lt_icoejla | |
| ICOSLA | = lt_icosla | |
| ICOSTA | = lt_icosta | |
| ICOAIV | = lt_icoaiv | |
| ICOIOB | = lt_icoiob | |
| ICOAIB | = lt_icoaib | |
| IPERIOD | = lt_iperiod | |
| ICOKL | = lt_icokl | |
| EXCEPTIONS | ||
| MISSING_COKL = 1 | ||
| INTEGRATION_ERROR = 2 | ||
| NUMBER_ERROR = 3 | ||
| MASTER_READ_ERROR = 4 | ||
| ENQUEUE_PROBLEM = 5 | ||
| OVERFLOW_ERROR = 6 | ||
| SENDER_RECEIVER_MISMATCH = 7 | ||
| . " K_ACTIVITY_INPUT_VALUATION | ||
ABAP code using 7.40 inline data declarations to call FM K_ACTIVITY_INPUT_VALUATION
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 KOKRS FROM COBK INTO @DATA(ld_kokrs). | ||||
| "SELECT single EPSKZ FROM TKA07 INTO @DATA(ld_totals_update). | ||||
| DATA(ld_totals_update) | = 'X'. | |||
| "SELECT single BLTXT FROM COBK INTO @DATA(ld_bltxt). | ||||
| "SELECT single WSDAT FROM COBK INTO @DATA(ld_wsdat). | ||||
| DATA(ld_wsdat) | = '00000000'. | |||
| "SELECT single VERSN FROM COBK INTO @DATA(ld_versn). | ||||
| "SELECT single GJAHR FROM COBK INTO @DATA(ld_gjahr). | ||||
| DATA(ld_pikz) | = 'P'. | |||
| DATA(ld_modus) | = '1'. | |||
| "SELECT single WPDFX FROM RKSPI INTO @DATA(ld_wpdfx). | ||||
Search for further information about these or an SAP related objects