SAP Function Modules

CNVM_READ_STVKN_BY_KEY SAP Function module







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

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


Pattern for FM CNVM_READ_STVKN_BY_KEY - CNVM READ STVKN BY KEY





CALL FUNCTION 'CNVM_READ_STVKN_BY_KEY' "
  EXPORTING
    i_stlty =                   " pdn_map_item-stlty
    i_stlnr =                   " pdn_map_item-stlnr
    i_stlal =                   " pdn_map_item-stlal
    i_pnguid =                  " pdn_map_item-pnguid
    i_pvguid =                  " pdn_map_item-pvguid
  IMPORTING
    e_stvkn =                   " pdn_map_item-stvkn
    .  "  CNVM_READ_STVKN_BY_KEY

ABAP code example for Function Module CNVM_READ_STVKN_BY_KEY





The ABAP code below is a full code listing to execute function module CNVM_READ_STVKN_BY_KEY 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_e_stvkn  TYPE PDN_MAP_ITEM-STVKN .


SELECT single STLTY
FROM PDN_MAP_ITEM
INTO @DATA(ld_i_stlty).


SELECT single STLNR
FROM PDN_MAP_ITEM
INTO @DATA(ld_i_stlnr).


SELECT single STLAL
FROM PDN_MAP_ITEM
INTO @DATA(ld_i_stlal).


SELECT single PNGUID
FROM PDN_MAP_ITEM
INTO @DATA(ld_i_pnguid).


SELECT single PVGUID
FROM PDN_MAP_ITEM
INTO @DATA(ld_i_pvguid).
. CALL FUNCTION 'CNVM_READ_STVKN_BY_KEY' EXPORTING i_stlty = ld_i_stlty i_stlnr = ld_i_stlnr i_stlal = ld_i_stlal i_pnguid = ld_i_pnguid i_pvguid = ld_i_pvguid IMPORTING e_stvkn = ld_e_stvkn . " CNVM_READ_STVKN_BY_KEY
IF SY-SUBRC EQ 0. "All OK 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_e_stvkn  TYPE PDN_MAP_ITEM-STVKN ,
ld_i_stlty  TYPE PDN_MAP_ITEM-STLTY ,
ld_i_stlnr  TYPE PDN_MAP_ITEM-STLNR ,
ld_i_stlal  TYPE PDN_MAP_ITEM-STLAL ,
ld_i_pnguid  TYPE PDN_MAP_ITEM-PNGUID ,
ld_i_pvguid  TYPE PDN_MAP_ITEM-PVGUID .


SELECT single STLTY
FROM PDN_MAP_ITEM
INTO ld_i_stlty.


SELECT single STLNR
FROM PDN_MAP_ITEM
INTO ld_i_stlnr.


SELECT single STLAL
FROM PDN_MAP_ITEM
INTO ld_i_stlal.


SELECT single PNGUID
FROM PDN_MAP_ITEM
INTO ld_i_pnguid.


SELECT single PVGUID
FROM PDN_MAP_ITEM
INTO ld_i_pvguid.

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 CNVM_READ_STVKN_BY_KEY or its description.