PS
BAPI
RFC
Used the same way in S/4HANA
BAPI_PROJECT_MAINTAIN Maintain Project Including Networks
Creates and changes a whole project in one call: project definition, WBS elements, hierarchy, milestones, networks, activities and relationships. Older project upload programs use it; the BUS2001, BUS2054 and BUS2002 BAPIs are the newer alternative. Every action is controlled by entries in I_METHOD_PROJECT (object type, method, reference number), and the table must end with a 'SAVE' method; check RETURN and E_MESSAGE_TABLE.
- Function group
- 2054
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_PROJECT_DEFINITION | BAPI_PROJECT_DEFINITION | Project definition data | Yes |
| I_PROJECT_DEFINITION_UPD | BAPI_PROJECT_DEFINITION_UP | Project definition change flags | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_METHOD_PROJECT | BAPI_METHOD_PROJECT | Method table (object, method, reference) | Yes |
| I_WBS_ELEMENT_TABLE | BAPI_WBS_ELEMENT | WBS elements | — |
| I_WBS_ELEMENT_TABLE_UPDATE | BAPI_WBS_ELEMENT_UPDATE | WBS element change flags | — |
| I_WBS_MILESTONE_TABLE | BAPI_WBS_MILESTONE | WBS milestones | — |
| I_WBS_MILESTONE_TABLE_UPDATE | BAPI_WBS_MILESTONE_UPD | WBS milestone change flags | — |
| I_WBS_HIERARCHIE_TABLE | BAPI_WBS_HIERARCHIE | WBS hierarchy | — |
| I_NETWORK | BAPI_NETWORK | Network header data | — |
| I_NETWORK_UPDATE | BAPI_NETWORK_UPDATE | Network header change flags | — |
| I_ACTIVITY | BAPI_NETWORK_ACTIVITY | Network activities | — |
| I_ACTIVITY_UPDATE | BAPI_NETWORK_ACTIVITY_UP | Activity change flags | — |
| I_RELATION | BAPI_NETWORK_RELATION | Relationships | — |
| I_RELATION_UPDATE | BAPI_NETWORK_RELATION_UP | Relationship change flags | — |
| I_ACTIVITY_ELEMENT | BAPI_ACT_ELEMENT | Activity elements | — |
| I_ACTIVITY_MILESTONE | BAPI_ACT_MILESTONE | Activity milestones | — |
| 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_MAINTAIN'
EXPORTING
i_project_definition = lv_i_project_definition
i_project_definition_upd = lv_i_project_definition_upd
IMPORTING
return = lv_return
TABLES
i_method_project = lt_i_method_project
i_wbs_element_table = lt_i_wbs_element_table
i_wbs_element_table_update = lt_i_wbs_element_table_update
i_wbs_milestone_table = lt_i_wbs_milestone_table
i_wbs_milestone_table_update = lt_i_wbs_milestone_table_update
i_wbs_hierarchie_table = lt_i_wbs_hierarchie_table
i_network = lt_i_network
i_network_update = lt_i_network_update
i_activity = lt_i_activity
i_activity_update = lt_i_activity_update.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.