<?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: rsbdcsub failure case needed ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586535#M1273802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; my question is where we can get in program session failur case.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If by "session failure" you mean the session has rejects. there's not much you can do. This program just starts the session and returns to your program. The session may end much later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 16:36:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T16:36:58Z</dc:date>
    <item>
      <title>rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586530#M1273797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit rsbdcsub and return&lt;/P&gt;&lt;P&gt;                    user sy-uname&lt;/P&gt;&lt;P&gt;                    with mappe    =  group&lt;/P&gt;&lt;P&gt;                    with von      =  sy-datum&lt;/P&gt;&lt;P&gt;                    with bis      =  sy-datum&lt;/P&gt;&lt;P&gt;                    with z_verarb =  'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above is the code which submit the session automatically. i am right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is where we can get in program session failur case .&lt;/P&gt;&lt;P&gt;based on that case i need to make a program to send an mail to user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 15:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586530#M1273797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586531#M1273798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;submit rsbdcsub and return
user sy-uname
with mappe = group
with von = sy-datum
with bis = sy-datum
with z_verarb = 'X' .

above is the code which submit the session automatically.  am i right?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Absolutely Correct.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;my question is where we can get in program session failur case .
based on that case i need to make a program to send an mail to user.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT rsbdcsub WITH mappe   = l_session&lt;/P&gt;&lt;P&gt;                  WITH fehler  = space&lt;/P&gt;&lt;P&gt;                  WITH von     GE sy-datum&lt;/P&gt;&lt;P&gt;                   AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check values populated in &lt;STRONG&gt;RETURN&lt;/STRONG&gt; here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586531#M1273798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586532#M1273799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Check values populated in &lt;STRONG&gt;RETURN&lt;/STRONG&gt; here.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Well, RSBDCSUB isn't a BAPI and won't have a RETURN table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586532#M1273799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586533#M1273800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT rsbdcsub&lt;/P&gt;&lt;P&gt;    USER sy-uname VIA JOB jobname NUMBER jobcount_test&lt;/P&gt;&lt;P&gt;    WITH mappe = map&lt;/P&gt;&lt;P&gt;    WITH von = pdatum&lt;/P&gt;&lt;P&gt;    WITH z_verarb = 'X'&lt;/P&gt;&lt;P&gt;    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             = jobcount_test&lt;/P&gt;&lt;P&gt;              jobname              = jobname&lt;/P&gt;&lt;P&gt;              strtimmed            = strtimmed&lt;/P&gt;&lt;P&gt;              targetsystem         = sy-host&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              job_was_released     = job_released&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;              OTHERS               = 8.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;gt; 1.&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586533#M1273800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586534#M1273801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Rob, Sorry, It was oversight from my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kalyan, RETURN has nothing to do with passing the run values back to the system but it is related to program control.&lt;/P&gt;&lt;P&gt;ABAPHELP Documentation says:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 The addition AND RETURN starts the executable program in a new internal session. 
The session for the calling program is retained. Once program access is completed, program 
execution for the calling program continues after the SUBMIT statement. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586534#M1273801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586535#M1273802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; my question is where we can get in program session failur case.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If by "session failure" you mean the session has rejects. there's not much you can do. This program just starts the session and returns to your program. The session may end much later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586535#M1273802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586536#M1273803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when session will complete the process. does this program  do the session process automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could plz advise is here any case availble to close the session automatically.&lt;/P&gt;&lt;P&gt;because my requirement is to send an email(through programatically) after the session completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586536#M1273803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586537#M1273804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither your program nor RSBDCSUB knows anything about the session other than the fact that it was started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search the forum for RSBDCSUB, you will find more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 17:17:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586537#M1273804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T17:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: rsbdcsub failure case needed ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586538#M1273805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably you can read the status of BDC Session from the standard table/s APQD, &lt;STRONG&gt;APQI&lt;/STRONG&gt; , APQL.&lt;/P&gt;&lt;P&gt;But the design would not be so good as you will read the session status If its not Completed/Errored then WAIT and then again Read the status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just one approch to handle the issue i am not sure generally how much your session will take time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 17:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsbdcsub-failure-case-needed/m-p/5586538#M1273805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T17:40:20Z</dc:date>
    </item>
  </channel>
</rss>

