SAP BAPI_PROJECT_GETINFO Function Module for Read detailed information for work breakdown structures









BAPI_PROJECT_GETINFO is a standard bapi project getinfo SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read detailed information for work breakdown structures processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bapi project getinfo FM, simply by entering the name BAPI_PROJECT_GETINFO into the relevant SAP transaction such as SE37 or SE38.

Function Group: 2054
Program Name: SAPL2054
Main Program: SAPL2054
Appliation area: C
Release date: 13-Oct-1997
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_PROJECT_GETINFO pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BAPI_PROJECT_GETINFO'"Read detailed information for work breakdown structures
EXPORTING
* PROJECT_DEFINITION = "
* WITH_ACTIVITIES = "
* WITH_MILESTONES = "
* WITH_SUBTREE = "

IMPORTING
E_PROJECT_DEFINITION = "
RETURN = "

TABLES
* I_WBS_ELEMENT_TABLE = "
* E_WBS_ELEMENT_TABLE = "
* E_WBS_MILESTONE_TABLE = "
* E_WBS_HIERARCHIE_TABLE = "
* E_ACTIVITY_TABLE = "
* E_MESSAGE_TABLE = "
.



IMPORTING Parameters details for BAPI_PROJECT_GETINFO

PROJECT_DEFINITION -

Data type: BAPIPR-PROJECT_DEFINITION
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_ACTIVITIES -

Data type: BAPIPR-WITH_ACTIVITIES
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_MILESTONES -

Data type: BAPIPR-WITH_MILESTONES
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_SUBTREE -

Data type: BAPIPR-WITH_SUBTREE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_PROJECT_GETINFO

E_PROJECT_DEFINITION -

Data type: BAPI_PROJECT_DEFINITION_EX
Optional: No
Call by Reference: No ( called with pass by value option)

RETURN -

Data type: BAPIRETURN1
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_PROJECT_GETINFO

I_WBS_ELEMENT_TABLE -

Data type: BAPI_WBS_ELEMENTS
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_WBS_ELEMENT_TABLE -

Data type: BAPI_WBS_ELEMENT_EXP
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_WBS_MILESTONE_TABLE -

Data type: BAPI_WBS_MILESTONE_EXP
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_WBS_HIERARCHIE_TABLE -

Data type: BAPI_WBS_HIERARCHIE
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_ACTIVITY_TABLE -

Data type: BAPI_NETWORK_ACTIVITY_EXP
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_MESSAGE_TABLE -

Data type: BAPI_METH_MESSAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_PROJECT_GETINFO Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_project_definition  TYPE BAPIPR-PROJECT_DEFINITION, "   
lt_i_wbs_element_table  TYPE STANDARD TABLE OF BAPI_WBS_ELEMENTS, "   
lv_e_project_definition  TYPE BAPI_PROJECT_DEFINITION_EX, "   
lv_return  TYPE BAPIRETURN1, "   
lv_with_activities  TYPE BAPIPR-WITH_ACTIVITIES, "   
lt_e_wbs_element_table  TYPE STANDARD TABLE OF BAPI_WBS_ELEMENT_EXP, "   
lv_with_milestones  TYPE BAPIPR-WITH_MILESTONES, "   
lt_e_wbs_milestone_table  TYPE STANDARD TABLE OF BAPI_WBS_MILESTONE_EXP, "   
lv_with_subtree  TYPE BAPIPR-WITH_SUBTREE, "   
lt_e_wbs_hierarchie_table  TYPE STANDARD TABLE OF BAPI_WBS_HIERARCHIE, "   
lt_e_activity_table  TYPE STANDARD TABLE OF BAPI_NETWORK_ACTIVITY_EXP, "   
lt_e_message_table  TYPE STANDARD TABLE OF BAPI_METH_MESSAGE. "   

  CALL FUNCTION 'BAPI_PROJECT_GETINFO'  "Read detailed information for work breakdown structures
    EXPORTING
         PROJECT_DEFINITION = lv_project_definition
         WITH_ACTIVITIES = lv_with_activities
         WITH_MILESTONES = lv_with_milestones
         WITH_SUBTREE = lv_with_subtree
    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
. " BAPI_PROJECT_GETINFO




ABAP code using 7.40 inline data declarations to call FM BAPI_PROJECT_GETINFO

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single PROJECT_DEFINITION FROM BAPIPR INTO @DATA(ld_project_definition).
 
 
 
 
"SELECT single WITH_ACTIVITIES FROM BAPIPR INTO @DATA(ld_with_activities).
 
 
"SELECT single WITH_MILESTONES FROM BAPIPR INTO @DATA(ld_with_milestones).
 
 
"SELECT single WITH_SUBTREE FROM BAPIPR INTO @DATA(ld_with_subtree).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!