<?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 Code not working in Background processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340543#M1539399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're a bolt, it's just the note I'm reading now: it's an old note, but the issue is just that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should use VL10 instead of VL04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 10, 2010 9:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 20:12:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-10T20:12:02Z</dc:date>
    <item>
      <title>Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340531#M1539387</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;&lt;/P&gt;&lt;P&gt;I have a requirement to create delieveries based on the Sales Order through transaction VL04 (RV50SBT1).  Essentially, the program takes selected sales orders, determines the shipping point and creates deliveries immediately.  I believe that the code below is correct as it works when my program is run in the foreground; however, when I run my program in background, SM37 gives an error "Fill in all required entry fields."  The only mandatory field in VL04 is the Shipping Point (VSTEL) which is being successfully populated.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT rv50sbt1  AND RETURN&lt;/P&gt;&lt;P&gt;                  WITH vstel = ls_vbap-vstel&lt;/P&gt;&lt;P&gt;                  WITH s_ledat BETWEEN '20091231' AND '99991231'&lt;/P&gt;&lt;P&gt;                  WITH samml = 'X'&lt;/P&gt;&lt;P&gt;                  WITH anzei = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar code to this is working in other custom developments that I have done; however, those programs only submit to programs without mandatory fields.  Am I doing something wrong?  Is it not possible to use the Submit command if a field is mandatory in the program you are submitting to?  Any help you can give would be greatly appreciated.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 18:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340531#M1539387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340532#M1539388</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;But which is the program running in backgroud?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code submit a program, but ON LINE mode&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, 10 Nov 2010 19:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340532#M1539388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340533#M1539389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no issue with SUBMIT with a program with obligatory parameters. I tried your code and it works OK. I would question though whether ls_vbap-vstel is in fact, completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In foreground processing it may be picking up a PID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340533#M1539389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340534#M1539390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me clarify.  My custom program is the program running in Background.  Within my custom program, it selects sales order data and then uses the Submit command for VL04.  Does this clarify it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340534#M1539390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340535#M1539391</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 Rob is right: are your sure  ls_vbap-vstel is always filled?&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, 10 Nov 2010 19:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340535#M1539391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340536#M1539392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am certain VSTEL is populated.  I created a very simple program to ensure that the values would be there and it still didn't work in background.  In this case, I pass one sales order that I know has a shipping point (in my case the VSTEL is populated with US01) via a parameter.  In debugging, I found that the value is correctly passed.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the test program I created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_vbap type vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: pa_vbeln TYPE vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * INTO ls_vbap FROM vbap&lt;/P&gt;&lt;P&gt;    WHERE vbeln = pa_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT rv50sbt1  AND RETURN&lt;/P&gt;&lt;P&gt;                  WITH vstel = ls_vbap-vstel&lt;/P&gt;&lt;P&gt;                  WITH s_ledat BETWEEN '20091231' AND '99991231'&lt;/P&gt;&lt;P&gt;                  WITH samml = 'X'&lt;/P&gt;&lt;P&gt;                  WITH anzei = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340536#M1539392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340537#M1539393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, when I said that I tried it and it worked, I had tried it in the foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I tried it in the background, I got your error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me think on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340537#M1539393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340538#M1539394</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;Something is strange, I've tried this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rv50sbt1 AND RETURN&lt;/P&gt;&lt;P&gt;WITH vstel = 'XXXX'&lt;/P&gt;&lt;P&gt;WITH s_ledat BETWEEN '20091231' AND '99991231'&lt;/P&gt;&lt;P&gt;WITH samml = 'X'&lt;/P&gt;&lt;P&gt;WITH anzei = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the job finish in error, just as John's saying &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, 10 Nov 2010 19:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340538#M1539394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340539#M1539395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you aren't checking the return code after the SELECT, I wouldn't rely on the test program to heavily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I do still see the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340539#M1539395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340540#M1539396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But does it make any sense to run this in the background? It produces a worklist which must be processed (in the foreground).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340540#M1539396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340541#M1539397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that it does make sense.  If you look at the flow control section of the selection screen on VL04, you can process immediately (SAMML = 'X') which will just create the deliveries automatically.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340541#M1539397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T19:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340542#M1539398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Note 213980 - Job processing VL04 terminates: Check req. fields|https://websmp206.sap-ag.de/~form/handler?_APP=01100107900000000342&amp;amp;_EVENT=REDIR&amp;amp;_NNUM=213980&amp;amp;_NLANG=E]!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 10, 2010 3:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 20:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340542#M1539398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340543#M1539399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're a bolt, it's just the note I'm reading now: it's an old note, but the issue is just that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should use VL10 instead of VL04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 10, 2010 9:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 20:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340543#M1539399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T20:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Code not working in Background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340544#M1539400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob and Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.  My basis team and I just narrowed it down to the VL04 program.  I will use VL10 instead.  thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 20:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-code-not-working-in-background-processing/m-p/7340544#M1539400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-10T20:17:32Z</dc:date>
    </item>
  </channel>
</rss>

