05-11-2009 6:29 PM
I am running a conversion and for the upload portion I need to create projects and the relevant wbs elements in the system. I have been looking over the forums etc and have seen many notes regarding BAPI_BUS2001_SET_STATUS, BAPI_PROJECTDEF_CREATE, and BAPI_PROJECT_MAINTAIN.
My problem is this.
I need to update the APPR and PREP system statuses of the projects I create and I can find no way to do this with a BAPI. I also need to update the location of the project (stort) and the only BAPI I can find that will allow me to do this is BAPI_PROJECT_SAVEREPLICA which seems incorrect to use in this manner.
in short:
How do I update project system status of PREP and APPR?
How do I update project location (stort)?
Having no luck finding solutions so any help is appreciated.
05-12-2009 1:56 AM
Hi,
I've used these BAPIs but not for your fields. But maybe I can help you. There is no field LOCATION in the project definition but there is field LOCATION on WBS level. So have you tried to change this field on all WBS elements for your project?
Unfortunately your system statuses are not supported by this BAPI. All supported statuses are mentioned in BAPI documentation. There is a FM STATUS_UPDATE_PROJECT which might help you but you need to be careful what you do. There are some additional FM STATUS_* for generic object status modification but again, you have to be sure that you can set up that system status without any additional checks.
Good luck
05-12-2009 1:56 AM
Hi,
I've used these BAPIs but not for your fields. But maybe I can help you. There is no field LOCATION in the project definition but there is field LOCATION on WBS level. So have you tried to change this field on all WBS elements for your project?
Unfortunately your system statuses are not supported by this BAPI. All supported statuses are mentioned in BAPI documentation. There is a FM STATUS_UPDATE_PROJECT which might help you but you need to be careful what you do. There are some additional FM STATUS_* for generic object status modification but again, you have to be sure that you can set up that system status without any additional checks.
Good luck
05-12-2009 5:57 PM
In the PROJ table there is no field called location, I was referring to STORT. That is the field I wish to update for the Projects.
I took at look at that function module and at first glance I am not sure that will get me what I need. I'll keep digging and thanks for your response.
I think I am going to go ahead and use BAPI_PROJECT_SAVEREPLICA on the upload side to handle the location and statuses. At least, that is my current course of action..
10-07-2009 9:55 PM