<?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 Session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264191#M780004</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 created a batch input session and scheduled in background with the help of the standard program RSBDCSUB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below code.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              client = sy-mandt&lt;/P&gt;&lt;P&gt;              group  = 'zxy'&lt;/P&gt;&lt;P&gt;              user   = sy-uname&lt;/P&gt;&lt;P&gt;              keep   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rsbdcsub WITH mappe  = 'zxy'&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;                           WITH logall      = 'X'                            &lt;/P&gt;&lt;P&gt;                           EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                           AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is the above code is working fine. The background job is craeted but created in schedule status but my background job should be in release state...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please guide me how to get the job in relaese state with the help of the standard program RSBDCSUB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Healthy points will be rewarded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awaiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Ganji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2008 12:01:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-03T12:01:12Z</dc:date>
    <item>
      <title>BDC Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264191#M780004</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 created a batch input session and scheduled in background with the help of the standard program RSBDCSUB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below code.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              client = sy-mandt&lt;/P&gt;&lt;P&gt;              group  = 'zxy'&lt;/P&gt;&lt;P&gt;              user   = sy-uname&lt;/P&gt;&lt;P&gt;              keep   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rsbdcsub WITH mappe  = 'zxy'&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;                           WITH logall      = 'X'                            &lt;/P&gt;&lt;P&gt;                           EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                           AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is the above code is working fine. The background job is craeted but created in schedule status but my background job should be in release state...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please guide me how to get the job in relaese state with the help of the standard program RSBDCSUB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Healthy points will be rewarded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awaiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Ganji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 12:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264191#M780004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T12:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264192#M780005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;jobname = jobname&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;jobcount = jobcount_test&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;cant_create_job = 1&lt;/P&gt;&lt;P&gt;invalid_job_data = 2&lt;/P&gt;&lt;P&gt;jobname_missing = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;*--Step insert&lt;/P&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;MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 06:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264192#M780005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T06:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264193#M780006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;u need to assign date and time in submit to current execution date and time of program being executed:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;NUMB   LIKE RSJOBINFO-JOBNUMB,       "jobnummer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;NAME   LIKE APQI-GROUPID,            "jobname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;QID    LIKE APQI-QID    ,            "jobqid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DATE   LIKE SY-DATUM,                "creationdate mappe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;TIME   LIKE SY-UZEIT,                "creationtime mappe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;SDATE  LIKE SY-DATUM,                "jobdatum submit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;STIME  LIKE SY-UZEIT,                "jobzeit  submit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;USER   LIKE SY-UNAME,                "jobuser&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;BUSER  LIKE SY-UNAME,                "Batchberechtigter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;GROUP  LIKE APQI-GROUPID,            "jobgruppe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i think:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUBMIT rsbdcsub WITH mappe = 'zxy'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER sy-uname VIA JOB jobname NUMBER jobcount_test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITH mappe = map&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with DATE = sy-datum "creationdate mappe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with TIME  = sy-UZEIT,                "creationtime mappe&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;with SDATE = SY-DATUM,                "jobdatum submit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;with STIME  = SY-UZEIT,                "jobzeit  submit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITH z_verarb = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND RETURN .&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 09:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/3264193#M780006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T09:23:00Z</dc:date>
    </item>
  </channel>
</rss>

