<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XML code transffered mail attachment when opening Excel Formulas not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542586#M2006243</link>
    <description>&lt;P&gt;Thanks Sandra,&lt;/P&gt;&lt;P&gt;Requirement to convert SAP XML program to excel and to attach mail. &lt;/P&gt;&lt;P&gt;formulas comes from internal table then moving to XML to Excel. &lt;/P&gt;&lt;P&gt;Issue noticed zeros &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2018526-image.png" /&gt; between two cell it suppsed to be &lt;STRONG&gt;=round (F2-M2,2)&lt;/STRONG&gt; but program generates and to populate dynamically, we can't change value as per XML generation.&lt;/P&gt;&lt;P&gt;How do change formula expected =Round(F2-M2-2). &lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 15:35:11 GMT</pubDate>
    <dc:creator>ram_sapsolution</dc:creator>
    <dc:date>2022-02-03T15:35:11Z</dc:date>
    <item>
      <title>XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542584#M2006241</link>
      <description>&lt;P&gt;Hi Expert, &lt;/P&gt;
  &lt;P&gt;when opening excel formulas not working and rest of them working fine in mail attachment. &lt;/P&gt;
  &lt;P&gt;eg: &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2018512-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 13:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542584#M2006241</guid>
      <dc:creator>ram_sapsolution</dc:creator>
      <dc:date>2022-02-03T13:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542585#M2006242</link>
      <description>&lt;P&gt;It's SAP forum here, your question is about Microsoft Excel...&lt;/P&gt;&lt;P&gt;You should also post your XML and explain what you want to do.&lt;/P&gt;&lt;P&gt;Anyway, solution is very simple, you do it manually in Excel, you save to XML format, and you see what XML Excel has generated, which is the right syntax of course, and you do the same in your own XML... &lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 15:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542585#M2006242</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-02-03T15:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542586#M2006243</link>
      <description>&lt;P&gt;Thanks Sandra,&lt;/P&gt;&lt;P&gt;Requirement to convert SAP XML program to excel and to attach mail. &lt;/P&gt;&lt;P&gt;formulas comes from internal table then moving to XML to Excel. &lt;/P&gt;&lt;P&gt;Issue noticed zeros &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2018526-image.png" /&gt; between two cell it suppsed to be &lt;STRONG&gt;=round (F2-M2,2)&lt;/STRONG&gt; but program generates and to populate dynamically, we can't change value as per XML generation.&lt;/P&gt;&lt;P&gt;How do change formula expected =Round(F2-M2-2). &lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 15:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542586#M2006243</guid>
      <dc:creator>ram_sapsolution</dc:creator>
      <dc:date>2022-02-03T15:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542587#M2006244</link>
      <description>&lt;P&gt;I'm afraid to ask how the program generates the XML &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 18:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542587#M2006244</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2022-02-03T18:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542588#M2006245</link>
      <description>&lt;P&gt;Is "removing 000" a good answer? Joking but what else can we answer?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 19:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542588#M2006245</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-02-03T19:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542589#M2006246</link>
      <description>&lt;P&gt;Hi Sandra, &lt;/P&gt;&lt;P&gt; cool, Zeros are populating via variable in abap program, made as single char but still find issue and formulas are not working after excel atttachment in mail. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;eg: values are stored as Field1#Field2#=ROUND(F2-M2,2)#=IF(AND(O3="y",P3&amp;gt;=0),S3,"*")&lt;/STRONG&gt;&lt;STRONG&gt; in t_pivot_table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SAP_CONVERT_TO_TXT_FORMAT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_line_header = c_x&lt;BR /&gt; TABLES&lt;BR /&gt; i_tab_sap_data = t_pivot_table "Formulas Contains this table&lt;BR /&gt; CHANGING&lt;BR /&gt; i_tab_converted_data = is_text "Converted as text format&lt;/P&gt;&lt;P&gt;LOOP AT is_text INTO e_text.&lt;/P&gt;&lt;P&gt; CONCATENATE e_text c_newline INTO w_text.&lt;BR /&gt; CALL FUNCTION 'SCMS_STRING_TO_XSTRING'&lt;BR /&gt; EXPORTING&lt;BR /&gt; text = w_text&lt;BR /&gt; IMPORTING&lt;BR /&gt; buffer = w_xls_data&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; failed = 1&lt;BR /&gt; OTHERS = 2.&lt;BR /&gt; IF sy-subrc NE 0.&lt;BR /&gt; MESSAGE 'Conversion failed' TYPE 'E'.&lt;BR /&gt; ENDIF.&lt;BR /&gt; CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;BR /&gt; EXPORTING&lt;BR /&gt; buffer = w_xls_data&lt;BR /&gt; append_to_table = c_bin_dat&lt;BR /&gt; TABLES&lt;BR /&gt; binary_tab = t_xls_data&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; failed = 1&lt;BR /&gt; OTHERS = 2.&lt;BR /&gt; IF sy-subrc NE 0.&lt;BR /&gt; MESSAGE 'Conversion failed' TYPE 'E'.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt;&lt;BR /&gt; lo_docu = cl_document_bcs=&amp;gt;create_document( i_type = c_htm&lt;BR /&gt; i_text = t_html&lt;BR /&gt; i_subject = w_subj ).&lt;BR /&gt;&lt;BR /&gt; CALL METHOD lo_docu-&amp;gt;add_attachment&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_attachment_type = w_doc_type&lt;BR /&gt; i_attachment_subject = w_xls_fname&lt;BR /&gt; i_attachment_size = w_size&lt;BR /&gt; i_att_content_hex = t_xls_data&lt;BR /&gt; i_att_content_text = t_html.&lt;BR /&gt;&lt;BR /&gt; DATA: bcs_exception TYPE REF TO cx_bcs.&lt;BR /&gt; w_recpt = w_receivers.&lt;BR /&gt; SPLIT w_recpt AT ';' INTO TABLE ts_mailid.&lt;BR /&gt; CLEAR: w_recpt.&lt;BR /&gt; LOOP AT ts_mailid INTO e_mailid.&lt;BR /&gt; w_recpt = e_mailid.&lt;BR /&gt; TRY.&lt;BR /&gt; lo_recv = cl_cam_address_bcs=&amp;gt;create_internet_address( w_recpt ).&lt;BR /&gt;*sending email&lt;BR /&gt; lo_send-&amp;gt;set_document( lo_docu ).&lt;BR /&gt; lo_send-&amp;gt;add_recipient( EXPORTING i_recipient = lo_recv ).&lt;BR /&gt; lo_send-&amp;gt;add_recipient( EXPORTING i_recipient = lo_recv i_copy = c_x ).&lt;BR /&gt; CALL METHOD lo_send-&amp;gt;set_send_immediately&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_send_immediately = c_x.&lt;BR /&gt; lo_send-&amp;gt;send( ).&lt;BR /&gt; CATCH cx_bcs INTO bcs_exception.&lt;BR /&gt; MESSAGE i865(so) WITH bcs_exception-&amp;gt;invalid_value.&lt;BR /&gt; ENDTRY.&lt;BR /&gt; CLEAR: e_mailid.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; COMMIT WORK.&lt;/P&gt;&lt;P&gt;Please suggest if any other idea or needs to be done via abap2xlsx&lt;/P&gt;&lt;H1&gt;abap2xlsx, where to find related objects in SAP application, unable to find standard objects to use. &lt;/H1&gt;</description>
      <pubDate>Fri, 04 Feb 2022 17:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542589#M2006246</guid>
      <dc:creator>ram_sapsolution</dc:creator>
      <dc:date>2022-02-04T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: XML code transffered mail attachment when opening Excel Formulas not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542590#M2006247</link>
      <description>&lt;P&gt;I don't get how it's possible that it goes from =ROUND(F2-M2,2) to =ROUND(F0002-M0002,2). Where is the code which transforms that? Where is the "XML code"? I think that nobody can understand the question.&lt;/P&gt;&lt;P&gt;NB: unfortunately pivot tables are currently not supported by abap2xlsx.&lt;/P&gt;&lt;P&gt;NB: Please edit your comment, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 19:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-code-transffered-mail-attachment-when-opening-excel-formulas-not/m-p/12542590#M2006247</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-02-04T19:29:44Z</dc:date>
    </item>
  </channel>
</rss>

