SAP K_PLAN_SCREEN_CONV_INPUT Function Module for









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

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



Function K_PLAN_SCREEN_CONV_INPUT 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_CONV_INPUT'"
EXPORTING
I_DATATYPE = "
* I_SCALE = 0 "
* I_DECAN_QUAN = 0 "
I_VALUE = "
* I_DECIMAL_SEPARATOR = ' ' "
I_INTTYPE = "
* I_RATIO = 'K' "
* I_CONVEXIT = ' ' "
I_LENG = "Length (Number of Characters)
I_INTLEN = "
I_OUTPUTLEN = "
* I_DB_DECIM = 0 "
* I_SCR_DECIM = 0 "

IMPORTING
E_VALUE = "
E_FLOAT_EX = "

EXCEPTIONS
CONVERSION_FAILED = 1 WRONG_INPUT_IN_NUMBER_FIELD = 2
.



IMPORTING Parameters details for K_PLAN_SCREEN_CONV_INPUT

I_DATATYPE -

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

I_SCALE -

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

I_DECAN_QUAN -

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

I_VALUE -

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

I_DECIMAL_SEPARATOR -

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

I_INTTYPE -

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

I_RATIO -

Data type: KPP1L-RATIO
Default: 'K'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONVEXIT -

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

I_LENG - Length (Number of Characters)

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

I_INTLEN -

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

I_OUTPUTLEN -

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

I_DB_DECIM -

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

I_SCR_DECIM -

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

EXPORTING Parameters details for K_PLAN_SCREEN_CONV_INPUT

E_VALUE -

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

E_FLOAT_EX -

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

EXCEPTIONS details

CONVERSION_FAILED -

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

WRONG_INPUT_IN_NUMBER_FIELD -

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

Copy and paste ABAP code example for K_PLAN_SCREEN_CONV_INPUT 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_value  TYPE KPP1L-VALUE, "   
lv_i_datatype  TYPE KPP1L-DATATYPE, "   
lv_conversion_failed  TYPE KPP1L, "   
lv_i_scale  TYPE KPP1L-SCALE, "   0
lv_i_decan_quan  TYPE KPP1L-DECAN_QUAN, "   0
lv_i_value  TYPE KPP1L-VALUE, "   
lv_i_decimal_separator  TYPE KPP1L, "   SPACE
lv_i_inttype  TYPE KPP1L-INTTYPE, "   
lv_e_float_ex  TYPE F, "   
lv_wrong_input_in_number_field  TYPE F, "   
lv_i_ratio  TYPE KPP1L-RATIO, "   'K'
lv_i_convexit  TYPE KPP1L-CONVEXIT, "   SPACE
lv_i_leng  TYPE KPP1L-LENG, "   
lv_i_intlen  TYPE KPP1L-INTLEN, "   
lv_i_outputlen  TYPE KPP1L-OUTPUTLEN, "   
lv_i_db_decim  TYPE KPP1L-DB_DECIM, "   0
lv_i_scr_decim  TYPE KPP1L-SCR_DECIM. "   0

  CALL FUNCTION 'K_PLAN_SCREEN_CONV_INPUT'  "
    EXPORTING
         I_DATATYPE = lv_i_datatype
         I_SCALE = lv_i_scale
         I_DECAN_QUAN = lv_i_decan_quan
         I_VALUE = lv_i_value
         I_DECIMAL_SEPARATOR = lv_i_decimal_separator
         I_INTTYPE = lv_i_inttype
         I_RATIO = lv_i_ratio
         I_CONVEXIT = lv_i_convexit
         I_LENG = lv_i_leng
         I_INTLEN = lv_i_intlen
         I_OUTPUTLEN = lv_i_outputlen
         I_DB_DECIM = lv_i_db_decim
         I_SCR_DECIM = lv_i_scr_decim
    IMPORTING
         E_VALUE = lv_e_value
         E_FLOAT_EX = lv_e_float_ex
    EXCEPTIONS
        CONVERSION_FAILED = 1
        WRONG_INPUT_IN_NUMBER_FIELD = 2
. " K_PLAN_SCREEN_CONV_INPUT




ABAP code using 7.40 inline data declarations to call FM K_PLAN_SCREEN_CONV_INPUT

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 VALUE FROM KPP1L INTO @DATA(ld_e_value).
 
"SELECT single DATATYPE FROM KPP1L INTO @DATA(ld_i_datatype).
 
 
"SELECT single SCALE FROM KPP1L INTO @DATA(ld_i_scale).
 
"SELECT single DECAN_QUAN FROM KPP1L INTO @DATA(ld_i_decan_quan).
 
"SELECT single VALUE FROM KPP1L INTO @DATA(ld_i_value).
 
DATA(ld_i_decimal_separator) = ' '.
 
"SELECT single INTTYPE FROM KPP1L INTO @DATA(ld_i_inttype).
 
 
 
"SELECT single RATIO FROM KPP1L INTO @DATA(ld_i_ratio).
DATA(ld_i_ratio) = 'K'.
 
"SELECT single CONVEXIT FROM KPP1L INTO @DATA(ld_i_convexit).
DATA(ld_i_convexit) = ' '.
 
"SELECT single LENG FROM KPP1L INTO @DATA(ld_i_leng).
 
"SELECT single INTLEN FROM KPP1L INTO @DATA(ld_i_intlen).
 
"SELECT single OUTPUTLEN FROM KPP1L INTO @DATA(ld_i_outputlen).
 
"SELECT single DB_DECIM FROM KPP1L INTO @DATA(ld_i_db_decim).
 
"SELECT single SCR_DECIM FROM KPP1L INTO @DATA(ld_i_scr_decim).
 


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!