Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI To Update Project Details

Former Member
0 Kudos

Hi,

I have a <removed by moderator> requirement to Update Project and WBS Elent dates like Start date , Finish Date in Basic Data Tab For A Project and Target PO Date , Prj App/Drop/CF in Basic Data Tab For WBSE and BscStart , Bsc Fin , FcstStr ,FcstFin , ActStart ,Act.Fin in Dates Tab For WBSE for TCODE CJ20N.

I have used BAPI BAPI_PROJECT_MAINTAIN but it is not updating. Kindly advice in this case.

Regards,

Bharti Jain

Edited by: Bharti Jain on Nov 29, 2011 9:13 AM

Edited by: Thomas Zloch on Nov 29, 2011 5:25 PM

12 REPLIES 12

madhu_vadlamani
Active Contributor
0 Kudos

Hi Bharat,

Check with BAPI_PROJECTDEF_UPDATE.

Regards,

Madhu.

Former Member
0 Kudos

Thanks,

But In IMPORTof BAPI there is PROJECT_DEFINITION_STRU which is not having all the dates which I want to update.

Regards,

Bharti Jain

Former Member
0 Kudos

Is there any other function module to update the dates for the Project?

Regards,

Bharti Jain

0 Kudos

Hi Bharti,

Try with bdc method if there is no fm available.

Regards,

Madhu.

Former Member
0 Kudos

Before moving to BAPI I have already made a complete BDC Program and there it was not working fine that's why I have decides to switch to BAPI.

Regards,

Jens-K
Advisor
Advisor
0 Kudos

Hi Bharti,

there are several other function modules which may better fit your needs. The object ID in the Business Object Repository for Project Definitions is BUS2001 and for WBS elements it is BUS2001. With this information you can find the following FMs.

BAPI_BUS2001_CHANGE for Project Definitions

and

BAPI_BUS2054_CHANGE_MULTI.

Kind regards,

Jens

Former Member
0 Kudos

I have updated the desired fields in the BAPI BAPI_BUS2054_CHANGE_MULTI but it is giving error when Call Function CJ2054_CHANGE Line 70 is executed. I have debug the same and found in PERFORM MAP_2054_CHANGE

CHANGING

I_WBS_ELEMENT

LS_UPDATE_WBS_ELEMENT

LS_PRPS_CHG

LS_PRTEE_CHG

LS_PRPS_UPD

LS_PRTE_UPD.

of CJ2054_CHANGE it is giving error. Again in that I have reached to MAP2I_BAPI_BUS2054_CHG_TO_PRPS by debugging and found that in MAP_BAPI_WBS_ELEMENT_2_VSPRPS it is giving error . PSPNR and PSPHI are blank. How to get these.

The order in which I have used bAPI is BAPI_PS_INITIALIZATION , BAPI_BUS2054_CHANGE_MULTI , BAPI_TRANSACTION_COMMIT

Kindly guide in this matter.

Regards,

Bharti Jain

0 Kudos

Hi Bharti,

PSPNR is a mandatory field like the project definition. I am sure you're aware of that. PSPNR is the internal 8 digit numeric value representation of the external 24-char value WBS element. PSP is the German abbreviation for work-breakdown-structure. Have you provided the WBS element number and the project definition number considering the project coding to the BAPI BAPI_BUS2054_CHANGE_MULTI? The import parameter I_PROJECT_DEFINITION and table IT_WBS_ELEMENT have to be filled.

I recommend the following BAPI order:

BAPI_PS_INITIALIZATION , BAPI_BUS2054_CHANGE_MULTI , BAPI_PS_PRECOMMIT, BAPI_TRANSACTION_COMMIT

The project coding you can check in SPRO -> Project System -> Structures -> Templates -> Standard Work Breakdown Structure -> Settings for Standard and Operative WBSs -> Project Coding Mask -> Define Project Coding for Standard Projects.

Kind regards,

Jens

<removed by moderator>

Edited by: Thomas Zloch on Dec 2, 2011 2:17 PM

Former Member
0 Kudos

Hi,

I have already passed Project Definition AND WBS Element In BAPI_BUS2054_CHANGE_MULTI

As I have mention it is giving error in another BAPI's which are used in BAPI_BUS2054_CHANGE_MULTI.

Regards,

Bharti Jain

0 Kudos

Hi Bharti,

could you please provide further information? Which error code is returned? What is the content of the error message? In which code line does the error appears?

Kind regards,

Jens

Former Member
0 Kudos

Hi,

The error which I am getting with message number is below:-

018 Object WBS Element -


could not be changed

078 Processing not possible because there is no initialization

Regards,

Bharti Jain

Edited by: Bharti Jain on Dec 2, 2011 12:18 PM

Former Member
0 Kudos

Hi,

What might be the error for the same?

Regards,

Bharti Jain