SAP Function Modules

CLEX_CALL_QPK1_SL_SET_PICKUP SAP Function module







CLEX_CALL_QPK1_SL_SET_PICKUP 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 CLEX_CALL_QPK1_SL_SET_PICKUP into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CLEX_CALL_QPK1_SL_SET_PICKUP - CLEX CALL QPK1 SL SET PICKUP





CALL FUNCTION 'CLEX_CALL_QPK1_SL_SET_PICKUP' "
  EXPORTING
    im_katalogart =             " qpac-katalogart
    im_werks =                  " cabn-werks
*   im_auswahlmge = '*'         " char8
*   im_sprache = SY-LANGU       " sy-langu
*   im_winx1 = 10               " sy-winx1
*   im_winx2 = 73               " sy-winx2
*   im_winy1 = 5                " sy-winy1
*   im_winy2 = 30               " sy-winy2
*   im_display_mode =           " char1
*   im_return_if_one = 'X'      " char1
*   im_return_if_many =         " char1
*   im_no_usageindication =     " char1
*   im_released_only = 'X'      " char1
  IMPORTING
    ex_werks =                  " cabn-werks
    ex_katalogart =             " cabn-katalogart
    ex_auswahlmge =             " cabn-auswahlmge
    ex_ksp01 =                  " spras
    ex_ktx01 =                  " char40
    ex_ltextv =                 " char1
    ex_ersteller =              " char12
    ex_e_datum =                " sy-datum
    ex_aenderer =               " char12
    ex_a_datum =                " sy-datum
    ex_verwendung =             " char1
    ex_status =                 " char1
  EXCEPTIONS
    NO_MATCH_IN_RANGE = 1       "
    NO_USER_SELECTION = 2       "
    OBJECT_LOCKED = 3           "
    LOCK_ERROR = 4              "
    OBJECT_MISSING = 5          "
    .  "  CLEX_CALL_QPK1_SL_SET_PICKUP

ABAP code example for Function Module CLEX_CALL_QPK1_SL_SET_PICKUP





The ABAP code below is a full code listing to execute function module CLEX_CALL_QPK1_SL_SET_PICKUP 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_ex_werks  TYPE CABN-WERKS ,
ld_ex_katalogart  TYPE CABN-KATALOGART ,
ld_ex_auswahlmge  TYPE CABN-AUSWAHLMGE ,
ld_ex_ksp01  TYPE SPRAS ,
ld_ex_ktx01  TYPE CHAR40 ,
ld_ex_ltextv  TYPE CHAR1 ,
ld_ex_ersteller  TYPE CHAR12 ,
ld_ex_e_datum  TYPE SY-DATUM ,
ld_ex_aenderer  TYPE CHAR12 ,
ld_ex_a_datum  TYPE SY-DATUM ,
ld_ex_verwendung  TYPE CHAR1 ,
ld_ex_status  TYPE CHAR1 .


SELECT single KATALOGART
FROM QPAC
INTO @DATA(ld_im_katalogart).


SELECT single WERKS
FROM CABN
INTO @DATA(ld_im_werks).

DATA(ld_im_auswahlmge) = 'Check type of data required'.
DATA(ld_im_sprache) = 'Check type of data required'.
DATA(ld_im_winx1) = '123 '.
DATA(ld_im_winx2) = '123 '.
DATA(ld_im_winy1) = '123 '.
DATA(ld_im_winy2) = '123 '.
DATA(ld_im_display_mode) = 'Check type of data required'.
DATA(ld_im_return_if_one) = 'Check type of data required'.
DATA(ld_im_return_if_many) = 'Check type of data required'.
DATA(ld_im_no_usageindication) = 'Check type of data required'.
DATA(ld_im_released_only) = 'Check type of data required'. . CALL FUNCTION 'CLEX_CALL_QPK1_SL_SET_PICKUP' EXPORTING im_katalogart = ld_im_katalogart im_werks = ld_im_werks * im_auswahlmge = ld_im_auswahlmge * im_sprache = ld_im_sprache * im_winx1 = ld_im_winx1 * im_winx2 = ld_im_winx2 * im_winy1 = ld_im_winy1 * im_winy2 = ld_im_winy2 * im_display_mode = ld_im_display_mode * im_return_if_one = ld_im_return_if_one * im_return_if_many = ld_im_return_if_many * im_no_usageindication = ld_im_no_usageindication * im_released_only = ld_im_released_only IMPORTING ex_werks = ld_ex_werks ex_katalogart = ld_ex_katalogart ex_auswahlmge = ld_ex_auswahlmge ex_ksp01 = ld_ex_ksp01 ex_ktx01 = ld_ex_ktx01 ex_ltextv = ld_ex_ltextv ex_ersteller = ld_ex_ersteller ex_e_datum = ld_ex_e_datum ex_aenderer = ld_ex_aenderer ex_a_datum = ld_ex_a_datum ex_verwendung = ld_ex_verwendung ex_status = ld_ex_status EXCEPTIONS NO_MATCH_IN_RANGE = 1 NO_USER_SELECTION = 2 OBJECT_LOCKED = 3 LOCK_ERROR = 4 OBJECT_MISSING = 5 . " CLEX_CALL_QPK1_SL_SET_PICKUP
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_ex_werks  TYPE CABN-WERKS ,
ld_im_katalogart  TYPE QPAC-KATALOGART ,
ld_ex_katalogart  TYPE CABN-KATALOGART ,
ld_im_werks  TYPE CABN-WERKS ,
ld_im_auswahlmge  TYPE CHAR8 ,
ld_ex_auswahlmge  TYPE CABN-AUSWAHLMGE ,
ld_ex_ksp01  TYPE SPRAS ,
ld_im_sprache  TYPE SY-LANGU ,
ld_ex_ktx01  TYPE CHAR40 ,
ld_im_winx1  TYPE SY-WINX1 ,
ld_ex_ltextv  TYPE CHAR1 ,
ld_im_winx2  TYPE SY-WINX2 ,
ld_im_winy1  TYPE SY-WINY1 ,
ld_ex_ersteller  TYPE CHAR12 ,
ld_im_winy2  TYPE SY-WINY2 ,
ld_ex_e_datum  TYPE SY-DATUM ,
ld_im_display_mode  TYPE CHAR1 ,
ld_ex_aenderer  TYPE CHAR12 ,
ld_im_return_if_one  TYPE CHAR1 ,
ld_ex_a_datum  TYPE SY-DATUM ,
ld_im_return_if_many  TYPE CHAR1 ,
ld_ex_verwendung  TYPE CHAR1 ,
ld_im_no_usageindication  TYPE CHAR1 ,
ld_ex_status  TYPE CHAR1 ,
ld_im_released_only  TYPE CHAR1 .


SELECT single KATALOGART
FROM QPAC
INTO ld_im_katalogart.


SELECT single WERKS
FROM CABN
INTO ld_im_werks.

ld_im_auswahlmge = 'Check type of data required'.
ld_im_sprache = 'Check type of data required'.
ld_im_winx1 = '123 '.
ld_im_winx2 = '123 '.
ld_im_winy1 = '123 '.
ld_im_winy2 = '123 '.
ld_im_display_mode = 'Check type of data required'.
ld_im_return_if_one = 'Check type of data required'.
ld_im_return_if_many = 'Check type of data required'.
ld_im_no_usageindication = 'Check type of data required'.
ld_im_released_only = '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 CLEX_CALL_QPK1_SL_SET_PICKUP or its description.