# BAPI_PROJECT_GETINFO — Read Project Structure

> Reads a project definition together with its WBS elements, hierarchy and, on request, milestones and network activities. Reports and interfaces that export complete project structures use it. Set WITH_ACTIVITIES, WITH_MILESTONES and WITH_SUBTREE to 'X' only when you need that data, and check RETURN.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| PROJECT_DEFINITION | BAPIPR-PROJECT_DEFINITION | Project definition to read | - |
| WITH_ACTIVITIES | BAPIPR-WITH_ACTIVITIES | Include network activities | - |
| WITH_MILESTONES | BAPIPR-WITH_MILESTONES | Include milestones | - |
| WITH_SUBTREE | BAPIPR-WITH_SUBTREE | Include subordinate WBS elements | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| E_PROJECT_DEFINITION | BAPI_PROJECT_DEFINITION_EX | Project definition data |
| RETURN | BAPIRETURN1 | Return messages |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| I_WBS_ELEMENT_TABLE | BAPI_WBS_ELEMENTS | WBS elements to read | - |
| E_WBS_ELEMENT_TABLE | BAPI_WBS_ELEMENT_EXP | WBS elements | - |
| E_WBS_MILESTONE_TABLE | BAPI_WBS_MILESTONE_EXP | WBS milestones | - |
| E_WBS_HIERARCHIE_TABLE | BAPI_WBS_HIERARCHIE | WBS hierarchy | - |
| E_ACTIVITY_TABLE | BAPI_NETWORK_ACTIVITY_EXP | Network activities | - |
| E_MESSAGE_TABLE | BAPI_METH_MESSAGE | Message table | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_PROJECT_GETINFO'
  IMPORTING
    e_project_definition = lv_e_project_definition
    return = lv_return
  TABLES
    i_wbs_element_table = lt_i_wbs_element_table
    e_wbs_element_table = lt_e_wbs_element_table
    e_wbs_milestone_table = lt_e_wbs_milestone_table
    e_wbs_hierarchie_table = lt_e_wbs_hierarchie_table
    e_activity_table = lt_e_activity_table
    e_message_table = lt_e_message_table.
```

## Related tables

PRHI, PROJ, PRPS

