SAP PRODUCT_GROUP_SELECT Function Module for GG: DES17 - mod. PRODUCT_LIST_EXCLUSION for material listing
PRODUCT_GROUP_SELECT is a standard product group select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for GG: DES17 - mod. PRODUCT_LIST_EXCLUSION for material listing 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 product group select FM, simply by entering the name PRODUCT_GROUP_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: OG02
Program Name: SAPLOG02
Main Program: SAPLOG02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRODUCT_GROUP_SELECT 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 'PRODUCT_GROUP_SELECT'"GG: DES17 - mod. PRODUCT_LIST_EXCLUSION for material listing.
EXPORTING
APPLICATION = "Application
DATE = "Date for product listing/exclusion
HEADER_COMMUNICATION = "Fields of document header
ITEM_COMMUNICATION = "Fields of item header
SCHEME = "Plan ( product listing or exclusio
* READ_ONLY_ONE_RECORD = ' ' "flag to read only one record
IMPORTING
ENTRY_FOUND = "Entries were found
TABLES
MATERIAL_LIST = "
IMPORTING Parameters details for PRODUCT_GROUP_SELECT
APPLICATION - Application
Data type: T683-KAPPLOptional: No
Call by Reference: No ( called with pass by value option)
DATE - Date for product listing/exclusion
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
HEADER_COMMUNICATION - Fields of document header
Data type: KOMKGOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_COMMUNICATION - Fields of item header
Data type: KOMPGOptional: No
Call by Reference: No ( called with pass by value option)
SCHEME - Plan ( product listing or exclusio
Data type: T683-KALSMOptional: No
Call by Reference: No ( called with pass by value option)
READ_ONLY_ONE_RECORD - flag to read only one record
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PRODUCT_GROUP_SELECT
ENTRY_FOUND - Entries were found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PRODUCT_GROUP_SELECT
MATERIAL_LIST -
Data type: ROG_GRPMATOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRODUCT_GROUP_SELECT 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_application | TYPE T683-KAPPL, " | |||
| lv_entry_found | TYPE T683, " | |||
| lt_material_list | TYPE STANDARD TABLE OF ROG_GRPMAT, " | |||
| lv_date | TYPE SY-DATUM, " | |||
| lv_header_communication | TYPE KOMKG, " | |||
| lv_item_communication | TYPE KOMPG, " | |||
| lv_scheme | TYPE T683-KALSM, " | |||
| lv_read_only_one_record | TYPE T683. " SPACE |
|   CALL FUNCTION 'PRODUCT_GROUP_SELECT' "GG: DES17 - mod. PRODUCT_LIST_EXCLUSION for material listing |
| EXPORTING | ||
| APPLICATION | = lv_application | |
| DATE | = lv_date | |
| HEADER_COMMUNICATION | = lv_header_communication | |
| ITEM_COMMUNICATION | = lv_item_communication | |
| SCHEME | = lv_scheme | |
| READ_ONLY_ONE_RECORD | = lv_read_only_one_record | |
| IMPORTING | ||
| ENTRY_FOUND | = lv_entry_found | |
| TABLES | ||
| MATERIAL_LIST | = lt_material_list | |
| . " PRODUCT_GROUP_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM PRODUCT_GROUP_SELECT
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 KAPPL FROM T683 INTO @DATA(ld_application). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
| "SELECT single KALSM FROM T683 INTO @DATA(ld_scheme). | ||||
| DATA(ld_read_only_one_record) | = ' '. | |||
Search for further information about these or an SAP related objects