cancel
Showing results for 
Search instead for 
Did you mean: 

CRM, CL_CRM_DOCUMENTS=>CREATE_FOLDER is not working

Former Member
0 Kudos

Hi everyone!

Has anyone succeeded to create a folder to documention tab in CRM and the transaction BP? The idea is to create a folder and add a document to business partner in batch job.

I have used method CL_CRM_DOCUMENTS=>CREATE_FOLDER. It inserts the record to the table CRMFOLDER, but the folder does not exist in correct place in the documentation tab at all.

Example from my program:

GV_BUSINESS_OBJECT-INSTID = p_cust. "parameter in the selection screen

GV_BUSINESS_OBJECT-TYPEID = 'BUS1006'.

GV_BUSINESS_OBJECT-CATID = 'BO'.

CALL METHOD CL_CRM_DOCUMENTS=>CREATE_FOLDER

EXPORTING

IS_BO = GV_BUSINESS_OBJECT

IV_NAME = p_folder "parameter in the selection screen

IV_DESCRIPTION = 'Tiinas test'

IMPORTING

ES_ERROR = p_error.

Something is missing here, but I do not what it is. Or is it so that it is not possible to create these kind of things in batch job.

With best regards Tiina

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is not a problem anymore. I have solved this one.

- Tiina -

Former Member
0 Kudos

Hi Tiina,

Could You (or anyone else) provide the information on how to sove this issue? Just like You, I ould like to create a subfolder using CL_CRM_DOCUMENTS=>CREATE_FOLDER. However this method does not have an "Parent Folder" (or sth like this) input parameter.

I would be grateful if You answered.

BR,

Maro