PS
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- 2054
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
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_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
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.