<?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: SO672 Still no entry in queue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706602#M1105787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the Background Task did not work. I am using QQMA0014-QM/PM/SM: Checks before saving a notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am planning to put the email code in another program and call that program using the SUBMIT statement and passing all the email data to the new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2008 14:07:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-06T14:07:35Z</dc:date>
    <item>
      <title>SO672 Still no entry in queue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706600#M1105785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a QM notification user-exit, where we need to send emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used FM:SO_NEW_DOCUMENT_ATT_SEND_API1 to send the emails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue we are having is that sometimes the emails do not go in the queue. I get a grey cross marks icon in the status in SOST. The error says "SO672 Still no entry in queue"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized that i did not have the commit_work ='X' in exporting parameter for FM:SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am afraid if i add the commit_work in the user-exit, it is going to cause some other problems, So i am not sure what to do. Is there any other way to handle this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will doing the below code helps? Did anybody do this in the user-exit and worked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function 'SO_NEW_DOCUMENT_ATT_SEND_API1' in background task&lt;/P&gt;&lt;P&gt;exporting commit = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 21:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706600#M1105785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T21:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: SO672 Still no entry in queue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706601#M1105786</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 do not think that IN BACKGROUND TASK will help in your case. This is from SAP documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN BACKGROUND TASK|UNIT (transactional RFC, tRFC, and qRFC) &lt;/P&gt;&lt;P&gt;The IN BACKGROUND addition pre-marks the remotely called function for execution and starts it with the COMMIT WORK command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you should try STARTING NEW TASK&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STARTING NEW TASK (asynchronous RFC, aRFC) &lt;/P&gt;&lt;P&gt;The STARTING NEW TASK addition continues processing of the calling program as soon as the remotely-called function is started, without waiting for it to end. The results can be stored in callback routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this way has one problem. This call will open new session for user and if user has already 6 sessions FM will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that you cannot exceed the maximum number of six main modes in dialog processing. Otherwise, an error message is triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: which user exit do you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 01:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706601#M1105786</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-11-06T01:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: SO672 Still no entry in queue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706602#M1105787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the Background Task did not work. I am using QQMA0014-QM/PM/SM: Checks before saving a notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am planning to put the email code in another program and call that program using the SUBMIT statement and passing all the email data to the new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 14:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so672-still-no-entry-in-queue/m-p/4706602#M1105787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T14:07:35Z</dc:date>
    </item>
  </channel>
</rss>

