<?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: Problem with Quantity while downloading into Excel sheet. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-quantity-while-downloading-into-excel-sheet/m-p/3085122#M731670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in Excel only &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;In excel ...&lt;/P&gt;&lt;P&gt;Select the quantity column .. Data &amp;gt; Text to column&lt;/P&gt;&lt;P&gt;Select Delimited... Press Next...Press Next.. Press Finish..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will change the '-' from back to front of the number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2007 17:56:19 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-19T17:56:19Z</dc:date>
    <item>
      <title>Problem with Quantity while downloading into Excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-quantity-while-downloading-into-excel-sheet/m-p/3085121#M731669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel sheet Quantity values (Decimal points) negative &lt;SPAN __jive_emoticon_name="minus"&gt;&lt;/SPAN&gt; are displaying in 9.00- but it should be display -9.00 please suggest that how to resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using following code in program for downloading data into excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************&lt;/P&gt;&lt;P&gt;*Download the data in Excel sheet if Output data is not initial.&lt;/P&gt;&lt;P&gt;if not object_tab[] is initial.&lt;/P&gt;&lt;P&gt;  sort i_fileds2 by col_pos.&lt;/P&gt;&lt;P&gt;  LOOP AT i_fileds2 INTO wa_fileds2 where no_out = ''.&lt;/P&gt;&lt;P&gt;    xfc-FIELDNAME = wa_fileds2-FIELDNAME.&lt;/P&gt;&lt;P&gt;    xfc-DATATYPE  = wa_fileds2-DATATYPE.&lt;/P&gt;&lt;P&gt;    xfc-INTTYPE  =  wa_fileds2-INTTYPE.&lt;/P&gt;&lt;P&gt;    xfc-INTLEN =    wa_fileds2-INTLEN.&lt;/P&gt;&lt;P&gt;   if wa_fileds2-DATATYPE = 'QUAN'.&lt;/P&gt;&lt;P&gt;    xfc-DATATYPE = 'CHAR'.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;    append xfc to ifc.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign Layout Fields Headings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort i_fileds2 by col_pos.&lt;/P&gt;&lt;P&gt;  LOOP AT i_fileds2 INTO wa_fileds2.&lt;/P&gt;&lt;P&gt;    it_fields-fields = wa_fileds2-seltext_l.&lt;/P&gt;&lt;P&gt;    append it_fields.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the new Dynamic Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = ifc&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table        = new_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create a new Line with the same structure of the Dynamic table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ASSIGN new_table-&amp;gt;* TO &amp;lt;l_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  CREATE DATA new_line LIKE LINE OF &amp;lt;l_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       FILE_NAME                      = P_FILE1&lt;/P&gt;&lt;P&gt;       CREATE_PIVOT                   = 0&lt;/P&gt;&lt;P&gt;       DATA_SHEET_NAME                = ''&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PIVOT_SHEET_NAME               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PASSWORD                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PASSWORD_OPTION                = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PIVOT_FIELD_TAB                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       DATA_TAB                       = &amp;lt;l_table&amp;gt;&lt;/P&gt;&lt;P&gt;      FIELDNAMES                     = it_fields&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      FILE_NOT_EXIST                  = 1&lt;/P&gt;&lt;P&gt;      FILENAME_EXPECTED               = 2&lt;/P&gt;&lt;P&gt;      COMMUNICATION_ERROR             = 3&lt;/P&gt;&lt;P&gt;      OLE_OBJECT_METHOD_ERROR         = 4&lt;/P&gt;&lt;P&gt;      OLE_OBJECT_PROPERTY_ERROR       = 5&lt;/P&gt;&lt;P&gt;      INVALID_FILENAME                = 6&lt;/P&gt;&lt;P&gt;      INVALID_PIVOT_FIELDS            = 7&lt;/P&gt;&lt;P&gt;      DOWNLOAD_PROBLEM                = 8&lt;/P&gt;&lt;P&gt;      OTHERS                          = 9&lt;/P&gt;&lt;P&gt;             .&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 17:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-quantity-while-downloading-into-excel-sheet/m-p/3085121#M731669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-19T17:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Quantity while downloading into Excel sheet.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-quantity-while-downloading-into-excel-sheet/m-p/3085122#M731670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in Excel only &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;In excel ...&lt;/P&gt;&lt;P&gt;Select the quantity column .. Data &amp;gt; Text to column&lt;/P&gt;&lt;P&gt;Select Delimited... Press Next...Press Next.. Press Finish..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will change the '-' from back to front of the number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 17:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-quantity-while-downloading-into-excel-sheet/m-p/3085122#M731670</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-19T17:56:19Z</dc:date>
    </item>
  </channel>
</rss>

