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

BAPI_PROFITCENTER_GETDETAIL Display Profit Center Master Data

Returns the master data and address of a profit center valid on a given date. Interfaces use it to read and validate profit center data. Its RETURN parameter uses the older BAPIRETURN type; check the TYPE field for E.

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

Importing parameters

ParameterTypeDescriptionRequired
CONTROLLINGAREABAPI0015ID-KOKRSControlling areaYes
PROFITCENTERBAPI0015ID-PRCTRProfit centerYes
DATEBAPI0015_3-DATEKey date—

Exporting parameters

ParameterTypeDescription
PROFITCENTER_DETAILBAPI0015_2Profit center details
ADDRESSBAPI0002_3Address
RETURNBAPIRETURNReturn message

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_GETDETAIL'
  EXPORTING
    controllingarea = lv_controllingarea
    profitcenter = lv_profitcenter
  IMPORTING
    profitcenter_detail = lv_profitcenter_detail
    address = lv_address
    return = lv_return.

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