cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any BAPI for closing projects through CJ20 transaction?

uday_gubbala2
Active Contributor
0 Kudos

Hello Experts,

Is there any BAPI available for the CJ20 transaction to try close a project? I have been trying to locate one but haven't came across anyone. Please do let me know if in case any of you happen to know about 1 such BAPI.

Regards,

Uday

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

A project definition can be changed using the BAPI "BAPI_BUS2001_CHANGE". To do this, the project definition (PROJECT_DEFINITION) and the new values must be entered in the structure "I_PROJECT_DEFINITION". In the structure "I_PROJECT_DEFINITION_UPD", the fields that are to be changed must be marked with 'x'. The other fields remain unchanged. Before the project definition is changed, the following is checked:

Is another project already being processed in the LUW ?

Can the project be locked?

Is the changed data still consistent (do the company code and controlling area match?)

If all checks are successful, the project definition is changed in the document tables.

for example:

CALL FUNCTION 'BAPI_BUS2001_CHANGE'

EXPORTING

I_PROJECT_DEFINITION =

I_PROJECT_DEFINITION_UPD =

" TABLES

" ET_RETURN =

" EXTENSIONIN =

" EXTENSIONOUT =

.

Thanks,

Dhruv Kumar Malhotra

uday_gubbala2
Active Contributor
0 Kudos

Thanks I managed to resolve the problem through another workaround