cancel
Showing results for 
Search instead for 
Did you mean: 

To create new folder to cProject

Former Member
0 Kudos

Hi,

Anyone aware of the BAPI -- BAPI_BUS2172_FOLDER_ADD to create folder in cProject.

I want to know the way to use the same.

I am not able to pass values successfully to that BAPI.

Please help me with the same.

Thanks in advance.

Regards,

Navas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Navas,

to use this BAPI, it's necessary to fill the project guid in the importing parameter PROJECT_DEFINITION_GUID. In the second step you have to fill the parameter IV_TARGET_FOLDER_GUID as follows:

The IV_TARGET_FOLDER_GUID parameter contains the GUID of the folder below which the new folder is to be created. If this GUID is a document, its superior folder is used as the target folder.

The (generated) folder on level 1 is represented by the GUID of the application object. If you want to create a folder below the level 1 folder, the xxx_GUID (where xxx identifies the application object, for example, PROJECT_DEFINITION, PHASE, TASK, and so on) and IV_TARGET_FOLDER_GUID parameters contain the same GUID.

You should be able to create a folder after this. Don't forget the FM BAPI_CPROJECTS_COMMIT_WORK at the end to save the new stuff.

Best regards,

Simon