<?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: Amount should be left justified in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111492#M1185810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After moving the amount field to Char varaible. And then use the CONDENSE statement on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;Char Varaible&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2009 08:57:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-28T08:57:34Z</dc:date>
    <item>
      <title>Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111491#M1185809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm downloading some data to .CSV file in presentation server. I have amount field as part of my file.&lt;/P&gt;&lt;P&gt;When data is downloaded to file, amount value is right justified. But then user is requesting to remove spaces on left side of the value. I have moved the amount value to char field but still my purpose is not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to achieve this? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111491#M1185809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111492#M1185810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After moving the amount field to Char varaible. And then use the CONDENSE statement on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;Char Varaible&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111492#M1185810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111493#M1185811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after you moved it to the char field.&lt;/P&gt;&lt;P&gt;use condense &amp;lt;variable&amp;gt; no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111493#M1185811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111494#M1185812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several solutions, they depend on which format u need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- WRITE &amp;lt;AMOUNT&amp;gt; TO &amp;lt;FILE&amp;gt; LEFT-JUSTIFIED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or u can use MOVE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;AMOUNT&amp;gt; TO &amp;lt;CHAR_VAR&amp;gt;.&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;CHAR_VAR&amp;gt;.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;CHAR_VAR&amp;gt; TO &amp;lt;FILE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111494#M1185812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111495#M1185813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After moving the amount value to char field, i have used condense before populating the char value into workarea and appending to table. data is saved as right justified in file. Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_pay_rate = wa_out-wage_amount.&lt;/P&gt;&lt;P&gt;    condense l_pay_rate no-gaps.&lt;/P&gt;&lt;P&gt;    CONCATENATE&lt;/P&gt;&lt;P&gt;        l_empno&lt;/P&gt;&lt;P&gt;        wa_out-vorna&lt;/P&gt;&lt;P&gt;        wa_out-nachn&lt;/P&gt;&lt;P&gt;        wa_out-labor_level1&lt;/P&gt;&lt;P&gt;        wa_out-company&lt;/P&gt;&lt;P&gt;        wa_out-kostl&lt;/P&gt;&lt;P&gt;        wa_out-orgeh&lt;/P&gt;&lt;P&gt;        wa_out-orig_hire_date&lt;/P&gt;&lt;P&gt;        wa_out-gbdat&lt;/P&gt;&lt;P&gt;        l_pay_rate&lt;/P&gt;&lt;P&gt;        INTO  wa_out_new-line SEPARATED BY c_sep_comma.&lt;/P&gt;&lt;P&gt;    APPEND wa_out_new TO p_tb_out_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Download data to Presentation Server&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = l_file&lt;/P&gt;&lt;P&gt;      filetype                = c_filetype&lt;/P&gt;&lt;P&gt;      append                  = c_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = tb_out_new&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error        = 1&lt;/P&gt;&lt;P&gt;      no_batch                = 2&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_authority            = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;      header_too_long         = 10&lt;/P&gt;&lt;P&gt;      dp_error_create         = 11&lt;/P&gt;&lt;P&gt;      dp_error_send           = 12&lt;/P&gt;&lt;P&gt;      dp_error_write          = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;      access_denied           = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;      disk_full               = 17&lt;/P&gt;&lt;P&gt;      dp_timeout              = 18&lt;/P&gt;&lt;P&gt;      file_not_found          = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;      control_flush_error     = 21&lt;/P&gt;&lt;P&gt;      OTHERS                  = 22.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111495#M1185813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111496#M1185814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moved the amount value to string field and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111496#M1185814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111497#M1185815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem,&lt;/P&gt;&lt;P&gt;I guess you are opening the CSV file in EXCEL, which by default takes the number into right justified format. My suggestion would be to change the format into TEXT in EXCEL after opening the file using FORMAT CELLS option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Khanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111497#M1185815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111498#M1185816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your code and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the problem is when the file is open by excel: u should check the file by NOTEPAD or WORDPAD in order to understand how the file is downloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111498#M1185816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111499#M1185817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Khanna and Max for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i'm opening the file in Excel which is displaying the amount as right justified. So the only way to remove spaces on left of amount is either to change the format to text or to view it in word or text right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111499#M1185817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111500#M1185818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you're right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user need to open the file by excel, he has to change the properties of the numeric cells: they have to become TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111500#M1185818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Amount should be left justified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111501#M1185819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Premraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    As also said by others to make your amount field left justified in your excel you have to use the FORMAT CELL option of your excel file and make the NUMBER CATEGORY as TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-should-be-left-justified/m-p/5111501#M1185819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:53:47Z</dc:date>
    </item>
  </channel>
</rss>

