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
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.