SAP BAPI_POSRVAPS_GETLIST3 Function Module for Read Procurement Orders for Selection Criteria - With Characteristics









BAPI_POSRVAPS_GETLIST3 is a standard bapi posrvaps getlist3 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Procurement Orders for Selection Criteria - With Characteristics 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 posrvaps getlist3 FM, simply by entering the name BAPI_POSRVAPS_GETLIST3 into the relevant SAP transaction such as SE37 or SE38.

Function Group: 10502
Program Name: SAPL10502
Main Program: SAPL10502
Appliation area: C
Release date: 12-Dec-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_POSRVAPS_GETLIST3 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_POSRVAPS_GETLIST3'"Read Procurement Orders for Selection Criteria - With Characteristics
EXPORTING
LOGICAL_SYSTEM = "Source Logical System for Request
* START_TIME = "Start Date/Time for Selection (Format YYYYMMDDhhmmss)
* END_TIME = "End Date/Time for Selection (Format YYYYMMDDhhmmss)
* EXCLUDE_EXPORT_FLAGS = "Restriction of Return Tables to be Filled
* MAX_NUMBER_OF_ORDERS = "Maximum Number of Orders to be Transferred
* TRANSFER_MODE = "Transfer Mode
* PLNG_VERSION = '000' "Planning Version (Operative or Simulation Version)
* IO_NODE_SELECTION = 'O' "Selection of I/O Nodes (Receipts/Requirements) According to Type

IMPORTING
NUMBER_OF_ORDERS = "Number of Selected Orders

TABLES
* PRODUCT_SELECTION = "Selection Criteria for Products (RANGES Table)
* CFG_SELECTION = "Selection Criteria for BAPI Characteristics
* RECEIPTS = "Receipt Elements (OUTPUT Nodes) of a Procurement Order
* REQUIREMENTS = "Requirement Elements (INPUT Nodes) of a Procurement Order
* PEGGING_INPUT_NODES = "Pegging Relationships of Requirement Elements (INPUT Nodes)
* PEGGING_OUTPUT_NODES = "Pegging Relationships for Receipt Elements (OUTPUT Nodes)
* VENDOR_SELECTION = "Selection Criteria for Vendors
* CFG_HEADERS = "CU: Configuration Data
* CFG_INSTANCES = "Instances of Several Configurations
* CFG_PART_OF = "Part_Of Entries for Several Configurations
* CFG_VALUES = "Characteristic Value Assignment of Several Configurations
* LOCATION_SELECTION = "Selection Criteria for Locations (RANGES Table)
* CFG_VAR_KEYS = "Variant Condition Keys in Configurations
* CFG_BLOB = "BLOB Internal Configuration Data (SCE)
* RETURN = "Return Parameters
* EXTENSION_IN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* LOCTYPE_SELECTION = "Selection Criteria for Location Types (RANGES Table)
* ORDER_SELECTION = "Selection Criteria for Orders (RANGES Table)
* ORDERTYPE_SELECTION = "Selection Criteria for OLTP Order Category
* PRODUCT_LOCATION_KEYS = "Selection Criteria for Product+Location
* ATPCAT_SELECTION = "Selection Criteria for ATP Categories
* ORDER_GUIDS = "Selection Criteria: Order GUIDs
* ORDER_KEYS = "Selection Criteria: Order Key
.




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_SAPL10502_001 User Exit for Method 'SaveMultiple' of Business Object BUS10502
EXIT_SAPL10502_002 User Exit for Method 'GetList'
EXIT_SAPL10502_003 User Exit for Method 'DeleteMultiple' of Business Object BUS10502
EXIT_SAPL10502_004 User Exit for Method 'RemoveItems' of Business Objects BUS10502

IMPORTING Parameters details for BAPI_POSRVAPS_GETLIST3

LOGICAL_SYSTEM - Source Logical System for Request

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

START_TIME - Start Date/Time for Selection (Format YYYYMMDDhhmmss)

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

END_TIME - End Date/Time for Selection (Format YYYYMMDDhhmmss)

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

EXCLUDE_EXPORT_FLAGS - Restriction of Return Tables to be Filled

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

MAX_NUMBER_OF_ORDERS - Maximum Number of Orders to be Transferred

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

TRANSFER_MODE - Transfer Mode

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

PLNG_VERSION - Planning Version (Operative or Simulation Version)

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

IO_NODE_SELECTION - Selection of I/O Nodes (Receipts/Requirements) According to Type

Data type: BAPI10502GENFIELDS-IO_NODE_SEL
Default: 'O'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_POSRVAPS_GETLIST3

NUMBER_OF_ORDERS - Number of Selected Orders

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

TABLES Parameters details for BAPI_POSRVAPS_GETLIST3

PRODUCT_SELECTION - Selection Criteria for Products (RANGES Table)

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

CFG_SELECTION - Selection Criteria for BAPI Characteristics

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

RECEIPTS - Receipt Elements (OUTPUT Nodes) of a Procurement Order

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

REQUIREMENTS - Requirement Elements (INPUT Nodes) of a Procurement Order

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

PEGGING_INPUT_NODES - Pegging Relationships of Requirement Elements (INPUT Nodes)

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

PEGGING_OUTPUT_NODES - Pegging Relationships for Receipt Elements (OUTPUT Nodes)

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

VENDOR_SELECTION - Selection Criteria for Vendors

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

CFG_HEADERS - CU: Configuration Data

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

CFG_INSTANCES - Instances of Several Configurations

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

CFG_PART_OF - Part_Of Entries for Several Configurations

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

CFG_VALUES - Characteristic Value Assignment of Several Configurations

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

LOCATION_SELECTION - Selection Criteria for Locations (RANGES Table)

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

CFG_VAR_KEYS - Variant Condition Keys in Configurations

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

CFG_BLOB - BLOB Internal Configuration Data (SCE)

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

RETURN - Return Parameters

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

EXTENSION_IN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

EXTENSION_OUT - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

LOCTYPE_SELECTION - Selection Criteria for Location Types (RANGES Table)

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

ORDER_SELECTION - Selection Criteria for Orders (RANGES Table)

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

ORDERTYPE_SELECTION - Selection Criteria for OLTP Order Category

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

PRODUCT_LOCATION_KEYS - Selection Criteria for Product+Location

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

ATPCAT_SELECTION - Selection Criteria for ATP Categories

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

ORDER_GUIDS - Selection Criteria: Order GUIDs

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

ORDER_KEYS - Selection Criteria: Order Key

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

Copy and paste ABAP code example for BAPI_POSRVAPS_GETLIST3 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_logical_system  TYPE BAPIGENFIELDS-LOGSYSTEM, "   
lv_number_of_orders  TYPE BAPIGENFIELDS-SEL_ROWS, "   
lt_product_selection  TYPE STANDARD TABLE OF BAPIPRODUCTRANGE, "   
lt_cfg_selection  TYPE STANDARD TABLE OF BAPI10502CONFCLSEL, "   
lt_receipts  TYPE STANDARD TABLE OF BAPI10502POOUTO, "   
lt_requirements  TYPE STANDARD TABLE OF BAPI10502POINO, "   
lt_pegging_input_nodes  TYPE STANDARD TABLE OF BAPI10502ORDINPUTPEGOUT, "   
lt_pegging_output_nodes  TYPE STANDARD TABLE OF BAPI10502ORDOUTPUTPEGOUT, "   
lt_vendor_selection  TYPE STANDARD TABLE OF BAPI10502VENDSELI, "   
lt_cfg_headers  TYPE STANDARD TABLE OF BAPIAPOCUCFG, "   
lt_cfg_instances  TYPE STANDARD TABLE OF BAPIAPOCUINS, "   
lt_cfg_part_of  TYPE STANDARD TABLE OF BAPIAPOCUPRT, "   
lt_cfg_values  TYPE STANDARD TABLE OF BAPIAPOCUVAL, "   
lv_start_time  TYPE BAPIGENFIELDS-START_T, "   
lt_location_selection  TYPE STANDARD TABLE OF BAPILOCRANGE, "   
lt_cfg_var_keys  TYPE STANDARD TABLE OF BAPIAPOCUVK, "   
lt_cfg_blob  TYPE STANDARD TABLE OF BAPIAPOCUBLB, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_extension_out  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_end_time  TYPE BAPIGENFIELDS-END_T, "   
lt_loctype_selection  TYPE STANDARD TABLE OF BAPILOCTYPERANGE, "   
lt_order_selection  TYPE STANDARD TABLE OF BAPIORDERRANGE, "   
lv_exclude_export_flags  TYPE BAPI10502SELRETFLAGS2, "   
lt_ordertype_selection  TYPE STANDARD TABLE OF BAPI10502R3OBJSEL_STR, "   
lv_max_number_of_orders  TYPE BAPIF4A-MAX_ROWS, "   
lv_transfer_mode  TYPE BAPIGENFIELDS-TRANSMODE, "   
lt_product_location_keys  TYPE STANDARD TABLE OF BAPI_PRODLOC_KEY, "   
lv_plng_version  TYPE BAPIGENFIELDS-VRSIOEX, "   '000'
lt_atpcat_selection  TYPE STANDARD TABLE OF BAPIAPOATPCAT, "   
lt_order_guids  TYPE STANDARD TABLE OF BAPIAPOORDID, "   
lv_io_node_selection  TYPE BAPI10502GENFIELDS-IO_NODE_SEL, "   'O'
lt_order_keys  TYPE STANDARD TABLE OF BAPI10502ORDERKEY. "   

  CALL FUNCTION 'BAPI_POSRVAPS_GETLIST3'  "Read Procurement Orders for Selection Criteria - With Characteristics
    EXPORTING
         LOGICAL_SYSTEM = lv_logical_system
         START_TIME = lv_start_time
         END_TIME = lv_end_time
         EXCLUDE_EXPORT_FLAGS = lv_exclude_export_flags
         MAX_NUMBER_OF_ORDERS = lv_max_number_of_orders
         TRANSFER_MODE = lv_transfer_mode
         PLNG_VERSION = lv_plng_version
         IO_NODE_SELECTION = lv_io_node_selection
    IMPORTING
         NUMBER_OF_ORDERS = lv_number_of_orders
    TABLES
         PRODUCT_SELECTION = lt_product_selection
         CFG_SELECTION = lt_cfg_selection
         RECEIPTS = lt_receipts
         REQUIREMENTS = lt_requirements
         PEGGING_INPUT_NODES = lt_pegging_input_nodes
         PEGGING_OUTPUT_NODES = lt_pegging_output_nodes
         VENDOR_SELECTION = lt_vendor_selection
         CFG_HEADERS = lt_cfg_headers
         CFG_INSTANCES = lt_cfg_instances
         CFG_PART_OF = lt_cfg_part_of
         CFG_VALUES = lt_cfg_values
         LOCATION_SELECTION = lt_location_selection
         CFG_VAR_KEYS = lt_cfg_var_keys
         CFG_BLOB = lt_cfg_blob
         RETURN = lt_return
         EXTENSION_IN = lt_extension_in
         EXTENSION_OUT = lt_extension_out
         LOCTYPE_SELECTION = lt_loctype_selection
         ORDER_SELECTION = lt_order_selection
         ORDERTYPE_SELECTION = lt_ordertype_selection
         PRODUCT_LOCATION_KEYS = lt_product_location_keys
         ATPCAT_SELECTION = lt_atpcat_selection
         ORDER_GUIDS = lt_order_guids
         ORDER_KEYS = lt_order_keys
. " BAPI_POSRVAPS_GETLIST3




ABAP code using 7.40 inline data declarations to call FM BAPI_POSRVAPS_GETLIST3

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 LOGSYSTEM FROM BAPIGENFIELDS INTO @DATA(ld_logical_system).
 
"SELECT single SEL_ROWS FROM BAPIGENFIELDS INTO @DATA(ld_number_of_orders).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single START_T FROM BAPIGENFIELDS INTO @DATA(ld_start_time).
 
 
 
 
 
 
 
"SELECT single END_T FROM BAPIGENFIELDS INTO @DATA(ld_end_time).
 
 
 
 
 
"SELECT single MAX_ROWS FROM BAPIF4A INTO @DATA(ld_max_number_of_orders).
 
"SELECT single TRANSMODE FROM BAPIGENFIELDS INTO @DATA(ld_transfer_mode).
 
 
"SELECT single VRSIOEX FROM BAPIGENFIELDS INTO @DATA(ld_plng_version).
DATA(ld_plng_version) = '000'.
 
 
 
"SELECT single IO_NODE_SEL FROM BAPI10502GENFIELDS INTO @DATA(ld_io_node_selection).
DATA(ld_io_node_selection) = 'O'.
 
 


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!