SAP BBY_GET_MATERIAL_BY_GROUPING Function Module for NOTRANSL: Ermitteln der Materialien zu einer Materialgruppierung









BBY_GET_MATERIAL_BY_GROUPING is a standard bby get material by grouping 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: Ermitteln der Materialien zu einer Materialgruppierung 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 bby get material by grouping FM, simply by entering the name BBY_GET_MATERIAL_BY_GROUPING into the relevant SAP transaction such as SE37 or SE38.

Function Group: WBBY_GENERAL
Program Name: SAPLWBBY_GENERAL
Main Program: SAPLWBBY_GENERAL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BBY_GET_MATERIAL_BY_GROUPING 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 'BBY_GET_MATERIAL_BY_GROUPING'"NOTRANSL: Ermitteln der Materialien zu einer Materialgruppierung
EXPORTING
IP_GRPGNR = "
* IP_BUFFER_USE = ' ' "Use Buffer
* IP_BUFFER_REFRESH = ' ' "Delete Buffer

TABLES
ET_MATERIAL = "

EXCEPTIONS
NO_GROUPING_FOUND = 1 NO_LAYOUTAREA = 10 NO_MATERIAL_IN_LAYOUT = 11 NO_POSITION_IN_GROUPING = 2 NO_MATERIAL = 3 NO_VARIANT = 4 NO_MERCHCATEG = 5 NO_MATERIAL_IN_MERCHCATEG = 6 NO_PROMOTION = 7 NO_MATERIAL_IN_PROMOTION = 8 NO_LAYOUT = 9
.



IMPORTING Parameters details for BBY_GET_MATERIAL_BY_GROUPING

IP_GRPGNR -

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

IP_BUFFER_USE - Use Buffer

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

IP_BUFFER_REFRESH - Delete Buffer

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for BBY_GET_MATERIAL_BY_GROUPING

ET_MATERIAL -

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

EXCEPTIONS details

NO_GROUPING_FOUND -

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

NO_LAYOUTAREA -

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

NO_MATERIAL_IN_LAYOUT -

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

NO_POSITION_IN_GROUPING -

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

NO_MATERIAL -

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

NO_VARIANT -

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

NO_MERCHCATEG -

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

NO_MATERIAL_IN_MERCHCATEG -

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

NO_PROMOTION -

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

NO_MATERIAL_IN_PROMOTION -

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

NO_LAYOUT -

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

Copy and paste ABAP code example for BBY_GET_MATERIAL_BY_GROUPING 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_ip_grpgnr  TYPE KONMATGRP-GRPGNR, "   
lt_et_material  TYPE STANDARD TABLE OF KONMATGRPX, "   
lv_no_grouping_found  TYPE KONMATGRPX, "   
lv_no_layoutarea  TYPE KONMATGRPX, "   
lv_no_material_in_layout  TYPE KONMATGRPX, "   
lv_ip_buffer_use  TYPE XFELD, "   ' '
lv_no_position_in_grouping  TYPE XFELD, "   
lv_no_material  TYPE XFELD, "   
lv_ip_buffer_refresh  TYPE XFELD, "   ' '
lv_no_variant  TYPE XFELD, "   
lv_no_merchcateg  TYPE XFELD, "   
lv_no_material_in_merchcateg  TYPE XFELD, "   
lv_no_promotion  TYPE XFELD, "   
lv_no_material_in_promotion  TYPE XFELD, "   
lv_no_layout  TYPE XFELD. "   

  CALL FUNCTION 'BBY_GET_MATERIAL_BY_GROUPING'  "NOTRANSL: Ermitteln der Materialien zu einer Materialgruppierung
    EXPORTING
         IP_GRPGNR = lv_ip_grpgnr
         IP_BUFFER_USE = lv_ip_buffer_use
         IP_BUFFER_REFRESH = lv_ip_buffer_refresh
    TABLES
         ET_MATERIAL = lt_et_material
    EXCEPTIONS
        NO_GROUPING_FOUND = 1
        NO_LAYOUTAREA = 10
        NO_MATERIAL_IN_LAYOUT = 11
        NO_POSITION_IN_GROUPING = 2
        NO_MATERIAL = 3
        NO_VARIANT = 4
        NO_MERCHCATEG = 5
        NO_MATERIAL_IN_MERCHCATEG = 6
        NO_PROMOTION = 7
        NO_MATERIAL_IN_PROMOTION = 8
        NO_LAYOUT = 9
. " BBY_GET_MATERIAL_BY_GROUPING




ABAP code using 7.40 inline data declarations to call FM BBY_GET_MATERIAL_BY_GROUPING

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 GRPGNR FROM KONMATGRP INTO @DATA(ld_ip_grpgnr).
 
 
 
 
 
DATA(ld_ip_buffer_use) = ' '.
 
 
 
DATA(ld_ip_buffer_refresh) = ' '.
 
 
 
 
 
 
 


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!