11-29-2011 8:12 AM
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
11-29-2011 8:17 AM
11-29-2011 8:23 AM
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
11-30-2011 8:20 AM
Is there any other function module to update the dates for the Project?
Regards,
Bharti Jain
11-30-2011 8:29 AM
Hi Bharti,
Try with bdc method if there is no fm available.
Regards,
Madhu.
11-30-2011 9:14 AM
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,
11-30-2011 11:19 AM
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
12-02-2011 9:05 AM
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
12-02-2011 9:58 AM
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
12-02-2011 10:19 AM
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
12-02-2011 11:02 AM
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
12-02-2011 11:18 AM
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
12-03-2011 4:29 AM