<?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: Log file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452065#M214042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    all the variables should be of same type as   &lt;/P&gt;&lt;P&gt;    defined in FM to aviod error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2006 10:41:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-17T10:41:54Z</dc:date>
    <item>
      <title>Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452059#M214036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I want to transfer all the logs in one internal table then, then I have to tranfer all the intenal table logs into external file. The external file is from the selection-screen. This selection option should have F4 function also. Any body tell me how can I do it this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 08:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452059#M214036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452060#M214037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these FM BP_JOBLOG_READ &lt;/P&gt;&lt;P&gt;BP_JOBLOG_SHOW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the table &amp;lt;b&amp;gt;TBTCO&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 08:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452060#M214037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T08:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452061#M214038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     The job will not be create in this situation. Actually I wnat to push some information to the external file. How can I do it this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 08:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452061#M214038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452062#M214039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if you want to define an f4 help for external file direction then you have to just have to define a parameter&lt;/P&gt;&lt;P&gt;PARAMETERS : p_f1    LIKE  rcgfiletr-ftfront . in your selection Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the F4 help call FM after the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for presentation server&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f1.&lt;/P&gt;&lt;P&gt;  CONSTANTS: lcl_path TYPE string VALUE 'C:\'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'C13Z_FRONTEND_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_initial_directory = lcl_path&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_filename          = p_f1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      internal_error      = 1&lt;/P&gt;&lt;P&gt;      OTHERS              = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you want to download the file use the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lcl_filename TYPE string.&lt;/P&gt;&lt;P&gt;  lcl_filename = p_f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF  filename IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = lcl_filename&lt;/P&gt;&lt;P&gt;        filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;        write_field_separator   = 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = download_itable&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_open_error         = 1&lt;/P&gt;&lt;P&gt;        file_read_error         = 2&lt;/P&gt;&lt;P&gt;        no_batch                = 3&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;        invalid_type            = 5&lt;/P&gt;&lt;P&gt;        no_authority            = 6&lt;/P&gt;&lt;P&gt;        unknown_error           = 7&lt;/P&gt;&lt;P&gt;        bad_data_format         = 8&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;        header_too_long         = 11&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;        access_denied           = 13&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;        disk_full               = 15&lt;/P&gt;&lt;P&gt;        dp_timeout              = 16&lt;/P&gt;&lt;P&gt;        OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Dominic  Pappaly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 09:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452062#M214039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T09:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452063#M214040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST.

DATA f_name TYPE STRING.
data: itab like mara occurs 0 with header line.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:test.xls'.

at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-repid
dynpro_number = syst-dynnr
field_name = 'p_file'
importing
file_name = p_file.
f_name = p_file.
start-of-selection.
select * from mara into table itab up to 20 rows.
call function 'GUI_DOWNLOAD'
  exporting
    filename                        = f_name
  tables
    data_tab                        = itab[]
 EXCEPTIONS
   FILE_WRITE_ERROR                = 1
   NO_BATCH                        = 2
   GUI_REFUSE_FILETRANSFER         = 3
   INVALID_TYPE                    = 4
   NO_AUTHORITY                    = 5
   UNKNOWN_ERROR                   = 6
   HEADER_NOT_ALLOWED              = 7
   SEPARATOR_NOT_ALLOWED           = 8
   FILESIZE_NOT_ALLOWED            = 9
   HEADER_TOO_LONG                 = 10
   DP_ERROR_CREATE                 = 11
   DP_ERROR_SEND                   = 12
   DP_ERROR_WRITE                  = 13
   UNKNOWN_DP_ERROR                = 14
   ACCESS_DENIED                   = 15
   DP_OUT_OF_MEMORY                = 16
   DISK_FULL                       = 17
   DP_TIMEOUT                      = 18
   FILE_NOT_FOUND                  = 19
   DATAPROVIDER_EXCEPTION          = 20
   CONTROL_FLUSH_ERROR             = 21
   OTHERS                          = 22
          .
if sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 09:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452063#M214040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T09:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452064#M214041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijay,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If I am executing the same code its giving short-dump with the message like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Type conflict when calling a function module'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what it may be the reason for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 10:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452064#M214041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T10:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452065#M214042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    all the variables should be of same type as   &lt;/P&gt;&lt;P&gt;    defined in FM to aviod error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 10:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452065#M214042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T10:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Log file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452066#M214043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you declare the Parameters as i specified above.&lt;/P&gt;&lt;P&gt;and the filename type should be of type string that you are going to pass it GUI_DOWNLOAD. just check it.&lt;/P&gt;&lt;P&gt;f_name should be of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;f_name&amp;lt;/b&amp;gt; = p_file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'GUI_DOWNLOAD'
  exporting
    filename                        = f_name&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 11:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-file/m-p/1452066#M214043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T11:39:59Z</dc:date>
    </item>
  </channel>
</rss>

