cancel
Showing results for 
Search instead for 
Did you mean: 

Change status to project triggering an event

Former Member
0 Kudos

Hi Gurus,

I have a requirement to automatically change project status to closed or cancelled when one button or another is pressed. Y know how to read the status of the project via dpr_ts_proc_status but unable to set project status.

I would appreciate if someone could throw some light upon this issue.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

mariano_sabiche
Active Participant
0 Kudos

Hi Hector;

Which version of SAP PPM are you using?

You need to change the Project Definition status?

Try with FM for Project Definition--> BAPI_BUS2172_SET_STATUS

        CALL FUNCTION 'BAPI_BUS2172_SET_STATUS'

          EXPORTING

            project_definition_guid = gv_project_guid

            iv_status_profile       = lv_esquema

          TABLES

            return                  = lt_return.

Try with FM for Phases--> BAPI_BUS2173_SET_STATUS

          CALL FUNCTION 'BAPI_BUS2173_SET_STATUS'

            EXPORTING

              phase_guid        = ls_fase-guid

              iv_status_profile = lv_esquema

            TABLES

              return            = lt_return.

Don't forget to make 'BAPI_CPROJECTS_COMMIT_WORK'.

Regards,

Mariano

Message was edited by: Mariano Sabiche

Former Member
0 Kudos

Thank you Mariano, Issue solved.

Answers (0)