<?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: How can i get path Acrobat reader ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176594#M124484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I check out that function module but it did not work for me, it actually picked up the the wrong file in the wrong path.  I have written a little sample of what you can do.  It worked really good for me.    Please remember that, in this program case-sensitivity is important.  Enter the name of the program in the selection screen exactly as it appears in the PC. For example, the you must type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;A&amp;lt;/b&amp;gt;cro&amp;lt;b&amp;gt;R&amp;lt;/b&amp;gt;d32.exe&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

data: idir_tab type standard table of file_info.
data: xdir_tab type file_info.

data: imaster type table of string with header line.
data: xmaster type string.

data: count type i.
data: exit_flag type c.

parameters: p_file type localfile lower case.

xmaster = 'C:program files'.
append xmaster to imaster.


loop at imaster.

  clear idir_tab. refresh idir_tab.
  call method cl_gui_frontend_services=&amp;gt;directory_list_files
    exporting
      directory                   = imaster

    changing
      file_table                  = idir_tab
      count                       = count
    exceptions
      cntl_error                  = 1
      directory_list_files_failed = 2
      wrong_parameter             = 3
      error_no_gui                = 4
      others                      = 5.

  clear exit_flag.

  loop at idir_tab into xdir_tab.
    if xdir_tab-isdir = '1'.
      concatenate imaster '' xdir_tab-filename  into xmaster.
      append xmaster to imaster.
    else.
      if xdir_tab-filename = p_file.
        write:/ imaster, xdir_tab-filename.
        exit_flag = 'X'.
        exit.
      endif.
    endif.
  endloop.

  if exit_flag = 'X'.
    exit.
  endif.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2006 16:10:47 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-01-10T16:10:47Z</dc:date>
    <item>
      <title>How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176590#M124480</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;how can i get the path of Acrobat reader on my frontend ? I know that the program is named AcroRd32.exe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 15:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176590#M124480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176591#M124481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to do this programmatically with ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 15:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176591#M124481</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-10T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176592#M124482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sir !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 15:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176592#M124482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176593#M124483</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;U can get the file path with FM, SO_FILENAME_GET_WITH_PATH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass file name as input parameter....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sreedhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 15:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176593#M124483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T15:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176594#M124484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I check out that function module but it did not work for me, it actually picked up the the wrong file in the wrong path.  I have written a little sample of what you can do.  It worked really good for me.    Please remember that, in this program case-sensitivity is important.  Enter the name of the program in the selection screen exactly as it appears in the PC. For example, the you must type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;A&amp;lt;/b&amp;gt;cro&amp;lt;b&amp;gt;R&amp;lt;/b&amp;gt;d32.exe&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

data: idir_tab type standard table of file_info.
data: xdir_tab type file_info.

data: imaster type table of string with header line.
data: xmaster type string.

data: count type i.
data: exit_flag type c.

parameters: p_file type localfile lower case.

xmaster = 'C:program files'.
append xmaster to imaster.


loop at imaster.

  clear idir_tab. refresh idir_tab.
  call method cl_gui_frontend_services=&amp;gt;directory_list_files
    exporting
      directory                   = imaster

    changing
      file_table                  = idir_tab
      count                       = count
    exceptions
      cntl_error                  = 1
      directory_list_files_failed = 2
      wrong_parameter             = 3
      error_no_gui                = 4
      others                      = 5.

  clear exit_flag.

  loop at idir_tab into xdir_tab.
    if xdir_tab-isdir = '1'.
      concatenate imaster '' xdir_tab-filename  into xmaster.
      append xmaster to imaster.
    else.
      if xdir_tab-filename = p_file.
        write:/ imaster, xdir_tab-filename.
        exit_flag = 'X'.
        exit.
      endif.
    endif.
  endloop.

  if exit_flag = 'X'.
    exit.
  endif.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176594#M124484</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-10T16:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176595#M124485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange FM, i pass ACRORD32.EXE as input parameter and it give me C:\Documents and Settings\tafkap\SapWorkDir\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's not the true !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176595#M124485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T16:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176596#M124486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALso, remember that this program will blow thru the entire directory structure of your PC starting from the first entry in the imaster table.  I have started this program from the "program files" directory under "C", but you could start form "C".  Also remember that if the file is really far down in the structure, it could take a while to find it.  For the acrobat executable, only takes a couple seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176596#M124486</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-10T16:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176597#M124487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactlly what it brought back for me!!  Try my sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176597#M124487</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-10T16:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176598#M124488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM SO_PROGNAME_GET_WITH_PATH is better for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176598#M124488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176599#M124489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But Rich, i will test your code &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; &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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176599#M124489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-10T16:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get path Acrobat reader ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176600#M124490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the FM doesn't work, then you can't use it.  My sample program works good for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2006 16:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-get-path-acrobat-reader/m-p/1176600#M124490</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-10T16:37:59Z</dc:date>
    </item>
  </channel>
</rss>

