SAP K_PLAN_ATTRIBUTES_FILL Function Module for









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

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



Function K_PLAN_ATTRIBUTES_FILL 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_ATTRIBUTES_FILL'"
EXPORTING
I_SUBCLASS = "
I_TABNAME = "
* I_INTERNAL = ' ' "Indicator: Include Internal Fields?

IMPORTING
E_CURR_CONV = "
NOT_TAKE_BUFFER = "

TABLES
ITKPP0U = "Table of Additional Fields/Attributes
* ITKPP0UD1 = "
* ITKPP0DD = "
* ITKPP0D = "
* ITKPP0A = "
.



IMPORTING Parameters details for K_PLAN_ATTRIBUTES_FILL

I_SUBCLASS -

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

I_TABNAME -

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

I_INTERNAL - Indicator: Include Internal Fields?

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

EXPORTING Parameters details for K_PLAN_ATTRIBUTES_FILL

E_CURR_CONV -

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

NOT_TAKE_BUFFER -

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

TABLES Parameters details for K_PLAN_ATTRIBUTES_FILL

ITKPP0U - Table of Additional Fields/Attributes

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

ITKPP0UD1 -

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

ITKPP0DD -

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

ITKPP0D -

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

ITKPP0A -

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

Copy and paste ABAP code example for K_PLAN_ATTRIBUTES_FILL 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:
lt_itkpp0u  TYPE STANDARD TABLE OF KPP0U, "   
lv_i_subclass  TYPE TKES1-SUBCLASS, "   
lv_e_curr_conv  TYPE KPP_CURR_CONV, "   
lt_itkpp0ud1  TYPE STANDARD TABLE OF KPP0UD1, "   
lv_i_tabname  TYPE TKES1-TABNAME, "   
lv_not_take_buffer  TYPE TKES1, "   
lt_itkpp0dd  TYPE STANDARD TABLE OF KPP0DD, "   
lv_i_internal  TYPE KPP0DD, "   SPACE
lt_itkpp0d  TYPE STANDARD TABLE OF KPP0D, "   
lt_itkpp0a  TYPE STANDARD TABLE OF KPP0A. "   

  CALL FUNCTION 'K_PLAN_ATTRIBUTES_FILL'  "
    EXPORTING
         I_SUBCLASS = lv_i_subclass
         I_TABNAME = lv_i_tabname
         I_INTERNAL = lv_i_internal
    IMPORTING
         E_CURR_CONV = lv_e_curr_conv
         NOT_TAKE_BUFFER = lv_not_take_buffer
    TABLES
         ITKPP0U = lt_itkpp0u
         ITKPP0UD1 = lt_itkpp0ud1
         ITKPP0DD = lt_itkpp0dd
         ITKPP0D = lt_itkpp0d
         ITKPP0A = lt_itkpp0a
. " K_PLAN_ATTRIBUTES_FILL




ABAP code using 7.40 inline data declarations to call FM K_PLAN_ATTRIBUTES_FILL

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 SUBCLASS FROM TKES1 INTO @DATA(ld_i_subclass).
 
 
 
"SELECT single TABNAME FROM TKES1 INTO @DATA(ld_i_tabname).
 
 
 
DATA(ld_i_internal) = ' '.
 
 
 


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!