<?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 Function Module For Executing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777497#M1307737</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;         I need a function module for executing &lt;STRONG&gt;.bat&lt;/STRONG&gt; file in application server.&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;Sathish Kumar K.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2009 15:24:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-06T15:24:03Z</dc:date>
    <item>
      <title>Function Module For Executing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777497#M1307737</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;         I need a function module for executing &lt;STRONG&gt;.bat&lt;/STRONG&gt; file in application server.&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;Sathish Kumar K.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 15:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777497#M1307737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777498#M1307738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try doing a search in se37 for SXPG*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SXPG_CALL_SYSTEM would be a place to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to define an external command in sm69.  (or get Basis to help)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 15:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777498#M1307738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777499#M1307739</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 specified all the parameters in  &lt;STRONG&gt;SM69&lt;/STRONG&gt; .Since i cant execute my &lt;STRONG&gt;.bat&lt;/STRONG&gt; file in server from local system.ICan you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sathish Kumar K.C on Jul 7, 2009 7:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 03:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777499#M1307739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T03:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777500#M1307740</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 kumar,

You have to read application file like below whatever is the extension.
&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_notepad.

DATA: BEGIN OF it_data OCCURS 0,
        data TYPE string,
      END OF it_data.
PARAMETERS: p_file TYPE char80 DEFAULT 'usr/sap/tmp/venkat.bat'.

START-OF-SELECTION.
  OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT. "This statement opens the application server file to read
  IF sy-subrc = 0.
    DO.                            "Loop the file using DO-ENDO 
      READ DATASET p_file INTO it_data-data. 
      IF sy-subrc = 0.
        APPEND it_data.
        CLEAR  it_data.
      ELSE.       "If there is no record exit the loop.
        EXIT.
      ENDIF.
    ENDDO.
  ENDIF.
  CLOSE DATASET p_file. "Close file &lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 06:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777500#M1307740</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-07-07T06:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777501#M1307741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SXPG_STEP_COMMAND_START'
    EXPORTING
*     TARGET                           =
*     DESTINATION                      =
      COMMANDNAME                      = 'ZCOPY'
      ADDITIONAL_PARAMETERS            = AD_PAR
      OPERATINGSYSTEM                  = 'Windows NT'
      STDINCNTL                        = 'R'
      STDOUTCNTL                       = 'M'
      STDERRCNTL                       = 'M'
      TRACECNTL                        = '3'
      TERMCNTL                         = 'C'
*     TRACELEVEL                       = 0
*     BATCH                            =
*     LONG_PARAMS                      =
*     JOBNAME                          =
*     JOBCOUNT                         =
*     STEPCOUNT                        =
*     CONNCNTL                         = 'H'
*   IMPORTING
*     STRTSTAT                         =
*     XPGID                            =
*     CONVID                           =
*     EXITSTAT                         =
*     EXITCODE                         =
*     PARAMS                           =
*     LAST_PROC                        =
*     LAST_HOST                        =
*     LAST_PROC_NUM                    =
   TABLES
     LOG                              = LT_LOG
   EXCEPTIONS
     COMMAND_NOT_FOUND                = 1
     PARAMETER_EXPECTED               = 2
     PARAMETERS_TOO_LONG              = 3
     SECURITY_RISK                    = 4
     WRONG_CHECK_CALL_INTERFACE       = 5
     NO_PERMISSION                    = 6
     UNKNOWN_ERROR                    = 7
     COMMUNICATION_ERROR              = 8
     SYSTEM_ERROR                     = 9
     CANNOT_GET_RFC_DESTS             = 10
     JOB_UPDATE_FAILED                = 11
     JOB_DOES_NOT_EXIST               = 12
     OTHERS                           = 13&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 08:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777501#M1307741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T08:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module For Executing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777502#M1307742</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;         I need to know where i have to specify the path to be executed in &lt;STRONG&gt;SM69&lt;/STRONG&gt; , i got it thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sathish Kumar K.C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sathish Kumar K.C on Jul 9, 2009 7:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 05:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-executing/m-p/5777502#M1307742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T05:22:38Z</dc:date>
    </item>
  </channel>
</rss>

