<?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: SUBMIT with different USER. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241009#M483129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi debaprasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Ideally the user syntax should not create any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The problem may be with the normal job scheduling,&lt;/P&gt;&lt;P&gt;    using JOB_OPEN,  Submit  and JOB_CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Just remove the USER V_USER&lt;/P&gt;&lt;P&gt;   (from your submit and then try)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2007 15:18:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-17T15:18:52Z</dc:date>
    <item>
      <title>SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241004#M483124</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 am currently executing a report in background using JOB_OPEN SUBMIT and JOB_CLOSE.  My cureent user-iD is 'NAXDD', but i am submitting the job using another user-ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : v_user is defined as follows :&lt;/P&gt;&lt;P&gt;data : v_user TYPE sy-uname VALUE 'PATPA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I submit the job using v_user but the sy-subrc value that is returned is 8&lt;/P&gt;&lt;P&gt;    but when i execute with my user id NAXDD, then it works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT ABC_analysis AND RETURN&lt;/P&gt;&lt;P&gt;      USER v_user&lt;/P&gt;&lt;P&gt;      VIA JOB p_c_a_corfor&lt;/P&gt;&lt;P&gt;      NUMBER jobnummer&lt;/P&gt;&lt;P&gt;      WITH jobnr = p_c_a_corfor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a problem with the v_user declaration? Or what could be the possible reasons?  Please help....Points to be awarded to the best answer...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 13:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241004#M483124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241005#M483125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it basically work with Log in User name...&lt;/P&gt;&lt;P&gt;You can log in with another user name and then give ur own user name..then also it won't work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241005#M483125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241006#M483126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the other user have the same permissions as you?  It is possible that he or she does not have authorization to submit programs in that client.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241006#M483126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241007#M483127</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;April King :   The other user has the same authorization as mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praneet : So how do we schdule with a specific user then? Is there any method to go about this as this is what our requirement is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 15:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241007#M483127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241008#M483128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while defining that job p_c_a_corfor, in sm37,  on the screen which u give the program name and variant etc,  try changing user to PATPA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sure, it will work perfect if that job is scheduled... not sure, what happens, when such a job is called using submit... .. just give a try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 15:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241008#M483128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241009#M483129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi debaprasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Ideally the user syntax should not create any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The problem may be with the normal job scheduling,&lt;/P&gt;&lt;P&gt;    using JOB_OPEN,  Submit  and JOB_CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Just remove the USER V_USER&lt;/P&gt;&lt;P&gt;   (from your submit and then try)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 15:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241009#M483129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241010#M483130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT ABC_analysis AND RETURN&lt;/P&gt;&lt;P&gt;with logall = 'X'&lt;/P&gt;&lt;P&gt;USER v_user&lt;/P&gt;&lt;P&gt;VIA JOB p_c_a_corfor&lt;/P&gt;&lt;P&gt;NUMBER jobnummer&lt;/P&gt;&lt;P&gt;WITH jobnr = p_c_a_corfor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use above query ,you will get it now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 15:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241010#M483130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241011#M483131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of doing a SUBMIT, have you tried using the function modules JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE?  You can pass the user name to JOB_SUBMIT using field AUTHCKNAM.&lt;/P&gt;&lt;P&gt; - April&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 15:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241011#M483131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T15:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241012#M483132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with the JOB_SUBMIT FM, here too it gives a sy-subrc = 8. Also i tried with the logall = 'X'. But still it gives a sy-subrc = 8.&lt;/P&gt;&lt;P&gt;       I think Praneet might be right, only that user can submit the job, although I am not very sure. (after trying all these options)...If there are please let me know so that I can try a few more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 15:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241012#M483132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T15:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241013#M483133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw the Function module code ,&lt;/P&gt;&lt;P&gt;they are comparing sy-uname with ur passing user name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if both are same then it will trigger&lt;/P&gt;&lt;P&gt;otherwise it gives error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 16:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241013#M483133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T16:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241014#M483134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,&lt;/P&gt;&lt;P&gt;      L_RELEASE(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       JOBNAME                = 'ZTST1'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      JOBCOUNT               = P_JOBCNT&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      CANT_CREATE_JOB        = 1&lt;/P&gt;&lt;P&gt;      INVALID_JOB_DATA       = 2&lt;/P&gt;&lt;P&gt;      JOBNAME_MISSING        = 3&lt;/P&gt;&lt;P&gt;      OTHERS                 = 4.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SUBMIT ZNTEST VIA JOB 'ZTST1' NUMBER P_JOBCNT&lt;/P&gt;&lt;P&gt;           USER 'ELIGETV'&lt;/P&gt;&lt;P&gt;          TO SAP-SPOOL WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         WITH DESTINATION = 'HPMISPRT'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          WITH IMMEDIATELY = SPACE&lt;/P&gt;&lt;P&gt;          WITH KEEP_IN_SPOOL = 'X' AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       JOBCOUNT                          = P_JOBCNT&lt;/P&gt;&lt;P&gt;       JOBNAME                           = 'ZTST1'&lt;/P&gt;&lt;P&gt;       STRTIMMED                         = 'X'&lt;/P&gt;&lt;P&gt;       PRDMINS                          = 15&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      JOB_WAS_RELEASED                  = L_RELEASE&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      CANT_START_IMMEDIATE              = 1&lt;/P&gt;&lt;P&gt;      INVALID_STARTDATE                 = 2&lt;/P&gt;&lt;P&gt;      JOBNAME_MISSING                   = 3&lt;/P&gt;&lt;P&gt;      JOB_CLOSE_FAILED                  = 4&lt;/P&gt;&lt;P&gt;      JOB_NOSTEPS                       = 5&lt;/P&gt;&lt;P&gt;      JOB_NOTEX                         = 6&lt;/P&gt;&lt;P&gt;      LOCK_FAILED                       = 7&lt;/P&gt;&lt;P&gt;      INVALID_TARGET                    = 8&lt;/P&gt;&lt;P&gt;      OTHERS                            = 9.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 16:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241014#M483134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT with different USER.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241015#M483135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     If the User does not have the authorization to execute other USERS, then he cannot submit jobs on their behalf. &lt;/P&gt;&lt;P&gt;     Thus one should have the sufficient athorization to submit jobs (using one user ID) to execute with another USER. This setting can be taken care by the Basis guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2007 09:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-with-different-user/m-p/2241015#M483135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-25T09:57:42Z</dc:date>
    </item>
  </channel>
</rss>

