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

- Modules: CO
- Type: BAPI
- Function group: 0015
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-profitcenter-getdetail/

## 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)

```abap
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

CEPC, CEPCT

