Application Development and Automation 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: 
Read only

BAPI for modifying project status

Former Member
0 Likes
3,731

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,965

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

Read only

0 Likes
1,965

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

Read only

Former Member
0 Likes
1,965

Hi,

Use the FMs in the following order

BAPI_PS_INITIALIZATION

BAPI_BUS2001_SET_STATUS

BAPI_PS_PRECOMMIT

BAPI_TRANSACTION_COMMIT with wait.

Madhavi

Read only

Former Member
0 Likes
1,965

hi

good

try this BAPI

BAPI_PROJECTDEF_UPDATE Change Project Definition

thanks

mrutyun^

Read only

Former Member
0 Likes
1,965

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

Read only

Former Member
0 Likes
1,965

hi Reyes,

check the function module <b>STATUS_MAINTAIN</b>..

and <b>STATUS_CHANGE_FOR_ACTIVITY</b>

Hope this helps.

Sajan.

Read only

roger_gomez
Active Participant
0 Likes
1,965

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