SAP QPSD_METHOD_VERSION_READ Function Module for NOTRANSL: Lesen einer Methodenversion









QPSD_METHOD_VERSION_READ is a standard qpsd method 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 Methodenversion 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 method version read FM, simply by entering the name QPSD_METHOD_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_METHOD_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_METHOD_VERSION_READ'"NOTRANSL: Lesen einer Methodenversion
EXPORTING
* KZ_NICHTFREI = ' ' "ID: method is also read for status <> F
* MANDANT = SY-MANDT "client to be read
METHODE = "
* SPRACHE = SY-LANGU "
* VERSION = ' ' "
WERK = "
* I_QMASTMOD = "

IMPORTING
QMTB_EXP = "method data record read
QMTB_KTEXT_METH = "Short text of read method
QMTT_EXP = "Read text segment of method

EXCEPTIONS
NO_FREE_VERSION = 1 NO_METHOD = 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_METHOD_VERSION_READ

KZ_NICHTFREI - ID: method is also read for status <> F

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

MANDANT - client to be read

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

METHODE -

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

SPRACHE -

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

VERSION -

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

WERK -

Data type: QMTB-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)

EXPORTING Parameters details for QPSD_METHOD_VERSION_READ

QMTB_EXP - method data record read

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

QMTB_KTEXT_METH - Short text of read method

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

QMTT_EXP - Read text segment of method

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

EXCEPTIONS details

NO_FREE_VERSION - Version is not released

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

NO_METHOD - Method does not exist

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

NO_VERSION - Version does not exist

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_METHOD_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_qmtb_exp  TYPE QMTB, "   
lv_kz_nichtfrei  TYPE QM00-QKZ, "   ' '
lv_no_free_version  TYPE QM00, "   
lv_mandant  TYPE SY-MANDT, "   SY-MANDT
lv_no_method  TYPE SY, "   
lv_qmtb_ktext_meth  TYPE QMTT-KURZTEXT, "   
lv_methode  TYPE QMTB-PMTNR, "   
lv_qmtt_exp  TYPE QMTT, "   
lv_no_version  TYPE QMTT, "   
lv_sprache  TYPE QMTT-SPRACHE, "   SY-LANGU
lv_no_authorization  TYPE QMTT, "   
lv_version  TYPE QMTB-VERSION, "   ' '
lv_werk  TYPE QMTB-WERKS, "   
lv_i_qmastmod  TYPE QMASTMOD. "   

  CALL FUNCTION 'QPSD_METHOD_VERSION_READ'  "NOTRANSL: Lesen einer Methodenversion
    EXPORTING
         KZ_NICHTFREI = lv_kz_nichtfrei
         MANDANT = lv_mandant
         METHODE = lv_methode
         SPRACHE = lv_sprache
         VERSION = lv_version
         WERK = lv_werk
         I_QMASTMOD = lv_i_qmastmod
    IMPORTING
         QMTB_EXP = lv_qmtb_exp
         QMTB_KTEXT_METH = lv_qmtb_ktext_meth
         QMTT_EXP = lv_qmtt_exp
    EXCEPTIONS
        NO_FREE_VERSION = 1
        NO_METHOD = 2
        NO_VERSION = 3
        NO_AUTHORIZATION = 4
. " QPSD_METHOD_VERSION_READ




ABAP code using 7.40 inline data declarations to call FM QPSD_METHOD_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 QKZ FROM QM00 INTO @DATA(ld_kz_nichtfrei).
DATA(ld_kz_nichtfrei) = ' '.
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_mandant).
DATA(ld_mandant) = SY-MANDT.
 
 
"SELECT single KURZTEXT FROM QMTT INTO @DATA(ld_qmtb_ktext_meth).
 
"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 QMTB INTO @DATA(ld_version).
DATA(ld_version) = ' '.
 
"SELECT single WERKS FROM QMTB INTO @DATA(ld_werk).
 
 


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!