SAP QPSD_SET_SELECTION Function Module for NOTRANSL: Auswahl Codegruppen









QPSD_SET_SELECTION is a standard qpsd set selection 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: Auswahl Codegruppen 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 set selection FM, simply by entering the name QPSD_SET_SELECTION 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_SET_SELECTION 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_SET_SELECTION'"NOTRANSL: Auswahl Codegruppen
EXPORTING
* AUSWAHLMENGE_BIS = ' ' "Selected set up to which should be selected
* KZ_KATALOG_ANZEIGE = ' ' "ID : only display catalog type on selection screen
* KZ_LEER = ' ' "ID: empty selected set may be selected
* SPRACHE = SY-LANGU "Language selection
* STEUERSCHLUESSEL = 'A' "Control key
* VERSION = '000001' "select exactly this version
* WERKS_BIS = ' ' "Plant up to which should be selected.
* WERKS_VON = '* ' "Plant from which should be selected
* AUSWAHLMENGE_VON = '*' "Selected set from which should be selected
* GUELTIGAB = SY-DATUM "Quantities valid for this date are selected
* I_NICHTFREI = ' ' "code version to be read
* KATALOG_BIS = ' ' "Catalog up to which should be selected
* KATALOG_VON = '*' "Catalog from which should be selected
* KZ_AUFLOESUNG = ' ' "Selected sets should be deleted
* KZ_BILDSCHLUESSEL = ' ' "Selection screen should be displayed
* KZ_GUELTIGVERS = ' ' "ID: only the valid version is displayed in each case

TABLES
SELEKTIERTE_ZEILEN = "Table with the required entries
.




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_SET_SELECTION

AUSWAHLMENGE_BIS - Selected set up to which should be selected

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

KZ_KATALOG_ANZEIGE - ID : only display catalog type on selection screen

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

KZ_LEER - ID: empty selected set may be selected

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

SPRACHE - Language selection

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

STEUERSCHLUESSEL - Control key

Data type: RMQSE-STEUERSCHL
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERSION - select exactly this version

Data type: QPAC-VERSIONAM
Default: '000001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WERKS_BIS - Plant up to which should be selected.

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

WERKS_VON - Plant from which should be selected

Data type: RMQSE-WERKS_VON
Default: '* '
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUSWAHLMENGE_VON - Selected set from which should be selected

Data type: RMQSE-AMENGE_VON
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

GUELTIGAB - Quantities valid for this date are selected

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

I_NICHTFREI - code version to be read

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

KATALOG_BIS - Catalog up to which should be selected

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

KATALOG_VON - Catalog from which should be selected

Data type: RMQSE-KATLOG_VON
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KZ_AUFLOESUNG - Selected sets should be deleted

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

KZ_BILDSCHLUESSEL - Selection screen should be displayed

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

KZ_GUELTIGVERS - ID: only the valid version is displayed in each case

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

TABLES Parameters details for QPSD_SET_SELECTION

SELEKTIERTE_ZEILEN - Table with the required entries

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

Copy and paste ABAP code example for QPSD_SET_SELECTION 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_auswahlmenge_bis  TYPE RMQSE-AMENGE_BIS, "   ' '
lt_selektierte_zeilen  TYPE STANDARD TABLE OF QKAT, "   
lv_kz_katalog_anzeige  TYPE QKAT, "   ' '
lv_kz_leer  TYPE RMQSE-AUFLOESUNG, "   ' '
lv_sprache  TYPE RMQSE-SPRACHE, "   SY-LANGU
lv_steuerschluessel  TYPE RMQSE-STEUERSCHL, "   'A'
lv_version  TYPE QPAC-VERSIONAM, "   '000001'
lv_werks_bis  TYPE RMQSE-WERKS_BIS, "   ' '
lv_werks_von  TYPE RMQSE-WERKS_VON, "   '* '
lv_auswahlmenge_von  TYPE RMQSE-AMENGE_VON, "   '*'
lv_gueltigab  TYPE QPAC-GUELTIGAB, "   SY-DATUM
lv_i_nichtfrei  TYPE RMQSE-AUFLOESUNG, "   ' '
lv_katalog_bis  TYPE RMQSE-KATLOG_BIS, "   ' '
lv_katalog_von  TYPE RMQSE-KATLOG_VON, "   '*'
lv_kz_aufloesung  TYPE RMQSE-AUFLOESUNG, "   ' '
lv_kz_bildschluessel  TYPE RMQSE-BILDSCHL, "   ' '
lv_kz_gueltigvers  TYPE RMQSE-AUFLOESUNG. "   ' '

  CALL FUNCTION 'QPSD_SET_SELECTION'  "NOTRANSL: Auswahl Codegruppen
    EXPORTING
         AUSWAHLMENGE_BIS = lv_auswahlmenge_bis
         KZ_KATALOG_ANZEIGE = lv_kz_katalog_anzeige
         KZ_LEER = lv_kz_leer
         SPRACHE = lv_sprache
         STEUERSCHLUESSEL = lv_steuerschluessel
         VERSION = lv_version
         WERKS_BIS = lv_werks_bis
         WERKS_VON = lv_werks_von
         AUSWAHLMENGE_VON = lv_auswahlmenge_von
         GUELTIGAB = lv_gueltigab
         I_NICHTFREI = lv_i_nichtfrei
         KATALOG_BIS = lv_katalog_bis
         KATALOG_VON = lv_katalog_von
         KZ_AUFLOESUNG = lv_kz_aufloesung
         KZ_BILDSCHLUESSEL = lv_kz_bildschluessel
         KZ_GUELTIGVERS = lv_kz_gueltigvers
    TABLES
         SELEKTIERTE_ZEILEN = lt_selektierte_zeilen
. " QPSD_SET_SELECTION




ABAP code using 7.40 inline data declarations to call FM QPSD_SET_SELECTION

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 AMENGE_BIS FROM RMQSE INTO @DATA(ld_auswahlmenge_bis).
DATA(ld_auswahlmenge_bis) = ' '.
 
 
DATA(ld_kz_katalog_anzeige) = ' '.
 
"SELECT single AUFLOESUNG FROM RMQSE INTO @DATA(ld_kz_leer).
DATA(ld_kz_leer) = ' '.
 
"SELECT single SPRACHE FROM RMQSE INTO @DATA(ld_sprache).
DATA(ld_sprache) = SY-LANGU.
 
"SELECT single STEUERSCHL FROM RMQSE INTO @DATA(ld_steuerschluessel).
DATA(ld_steuerschluessel) = 'A'.
 
"SELECT single VERSIONAM FROM QPAC INTO @DATA(ld_version).
DATA(ld_version) = '000001'.
 
"SELECT single WERKS_BIS FROM RMQSE INTO @DATA(ld_werks_bis).
DATA(ld_werks_bis) = ' '.
 
"SELECT single WERKS_VON FROM RMQSE INTO @DATA(ld_werks_von).
DATA(ld_werks_von) = '* '.
 
"SELECT single AMENGE_VON FROM RMQSE INTO @DATA(ld_auswahlmenge_von).
DATA(ld_auswahlmenge_von) = '*'.
 
"SELECT single GUELTIGAB FROM QPAC INTO @DATA(ld_gueltigab).
DATA(ld_gueltigab) = SY-DATUM.
 
"SELECT single AUFLOESUNG FROM RMQSE INTO @DATA(ld_i_nichtfrei).
DATA(ld_i_nichtfrei) = ' '.
 
"SELECT single KATLOG_BIS FROM RMQSE INTO @DATA(ld_katalog_bis).
DATA(ld_katalog_bis) = ' '.
 
"SELECT single KATLOG_VON FROM RMQSE INTO @DATA(ld_katalog_von).
DATA(ld_katalog_von) = '*'.
 
"SELECT single AUFLOESUNG FROM RMQSE INTO @DATA(ld_kz_aufloesung).
DATA(ld_kz_aufloesung) = ' '.
 
"SELECT single BILDSCHL FROM RMQSE INTO @DATA(ld_kz_bildschluessel).
DATA(ld_kz_bildschluessel) = ' '.
 
"SELECT single AUFLOESUNG FROM RMQSE INTO @DATA(ld_kz_gueltigvers).
DATA(ld_kz_gueltigvers) = ' '.
 


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!