SAP Function Modules

QPSD_FEATURE_VERSION_READ SAP Function module







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

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


Pattern for FM QPSD_FEATURE_VERSION_READ - QPSD FEATURE VERSION READ





CALL FUNCTION 'QPSD_FEATURE_VERSION_READ' "
  EXPORTING
*   kz_aufloesung = ' '         " qkzstern      Ind.: Methods should also be read
*   kz_nichtfrei = ' '          " qm00-qkz      Ind: characteristic can also be read with status <> F
    merkmal =                   " qpmk-mkmnr    Characteristic to be read
*   sprache = SY-LANGU          " qpmt-sprache  Language selection
*   version = ' '               " qpmk-version  characteristic version to be read
    werk =                      " qpmk-werks    Plant to be read
*   i_qmastmod =                " qmastmod
*   i_no_catalogs =             " qm00-qkz
  IMPORTING
    qpmk_exp =                  " qpmk          selected characteristic data record
    qpmt_exp =                  " qpmt          selected text data record for characteristic
    qpmz_exp =                  " qpmz          Method entry for selected characteristic
    qpmz_ktext_kat1 =           " qpgt-kurztext  Short text of allocated catalog entry 1
    qpmz_ktext_kat2 =           " qpgt-kurztext  Short text of allocated catalog entry 2
    qpmz_ktext_kat3 =           " qpgt-kurztext  Short text of allocated catalog entry 3
    qpmz_ktext_kat4 =           " qpgt-kurztext  Short text of allocated catalog entry 4
    qpmz_ktext_kat5 =           " qpgt-kurztext  Short text of allocated catalog entry 5
    qpmz_ktext_meth =           " qmtt-kurztext  Short text of allocated inspection method
    qpmk_ktext_code9u =         " qpct-kurztext  Short text of the lower error codes
    qpmk_ktext_code9o =         " qpct-kurztext  Short text of the upper error codes
    qpmk_ktext_codeql =         " qpct-kurztext  Short text of the general error codes
    e_no_of_methods =           " sy-tabix
  EXCEPTIONS
    NO_FEATURE = 1              "               Characteristic is not available
    NO_FREE_VERSION = 2         "               Version not released
    NO_VERSION = 3              "               Version is not available
    NO_AUTHORIZATION = 4        "
    .  "  QPSD_FEATURE_VERSION_READ

ABAP code example for Function Module QPSD_FEATURE_VERSION_READ





The ABAP code below is a full code listing to execute function module QPSD_FEATURE_VERSION_READ 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_qpmk_exp  TYPE QPMK ,
ld_qpmt_exp  TYPE QPMT ,
ld_qpmz_exp  TYPE QPMZ ,
ld_qpmz_ktext_kat1  TYPE QPGT-KURZTEXT ,
ld_qpmz_ktext_kat2  TYPE QPGT-KURZTEXT ,
ld_qpmz_ktext_kat3  TYPE QPGT-KURZTEXT ,
ld_qpmz_ktext_kat4  TYPE QPGT-KURZTEXT ,
ld_qpmz_ktext_kat5  TYPE QPGT-KURZTEXT ,
ld_qpmz_ktext_meth  TYPE QMTT-KURZTEXT ,
ld_qpmk_ktext_code9u  TYPE QPCT-KURZTEXT ,
ld_qpmk_ktext_code9o  TYPE QPCT-KURZTEXT ,
ld_qpmk_ktext_codeql  TYPE QPCT-KURZTEXT ,
ld_e_no_of_methods  TYPE SY-TABIX .

DATA(ld_kz_aufloesung) = 'Check type of data required'.

DATA(ld_kz_nichtfrei) = some text here

SELECT single MKMNR
FROM QPMK
INTO @DATA(ld_merkmal).


SELECT single SPRACHE
FROM QPMT
INTO @DATA(ld_sprache).


SELECT single VERSION
FROM QPMK
INTO @DATA(ld_version).


SELECT single WERKS
FROM QPMK
INTO @DATA(ld_werk).

DATA(ld_i_qmastmod) = 'Check type of data required'.

DATA(ld_i_no_catalogs) = some text here . CALL FUNCTION 'QPSD_FEATURE_VERSION_READ' EXPORTING * kz_aufloesung = ld_kz_aufloesung * kz_nichtfrei = ld_kz_nichtfrei merkmal = ld_merkmal * sprache = ld_sprache * version = ld_version werk = ld_werk * i_qmastmod = ld_i_qmastmod * i_no_catalogs = ld_i_no_catalogs IMPORTING qpmk_exp = ld_qpmk_exp qpmt_exp = ld_qpmt_exp qpmz_exp = ld_qpmz_exp qpmz_ktext_kat1 = ld_qpmz_ktext_kat1 qpmz_ktext_kat2 = ld_qpmz_ktext_kat2 qpmz_ktext_kat3 = ld_qpmz_ktext_kat3 qpmz_ktext_kat4 = ld_qpmz_ktext_kat4 qpmz_ktext_kat5 = ld_qpmz_ktext_kat5 qpmz_ktext_meth = ld_qpmz_ktext_meth qpmk_ktext_code9u = ld_qpmk_ktext_code9u qpmk_ktext_code9o = ld_qpmk_ktext_code9o qpmk_ktext_codeql = ld_qpmk_ktext_codeql e_no_of_methods = ld_e_no_of_methods EXCEPTIONS NO_FEATURE = 1 NO_FREE_VERSION = 2 NO_VERSION = 3 NO_AUTHORIZATION = 4 . " QPSD_FEATURE_VERSION_READ
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 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_qpmk_exp  TYPE QPMK ,
ld_kz_aufloesung  TYPE QKZSTERN ,
ld_qpmt_exp  TYPE QPMT ,
ld_kz_nichtfrei  TYPE QM00-QKZ ,
ld_merkmal  TYPE QPMK-MKMNR ,
ld_qpmz_exp  TYPE QPMZ ,
ld_sprache  TYPE QPMT-SPRACHE ,
ld_qpmz_ktext_kat1  TYPE QPGT-KURZTEXT ,
ld_qpmz_ktext_kat2  TYPE QPGT-KURZTEXT ,
ld_version  TYPE QPMK-VERSION ,
ld_qpmz_ktext_kat3  TYPE QPGT-KURZTEXT ,
ld_werk  TYPE QPMK-WERKS ,
ld_qpmz_ktext_kat4  TYPE QPGT-KURZTEXT ,
ld_i_qmastmod  TYPE QMASTMOD ,
ld_qpmz_ktext_kat5  TYPE QPGT-KURZTEXT ,
ld_i_no_catalogs  TYPE QM00-QKZ ,
ld_qpmz_ktext_meth  TYPE QMTT-KURZTEXT ,
ld_qpmk_ktext_code9u  TYPE QPCT-KURZTEXT ,
ld_qpmk_ktext_code9o  TYPE QPCT-KURZTEXT ,
ld_qpmk_ktext_codeql  TYPE QPCT-KURZTEXT ,
ld_e_no_of_methods  TYPE SY-TABIX .

ld_kz_aufloesung = 'Check type of data required'.

ld_kz_nichtfrei = some text here

SELECT single MKMNR
FROM QPMK
INTO ld_merkmal.


SELECT single SPRACHE
FROM QPMT
INTO ld_sprache.


SELECT single VERSION
FROM QPMK
INTO ld_version.


SELECT single WERKS
FROM QPMK
INTO ld_werk.

ld_i_qmastmod = 'Check type of data required'.

ld_i_no_catalogs = some text here

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