<?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 Code to write syntax for JOB submit ( Please answer ASAP) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186911#M465830</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 sytax to submit a job&lt;/P&gt;&lt;P&gt;Right now I am using this code to send 4 parameters.&lt;/P&gt;&lt;P&gt;I need to send these 4 in a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit Ztestjob USER sy-uname&lt;/P&gt;&lt;P&gt;via job p_jobnm&lt;/P&gt;&lt;P&gt;number p_jobcount&lt;/P&gt;&lt;P&gt;with afko-rsnum eq afko-rsnum&lt;/P&gt;&lt;P&gt;with aufnr_d eq aufnr_d&lt;/P&gt;&lt;P&gt;with sernr_d eq sernr_d&lt;/P&gt;&lt;P&gt;with p_lmnga eq p_lmnga&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.&lt;/P&gt;&lt;P&gt;I need the syntax for submit .&lt;/P&gt;&lt;P&gt;I also need to know how to catch the structure with values in the BGPROGRAM.&lt;/P&gt;&lt;P&gt;Anyone please answer ASAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ramana peddu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ramana peddu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2007 17:26:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-20T17:26:08Z</dc:date>
    <item>
      <title>Code to write syntax for JOB submit ( Please answer ASAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186911#M465830</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 sytax to submit a job&lt;/P&gt;&lt;P&gt;Right now I am using this code to send 4 parameters.&lt;/P&gt;&lt;P&gt;I need to send these 4 in a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit Ztestjob USER sy-uname&lt;/P&gt;&lt;P&gt;via job p_jobnm&lt;/P&gt;&lt;P&gt;number p_jobcount&lt;/P&gt;&lt;P&gt;with afko-rsnum eq afko-rsnum&lt;/P&gt;&lt;P&gt;with aufnr_d eq aufnr_d&lt;/P&gt;&lt;P&gt;with sernr_d eq sernr_d&lt;/P&gt;&lt;P&gt;with p_lmnga eq p_lmnga&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.&lt;/P&gt;&lt;P&gt;I need the syntax for submit .&lt;/P&gt;&lt;P&gt;I also need to know how to catch the structure with values in the BGPROGRAM.&lt;/P&gt;&lt;P&gt;Anyone please answer ASAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ramana peddu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ramana peddu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186911#M465830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T17:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code to write syntax for JOB submit ( Please answer ASAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186912#M465831</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;Please try to use EXPORT TO MEMORY and IMPORT FROM MEMORY statements to pass the data structure from call program to submit program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, please check this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3bc4358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3bc4358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 17:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186912#M465831</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-20T17:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code to write syntax for JOB submit ( Please answer ASAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186913#M465832</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;&amp;lt;u&amp;gt;SUBMIT&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls an executable program of type 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;rep&amp;gt; [AND RETURN] [VIA SELECTION-SCREEN]&lt;/P&gt;&lt;P&gt;                          [USING SELECTION-SET &amp;lt;var&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [WITH &amp;lt;sel&amp;gt; &amp;lt;criterion&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [WITH FREE SELECTIONS &amp;lt;freesel&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [WITH SELECTION-TABLE &amp;lt;rspar&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [LINE-SIZE &amp;lt;width&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [LINE-COUNT &amp;lt;length&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls the program &amp;lt;rep&amp;gt;. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when &amp;lt;rep&amp;gt; has finished running. The other additions control the selection screen and set attributes of the default list in the called program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 18:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186913#M465832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code to write syntax for JOB submit ( Please answer ASAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186914#M465833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please tell me which is the one I need to select for structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 18:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186914#M465833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-20T18:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code to write syntax for JOB submit ( Please answer ASAP)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186915#M465834</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Call Program:
DATA: WA_MARA LIKE MARA. 

*Export structure values 
EXPORT WA_MARA TO MEMORY ID 'ZMARA'.

...

submit ZRAJJOBSUB USER sy-uname
via job p_jobnm
number p_jobcount
with afko-rsnum eq afko-rsnum
with aufnr_d eq aufnr_d
with sernr_d eq sernr_d
with p_lmnga eq p_lmnga
AND RETURN.

....


Submit Program:
DATA: WA_MARA LIKE MARA. 

*Import structure values
IMPORT WA_MARA FROM MEMORY ID 'ZMARA'.

...

FREE MEMORY ID 'ZMARA'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 18:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-write-syntax-for-job-submit-please-answer-asap/m-p/2186915#M465834</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-20T18:25:35Z</dc:date>
    </item>
  </channel>
</rss>

