<?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 Can we create multiple session in BDC using Call session? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626230#M279818</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;Can we create  multiple sessions in BDC using Call Session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;Program has to upload 1 million records,so can we programmatically create multiple sessions such that after every 50thousand records we create a different session.&lt;/P&gt;&lt;P&gt;For moment due to large number of records BDC DYNPRO and BDC Field are unable to hold the large number of records,due to which we get a Out of memory error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 16:12:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-27T16:12:15Z</dc:date>
    <item>
      <title>Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626230#M279818</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;Can we create  multiple sessions in BDC using Call Session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;Program has to upload 1 million records,so can we programmatically create multiple sessions such that after every 50thousand records we create a different session.&lt;/P&gt;&lt;P&gt;For moment due to large number of records BDC DYNPRO and BDC Field are unable to hold the large number of records,due to which we get a Out of memory error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626230#M279818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626231#M279819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shilpa,&lt;/P&gt;&lt;P&gt; For Handling Huge Data .. we go in using DIRECT INPUT METHOD .. try using this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626231#M279819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626232#M279820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For that we have to write our own&lt;/P&gt;&lt;P&gt;   logic / counter&lt;/P&gt;&lt;P&gt;   so that for every 50,000 record,&lt;/P&gt;&lt;P&gt;   we create another session,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. one full session consists of&lt;/P&gt;&lt;P&gt;  OPEN GROUP, INSERT DATA, CLOSE GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626232#M279820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626233#M279821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u pls send me some sample code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626233#M279821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626234#M279822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do logic like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : MYCTR TYPE I.&lt;/P&gt;&lt;P&gt;DATA : NEWFLAG TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB (containing million records)&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    MYCTR = MYCTR + 1.&lt;/P&gt;&lt;P&gt;    CLEAR NEWFLAG.&lt;/P&gt;&lt;P&gt;    IF MYCTR &amp;gt; 50000.&lt;/P&gt;&lt;P&gt;    MYCTR = 0.&lt;/P&gt;&lt;P&gt;    NEWFLAG = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF NEWFLAG = 'X'.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION BDC_OPEN_GROUP.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *------&lt;/P&gt;&lt;P&gt;   CALL FUNCTION BDC_INSERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF NEWFLAG = 'X'.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The counter and flag will take&lt;/P&gt;&lt;P&gt;   care of multipe sessions,&lt;/P&gt;&lt;P&gt;   in batches of 50000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. U may have to refine the logic somewhat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626234#M279822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626235#M279823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u pls send me some sample code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626235#M279823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create multiple session in BDC using Call session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626236#M279824</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;If ITAB is your table with the data to be transfered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the first session:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  FL_OPEN = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;IF FL_OPEN = SPACE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create new session&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; CALL FUNCTION 'BDC_OPEN_GROUP'.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;   FL_OPEN = 'X'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here elaborate your data and fill BDCDATA&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert the transaction:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF COUNT = COUNT_MAX.&lt;/P&gt;&lt;P&gt;    COUNT = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close the session&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF FL_OPEN = 'X'.&lt;/P&gt;&lt;P&gt;      CALL BDC_CLOSE_GROUP&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        FL_OPEN = SPACE.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-multiple-session-in-bdc-using-call-session/m-p/1626236#M279824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:33:49Z</dc:date>
    </item>
  </channel>
</rss>

