<?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 BDC_RUNNING - Batch input run time information in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-running-batch-input-run-time-information/m-p/7744795#M1582097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an fm to find whether the back ground job running is completed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_RUNNING' "Provide batch input runtime information&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    bi_info = g_bdcrun        Transfer structure BI&lt;/P&gt;&lt;P&gt;    ctu_info = g_ctu_params    Call Transaction Using Values&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    BI_INVALID_DATA = 1         "               Transfer structure missing or incorrect&lt;/P&gt;&lt;P&gt;    BI_NOTAKTIV = 2 .              "               Batch input is not active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fm is called after the submit program RM06IBIO to create info records and i have called another standard program to process the session using the session name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to query whether the back ground job is completed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using the fm BDC_RUNNING, i got the sy-subrc value as 0, but the structures g_bdcrun and g_ctu_params&lt;/P&gt;&lt;P&gt;are empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any alternative to do this?  Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 05:19:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-30T05:19:32Z</dc:date>
    <item>
      <title>BDC_RUNNING - Batch input run time information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-running-batch-input-run-time-information/m-p/7744795#M1582097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an fm to find whether the back ground job running is completed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_RUNNING' "Provide batch input runtime information&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    bi_info = g_bdcrun        Transfer structure BI&lt;/P&gt;&lt;P&gt;    ctu_info = g_ctu_params    Call Transaction Using Values&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    BI_INVALID_DATA = 1         "               Transfer structure missing or incorrect&lt;/P&gt;&lt;P&gt;    BI_NOTAKTIV = 2 .              "               Batch input is not active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fm is called after the submit program RM06IBIO to create info records and i have called another standard program to process the session using the session name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to query whether the back ground job is completed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using the fm BDC_RUNNING, i got the sy-subrc value as 0, but the structures g_bdcrun and g_ctu_params&lt;/P&gt;&lt;P&gt;are empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any alternative to do this?  Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 05:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-running-batch-input-run-time-information/m-p/7744795#M1582097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T05:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_RUNNING - Batch input run time information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-running-batch-input-run-time-information/m-p/7744796#M1582098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the fm BDC_OBJECT_SELECT which returns the table APQITAB, which contains a field QSTATE, with the following values. If QSTATE = F which means that session is completed &lt;/P&gt;&lt;P&gt;if QSTATE = E, which means the session is ended in error . &lt;/P&gt;&lt;P&gt;Otherwise (QSTATE equal to R still processing). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fm is called after the job close fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BDC_OBJECT_SELECT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        name      = lv_name&lt;/P&gt;&lt;P&gt;        datatype  = 'BDC'&lt;/P&gt;&lt;P&gt;        client    = sy-mandt&lt;/P&gt;&lt;P&gt;        date_from = sy-datum&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        apqitab   = lt_apqi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 07:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-running-batch-input-run-time-information/m-p/7744796#M1582098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-30T07:26:51Z</dc:date>
    </item>
  </channel>
</rss>

