SAP K_PLAN_SCREEN_STRUCTURE_GET Function Module for
K_PLAN_SCREEN_STRUCTURE_GET is a standard k plan screen structure get 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 screen structure get FM, simply by entering the name K_PLAN_SCREEN_STRUCTURE_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: KPP1
Program Name: SAPLKPP1
Main Program: SAPLKPP1
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function K_PLAN_SCREEN_STRUCTURE_GET 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_SCREEN_STRUCTURE_GET'".
EXPORTING
ITKES1 = "
IBILDTYP = "
* IOUTPUTLEN_TIME = 0 "
* I_NOBUFFORMS = ' ' "
IMPORTING
ETKES1 = "
TABLES
ITKPP0DD = "
ITKPP1LF = "
* ITKPP0SM = "
ITKPP0D = "Dimensions
ITKPP1LA = "
ITKPP1LG = "
ITKPP1LVA = "
ITKPP1LVM = "
ITKPP1LVT = "
ITPERIODEN = "
ITKPP1LDEP = "
EXCEPTIONS
DIMENSION_NOT_DEFINED = 1 ERROR_IN_FORM = 2 FORM_NOT_DEFINED = 3 BILDTYP_WRONG = 4 NO_PERIODSCREEN_POSSIBLE = 5
IMPORTING Parameters details for K_PLAN_SCREEN_STRUCTURE_GET
ITKES1 -
Data type: TKES1Optional: No
Call by Reference: No ( called with pass by value option)
IBILDTYP -
Data type: KPP2D-BILDTYPOptional: No
Call by Reference: No ( called with pass by value option)
IOUTPUTLEN_TIME -
Data type: KPP0DD-OUTPUTLENOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NOBUFFORMS -
Data type: KPP0S-NOBUFFORMSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_PLAN_SCREEN_STRUCTURE_GET
ETKES1 -
Data type: TKES1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_PLAN_SCREEN_STRUCTURE_GET
ITKPP0DD -
Data type: KPP0DDOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LF -
Data type: KPP1LFOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP0SM -
Data type: KPP0SMOptional: Yes
Call by Reference: No ( called with pass by value option)
ITKPP0D - Dimensions
Data type: KPP0DOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LA -
Data type: KPP1LAOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LG -
Data type: KPP1LGOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LVA -
Data type: KPP1LVAOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LVM -
Data type: KPP1LVMOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LVT -
Data type: KPP1LVTOptional: No
Call by Reference: No ( called with pass by value option)
ITPERIODEN -
Data type: KPP0AOptional: No
Call by Reference: No ( called with pass by value option)
ITKPP1LDEP -
Data type: KPP1LDEPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DIMENSION_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_FORM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORM_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BILDTYP_WRONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PERIODSCREEN_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_PLAN_SCREEN_STRUCTURE_GET 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_etkes1 | TYPE TKES1, " | |||
lv_itkes1 | TYPE TKES1, " | |||
lt_itkpp0dd | TYPE STANDARD TABLE OF KPP0DD, " | |||
lv_dimension_not_defined | TYPE KPP0DD, " | |||
lt_itkpp1lf | TYPE STANDARD TABLE OF KPP1LF, " | |||
lt_itkpp0sm | TYPE STANDARD TABLE OF KPP0SM, " | |||
lt_itkpp0d | TYPE STANDARD TABLE OF KPP0D, " | |||
lv_ibildtyp | TYPE KPP2D-BILDTYP, " | |||
lv_error_in_form | TYPE KPP2D, " | |||
lt_itkpp1la | TYPE STANDARD TABLE OF KPP1LA, " | |||
lv_ioutputlen_time | TYPE KPP0DD-OUTPUTLEN, " 0 | |||
lv_form_not_defined | TYPE KPP0DD, " | |||
lt_itkpp1lg | TYPE STANDARD TABLE OF KPP1LG, " | |||
lv_i_nobufforms | TYPE KPP0S-NOBUFFORMS, " SPACE | |||
lv_bildtyp_wrong | TYPE KPP0S, " | |||
lt_itkpp1lva | TYPE STANDARD TABLE OF KPP1LVA, " | |||
lv_no_periodscreen_possible | TYPE KPP1LVA, " | |||
lt_itkpp1lvm | TYPE STANDARD TABLE OF KPP1LVM, " | |||
lt_itkpp1lvt | TYPE STANDARD TABLE OF KPP1LVT, " | |||
lt_itperioden | TYPE STANDARD TABLE OF KPP0A, " | |||
lt_itkpp1ldep | TYPE STANDARD TABLE OF KPP1LDEP. " |
  CALL FUNCTION 'K_PLAN_SCREEN_STRUCTURE_GET' " |
EXPORTING | ||
ITKES1 | = lv_itkes1 | |
IBILDTYP | = lv_ibildtyp | |
IOUTPUTLEN_TIME | = lv_ioutputlen_time | |
I_NOBUFFORMS | = lv_i_nobufforms | |
IMPORTING | ||
ETKES1 | = lv_etkes1 | |
TABLES | ||
ITKPP0DD | = lt_itkpp0dd | |
ITKPP1LF | = lt_itkpp1lf | |
ITKPP0SM | = lt_itkpp0sm | |
ITKPP0D | = lt_itkpp0d | |
ITKPP1LA | = lt_itkpp1la | |
ITKPP1LG | = lt_itkpp1lg | |
ITKPP1LVA | = lt_itkpp1lta | |
ITKPP1LVM | = lt_itkpp1ltm | |
ITKPP1LVT | = lt_itkpp1ltt | |
ITPERIODEN | = lt_itperioden | |
ITKPP1LDEP | = lt_itkpp1ldep | |
EXCEPTIONS | ||
DIMENSION_NOT_DEFINED = 1 | ||
ERROR_IN_FORM = 2 | ||
FORM_NOT_DEFINED = 3 | ||
BILDTYP_WRONG = 4 | ||
NO_PERIODSCREEN_POSSIBLE = 5 | ||
. " K_PLAN_SCREEN_STRUCTURE_GET |
ABAP code using 7.40 inline data declarations to call FM K_PLAN_SCREEN_STRUCTURE_GET
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 BILDTYP FROM KPP2D INTO @DATA(ld_ibildtyp). | ||||
"SELECT single OUTPUTLEN FROM KPP0DD INTO @DATA(ld_ioutputlen_time). | ||||
"SELECT single NOBUFFORMS FROM KPP0S INTO @DATA(ld_i_nobufforms). | ||||
DATA(ld_i_nobufforms) | = ' '. | |||
Search for further information about these or an SAP related objects