SAP QPSD_FEATURE_VERSION_READ Function Module for NOTRANSL: Lesen einer Merkmalsversion









QPSD_FEATURE_VERSION_READ is a standard qpsd feature version read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen einer Merkmalsversion processing and below is the pattern details for this FM, 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 qpsd feature version read FM, simply by entering the name QPSD_FEATURE_VERSION_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function QPSD_FEATURE_VERSION_READ 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 'QPSD_FEATURE_VERSION_READ'"NOTRANSL: Lesen einer Merkmalsversion
EXPORTING
* KZ_AUFLOESUNG = ' ' "Ind.: Methods should also be read
* KZ_NICHTFREI = ' ' "Ind: characteristic can also be read with status <> F
MERKMAL = "Characteristic to be read
* SPRACHE = SY-LANGU "Language selection
* VERSION = ' ' "characteristic version to be read
WERK = "Plant to be read
* I_QMASTMOD = "
* I_NO_CATALOGS = "

IMPORTING
QPMK_EXP = "selected characteristic data record
QPMK_KTEXT_CODE9U = "Short text of the lower error codes
QPMK_KTEXT_CODE9O = "Short text of the upper error codes
QPMK_KTEXT_CODEQL = "Short text of the general error codes
E_NO_OF_METHODS = "
QPMT_EXP = "selected text data record for characteristic
QPMZ_EXP = "Method entry for selected characteristic
QPMZ_KTEXT_KAT1 = "Short text of allocated catalog entry 1
QPMZ_KTEXT_KAT2 = "Short text of allocated catalog entry 2
QPMZ_KTEXT_KAT3 = "Short text of allocated catalog entry 3
QPMZ_KTEXT_KAT4 = "Short text of allocated catalog entry 4
QPMZ_KTEXT_KAT5 = "Short text of allocated catalog entry 5
QPMZ_KTEXT_METH = "Short text of allocated inspection method

EXCEPTIONS
NO_FEATURE = 1 NO_FREE_VERSION = 2 NO_VERSION = 3 NO_AUTHORIZATION = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLQPSD_001 Customer Exit While Reading a Master Inspection Characteristic Version

IMPORTING Parameters details for QPSD_FEATURE_VERSION_READ

KZ_AUFLOESUNG - Ind.: Methods should also be read

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

KZ_NICHTFREI - Ind: characteristic can also be read with status <> F

Data type: QM00-QKZ
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MERKMAL - Characteristic to be read

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

SPRACHE - Language selection

Data type: QPMT-SPRACHE
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERSION - characteristic version to be read

Data type: QPMK-VERSION
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

WERK - Plant to be read

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

I_QMASTMOD -

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

I_NO_CATALOGS -

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

EXPORTING Parameters details for QPSD_FEATURE_VERSION_READ

QPMK_EXP - selected characteristic data record

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

QPMK_KTEXT_CODE9U - Short text of the lower error codes

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

QPMK_KTEXT_CODE9O - Short text of the upper error codes

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

QPMK_KTEXT_CODEQL - Short text of the general error codes

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

E_NO_OF_METHODS -

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

QPMT_EXP - selected text data record for characteristic

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

QPMZ_EXP - Method entry for selected characteristic

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

QPMZ_KTEXT_KAT1 - Short text of allocated catalog entry 1

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

QPMZ_KTEXT_KAT2 - Short text of allocated catalog entry 2

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

QPMZ_KTEXT_KAT3 - Short text of allocated catalog entry 3

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

QPMZ_KTEXT_KAT4 - Short text of allocated catalog entry 4

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

QPMZ_KTEXT_KAT5 - Short text of allocated catalog entry 5

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

QPMZ_KTEXT_METH - Short text of allocated inspection method

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

EXCEPTIONS details

NO_FEATURE - Characteristic is not available

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

NO_FREE_VERSION - Version not released

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

NO_VERSION - Version is not available

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

NO_AUTHORIZATION -

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

Copy and paste ABAP code example for QPSD_FEATURE_VERSION_READ 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_qpmk_exp  TYPE QPMK, "   
lv_no_feature  TYPE QPMK, "   
lv_kz_aufloesung  TYPE QKZSTERN, "   ' '
lv_qpmk_ktext_code9u  TYPE QPCT-KURZTEXT, "   
lv_qpmk_ktext_code9o  TYPE QPCT-KURZTEXT, "   
lv_qpmk_ktext_codeql  TYPE QPCT-KURZTEXT, "   
lv_e_no_of_methods  TYPE SY-TABIX, "   
lv_qpmt_exp  TYPE QPMT, "   
lv_kz_nichtfrei  TYPE QM00-QKZ, "   ' '
lv_no_free_version  TYPE QM00, "   
lv_merkmal  TYPE QPMK-MKMNR, "   
lv_qpmz_exp  TYPE QPMZ, "   
lv_no_version  TYPE QPMZ, "   
lv_sprache  TYPE QPMT-SPRACHE, "   SY-LANGU
lv_qpmz_ktext_kat1  TYPE QPGT-KURZTEXT, "   
lv_no_authorization  TYPE QPGT, "   
lv_version  TYPE QPMK-VERSION, "   ' '
lv_qpmz_ktext_kat2  TYPE QPGT-KURZTEXT, "   
lv_werk  TYPE QPMK-WERKS, "   
lv_qpmz_ktext_kat3  TYPE QPGT-KURZTEXT, "   
lv_i_qmastmod  TYPE QMASTMOD, "   
lv_qpmz_ktext_kat4  TYPE QPGT-KURZTEXT, "   
lv_i_no_catalogs  TYPE QM00-QKZ, "   
lv_qpmz_ktext_kat5  TYPE QPGT-KURZTEXT, "   
lv_qpmz_ktext_meth  TYPE QMTT-KURZTEXT. "   

  CALL FUNCTION 'QPSD_FEATURE_VERSION_READ'  "NOTRANSL: Lesen einer Merkmalsversion
    EXPORTING
         KZ_AUFLOESUNG = lv_kz_aufloesung
         KZ_NICHTFREI = lv_kz_nichtfrei
         MERKMAL = lv_merkmal
         SPRACHE = lv_sprache
         VERSION = lv_version
         WERK = lv_werk
         I_QMASTMOD = lv_i_qmastmod
         I_NO_CATALOGS = lv_i_no_catalogs
    IMPORTING
         QPMK_EXP = lv_qpmk_exp
         QPMK_KTEXT_CODE9U = lv_qpmk_ktext_code9u
         QPMK_KTEXT_CODE9O = lv_qpmk_ktext_code9o
         QPMK_KTEXT_CODEQL = lv_qpmk_ktext_codeql
         E_NO_OF_METHODS = lv_e_no_of_methods
         QPMT_EXP = lv_qpmt_exp
         QPMZ_EXP = lv_qpmz_exp
         QPMZ_KTEXT_KAT1 = lv_qpmz_ktext_kat1
         QPMZ_KTEXT_KAT2 = lv_qpmz_ktext_kat2
         QPMZ_KTEXT_KAT3 = lv_qpmz_ktext_kat3
         QPMZ_KTEXT_KAT4 = lv_qpmz_ktext_kat4
         QPMZ_KTEXT_KAT5 = lv_qpmz_ktext_kat5
         QPMZ_KTEXT_METH = lv_qpmz_ktext_meth
    EXCEPTIONS
        NO_FEATURE = 1
        NO_FREE_VERSION = 2
        NO_VERSION = 3
        NO_AUTHORIZATION = 4
. " QPSD_FEATURE_VERSION_READ




ABAP code using 7.40 inline data declarations to call FM QPSD_FEATURE_VERSION_READ

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.

 
 
DATA(ld_kz_aufloesung) = ' '.
 
"SELECT single KURZTEXT FROM QPCT INTO @DATA(ld_qpmk_ktext_code9u).
 
"SELECT single KURZTEXT FROM QPCT INTO @DATA(ld_qpmk_ktext_code9o).
 
"SELECT single KURZTEXT FROM QPCT INTO @DATA(ld_qpmk_ktext_codeql).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_e_no_of_methods).
 
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_kz_nichtfrei).
DATA(ld_kz_nichtfrei) = ' '.
 
 
"SELECT single MKMNR FROM QPMK INTO @DATA(ld_merkmal).
 
 
 
"SELECT single SPRACHE FROM QPMT INTO @DATA(ld_sprache).
DATA(ld_sprache) = SY-LANGU.
 
"SELECT single KURZTEXT FROM QPGT INTO @DATA(ld_qpmz_ktext_kat1).
 
 
"SELECT single VERSION FROM QPMK INTO @DATA(ld_version).
DATA(ld_version) = ' '.
 
"SELECT single KURZTEXT FROM QPGT INTO @DATA(ld_qpmz_ktext_kat2).
 
"SELECT single WERKS FROM QPMK INTO @DATA(ld_werk).
 
"SELECT single KURZTEXT FROM QPGT INTO @DATA(ld_qpmz_ktext_kat3).
 
 
"SELECT single KURZTEXT FROM QPGT INTO @DATA(ld_qpmz_ktext_kat4).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_no_catalogs).
 
"SELECT single KURZTEXT FROM QPGT INTO @DATA(ld_qpmz_ktext_kat5).
 
"SELECT single KURZTEXT FROM QMTT INTO @DATA(ld_qpmz_ktext_meth).
 


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!