SAP REQUIREMENTS_AGGREGATION Function Module for









REQUIREMENTS_AGGREGATION is a standard requirements aggregation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 requirements aggregation FM, simply by entering the name REQUIREMENTS_AGGREGATION into the relevant SAP transaction such as SE37 or SE38.

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



Function REQUIREMENTS_AGGREGATION 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 'REQUIREMENTS_AGGREGATION'"
EXPORTING
IWERKS = "Plant
IAGGKZ = "Date type (day, week, month, interval)
* IMRPPP = "PPC planning calendar
* IPERIV = "Fiscal Year Variant

TABLES
IWPBEX = "Indep. reqmts value table structure - see WPBET for FM
AWPBET = "Indep. reqmts value table structure - see WPBET for FM

EXCEPTIONS
CALENDAR_ID_MISSING = 1 CALENDAR_NOT_FOUND = 2 DATE_AFTER_RANGE = 3 DATE_BEFORE_RANGE = 4 DATE_INVALID = 5 DATE_OPTION_INVALID = 6 T009B_NOT_FOUND = 7
.



IMPORTING Parameters details for REQUIREMENTS_AGGREGATION

IWERKS - Plant

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

IAGGKZ - Date type (day, week, month, interval)

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

IMRPPP - PPC planning calendar

Data type: T439I-MRPPP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IPERIV - Fiscal Year Variant

Data type: PBPT-PERIV
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for REQUIREMENTS_AGGREGATION

IWPBEX - Indep. reqmts value table structure - see WPBET for FM

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

AWPBET - Indep. reqmts value table structure - see WPBET for FM

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

EXCEPTIONS details

CALENDAR_ID_MISSING -

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

CALENDAR_NOT_FOUND -

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

DATE_AFTER_RANGE -

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

DATE_BEFORE_RANGE -

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

DATE_INVALID -

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

DATE_OPTION_INVALID -

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

T009B_NOT_FOUND -

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

Copy and paste ABAP code example for REQUIREMENTS_AGGREGATION 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_iwerks  TYPE PBPT-WERKS, "   
lt_iwpbex  TYPE STANDARD TABLE OF PBEW, "   
lv_calendar_id_missing  TYPE PBEW, "   
lt_awpbet  TYPE STANDARD TABLE OF PBEW, "   
lv_iaggkz  TYPE HM60X-ENTLI, "   
lv_calendar_not_found  TYPE HM60X, "   
lv_imrppp  TYPE T439I-MRPPP, "   
lv_date_after_range  TYPE T439I, "   
lv_iperiv  TYPE PBPT-PERIV, "   
lv_date_before_range  TYPE PBPT, "   
lv_date_invalid  TYPE PBPT, "   
lv_date_option_invalid  TYPE PBPT, "   
lv_t009b_not_found  TYPE PBPT. "   

  CALL FUNCTION 'REQUIREMENTS_AGGREGATION'  "
    EXPORTING
         IWERKS = lv_iwerks
         IAGGKZ = lv_iaggkz
         IMRPPP = lv_imrppp
         IPERIV = lv_iperiv
    TABLES
         IWPBEX = lt_iwpbex
         AWPBET = lt_awpbet
    EXCEPTIONS
        CALENDAR_ID_MISSING = 1
        CALENDAR_NOT_FOUND = 2
        DATE_AFTER_RANGE = 3
        DATE_BEFORE_RANGE = 4
        DATE_INVALID = 5
        DATE_OPTION_INVALID = 6
        T009B_NOT_FOUND = 7
. " REQUIREMENTS_AGGREGATION




ABAP code using 7.40 inline data declarations to call FM REQUIREMENTS_AGGREGATION

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 WERKS FROM PBPT INTO @DATA(ld_iwerks).
 
 
 
 
"SELECT single ENTLI FROM HM60X INTO @DATA(ld_iaggkz).
 
 
"SELECT single MRPPP FROM T439I INTO @DATA(ld_imrppp).
 
 
"SELECT single PERIV FROM PBPT INTO @DATA(ld_iperiv).
 
 
 
 
 


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!