<?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: Open dataset filesize in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525601#M848162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi use FM EPS_GET_DIRECTORY_LISTING and make sure u have authorization to the file. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_dir TYPE STANDARD TABLE OF epsfili,&lt;/P&gt;&lt;P&gt;      wa_dir TYPE epsfili.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: p_file TYPE epsfilnam.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    dir_name               = '/usr/sap/interface/'&lt;/P&gt;&lt;P&gt;    file_mask              = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dir_list               = it_dir&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    invalid_eps_subdir     = 1&lt;/P&gt;&lt;P&gt;    sapgparam_failed       = 2&lt;/P&gt;&lt;P&gt;    build_directory_failed = 3&lt;/P&gt;&lt;P&gt;    no_authorization       = 4&lt;/P&gt;&lt;P&gt;    read_directory_failed  = 5&lt;/P&gt;&lt;P&gt;    too_many_read_errors   = 6&lt;/P&gt;&lt;P&gt;    empty_directory_list   = 7&lt;/P&gt;&lt;P&gt;    OTHERS                 = 8.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ TABLE it_dir INTO wa_dir WITH KEY name = p_file.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  WRITE:/ wa_dir-size.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2008 11:28:47 GMT</pubDate>
    <dc:creator>asik_shameem</dc:creator>
    <dc:date>2008-03-14T11:28:47Z</dc:date>
    <item>
      <title>Open dataset filesize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525600#M848161</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'm need to create a FM to load graphics from presentation server into SAP Graphics (to use in sapscript/smartforms).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've discovered the function called by transaction SE78, but those FM calls a screen (and it cannot appen!). MORE, those FM are created using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I'm trying to replicate that FM, but using OPEN DATASET. So far so good, but I need filesize!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OPEN DATASET, how do I get/calculate file size???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help, its urgent!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 09:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525600#M848161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T09:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset filesize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525601#M848162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi use FM EPS_GET_DIRECTORY_LISTING and make sure u have authorization to the file. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_dir TYPE STANDARD TABLE OF epsfili,&lt;/P&gt;&lt;P&gt;      wa_dir TYPE epsfili.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: p_file TYPE epsfilnam.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    dir_name               = '/usr/sap/interface/'&lt;/P&gt;&lt;P&gt;    file_mask              = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    dir_list               = it_dir&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    invalid_eps_subdir     = 1&lt;/P&gt;&lt;P&gt;    sapgparam_failed       = 2&lt;/P&gt;&lt;P&gt;    build_directory_failed = 3&lt;/P&gt;&lt;P&gt;    no_authorization       = 4&lt;/P&gt;&lt;P&gt;    read_directory_failed  = 5&lt;/P&gt;&lt;P&gt;    too_many_read_errors   = 6&lt;/P&gt;&lt;P&gt;    empty_directory_list   = 7&lt;/P&gt;&lt;P&gt;    OTHERS                 = 8.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ TABLE it_dir INTO wa_dir WITH KEY name = p_file.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  WRITE:/ wa_dir-size.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 11:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525601#M848162</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2008-03-14T11:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset filesize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525602#M848163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It kind of work... only problem with capital or small caps... It can be worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, another situation: after I get bitmap and size, I need to convert bitmap into the BDS format with FM 'SAPSCRIPT_CONVERT_BITMAP_BDS'. However, this FM is always exiting with exception: &lt;/P&gt;&lt;P&gt;"Bitmap file: Preliminary end of file, file contains errors&lt;/P&gt;&lt;P&gt;Message no. TD878 "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 17:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-filesize/m-p/3525602#M848163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T17:28:01Z</dc:date>
    </item>
  </channel>
</rss>

