SAP K_PLAN_FILL_SPREADKEY_APPLI_C Function Module for









K_PLAN_FILL_SPREADKEY_APPLI_C is a standard k plan fill spreadkey appli c 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 plan fill spreadkey appli c FM, simply by entering the name K_PLAN_FILL_SPREADKEY_APPLI_C into the relevant SAP transaction such as SE37 or SE38.

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



Function K_PLAN_FILL_SPREADKEY_APPLI_C 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_PLAN_FILL_SPREADKEY_APPLI_C'"
EXPORTING
I_OBJNR = "
I_GJAHR = "
I_WRTTP = "
I_VERSN = "
I_SPRED = "

IMPORTING
E_MESG = "

TABLES
ITVTLTAB = "

EXCEPTIONS
ERROR_IN_K_COSLA_READ = 1 WRONG_SPREADKEY = 2
.



IMPORTING Parameters details for K_PLAN_FILL_SPREADKEY_APPLI_C

I_OBJNR -

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

I_GJAHR -

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

I_WRTTP -

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

I_VERSN -

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

I_SPRED -

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

EXPORTING Parameters details for K_PLAN_FILL_SPREADKEY_APPLI_C

E_MESG -

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

TABLES Parameters details for K_PLAN_FILL_SPREADKEY_APPLI_C

ITVTLTAB -

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

EXCEPTIONS details

ERROR_IN_K_COSLA_READ -

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

WRONG_SPREADKEY -

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

Copy and paste ABAP code example for K_PLAN_FILL_SPREADKEY_APPLI_C 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_e_mesg  TYPE MESG, "   
lv_i_objnr  TYPE CCSS-OBJNR, "   
lt_itvtltab  TYPE STANDARD TABLE OF RKVTLTAB, "   
lv_error_in_k_cosla_read  TYPE RKVTLTAB, "   
lv_i_gjahr  TYPE CCSS-GJAHR, "   
lv_wrong_spreadkey  TYPE CCSS, "   
lv_i_wrttp  TYPE CCSS-WRTTP, "   
lv_i_versn  TYPE CCSS-VERSN, "   
lv_i_spred  TYPE T821V-SPRED. "   

  CALL FUNCTION 'K_PLAN_FILL_SPREADKEY_APPLI_C'  "
    EXPORTING
         I_OBJNR = lv_i_objnr
         I_GJAHR = lv_i_gjahr
         I_WRTTP = lv_i_wrttp
         I_VERSN = lv_i_versn
         I_SPRED = lv_i_spred
    IMPORTING
         E_MESG = lv_e_mesg
    TABLES
         ITVTLTAB = lt_itvtltab
    EXCEPTIONS
        ERROR_IN_K_COSLA_READ = 1
        WRONG_SPREADKEY = 2
. " K_PLAN_FILL_SPREADKEY_APPLI_C




ABAP code using 7.40 inline data declarations to call FM K_PLAN_FILL_SPREADKEY_APPLI_C

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 OBJNR FROM CCSS INTO @DATA(ld_i_objnr).
 
 
 
"SELECT single GJAHR FROM CCSS INTO @DATA(ld_i_gjahr).
 
 
"SELECT single WRTTP FROM CCSS INTO @DATA(ld_i_wrttp).
 
"SELECT single VERSN FROM CCSS INTO @DATA(ld_i_versn).
 
"SELECT single SPRED FROM T821V INTO @DATA(ld_i_spred).
 


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!