<?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: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179230#M1518302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanjit, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to copy to the target folder . For that I am using FILE_GET_NAME to retrive the target file name and then sending that along with source file path to "sxpg_command_execute" . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting target file path same as the source from FILE_GET_NAME. Also "SXPG_COMMAND_EXECUTE" is giving that path is not found. Also I dont have access to the folder .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 10:39:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-17T10:39:25Z</dc:date>
    <item>
      <title>Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179225#M1518297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please help me to know the difference between moving a file using FM "SXPG_COMMAND_EXECUTE" and moving file using "open data set - transfer file- close data set" mechanism?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 17:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179225#M1518297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T17:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179226#M1518298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through 'SXPG_COMMAND_EXECUTE' u can execute a External command  (ie.. UNIX /Windows/OS/400) In ABAP programming..&lt;/P&gt;&lt;P&gt;for Conversion Of Aplication server File/Move the file from one directory to Other...&lt;/P&gt;&lt;P&gt;The Command must be present in SM69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this function module'SXPG_COMMAND_EXECUTE' , you can check the authorization of a user to execute a particular external command and run the command: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the arguments specified in ADDITIONAL_PARAMETERS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the target host system defined by OPERATINGSYSTEM and TARGETSYSTEM &lt;/P&gt;&lt;P&gt;If an SAP profile parameter is inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an SAP application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile that is active on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS. &lt;/P&gt;&lt;P&gt;After substitution, the command is checked for the presence of "dangerous" characters such as the semicolon ( ; ) on UNIX systems. &lt;/P&gt;&lt;P&gt;If an additional "security function module" is specified in the command definition, this function module is also called in the course of processingebenfalls. This function module can prevent execution of the command. &lt;/P&gt;&lt;P&gt;If the authorization checks complete successfully, the command is run on the target host system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through Open Data Set u can read and write the file in the same directory...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;SD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: copy/paste without credit, points removed, please do not repeat!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.google.de/search?hl=de&amp;amp;q=%22you" target="test_blank"&gt;http://www.google.de/search?hl=de&amp;amp;q=%22you&lt;/A&gt;&lt;EM&gt;can&lt;/EM&gt;check&lt;EM&gt;the&lt;/EM&gt;authorization&lt;EM&gt;of&lt;/EM&gt;a&lt;EM&gt;user&lt;/EM&gt;to+execute%22&amp;amp;meta=&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.google.de/search?hl=de&amp;amp;q=%22After" target="test_blank"&gt;http://www.google.de/search?hl=de&amp;amp;q=%22After&lt;/A&gt;&lt;EM&gt;substitution%2C&lt;/EM&gt;the&lt;EM&gt;command&lt;/EM&gt;is&lt;EM&gt;checked&lt;/EM&gt;for&lt;EM&gt;the&lt;/EM&gt;presence%22&amp;amp;meta=&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 17, 2010 12:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179226#M1518298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179227#M1518299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanjit , thanks for the reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sory to extend my question..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it like 1st  we had to write the file on to the application server using by " open data set- close data set mechanism" and&lt;/P&gt;&lt;P&gt; next ifwe had to move the file in the application server from one location to other, we use "sxpg_command_execute" FM ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179227#M1518299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179228#M1518300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur obsolutely right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know whts ur exact requiremet .is .. so that i can help u further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please do not use SMS speak.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 17, 2010 12:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179228#M1518300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179229#M1518301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use the FM SXPG_COMMAND_EXECUTE to execute commands that transfers your file in some sort of queues or ( eg AIS ) which then moves it to the destination path which could be another R/3 sytem , or third party systems&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179229#M1518301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T07:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179230#M1518302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanjit, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to copy to the target folder . For that I am using FILE_GET_NAME to retrive the target file name and then sending that along with source file path to "sxpg_command_execute" . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting target file path same as the source from FILE_GET_NAME. Also "SXPG_COMMAND_EXECUTE" is giving that path is not found. Also I dont have access to the folder .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 10:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179230#M1518302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179231#M1518303</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;First Chek in the destination server that  Path is present or not Through AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have u Created a Command  In SM69..  for moving the file purpose.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u calling the Function Module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to pass the Parameters  like &lt;/P&gt;&lt;P&gt;COMMANDNAME = Command which u have created &lt;/P&gt;&lt;P&gt;ADDITIONAL_PARAMETERS=  the file name&lt;/P&gt;&lt;P&gt;OPERATINGSYSTEM =UNIX&lt;/P&gt;&lt;P&gt;TARGETSYSTEM = Target system of  for which u want to move the file&lt;/P&gt;&lt;P&gt;DESTINATION = RFC destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 08:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-sxpg-command-execute-and-open-data-set-mechanism/m-p/7179231#M1518303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T08:23:41Z</dc:date>
    </item>
  </channel>
</rss>

