cancel
Showing results for 
Search instead for 
Did you mean: 

Info regarding class cl_crm_documents!

Former Member
0 Kudos

Hi,

Could anyone please tell me if there is any documentation available for the class CL_CRM_DOCUMENTS.

I am trying to use the COPY method of this class to copy a attachment from one lead to another. It works fine if all the documents are to be copied but i am not able to figure out how to copy a single document. What is the use of loio and phio parameters. Also I am not able to figure out the values needed to be passed to the method CREATE_FOLDER of the same class.

Please help

Thanks in advance,

Rohit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Karthik,

I tried passing the loio and phio parameters and different combinations for them.. but none seems to work out.. It does not give me any error but the document does not get copied.

As for create folder when i try to execute it from the class itself.. it is asking only the 'is_target_folder' parameter.. no idea what is this used for? the function works well if called through a program.

If any documentation is available it would really be of great help.

Thanks,

Rohit

Former Member
0 Kudos

Hi Rohit,

Along with LOIO parameter, have you passed the values for BUSINESS_OBJECT and NEW_BUSINESS_OBJECT. Also check whether the LOIO-OBJID passed has been correct.

Regards,

Karthik.

Former Member
0 Kudos

Yes i have passed the two parameters.. they are kind of mandatory.. and i checked the loio-objid and phio-objid..

taking them from the get_info method..

Regards,

Rohit

Former Member
0 Kudos

Hi Rohit,

pass only the loio, thats sufficient to copy the document.

phio is not required.

Regards,

Karthik.

Former Member
0 Kudos

Hi, please let me know if you have found a solution for that problem?

Former Member
0 Kudos

Hi Rohit,

LOIO - Logical IO.

PHIO - Physical IO.

since you have the document already attached to a lead, handle LOIO parameter of the COPY method like,

LOIO-OBJTYPE = L (since its logical)

LOIO-CLASS = CRM_L_ORD

LOIO-OBJID = object guid of the document generated from

previous attachment.

for method CREATE_FOLDER, handle the parameter IS_BO like,

IS_BO-instid = object guid of the lead.

IS_BO-typeid = 'BUS2000108'.

IS_BO-catid = 'BO'.

and also handle the parameter IV_NAME and IV_DESCRIPTION.

Hope it helps.

Regards,

Karthik.