SAP BAPI_RSSRVAPS_REQUESTDEFS Function Module for Query: Selection of Definitions









BAPI_RSSRVAPS_REQUESTDEFS is a standard bapi rssrvaps requestdefs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Query: Selection of Definitions 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 rssrvaps requestdefs FM, simply by entering the name BAPI_RSSRVAPS_REQUESTDEFS into the relevant SAP transaction such as SE37 or SE38.

Function Group: 10004
Program Name: SAPL10004
Main Program: SAPL10004
Appliation area:
Release date: 28-Oct-2003
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BAPI_RSSRVAPS_REQUESTDEFS 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_RSSRVAPS_REQUESTDEFS'"Query: Selection of Definitions
EXPORTING
PLANNING_VERSION = "Planning Version
* READ_SUBOBJECTS = "Select an Option (Yes = 'X', No = ' ')
* DATE_FROM = "'Valid From' Date
* DATE_TO = "'Valid Until' Date
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Displayed
* REQUEST_INTERFACE = "Query Structure: Asynchronous Communication BAPI/ALE

TABLES
* QUANMODEL_KEY = "Key for Quantity/Rate Model
* SHIFT_SELECTION = "Ranges Table for Shift Definition
* SHIFTFACTOR_SELECTION = "Ranges Table for Shift Factor
* BREAKMODEL_SELECTION = "Ranges Table for Break Pattern
* 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
* RATEMODEL_KEY = "Key for Rate Model
* SHIFTSEQ_KEY = "Key for Shift Sequence
* SHIFT_KEY = "Key for Shift
* SHIFTFACTOR_KEY = "Key for Shift Factor
* BREAKMODEL_KEY = "Key for Break Pattern
* QUANMODEL_SELECTION = "Ranges Table for Quantity/Rate Model
* RATEMODEL_SELECTION = "Ranges Table for Rate Model
* SHIFTSEQ_SELECTION = "Ranges Table for Shift Sequence
.




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_SAPL10004_001 User Exit for Method 'SaveMultiple' of Business Object BUS10004
EXIT_SAPL10004_002 User Exit for Method 'ChangeMultiple' of Business Object BUS10004
EXIT_SAPL10004_003 User Exit for Method 'GetList' of Business Object Bus10004
EXIT_SAPL10004_004 User Exit for Method 'BlockSaveMultiple' of Business Object BUS10004
EXIT_SAPL10004_005 User Exit for Method 'GetBlocks' of Business Object BUS10004
EXIT_SAPL10004_006 User Exit for Method 'GetCapacityProfile' of Business Object BUS10004
EXIT_SAPL10004_007 User Exit for Method 'GetLoad' of Business Object BUS10004
EXIT_SAPL10004_008 User Exit for Method 'SaveDefinitions' of Business Object BUS10004
EXIT_SAPL10004_009 User Exit for Method 'DeleteDefinitions' of Business Object BUS10004
EXIT_SAPL10004_010 User Exit for Method 'RemoveSubobject' of Business Object BUS10004
EXIT_SAPL10004_011 User Exit for Method 'ReadDefinitions' of Business Object BUS10004

IMPORTING Parameters details for BAPI_RSSRVAPS_REQUESTDEFS

PLANNING_VERSION - Planning Version

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

READ_SUBOBJECTS - Select an Option (Yes = 'X', No = ' ')

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

DATE_FROM - 'Valid From' Date

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

DATE_TO - 'Valid Until' Date

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

EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Displayed

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

REQUEST_INTERFACE - Query Structure: Asynchronous Communication BAPI/ALE

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

TABLES Parameters details for BAPI_RSSRVAPS_REQUESTDEFS

QUANMODEL_KEY - Key for Quantity/Rate Model

Data type: BAPI10004QUANMODKEY
Optional: Yes
Call by Reference: Yes

SHIFT_SELECTION - Ranges Table for Shift Definition

Data type: BAPISHIFTRANGE
Optional: Yes
Call by Reference: Yes

SHIFTFACTOR_SELECTION - Ranges Table for Shift Factor

Data type: BAPISHIFTFACTORRANGE
Optional: Yes
Call by Reference: Yes

BREAKMODEL_SELECTION - Ranges Table for Break Pattern

Data type: BAPIBREAKMODELRANGE
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameters

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

RETURN_GET_CALL - Messages Generated During the Read Method

Data type: BAPIAPORETURNGETCALL
Optional: Yes
Call by Reference: Yes

RETURN_RECEIVE_CALL - Messages Generated During the Receipt Method

Data type: BAPIAPORETURNRECEIVECALL
Optional: Yes
Call by Reference: Yes

RATEMODEL_KEY - Key for Rate Model

Data type: BAPI10004RATEMODKEY
Optional: Yes
Call by Reference: Yes

SHIFTSEQ_KEY - Key for Shift Sequence

Data type: BAPI10004TIMEMODKEY
Optional: Yes
Call by Reference: Yes

SHIFT_KEY - Key for Shift

Data type: BAPI10004TIMEINTKEY
Optional: Yes
Call by Reference: Yes

SHIFTFACTOR_KEY - Key for Shift Factor

Data type: BAPI10004TIMEEFFKEY
Optional: Yes
Call by Reference: Yes

BREAKMODEL_KEY - Key for Break Pattern

Data type: BAPI10004BRKMODKEY
Optional: Yes
Call by Reference: Yes

QUANMODEL_SELECTION - Ranges Table for Quantity/Rate Model

Data type: BAPIQUANMODELRANGE
Optional: Yes
Call by Reference: Yes

RATEMODEL_SELECTION - Ranges Table for Rate Model

Data type: BAPIRATEMODELRANGE
Optional: Yes
Call by Reference: Yes

SHIFTSEQ_SELECTION - Ranges Table for Shift Sequence

Data type: BAPISHIFTSEQRANGE
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_RSSRVAPS_REQUESTDEFS 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_quanmodel_key  TYPE STANDARD TABLE OF BAPI10004QUANMODKEY, "   
lv_planning_version  TYPE BAPIGENFIELDS-VRSIOEX, "   
lt_shift_selection  TYPE STANDARD TABLE OF BAPISHIFTRANGE, "   
lt_shiftfactor_selection  TYPE STANDARD TABLE OF BAPISHIFTFACTORRANGE, "   
lt_breakmodel_selection  TYPE STANDARD TABLE OF BAPIBREAKMODELRANGE, "   
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_ratemodel_key  TYPE STANDARD TABLE OF BAPI10004RATEMODKEY, "   
lv_read_subobjects  TYPE BAPI10004GENFIELDS-READ_SUBOBJECTS, "   
lv_date_from  TYPE BAPI10004GENFIELDS-DATE_FROM, "   
lt_shiftseq_key  TYPE STANDARD TABLE OF BAPI10004TIMEMODKEY, "   
lv_date_to  TYPE BAPI10004GENFIELDS-DATE_TO, "   
lt_shift_key  TYPE STANDARD TABLE OF BAPI10004TIMEINTKEY, "   
lt_shiftfactor_key  TYPE STANDARD TABLE OF BAPI10004TIMEEFFKEY, "   
lv_exclude_export_flags  TYPE BAPI10004DEFSLISTSELRETFLAGS, "   
lt_breakmodel_key  TYPE STANDARD TABLE OF BAPI10004BRKMODKEY, "   
lv_request_interface  TYPE BAPIALE_AREQ, "   
lt_quanmodel_selection  TYPE STANDARD TABLE OF BAPIQUANMODELRANGE, "   
lt_ratemodel_selection  TYPE STANDARD TABLE OF BAPIRATEMODELRANGE, "   
lt_shiftseq_selection  TYPE STANDARD TABLE OF BAPISHIFTSEQRANGE. "   

  CALL FUNCTION 'BAPI_RSSRVAPS_REQUESTDEFS'  "Query: Selection of Definitions
    EXPORTING
         PLANNING_VERSION = lv_planning_version
         READ_SUBOBJECTS = lv_read_subobjects
         DATE_FROM = lv_date_from
         DATE_TO = lv_date_to
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
         REQUEST_INTERFACE = lv_request_interface
    TABLES
         QUANMODEL_KEY = lt_quanmodel_key
         SHIFT_SELECTION = lt_shift_selection
         SHIFTFACTOR_SELECTION = lt_shiftfactor_selection
         BREAKMODEL_SELECTION = lt_breakmodel_selection
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
         RETURN_GET_CALL = lt_return_get_call
         RETURN_RECEIVE_CALL = lt_return_receive_call
         RATEMODEL_KEY = lt_ratemodel_key
         SHIFTSEQ_KEY = lt_shiftseq_key
         SHIFT_KEY = lt_shift_key
         SHIFTFACTOR_KEY = lt_shiftfactor_key
         BREAKMODEL_KEY = lt_breakmodel_key
         QUANMODEL_SELECTION = lt_quanmodel_selection
         RATEMODEL_SELECTION = lt_ratemodel_selection
         SHIFTSEQ_SELECTION = lt_shiftseq_selection
. " BAPI_RSSRVAPS_REQUESTDEFS




ABAP code using 7.40 inline data declarations to call FM BAPI_RSSRVAPS_REQUESTDEFS

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 VRSIOEX FROM BAPIGENFIELDS INTO @DATA(ld_planning_version).
 
 
 
 
 
 
 
 
 
"SELECT single READ_SUBOBJECTS FROM BAPI10004GENFIELDS INTO @DATA(ld_read_subobjects).
 
"SELECT single DATE_FROM FROM BAPI10004GENFIELDS INTO @DATA(ld_date_from).
 
 
"SELECT single DATE_TO FROM BAPI10004GENFIELDS INTO @DATA(ld_date_to).
 
 
 
 
 
 
 
 
 


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!