SAP QPSD_METHOD_ASSIGN_TO_FEATURE Function Module for NOTRANSL: Prüfen, ob Methode einem Merkmal zugeordnet ist
QPSD_METHOD_ASSIGN_TO_FEATURE is a standard qpsd method assign to feature 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: Prüfen, ob Methode einem Merkmal zugeordnet ist 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 assign to feature FM, simply by entering the name QPSD_METHOD_ASSIGN_TO_FEATURE 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_ASSIGN_TO_FEATURE 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_ASSIGN_TO_FEATURE'"NOTRANSL: Prüfen, ob Methode einem Merkmal zugeordnet ist.
EXPORTING
MERKMAL = "Characteristic
METHODE = "Method
VERSION = "Version of characteristic
VERSIONPM = "Version of method
WERK = "Plant of characteristic
WERKPM = "Plant of method
EXCEPTIONS
NO_ASSIGN = 1 NO_FEATURE = 2 NO_METHOD = 3
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_ASSIGN_TO_FEATURE
MERKMAL - Characteristic
Data type: QPMK-MKMNROptional: No
Call by Reference: No ( called with pass by value option)
METHODE - Method
Data type: QPMZ-PMETHODEOptional: No
Call by Reference: No ( called with pass by value option)
VERSION - Version of characteristic
Data type: QPMK-VERSIONOptional: No
Call by Reference: No ( called with pass by value option)
VERSIONPM - Version of method
Data type: QPMZ-VERSPMOptional: No
Call by Reference: No ( called with pass by value option)
WERK - Plant of characteristic
Data type: QPMK-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
WERKPM - Plant of method
Data type: QPMZ-WERKPMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ASSIGN - Method is not allocated to the characteristic
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FEATURE - Characteristic does not exist
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)
Copy and paste ABAP code example for QPSD_METHOD_ASSIGN_TO_FEATURE 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_no_assign | TYPE QPMK, " | |||
| lv_methode | TYPE QPMZ-PMETHODE, " | |||
| lv_no_feature | TYPE QPMZ, " | |||
| lv_version | TYPE QPMK-VERSION, " | |||
| lv_no_method | TYPE QPMK, " | |||
| lv_versionpm | TYPE QPMZ-VERSPM, " | |||
| lv_werk | TYPE QPMK-WERKS, " | |||
| lv_werkpm | TYPE QPMZ-WERKPM. " |
|   CALL FUNCTION 'QPSD_METHOD_ASSIGN_TO_FEATURE' "NOTRANSL: Prüfen, ob Methode einem Merkmal zugeordnet ist |
| EXPORTING | ||
| MERKMAL | = lv_merkmal | |
| METHODE | = lv_methode | |
| VERSION | = lv_version | |
| VERSIONPM | = lv_versionpm | |
| WERK | = lv_werk | |
| WERKPM | = lv_werkpm | |
| EXCEPTIONS | ||
| NO_ASSIGN = 1 | ||
| NO_FEATURE = 2 | ||
| NO_METHOD = 3 | ||
| . " QPSD_METHOD_ASSIGN_TO_FEATURE | ||
ABAP code using 7.40 inline data declarations to call FM QPSD_METHOD_ASSIGN_TO_FEATURE
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 PMETHODE FROM QPMZ INTO @DATA(ld_methode). | ||||
| "SELECT single VERSION FROM QPMK INTO @DATA(ld_version). | ||||
| "SELECT single VERSPM FROM QPMZ INTO @DATA(ld_versionpm). | ||||
| "SELECT single WERKS FROM QPMK INTO @DATA(ld_werk). | ||||
| "SELECT single WERKPM FROM QPMZ INTO @DATA(ld_werkpm). | ||||
Search for further information about these or an SAP related objects