<?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: Reading the document name. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137946#M1190846</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;You can do it from the transaction CG3Z or CG3Y.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 12:03:25 GMT</pubDate>
    <dc:creator>Subhankar</dc:creator>
    <dc:date>2009-02-05T12:03:25Z</dc:date>
    <item>
      <title>Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137939#M1190839</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;I have a requirement where in a number of documents (.doc,pdf,xls,txt...etc) are placed in a fixed folder in C drive .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to upload these documents to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here is how to read the file names with file type through a normal report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me plz .....&lt;/P&gt;&lt;P&gt; thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137939#M1190839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137940#M1190840</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;You can upload XLS USING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PDF&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_PDF_TO_SAP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TXT&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun Kayal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137940#M1190840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137941#M1190841</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;Use CG3Z transaction code to uplaod ur files to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137941#M1190841</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-05T11:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137942#M1190842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI BRO....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for TXT/BIN use&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for PDF use&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_PDF_TO_SAP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for XLS use&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137942#M1190842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137943#M1190843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;FM text_convert_xls_sap. for excel sheet&lt;/P&gt;&lt;P&gt;FM gui_upload for text file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example code&lt;/P&gt;&lt;P&gt;  OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT t_bkpf INTO fs_bkpf.&lt;/P&gt;&lt;P&gt;      CONCATENATE fs_bkpf-bukrs&lt;/P&gt;&lt;P&gt;                  fs_bkpf-belnr&lt;/P&gt;&lt;P&gt;                  fs_bkpf-gjahr&lt;/P&gt;&lt;P&gt;                  fs_bkpf-blart&lt;/P&gt;&lt;P&gt;                  fs_bkpf-bldat&lt;/P&gt;&lt;P&gt;             INTO line&lt;/P&gt;&lt;P&gt;        SEPARATED BY space&lt;/P&gt;&lt;P&gt;     IN CHARACTER MODE      .&lt;/P&gt;&lt;P&gt;      TRANSFER line TO w_file.&lt;/P&gt;&lt;P&gt;      CLEAR line.&lt;/P&gt;&lt;P&gt;    ENDLOOP.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way a file from presentation server can be uploaded to application server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137943#M1190843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137944#M1190844</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;Read the length of the string first as shown below&lt;/P&gt;&lt;P&gt;data : v type i,&lt;/P&gt;&lt;P&gt;         abc1 type c.&lt;/P&gt;&lt;P&gt;parameter : p_abc like filetype.  &lt;/P&gt;&lt;P&gt;v = strlen(p_abc).&lt;/P&gt;&lt;P&gt;v = v - 3. &lt;/P&gt;&lt;P&gt;abc = p_abc+v(3).&lt;/P&gt;&lt;P&gt;translate abc in uppercase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if abc = 'XLS'  &lt;/P&gt;&lt;P&gt; use the excel reading function module.&lt;/P&gt;&lt;P&gt;elseif abc =  'PDF'.&lt;/P&gt;&lt;P&gt; use the respective function modules.&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137944#M1190844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137945#M1190845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur timely reply.&lt;/P&gt;&lt;P&gt;As u said we can upload the files using CG3Z , yes we can &lt;/P&gt;&lt;P&gt;but the problem here is i donno the file names which are to be uploaded &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137945#M1190845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137946#M1190846</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;You can do it from the transaction CG3Z or CG3Y.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137946#M1190846</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2009-02-05T12:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the document name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137947#M1190847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Class CL_GUI_FRONTEND_SERVICES &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods DIRECTORY_LIST_FILES  to get file attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_dir_path type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_LIST_FILES&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DIRECTORY                   = v_dir_path&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILTER                      = '&lt;STRONG&gt;.&lt;/STRONG&gt;'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILES_ONLY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DIRECTORIES_ONLY            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    FILE_TABLE                  = v_files&lt;/P&gt;&lt;P&gt;    COUNT                       = v_count&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CNTL_ERROR                  = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DIRECTORY_LIST_FILES_FAILED = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRONG_PARAMETER             = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR_NO_GUI                = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NOT_SUPPORTED_BY_GUI        = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   others                      = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-document-name/m-p/5137947#M1190847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T12:16:42Z</dc:date>
    </item>
  </channel>
</rss>

