SAP Function Modules

LXE_PARAM_KTP_SELECT SAP Function module







LXE_PARAM_KTP_SELECT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name LXE_PARAM_KTP_SELECT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: LXE_PARAM
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM LXE_PARAM_KTP_SELECT - LXE PARAM KTP SELECT





CALL FUNCTION 'LXE_PARAM_KTP_SELECT' "
* EXPORTING
*   titel = ''                  " c
*   new = ''                    " char1
*   start_x = ''                " i
*   start_y = ''                " i
*   end_x = ''                  " i
*   end_y = ''                  " i
*   sorted_by = ''              " char1
  IMPORTING
    id_num =                    " lxenumc5
    text =                      " lxe0060lin
    ex_param_ktp =              " lxe_param_ktp
  EXCEPTIONS
    NO_SELECTION = 1            "
    DB_PROBLEM = 2              "
    .  "  LXE_PARAM_KTP_SELECT

ABAP code example for Function Module LXE_PARAM_KTP_SELECT





The ABAP code below is a full code listing to execute function module LXE_PARAM_KTP_SELECT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_id_num  TYPE LXENUMC5 ,
ld_text  TYPE LXE0060LIN ,
ld_ex_param_ktp  TYPE LXE_PARAM_KTP .

DATA(ld_titel) = 'Check type of data required'.
DATA(ld_new) = 'Check type of data required'.
DATA(ld_start_x) = 'Check type of data required'.
DATA(ld_start_y) = 'Check type of data required'.
DATA(ld_end_x) = 'Check type of data required'.
DATA(ld_end_y) = 'Check type of data required'.
DATA(ld_sorted_by) = 'Check type of data required'. . CALL FUNCTION 'LXE_PARAM_KTP_SELECT' * EXPORTING * titel = ld_titel * new = ld_new * start_x = ld_start_x * start_y = ld_start_y * end_x = ld_end_x * end_y = ld_end_y * sorted_by = ld_sorted_by IMPORTING id_num = ld_id_num text = ld_text ex_param_ktp = ld_ex_param_ktp EXCEPTIONS NO_SELECTION = 1 DB_PROBLEM = 2 . " LXE_PARAM_KTP_SELECT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_id_num  TYPE LXENUMC5 ,
ld_titel  TYPE C ,
ld_text  TYPE LXE0060LIN ,
ld_new  TYPE CHAR1 ,
ld_ex_param_ktp  TYPE LXE_PARAM_KTP ,
ld_start_x  TYPE I ,
ld_start_y  TYPE I ,
ld_end_x  TYPE I ,
ld_end_y  TYPE I ,
ld_sorted_by  TYPE CHAR1 .

ld_titel = 'Check type of data required'.
ld_new = 'Check type of data required'.
ld_start_x = 'Check type of data required'.
ld_start_y = 'Check type of data required'.
ld_end_x = 'Check type of data required'.
ld_end_y = 'Check type of data required'.
ld_sorted_by = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name LXE_PARAM_KTP_SELECT or its description.