CO BAPI RFC Used the same way in S/4HANA

BAPI_PROFITCENTER_GETLIST Display List of Profit Centers

Lists the profit centers of a controlling area, optionally filtered by date and person responsible. Interfaces that send profit centers to external systems and value helps use it. The controlling area is mandatory; the result comes back in the PROFITCENTER_LIST table.

Function group
0015
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
CONTROLLINGAREABAPI0015ID-KOKRSControlling areaYes
DATEBAPI0015_3-DATEKey date—
PERSONINCHARGEBAPI0015_2-IN_CHARGEPerson responsible—
IN_CHARGE_USERBAPI0015_2-IN_CHARGE_USERUser responsible—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
PROFITCENTER_LISTBAPI0015_1Profit center listYes

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_PROFITCENTER_GETLIST'
  EXPORTING
    controllingarea = lv_controllingarea
  IMPORTING
    return = lv_return
  TABLES
    profitcenter_list = lt_profitcenter_list.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report