Hi all,
I am using the class for attaching the document
*Class for attaching the file to bussiness objects
CALL METHOD cl_crm_documents=>create_with_file
EXPORTING
file_name = lv_filename
directory = lv_path
business_object = ls_bor
IMPORTING
loio = lv_loio
error = lv_error.
IF lv_error IS INITIAL.
*class to rename document and folder
CALL METHOD cl_crm_documents=>rename_object
EXPORTING
is_io = lv_loio
iv_name = lv_filename_aux.
Our requierment is user will get message when he is trying to uplo