‎2006 Nov 13 11:16 AM
Hello all,
I have found a function :STATUS_TEXT_EDIT to get the status of a project, but now I want to modify the status of the project. Does anybody know if there is a BAPI to do this?
Thank you very much.
Reyes
‎2006 Nov 13 11:26 AM
Hi,
I dont think u will have BAPI for ur req.
U can create one ZBAPI with merging STATUS_TEXT_EDIT and BAPI_TRANSACTION_COMMIT to update project status as the same functionality u have in STATUS_TEXT_EDIT .
Regs
Manas Ranjan Panda
‎2006 Nov 13 11:37 AM
All right. I have just found this BAPI: BAPI_PROJECT_MAINTAIN. Its description says that this BAPI is for updating projects. This could be wright??
Thank you
‎2006 Nov 13 11:33 AM
Hi,
Use the FMs in the following order
BAPI_PS_INITIALIZATION
BAPI_BUS2001_SET_STATUS
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT with wait.
Madhavi
‎2006 Nov 13 11:35 AM
hi
good
try this BAPI
BAPI_PROJECTDEF_UPDATE Change Project Definition
thanks
mrutyun^
‎2006 Nov 13 12:51 PM
Hi
i saw that BAPI-BAPI_PROJECT_MAINTAIN and read the documentation
I think u can use that but i m not sure
Try to pass all the parameters as specified in FM documentation and try.
Thanks
Manas Ranjan Panda
‎2006 Nov 13 1:20 PM
hi Reyes,
check the function module <b>STATUS_MAINTAIN</b>..
and <b>STATUS_CHANGE_FOR_ACTIVITY</b>
Hope this helps.
Sajan.
‎2006 Nov 20 3:15 AM
Hi Reyes!
I think that there's no any BAPI to change the Status of the Project or WBS element.
But you can do the next steps for any <b>OBJNR</b> (Project/WBS):
1. Set a breakpoint in program LBSVAF12 in the form STATUS_UPDATE. Then go to change the status user/system of the project/WBS using transaction CJ02. Make you updations and save. You should reach your breakpoint.
2. The function module <b>'STATUS_UPDATE'</b> is triggered using internal table "<u>jest_updt</u>". Copy the records of this table carefully. It is updating the standard table JEST (select the corresponding fields in your program).
3. Using the function module 'STATUS_OBJECT_READ' with the OBJNR you can obtaing the fields <u>OBTYP</u> and <u>STSMA</u>.
4. Then you're ready to built your ABAP program to automatize the status updation. Append the corresponding records in the internal table " jest_update" and just function <b>'STATUS_UPDATE' IN UPDATE TASK</b> with your internal table. Then COMMIT WORK AND WAIT. The status is now changed like manually in step 1.
5. To make it perfect you should maintain the correct change numbers (<u>CHGNR</u>) in the <b>JEST</b> table.
Best regards and see you in Madrid next time!
Roger