# BAPI_PROJECTDEF_GETDETAIL — Read Project Definition (Classic BAPI)

> Reads the detail data of a project definition by external or internal number with the older ProjectDefinition interface. Reports and older interfaces use it; BAPI_BUS2001_GETDATA is the newer alternative. Pass one of the two numbers and check RETURN.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CURRENTEXTERNALPROJE | BAPI_PROJ_KEY-PROJECT_DEFI | Project definition (external number) | Yes |
| CURRENTINTERNALPROJE | BAPI_PROJ_KEY-PROJ_KEY_INT | Project definition (internal number) | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| PROJECT_DEFINITION_STRU | BAPI_PROJECT_DEFINITION_EX | Project definition data (result) |
| RETURN | BAPIRETURN1 | Return messages |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_PROJECTDEF_GETDETAIL'
  EXPORTING
    currentexternalproje = lv_currentexternalproje
    currentinternalproje = lv_currentinternalproje
  IMPORTING
    project_definition_stru = lv_project_definition_stru
    return = lv_return.
```

## Related tables

PROJ

