You are on page 1of 1

method PRODUCTSET_GET_ENTITYSET.

"how do we know here that what was the value of $top user passed?

* append INITIAL LINE TO et_entityset.


DATA: lt_bapi_products type TABLE OF BAPI_EPM_PRODUCT_HEADER.

"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.

You might also like