SAP K_PLAN_SCREEN_SHOW Function Module for









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

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



Function K_PLAN_SCREEN_SHOW 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_SHOW'"
EXPORTING
I_TKES1 = "
I_MESG = "
I_BILDTYP = "
* I_ALV_ON = "

IMPORTING
E_EXIT_CODE = "
E_OK_CODE = "
E_MESG = "

TABLES
ITKPP1L = "
ITKPP1LG = "
* ITKPP1LC = "
* ITKPP1LR = "

EXCEPTIONS
MODUS_WRONG = 1 BILDTYP_WRONG = 2
.



IMPORTING Parameters details for K_PLAN_SCREEN_SHOW

I_TKES1 -

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

I_MESG -

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

I_BILDTYP -

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

I_ALV_ON -

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

EXPORTING Parameters details for K_PLAN_SCREEN_SHOW

E_EXIT_CODE -

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

E_OK_CODE -

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

E_MESG -

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

TABLES Parameters details for K_PLAN_SCREEN_SHOW

ITKPP1L -

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

ITKPP1LG -

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

ITKPP1LC -

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

ITKPP1LR -

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

EXCEPTIONS details

MODUS_WRONG -

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)

Copy and paste ABAP code example for K_PLAN_SCREEN_SHOW 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_itkpp1l  TYPE STANDARD TABLE OF KPP1L, "   
lv_i_tkes1  TYPE TKES1, "   
lv_e_exit_code  TYPE KPP0D-DOBLI, "   
lv_modus_wrong  TYPE KPP0D, "   
lv_i_mesg  TYPE MESG, "   
lt_itkpp1lg  TYPE STANDARD TABLE OF KPP1LG, "   
lv_e_ok_code  TYPE RSEU1-FUNC_1, "   
lv_bildtyp_wrong  TYPE RSEU1, "   
lv_e_mesg  TYPE MESG, "   
lt_itkpp1lc  TYPE STANDARD TABLE OF KPP1LC, "   
lv_i_bildtyp  TYPE KPP2D-BILDTYP, "   
lt_itkpp1lr  TYPE STANDARD TABLE OF KPP1LR, "   
lv_i_alv_on  TYPE CHAR1. "   

  CALL FUNCTION 'K_PLAN_SCREEN_SHOW'  "
    EXPORTING
         I_TKES1 = lv_i_tkes1
         I_MESG = lv_i_mesg
         I_BILDTYP = lv_i_bildtyp
         I_ALV_ON = lv_i_alv_on
    IMPORTING
         E_EXIT_CODE = lv_e_exit_code
         E_OK_CODE = lv_e_ok_code
         E_MESG = lv_e_mesg
    TABLES
         ITKPP1L = lt_itkpp1l
         ITKPP1LG = lt_itkpp1lg
         ITKPP1LC = lt_itkpp1lc
         ITKPP1LR = lt_itkpp1lr
    EXCEPTIONS
        MODUS_WRONG = 1
        BILDTYP_WRONG = 2
. " K_PLAN_SCREEN_SHOW




ABAP code using 7.40 inline data declarations to call FM K_PLAN_SCREEN_SHOW

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 DOBLI FROM KPP0D INTO @DATA(ld_e_exit_code).
 
 
 
 
"SELECT single FUNC_1 FROM RSEU1 INTO @DATA(ld_e_ok_code).
 
 
 
 
"SELECT single BILDTYP FROM KPP2D INTO @DATA(ld_i_bildtyp).
 
 
 


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!