SAP QPSD_FEATURE_METH_VERSION_READ Function Module for NOTRANSL: Lesen der Katalogeinträge zu einer Methodenversion im Merkmal
QPSD_FEATURE_METH_VERSION_READ is a standard qpsd feature meth 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 der Katalogeinträge zu einer Methodenversion im Merkmal 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 meth version read FM, simply by entering the name QPSD_FEATURE_METH_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_METH_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_METH_VERSION_READ'"NOTRANSL: Lesen der Katalogeinträge zu einer Methodenversion im Merkmal.
EXPORTING
MERKMAL = "Characteristic to be read
* METHODE = "method to be read
* SPRACHE = SY-LANGU "Language selection
VERSIONMK = "Characteristic version to be read
* VERSIONMT = "method version to be read
* WERKMT = "method plant to be read
ZAEHLMK = "code version to be read
* KZ_NICHTFREI = 'X' "
* I_QMASTMOD = "
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
QPMT_EXP = "code version to be read
QPMZ_EXP = "Method and catalog allocation
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 method
EXCEPTIONS
NO_FEATURE = 1 NO_FREE_VERSION = 2 NO_METHOD = 3 NO_MKVERSION = 4 NO_MTVERSION = 5 NO_AUTHORIZATION = 6
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_METH_VERSION_READ
MERKMAL - Characteristic to be read
Data type: QPMK-MKMNROptional: No
Call by Reference: No ( called with pass by value option)
METHODE - method to be read
Data type: QMTB-PMTNROptional: Yes
Call by Reference: No ( called with pass by value option)
SPRACHE - Language selection
Data type: QMTT-SPRACHEDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSIONMK - Characteristic version to be read
Data type: QPMK-VERSIONOptional: No
Call by Reference: No ( called with pass by value option)
VERSIONMT - method version to be read
Data type: QMTB-VERSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
WERKMT - method plant to be read
Data type: QMTB-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
ZAEHLMK - code version to be read
Data type: QPMK-ZAEHLEROptional: No
Call by Reference: No ( called with pass by value option)
KZ_NICHTFREI -
Data type: QM00-QKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_QMASTMOD -
Data type: QMASTMODOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for QPSD_FEATURE_METH_VERSION_READ
QPMK_EXP - selected characteristic data record
Data type: QPMKOptional: No
Call by Reference: No ( called with pass by value option)
QPMK_KTEXT_CODE9U - Short text of the lower error codes
Data type: QPCT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMK_KTEXT_CODE9O - Short text of the upper error codes
Data type: QPCT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMK_KTEXT_CODEQL - Short text of the general error codes
Data type: QPCT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMT_EXP - code version to be read
Data type: QPMTOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_EXP - Method and catalog allocation
Data type: QPMZOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_KTEXT_KAT1 - Short text of allocated catalog entry 1
Data type: QPMT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_KTEXT_KAT2 - Short text of allocated catalog entry 2
Data type: QPMT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_KTEXT_KAT3 - Short text of allocated catalog entry 3
Data type: QPMT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_KTEXT_KAT4 - Short text of allocated catalog entry 4
Data type: QPMT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_KTEXT_KAT5 - Short text of allocated catalog entry 5
Data type: QPMT-KURZTEXTOptional: No
Call by Reference: No ( called with pass by value option)
QPMZ_KTEXT_METH - Short text of method
Data type: QPMT-KURZTEXTOptional: 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 - Characteristic version is not released
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_METHOD - Method is not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MKVERSION - Characteristic version is not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MTVERSION - Method 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: Yes
Copy and paste ABAP code example for QPSD_FEATURE_METH_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_merkmal | TYPE QPMK-MKMNR, " | |||
| lv_qpmk_exp | TYPE QPMK, " | |||
| lv_no_feature | TYPE QPMK, " | |||
| lv_qpmk_ktext_code9u | TYPE QPCT-KURZTEXT, " | |||
| lv_qpmk_ktext_code9o | TYPE QPCT-KURZTEXT, " | |||
| lv_qpmk_ktext_codeql | TYPE QPCT-KURZTEXT, " | |||
| lv_methode | TYPE QMTB-PMTNR, " | |||
| lv_qpmt_exp | TYPE QPMT, " | |||
| lv_no_free_version | TYPE QPMT, " | |||
| lv_sprache | TYPE QMTT-SPRACHE, " SY-LANGU | |||
| lv_qpmz_exp | TYPE QPMZ, " | |||
| lv_no_method | TYPE QPMZ, " | |||
| lv_versionmk | TYPE QPMK-VERSION, " | |||
| lv_no_mkversion | TYPE QPMK, " | |||
| lv_qpmz_ktext_kat1 | TYPE QPMT-KURZTEXT, " | |||
| lv_versionmt | TYPE QMTB-VERSION, " | |||
| lv_no_mtversion | TYPE QMTB, " | |||
| lv_qpmz_ktext_kat2 | TYPE QPMT-KURZTEXT, " | |||
| lv_werkmt | TYPE QMTB-WERKS, " | |||
| lv_qpmz_ktext_kat3 | TYPE QPMT-KURZTEXT, " | |||
| lv_no_authorization | TYPE QPMT, " | |||
| lv_zaehlmk | TYPE QPMK-ZAEHLER, " | |||
| lv_qpmz_ktext_kat4 | TYPE QPMT-KURZTEXT, " | |||
| lv_kz_nichtfrei | TYPE QM00-QKZ, " 'X' | |||
| lv_qpmz_ktext_kat5 | TYPE QPMT-KURZTEXT, " | |||
| lv_i_qmastmod | TYPE QMASTMOD, " | |||
| lv_qpmz_ktext_meth | TYPE QPMT-KURZTEXT. " |
|   CALL FUNCTION 'QPSD_FEATURE_METH_VERSION_READ' "NOTRANSL: Lesen der Katalogeinträge zu einer Methodenversion im Merkmal |
| EXPORTING | ||
| MERKMAL | = lv_merkmal | |
| METHODE | = lv_methode | |
| SPRACHE | = lv_sprache | |
| VERSIONMK | = lv_versionmk | |
| VERSIONMT | = lv_versionmt | |
| WERKMT | = lv_werkmt | |
| ZAEHLMK | = lv_zaehlmk | |
| KZ_NICHTFREI | = lv_kz_nichtfrei | |
| I_QMASTMOD | = lv_i_qmastmod | |
| 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 | |
| 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_METHOD = 3 | ||
| NO_MKVERSION = 4 | ||
| NO_MTVERSION = 5 | ||
| NO_AUTHORIZATION = 6 | ||
| . " QPSD_FEATURE_METH_VERSION_READ | ||
ABAP code using 7.40 inline data declarations to call FM QPSD_FEATURE_METH_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.| "SELECT single MKMNR FROM QPMK INTO @DATA(ld_merkmal). | ||||
| "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 PMTNR FROM QMTB INTO @DATA(ld_methode). | ||||
| "SELECT single SPRACHE FROM QMTT INTO @DATA(ld_sprache). | ||||
| DATA(ld_sprache) | = SY-LANGU. | |||
| "SELECT single VERSION FROM QPMK INTO @DATA(ld_versionmk). | ||||
| "SELECT single KURZTEXT FROM QPMT INTO @DATA(ld_qpmz_ktext_kat1). | ||||
| "SELECT single VERSION FROM QMTB INTO @DATA(ld_versionmt). | ||||
| "SELECT single KURZTEXT FROM QPMT INTO @DATA(ld_qpmz_ktext_kat2). | ||||
| "SELECT single WERKS FROM QMTB INTO @DATA(ld_werkmt). | ||||
| "SELECT single KURZTEXT FROM QPMT INTO @DATA(ld_qpmz_ktext_kat3). | ||||
| "SELECT single ZAEHLER FROM QPMK INTO @DATA(ld_zaehlmk). | ||||
| "SELECT single KURZTEXT FROM QPMT INTO @DATA(ld_qpmz_ktext_kat4). | ||||
| "SELECT single QKZ FROM QM00 INTO @DATA(ld_kz_nichtfrei). | ||||
| DATA(ld_kz_nichtfrei) | = 'X'. | |||
| "SELECT single KURZTEXT FROM QPMT INTO @DATA(ld_qpmz_ktext_kat5). | ||||
| "SELECT single KURZTEXT FROM QPMT INTO @DATA(ld_qpmz_ktext_meth). | ||||
Search for further information about these or an SAP related objects