Skip to Content
0
Former Member
Oct 19, 2007 at 04:46 PM

CRM, CL_CRM_DOCUMENTS=>CREATE_FOLDER is not working

59 Views

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