<?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: code needed ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406120#M817979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly why do you want to validate for the decimals? If you specify DECIMALS 2 then it will not allow more than 2 digits after the decimal as it is. Do you mean that you want to give a custom message to the user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly  , use method CL_GUI_FRONTEND_SERVICES-&amp;gt;GUI_DFOWNLOAD to write data from your internal table to the file and in this if you want to use a tab separator , check the parameter  write_field_separator to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 03:48:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-14T03:48:18Z</dc:date>
    <item>
      <title>code needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406119#M817978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the selection screen am using a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_AERCST TYPE P DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE TO ALLOW ONLY TWO DECIMAL PLACES IN THE FIELD. i HAD TO VALIDATE THIS, OS THAT USER WOULD ENTER ONLY TWO VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE SO MANY FIELDS IN AN INTERNAL TABLE. I HAD TO WRITE IT THAT INTO A FILE. BUT IT SHOULS BE TAB SEPERATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I DO IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE ADVISE AS EARLY AS POSSIBLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 02:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406119#M817978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T02:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: code needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406120#M817979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly why do you want to validate for the decimals? If you specify DECIMALS 2 then it will not allow more than 2 digits after the decimal as it is. Do you mean that you want to give a custom message to the user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly  , use method CL_GUI_FRONTEND_SERVICES-&amp;gt;GUI_DFOWNLOAD to write data from your internal table to the file and in this if you want to use a tab separator , check the parameter  write_field_separator to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 03:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406120#M817979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T03:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: code needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406121#M817980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi   ,&lt;/P&gt;&lt;P&gt;Here is the Code for   Downloading the Internal table  to File  with  field separated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method : 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   Download internal table to presentation server file(PC)&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Separating fields/columns by a tab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ld_filename TYPE string,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pre version 4.7 declaration e_file like rlgrap-filename.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: begin of it_datatab occurs 0,&lt;/P&gt;&lt;P&gt;  col1(50) type c,&lt;/P&gt;&lt;P&gt;  col2(50) type c,&lt;/P&gt;&lt;P&gt;  col3(50) type c,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      etc....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; end of it_datatab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;        filename         = ld_filename&lt;/P&gt;&lt;P&gt;        filetype         = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      APPEND           = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        write_field_separator = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CONFIRM_OVERWRITE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;        data_tab         = it_datatab[]&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_open_error  = 1&lt;/P&gt;&lt;P&gt;        file_write_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS           = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method: 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This method of file download with check uses the latest techniques&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and achieves a very neat solution&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: ld_filename TYPE string,&lt;/P&gt;&lt;P&gt;        ld_path TYPE string,&lt;/P&gt;&lt;P&gt;        ld_fullpath TYPE string,&lt;/P&gt;&lt;P&gt;        ld_result TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display save dialog window&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     window_title      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DEFAULT_EXTENSION = 'XLS'&lt;/P&gt;&lt;P&gt;      default_file_name = 'accountsdata'&lt;/P&gt;&lt;P&gt;      INITIAL_DIRECTORY = 'c:\temp\'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      filename          = ld_filename&lt;/P&gt;&lt;P&gt;      path              = ld_path&lt;/P&gt;&lt;P&gt;      fullpath          = ld_fullpath&lt;/P&gt;&lt;P&gt;      user_action       = ld_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check user did not cancel request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHECK ld_result EQ '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;        filename         = ld_fullpath&lt;/P&gt;&lt;P&gt;        filetype         = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      APPEND           = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        write_field_separator = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CONFIRM_OVERWRITE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;        data_tab         = it_datatab[]     "need to declare and populate&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_open_error  = 1&lt;/P&gt;&lt;P&gt;        file_write_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS           = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is usefull...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 04:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/3406121#M817980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T04:03:44Z</dc:date>
    </item>
  </channel>
</rss>

