Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2300

XML attachment for email issue in DEV but not on Sandbox using class CL_BCS

$
0
0

Hello Gurus,

I have issues with executing the same code on two different systems pach wise both are same systems . The code works perfectly fine on the Sandbox system and the email has the attachment with content but when the same code is executed on the DEV system there is only two lines in the attachment.

What is the config that might be different any idea. The SCOT config is the same on both the system and so  are the content of the table TSOTD.

 

 

<?xml version="1.0" encoding="utf-16"?>

<?mso-application progid="Excel.Sheet"?><Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:Integer="java://java.lang.Integer" xmlns:SL="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:alv="http://www.sap.com/ALV/2.6" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:asx="http://www.sap.com/abapxml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:o="urn:schemas-mi

 

*****************CODE****************************

    DATA lt_text_mail       TYPE soli_tab.

*lt_text_mail[]  = lt_xml_rawdata[].

* Send request

    TRY.

        lr_send_request = cl_bcs=>create_persistent( ).

*     Create document  lr_document_bcs

        document = cl_document_bcs=>create_document(

                                  i_type = 'RAW'

                                  i_text = lt_message_body

                                  i_length  = '80'

                                  i_subject = lv_emailtext ).


        CALL METHOD document->add_attachment

          EXPORTING

            i_attachment_type    = 'XML'

            i_attachment_subject = lv_emailtext

            i_att_content_hex    = lt_xml_rawdata.

*             i_attachment_size =  lv_lenchar.

 

Thanks.

Kind Regards,

Sohail
                                 

 

 

 


Viewing all articles
Browse latest Browse all 2300

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>