Quantcast
Viewing all articles
Browse latest Browse all 2151

CRM Service Ticket attachment is not opening

Hi Team,

 

i can able to attach the file in the service ticket  using  create_with_table ..but   the attachment its not getting opened in the service ticket.

 

error : fiel correpted / Word cannot start the converter mswrd632.wpc

 

  *Attaching the document

             call method cl_crm_documents=>create_with_table

               exporting

*                business_object     = ls_business_object

                 business_object     = ls_bor_object

                 properties          = ls_properties

                 file_access_info    = ls_file_access_info

                 file_content_binary = lt_content_bin

                 raw_mode            = 'X'

               importing

                 error               = ls_att_error.

 

i tried with the below code as well , but it's give file error.

 

call method cl_crm_documents=>create_with_file

               exporting

                 file_name       = lv_filename1

                 directory       = lv_path

                 properties      = ls_properties

                 business_object = ls_bor_object

               importing

                 loio            = lv1

                 phio            = lv2

                 error           = lv3.

             .

             call function 'BAPI_TRANSACTION_COMMIT'

               exporting

                 wait = 'X'.


Regards

Anbu b


Viewing all articles
Browse latest Browse all 2151

Trending Articles