Implement the GET_ENTITYSET method for the BusinessPartners entity.
Procedure
- In Service Builder, expand node. Right-click GetEntitySet (Query) and select Go to
ABAP Workbench.
- To proceed, click the Enter/Continue icon
in the information dialog.
- Once in the Class Builder:
- Toggle into edit mode.
- Scroll down and place the cursor in the BUSINESSPARTNERS_GET_ENTITYSET method
row.
- Click Redefine.

The
BUSINESSPARTNERS_GET_ENTITYSET implementation opens.
- Select .
- Enter BAPI_EPM_BP_GET_LIST in the Call Function field and
press Enter.
- Uncomment the line with TABLES and BPHEADERDATA by deleting the asterisk (*) and
add et_entityset as the table variable to correspond to BPHEADERDATA:
method BUSINESSPARTNERS_GET_ENTITYSET.
CALL FUNCTION 'BAPI_EPM_BP_GET_LIST'
* EXPORTING
* MAX_ROWS =
TABLES
* SELPARAMBPID =
* SELPARAMCOMPANYNAME =
BPHEADERDATA = et_entityset
* BPCONTACTDATA =
* RETURN =
.
endmethod.
The BAPI_EPM_BP_GET_LIST function is called to get the list of
business partners and the result is captured and passed through
et_entityset.
- Click the Activate icon.

- Confirm that the three objects are selected for activation and click
Continue
:
- If you see any warnings, recheck the code, correct any mistakes, then click
Activate again.
- Click Back
to return to the Class
Interface screen.