<?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: SM69 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630546#M281430</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 create an external command using transaction code SM69 for OS command for executing the program e.g. java . then from your ABAP program you can execute this command using function module &amp;lt;b&amp;gt;SXPG_CALL_SYSTEM&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZABAPFTP. 

data : t_btcxpm      like btcxpm occurs 0, 
         p_addparam like sxpgcolist-parameters, 
         rep_date       like sy-datum, 
         t_date           like SXPGCOLIST-PARAMETERS. 

rep_date = sy-datum - 1. 
t_date = rep_date. 

*p_addparam = '/sap_production/usr/sap/trans/data/zabapftp.sh'. 

refresh t_btcxpm. clear t_btcxpm. 

call function 'SXPG_CALL_SYSTEM' 
     EXPORTING 
          commandname                = 'ZABAPFTP' 
          additional_parameters      = t_date 
     TABLES 
          exec_protocol              = t_btcxpm 
     EXCEPTIONS 
          no_permission              = 1 
          command_not_found          = 2 
          parameters_too_long        = 3 
          security_risk              = 4 
          wrong_check_call_interface = 5 
          program_start_error        = 6 
          program_termination_error  = 7 
          x_error                    = 8 
          parameter_expected         = 9 
          too_many_parameters        = 10 
          illegal_command            = 11 
          others                     = 12. 

if sy-subrc ne 0. 
   write:/ 'Error in ZABAPFTP ', sy-subrc. 
endif. 

&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;See the below link for more info&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2006 09:56:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-20T09:56:15Z</dc:date>
    <item>
      <title>SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630544#M281428</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 help in setting the commands setting.&lt;/P&gt;&lt;P&gt;My customized program will download files into a folder and then call the command line to set files access permission. Hence i need to specify filepath and username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how to set the "operating system command" and "Parameters for operating system command" ?&lt;/P&gt;&lt;P&gt;Any example will be appreciated greatly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 09:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630544#M281428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T09:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630545#M281429</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;I think you can use FTP command, see demo programs  RSFTP00*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 09:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630545#M281429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T09:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630546#M281430</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 create an external command using transaction code SM69 for OS command for executing the program e.g. java . then from your ABAP program you can execute this command using function module &amp;lt;b&amp;gt;SXPG_CALL_SYSTEM&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZABAPFTP. 

data : t_btcxpm      like btcxpm occurs 0, 
         p_addparam like sxpgcolist-parameters, 
         rep_date       like sy-datum, 
         t_date           like SXPGCOLIST-PARAMETERS. 

rep_date = sy-datum - 1. 
t_date = rep_date. 

*p_addparam = '/sap_production/usr/sap/trans/data/zabapftp.sh'. 

refresh t_btcxpm. clear t_btcxpm. 

call function 'SXPG_CALL_SYSTEM' 
     EXPORTING 
          commandname                = 'ZABAPFTP' 
          additional_parameters      = t_date 
     TABLES 
          exec_protocol              = t_btcxpm 
     EXCEPTIONS 
          no_permission              = 1 
          command_not_found          = 2 
          parameters_too_long        = 3 
          security_risk              = 4 
          wrong_check_call_interface = 5 
          program_start_error        = 6 
          program_termination_error  = 7 
          x_error                    = 8 
          parameter_expected         = 9 
          too_many_parameters        = 10 
          illegal_command            = 11 
          others                     = 12. 

if sy-subrc ne 0. 
   write:/ 'Error in ZABAPFTP ', sy-subrc. 
endif. 

&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;See the below link for more info&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 09:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630546#M281430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630547#M281431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, can have example in SM69?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 10:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69/m-p/1630547#M281431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T10:12:48Z</dc:date>
    </item>
  </channel>
</rss>

