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
| Parameter | Type | Description | Required |
|---|---|---|---|
| CONTROLLINGAREA | BAPI0015ID-KOKRS | Controlling area | Yes |
| PROFITCENTER | BAPI0015ID-PRCTR | Profit center | Yes |
| DATE | BAPI0015_3-DATE | Key date | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| PROFITCENTER_DETAIL | BAPI0015_2 | Profit center details |
| ADDRESS | BAPI0002_3 | Address |
| RETURN | BAPIRETURN | Return 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.