cancel
Showing results for 
Search instead for 
Did you mean: 

PS System Status Reverse through a BAPI

former_member308318
Participant
1,611

Hi,
Is there any BAPI to get the list of Projects created by Specific Role that are CLSD status and reverse it back to REL and set the status back to CLSD?

I can get the User ID from PRPS table “Created By” and get the active status of a WBS by passing PRPS-OBNR to TJ02 to GET the active System status that are CLSD and SET the status back to REL, and again set the status to CLSD but this is done through a logic passing into tables. I was wondering if there a BAPI without having to write this table logic.

Regards,
Ashley.

View Entire Topic
Paulo_Vitoriano
Active Contributor
0 Kudos

Hi Ashley,

Transaction CNMASSSTATUS has dynamic selection by Created by (User name). You would cancel CLSD first and TECO next to reach REL. And it has a test run too!

Regards,

Paulo

former_member308318
Participant
0 Kudos

Hi Paulo,

That’s a good input. Thank you.

But I would like this to run as a monthly job.
For example , the program should work this way:

Get the list of Projects that are in CLSD status by a specific User ID: ZXXXX.

Move the status back to REL

Delete any plan cost

Set the status back to CLSD.

Currently , we are doing this manually but we wanted to automate it and do through a program.

I believe for User ID , I can use PRPS-ERNAM(Name of the Person who created the Project). I was wondering if there is another way to fetch the User IDs from PROJ or PRPS.

Paulo_Vitoriano
Active Contributor
0 Kudos

Hi Ashley,

PRPS-ERNAM is the same as Created by user name. In the selection criteria you can also use a status selection profile that will give you closed WBS only. I am just wondering how you make sure not to process same WBS twice or more times.

Overall this is a very strange business requirement to flush any plan data, I cannot really imagine why this can be required.

But it would be more logical to implement that as a pre-condition for project Closing. For instance if you try to set CLSD status, system should validate that there is no plan data.

Regards,

Paulo