<?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: Programmatically end batch session? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401594#M1546937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to consider using memory variables (export to memory) or parameters (set / get parameter). From the BDC driver program set / export  a memory variable/parameter and read it from your transaction which is being run by BDC. You can do so in your transaction through a user exit/enhancement spot (assuming it is a Std SAP program) or directly. Make sure that this parameter/memory variable is set only through your BDC driver program. On identifying the BDC call, as others mentioned, you can raise a message (say type E) to break out of the BDC call. You can capture this message in the message table of the BDC call.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jinesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jinesh Parakulangara on Oct 22, 2010 6:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2010 13:20:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-22T13:20:54Z</dc:date>
    <item>
      <title>Programmatically end batch session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401590#M1546933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While the BDC is running, I'd like to from within the transaction that is being called (determine if the transaction was called from a BDC and then) conditionally break out of the BDC. Is this possible? I know in foreground you can type /BEND, but no variation of this works from within the ABAP coding. I also tried the many different formats of the LEAVE command, but none of them work for exiting the BDC either. If you have a possible workaround, also this will be pretty useful. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 08:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401590#M1546933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T08:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically end batch session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401591#M1546934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

perform bdc_dynpro      using 'SAPMF02K' '0107'.
perform bdc_field       using 'BDC_OKCODE' '/00'.
perform bdc_field       using 'RF02K-LIFNR' '519076'.
perform bdc_field       using 'RF02K-EKORG' 'TL01'.
perform bdc_dynpro      using 'SAPMF02K' '0310'.
perform bdc_field       using 'BDC_OKCODE' '/NBEND'. "&amp;lt;---
perform bdc_transaction using 'MK01'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 09:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401591#M1546934</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-10-21T09:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically end batch session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401592#M1546935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try issuing messages of type A or X, are they just skipping to the next transaction as well? Type X is supposed to throw a short dump, so this might be too harsh for your purposes.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 12:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401592#M1546935</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-10-22T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically end batch session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401593#M1546936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for a userexit where you can program your check and throw the E or A message when needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 12:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401593#M1546936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically end batch session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401594#M1546937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to consider using memory variables (export to memory) or parameters (set / get parameter). From the BDC driver program set / export  a memory variable/parameter and read it from your transaction which is being run by BDC. You can do so in your transaction through a user exit/enhancement spot (assuming it is a Std SAP program) or directly. Make sure that this parameter/memory variable is set only through your BDC driver program. On identifying the BDC call, as others mentioned, you can raise a message (say type E) to break out of the BDC call. You can capture this message in the message table of the BDC call.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jinesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jinesh Parakulangara on Oct 22, 2010 6:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 13:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401594#M1546937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically end batch session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401595#M1546938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We changed the approach from trying to manipulated the BDC to running validations from Function Group BTCH e.g. BP_JOBLOG_READ, BP_JOBLOG, BP_JOB_ABORT, BP_JOB_DELETE etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 11:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-end-batch-session/m-p/7401595#M1546938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T11:42:05Z</dc:date>
    </item>
  </channel>
</rss>

