CRM, CL_CRM_DOCUMENTS=>CREATE_FOLDER is not working
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
IS_BO = GV_BUSINESS_OBJECT
IV_NAME = p_folder "parameter in the selection screen
IV_DESCRIPTION = 'Tiinas test'
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