<?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: Function Module For Executing File In Other OS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939274#M1334243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Wrapper" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Wrapper&lt;/A&gt;&lt;EM&gt;Class&lt;/EM&gt;for&lt;EM&gt;executing&lt;/EM&gt;External+Commands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 11:26:15 GMT</pubDate>
    <dc:creator>former_member209217</dc:creator>
    <dc:date>2009-07-16T11:26:15Z</dc:date>
    <item>
      <title>Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939268#M1334237</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 need to execute .&lt;STRONG&gt;sh&lt;/STRONG&gt; file in &lt;EM&gt;SUN operating&lt;/EM&gt; system.If there is any function module to execute?Please help me.Its very urgent.My OS is windows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939268#M1334237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T10:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939269#M1334238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this Function Module SXPG_COMMAND_EXECUTE( For Executing External OS Commands)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939269#M1334238</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-07-16T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939270#M1334239</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;Try Function 'GUI_EXEC' for yopur requirement. As I've run this for DOS through SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOS Execution : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_EXEC'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            COMMAND = 'C:\ABC.BAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939270#M1334239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T10:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939271#M1334240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Sathish,

&amp;lt;li&amp;gt; Use &lt;STRONG&gt;CL_GUI_FRONTEND_SERVICES-&amp;gt;EXECUTE&lt;/STRONG&gt; method to run OS applications
 or 
&amp;lt;li&amp;gt; Use &lt;STRONG&gt;GUI_EXEC&lt;/STRONG&gt; function module.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939271#M1334240</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-07-16T10:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939272#M1334241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman,&lt;/P&gt;&lt;P&gt;                     Please tell the use of &lt;STRONG&gt;addparam&lt;/STRONG&gt; in that functional module.Anything i need to pass?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939272#M1334241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939273#M1334242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the file to be executed is in another independent server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First, you need to connect to that server with username, password using FM: FTP_CONNECT.&lt;/P&gt;&lt;P&gt;2. After logging-in successfully, execute the command using FM: FTP_COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code which invokes change directory command cd /user/JOHN in remote system, &lt;/P&gt;&lt;P&gt;which changes present working directory (pwd) to /user/JOHN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENCRYPT PASSWORD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : w_key type i value 26101957,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;ID 'SOURCE' FIELD f_password&lt;/P&gt;&lt;P&gt;ID 'KEY' FIELD w_key&lt;/P&gt;&lt;P&gt;ID 'SCR' FIELD 'X'&lt;/P&gt;&lt;P&gt;ID 'DESTINATION' FIELD f_password&lt;/P&gt;&lt;P&gt;ID 'DSTLEN' FIELD w_pwd_len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    USER                   = user&lt;/P&gt;&lt;P&gt;    PASSWORD               = password&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNT                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    HOST                   = remote_server_name&lt;/P&gt;&lt;P&gt;    RFC_DESTINATION        = 'SAPFTPA'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GATEWAY_USER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GATEWAY_PASSWORD       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GATEWAY_HOST           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   HANDLE                 = handle&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NOT_CONNECTED          = 1&lt;/P&gt;&lt;P&gt;   OTHERS                 = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'cd'  '/user/ into command separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    HANDLE                = handle&lt;/P&gt;&lt;P&gt;    COMMAND               = command&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COMPRESS              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VERIFY                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RFC_DESTINATION       = 'SAPFTPA'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILESIZE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILEDATE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETIME              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA                  = result&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   TCPIP_ERROR           = 1&lt;/P&gt;&lt;P&gt;   COMMAND_ERROR         = 2&lt;/P&gt;&lt;P&gt;   DATA_ERROR            = 3&lt;/P&gt;&lt;P&gt;   OTHERS                = 4&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939273#M1334242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T10:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939274#M1334243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Wrapper" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Wrapper&lt;/A&gt;&lt;EM&gt;Class&lt;/EM&gt;for&lt;EM&gt;executing&lt;/EM&gt;External+Commands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 11:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939274#M1334243</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-07-16T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing File In Other OS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939275#M1334244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additional parameters field of the function module 'SXPG_COMMAND_EXECUTE' depends on the external system your going to call. You can pass details like server name, user name or incase of unix system, the parameter file path etc, concatenated into a single variable and pass to that parameter in the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 12:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing-file-in-other-os/m-p/5939275#M1334244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T12:20:18Z</dc:date>
    </item>
  </channel>
</rss>

