<?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 Calling ABAP program via UNIX script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048840#M1611618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have several BPs that require us to execute shells scripts from within the application; so we're pretty familiar with that process.  Our current need is to go back the other way:  UNIX Script calling ABAP program.  I've looked into SAPEVT, which would work okay, except I don't want to go through a batch job.  These are going to be frequent, short running tasks, and I don't want the overhead that comes with executing a batch job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 20:34:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-21T20:34:40Z</dc:date>
    <item>
      <title>Calling ABAP program via UNIX script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048840#M1611618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have several BPs that require us to execute shells scripts from within the application; so we're pretty familiar with that process.  Our current need is to go back the other way:  UNIX Script calling ABAP program.  I've looked into SAPEVT, which would work okay, except I don't want to go through a batch job.  These are going to be frequent, short running tasks, and I don't want the overhead that comes with executing a batch job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 20:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048840#M1611618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T20:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP program via UNIX script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048841#M1611619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so I've tried using RFCEXEC to try to accomplish what I specified above, which is to call an ABAP program/RFC from a UNIX script/program.  I have completed the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Created the TCP/IP RFC on the ECC side&lt;/P&gt;&lt;P&gt;2. I created a process on the UNIX which registers the program on the gateway (rfcexec -aProgram -gHost -xsapgw00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I haven't been able to figure our is how to call the RFC or pass it paremeters.  Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 16:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048841#M1611619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-04T16:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP program via UNIX script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048842#M1611620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of RFCEXEC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use startrfc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the unix script that my BASIS guy gave me.  It call a custom RFC enabled function module, "Z_JOB_COPY".&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;startrfc -3 -d &amp;lt;sapsid&amp;gt; -u &amp;lt;uname&amp;gt; -p &amp;lt;password&amp;gt; -c &amp;lt;client&amp;gt; -l &amp;lt;lang&amp;gt; -h &amp;lt;hostname&amp;gt; -s &amp;lt;sysnum&amp;gt; -g &amp;lt;gatewayhostname&amp;gt; -x &amp;lt;gateway&amp;gt; -t -F &amp;lt;functionmodule&amp;gt; -E &amp;lt;inputVar1&amp;gt;=MYVar1 -E &amp;lt;inputVar2&amp;gt;=MyVar2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;startrfc -3 -d DEV -u JDOE -p PASSWD -c 100 -l EN -h mydevhost -s 00 -g mydevhost -x sapgw00 -t -F Z_JOB_COPY -E SOURCE_JOB=ZREQUESTS -E TARGET_JOB=JMB_COPY_RFC2 -E START_DATE=20100120 -E START_TIME=154500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember they have to have a function module built that can handle the input/output variables mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function z_job_copy.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(SOURCE_JOB) LIKE  TBTCJOB-JOBNAME DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     VALUE(TARGET_JOB) TYPE  TBTCJOB-JOBNAME DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     VALUE(JOBUSER) LIKE  SY-UNAME DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     VALUE(PRINT_OVERRIDE) TYPE  BTCH0000-CHAR1 DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     VALUE(PRINT_PARMS) TYPE  PRI_PARAMS DEFAULT SPACE&lt;/P&gt;&lt;P&gt;*"     VALUE(START_DATE) TYPE  BTCSDATE DEFAULT 00000000&lt;/P&gt;&lt;P&gt;*"     VALUE(START_TIME) TYPE  BTCSTIME DEFAULT 000000&lt;/P&gt;&lt;P&gt;*"     VALUE(STATUS_FILE) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(JOBCOUNT) LIKE  TBTCJOB-JOBCOUNT&lt;/P&gt;&lt;P&gt;*"     VALUE(ERROR_MSG) LIKE  TBTC5-TEXT&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NO_SCHEDULED_SAP_JOB&lt;/P&gt;&lt;P&gt;*"      INVALID_USER&lt;/P&gt;&lt;P&gt;*"      INVALID_START_DATE_TIME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 19:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048842#M1611620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-04T19:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP program via UNIX script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048843#M1611621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Outstanding Bruce!  I really appreciate your reply on this, its working as expected.  Please pass my thanks along to your Basis Team as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 20:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-program-via-unix-script/m-p/8048843#M1611621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-04T20:04:33Z</dc:date>
    </item>
  </channel>
</rss>

