SAP BAPI_QTASRVAPS_REQUESTLIST2 Function Module for Request: Read Quota Arrangements
BAPI_QTASRVAPS_REQUESTLIST2 is a standard bapi qtasrvaps requestlist2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request: Read Quota Arrangements 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 bapi qtasrvaps requestlist2 FM, simply by entering the name BAPI_QTASRVAPS_REQUESTLIST2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: 10009
Program Name: SAPL10009
Main Program: SAPL10009
Appliation area:
Release date: 15-Jul-2003
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BAPI_QTASRVAPS_REQUESTLIST2 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 'BAPI_QTASRVAPS_REQUESTLIST2'"Request: Read Quota Arrangements.
EXPORTING
LOGICAL_SYSTEM = "Logical System from which Message Originates
* BUSINESS_SYSTEM_GROUP = "Business System Group
* MAX_NUMBER_OF_QUOTA = "Maximum Number of Objects
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Filled
* REQUEST_INTERFACE = "Query Structure: Asynchronous Communication BAPI/ALE
TABLES
* QUOTA_KEY = "Quota Arrangement: Key
* VAL_FROM_SELECTION = "RANGES Table for Start Times
* VAL_TO_SELECTION = "RANGES Table for End Times
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* RETURN_GET_CALL = "Messages Generated During the Read Method
* RETURN_RECEIVE_CALL = "Messages Generated During the Receipt Method
* MODEL_SELECTION = "RANGES Table for Supply Chain Model Name
* PLANNING_VERSION_SELECTION = "RANGE Table for Planning Versions
* LOCATION_SELECTION = "RANGES Table for Locations
* LOCTYPE_SELECTION = "RANGES Table for Location Types
* PRODUCT_SELECTION = "RANGES Table for Products
* LOCATION_INT_SELECTION = "RANGES Table for Internal Key for Location
* PRODUCT_INT_SELECTION = "RANGES Table for Internal Product ID
* DIRECTION_SELECTION = "RANGES Table for Quota Arrangement Directions
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_SAPL10009_001 User Exit for Method 'SaveMultiple' of Business Object BUS10009
IMPORTING Parameters details for BAPI_QTASRVAPS_REQUESTLIST2
LOGICAL_SYSTEM - Logical System from which Message Originates
Data type: BAPISCMBGENFIELDS-LOGICAL_SYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
BUSINESS_SYSTEM_GROUP - Business System Group
Data type: BAPISCMBGENFIELDS-LOGQSOptional: Yes
Call by Reference: No ( called with pass by value option)
MAX_NUMBER_OF_QUOTA - Maximum Number of Objects
Data type: BAPI10009GENFIELDS-MAX_QUOTASOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Filled
Data type: BAPI10009SELRETFLAGS2Optional: Yes
Call by Reference: No ( called with pass by value option)
REQUEST_INTERFACE - Query Structure: Asynchronous Communication BAPI/ALE
Data type: BAPIALE_AREQOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_QTASRVAPS_REQUESTLIST2
QUOTA_KEY - Quota Arrangement: Key
Data type: BAPI10009QTAKEYOptional: Yes
Call by Reference: Yes
VAL_FROM_SELECTION - RANGES Table for Start Times
Data type: BAPI10009QTAVALFRRANGEOptional: Yes
Call by Reference: Yes
VAL_TO_SELECTION - RANGES Table for End Times
Data type: BAPI10009QTAVALTORANGEOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN_GET_CALL - Messages Generated During the Read Method
Data type: BAPIAPORETURNGETCALLOptional: Yes
Call by Reference: Yes
RETURN_RECEIVE_CALL - Messages Generated During the Receipt Method
Data type: BAPIAPORETURNRECEIVECALLOptional: Yes
Call by Reference: Yes
MODEL_SELECTION - RANGES Table for Supply Chain Model Name
Data type: BAPIMODELRANGEOptional: Yes
Call by Reference: Yes
PLANNING_VERSION_SELECTION - RANGE Table for Planning Versions
Data type: BAPIVERSRANGEOptional: Yes
Call by Reference: Yes
LOCATION_SELECTION - RANGES Table for Locations
Data type: BAPILOCRANGEOptional: Yes
Call by Reference: Yes
LOCTYPE_SELECTION - RANGES Table for Location Types
Data type: BAPILOCTYPERANGEOptional: Yes
Call by Reference: Yes
PRODUCT_SELECTION - RANGES Table for Products
Data type: BAPIPRODUCTRANGEOptional: Yes
Call by Reference: Yes
LOCATION_INT_SELECTION - RANGES Table for Internal Key for Location
Data type: BAPILOCINTRANGEOptional: Yes
Call by Reference: Yes
PRODUCT_INT_SELECTION - RANGES Table for Internal Product ID
Data type: BAPIPRODUCTINTRANGEOptional: Yes
Call by Reference: Yes
DIRECTION_SELECTION - RANGES Table for Quota Arrangement Directions
Data type: BAPI10009QTADIRECTIONRANGEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_QTASRVAPS_REQUESTLIST2 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: | ||||
| lt_quota_key | TYPE STANDARD TABLE OF BAPI10009QTAKEY, " | |||
| lv_logical_system | TYPE BAPISCMBGENFIELDS-LOGICAL_SYSTEM, " | |||
| lt_val_from_selection | TYPE STANDARD TABLE OF BAPI10009QTAVALFRRANGE, " | |||
| lt_val_to_selection | TYPE STANDARD TABLE OF BAPI10009QTAVALTORANGE, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_extension_in | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_return_get_call | TYPE STANDARD TABLE OF BAPIAPORETURNGETCALL, " | |||
| lt_return_receive_call | TYPE STANDARD TABLE OF BAPIAPORETURNRECEIVECALL, " | |||
| lt_model_selection | TYPE STANDARD TABLE OF BAPIMODELRANGE, " | |||
| lv_business_system_group | TYPE BAPISCMBGENFIELDS-LOGQS, " | |||
| lv_max_number_of_quota | TYPE BAPI10009GENFIELDS-MAX_QUOTAS, " | |||
| lt_planning_version_selection | TYPE STANDARD TABLE OF BAPIVERSRANGE, " | |||
| lt_location_selection | TYPE STANDARD TABLE OF BAPILOCRANGE, " | |||
| lv_exclude_export_flags | TYPE BAPI10009SELRETFLAGS2, " | |||
| lt_loctype_selection | TYPE STANDARD TABLE OF BAPILOCTYPERANGE, " | |||
| lv_request_interface | TYPE BAPIALE_AREQ, " | |||
| lt_product_selection | TYPE STANDARD TABLE OF BAPIPRODUCTRANGE, " | |||
| lt_location_int_selection | TYPE STANDARD TABLE OF BAPILOCINTRANGE, " | |||
| lt_product_int_selection | TYPE STANDARD TABLE OF BAPIPRODUCTINTRANGE, " | |||
| lt_direction_selection | TYPE STANDARD TABLE OF BAPI10009QTADIRECTIONRANGE. " |
|   CALL FUNCTION 'BAPI_QTASRVAPS_REQUESTLIST2' "Request: Read Quota Arrangements |
| EXPORTING | ||
| LOGICAL_SYSTEM | = lv_logical_system | |
| BUSINESS_SYSTEM_GROUP | = lv_business_system_group | |
| MAX_NUMBER_OF_QUOTA | = lv_max_number_of_quota | |
| EXCLUDE_EXPORT_FLAGS | = lv_exclude_export_flags | |
| REQUEST_INTERFACE | = lv_request_interface | |
| TABLES | ||
| QUOTA_KEY | = lt_quota_key | |
| VAL_FROM_SELECTION | = lt_val_from_selection | |
| VAL_TO_SELECTION | = lt_val_to_selection | |
| RETURN | = lt_return | |
| EXTENSION_IN | = lt_extension_in | |
| RETURN_GET_CALL | = lt_return_get_call | |
| RETURN_RECEIVE_CALL | = lt_return_receive_call | |
| MODEL_SELECTION | = lt_model_selection | |
| PLANNING_VERSION_SELECTION | = lt_planning_version_selection | |
| LOCATION_SELECTION | = lt_location_selection | |
| LOCTYPE_SELECTION | = lt_loctype_selection | |
| PRODUCT_SELECTION | = lt_product_selection | |
| LOCATION_INT_SELECTION | = lt_location_int_selection | |
| PRODUCT_INT_SELECTION | = lt_product_int_selection | |
| DIRECTION_SELECTION | = lt_direction_selection | |
| . " BAPI_QTASRVAPS_REQUESTLIST2 | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_QTASRVAPS_REQUESTLIST2
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 LOGICAL_SYSTEM FROM BAPISCMBGENFIELDS INTO @DATA(ld_logical_system). | ||||
| "SELECT single LOGQS FROM BAPISCMBGENFIELDS INTO @DATA(ld_business_system_group). | ||||
| "SELECT single MAX_QUOTAS FROM BAPI10009GENFIELDS INTO @DATA(ld_max_number_of_quota). | ||||
Search for further information about these or an SAP related objects