Professional Documents
Culture Documents
32 OData DPC EXT Code
32 OData DPC EXT Code
"how do we know here that what was the value of $top user passed?
"Step 1: Call the BAPI where all the product data is available
call FUNCTION 'BAPI_EPM_PRODUCT_GET_LIST'
* EXPORTING
* max_rows = " Maximum number of lines of
hits
TABLES
headerdata = lt_bapi_products " EPM: Product
header data of BOR object SEPM002
* selparamproductid = " EPM: BAPI range table for
product ids
* selparamsuppliernames = " EPM: BAPI range table for
company names
* selparamcategories = " EPM: Range table for product
categories
* return = " Return Parameter
.
"Step 2: Map this data from the BAPI to my EntitySet output table
ET_ENTITYSET = CORRESPONDING #( lt_bapi_products ).
endmethod.