<?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: Bdc session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739915#M321614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;Do logic like this :This logic is not only for 500 records, even for million records)&lt;/P&gt;&lt;P&gt;1.&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; 100.&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 100 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;Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kumar kk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 08:57:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-29T08:57:57Z</dc:date>
    <item>
      <title>Bdc session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739911#M321610</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; I have 500 records.&lt;/P&gt;&lt;P&gt;My requirement is to create session for every 100 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means all together I need to create 5 sessions with 100 records each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Points will be rewarded to all contributors.&amp;lt;/b&amp;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>Wed, 29 Nov 2006 08:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739911#M321610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T08:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739912#M321611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use lsmw recording for this&lt;/P&gt;&lt;P&gt;its very easy and fast process for such less records&lt;/P&gt;&lt;P&gt;create the flat files with every 100 records&lt;/P&gt;&lt;P&gt;feed those files into the program&lt;/P&gt;&lt;P&gt;it will create the session at the end of all the steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continue with the remaining 4 files in the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mark helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 08:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739912#M321611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T08:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739913#M321612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cal the bdc_open_group bdc_insert and bdc_close_group after the end of every 100 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;v_count = v_count + 1.&lt;/P&gt;&lt;P&gt;if v_count = 100.&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;PERFORM BDC_DYNPRO.....&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD...&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_INSERT'...&lt;/P&gt;&lt;P&gt;IF V_COUNT = 100.&lt;/P&gt;&lt;P&gt;CALL FUNCTION BDC_CLOSE_GROUP..&lt;/P&gt;&lt;P&gt;V_COUNT  = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 08:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739913#M321612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T08:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739914#M321613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check you can work as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: counter type i.

perform bdc_open_group.
loop at &amp;lt;itab&amp;gt; into &amp;lt;wa&amp;gt;.
    .....
    perform bdc_insert.

    if counter = 100.
      perform bdc_close_group.
      counter = 0.
      perform bdc_open_group.
   endif.
    counter = counter + 1.

    at last.
        perform bdc_close_group.
    endat.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this gives you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 08:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739914#M321613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739915#M321614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;Do logic like this :This logic is not only for 500 records, even for million records)&lt;/P&gt;&lt;P&gt;1.&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; 100.&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 100 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;Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kumar kk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 08:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session/m-p/1739915#M321614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T08:57:57Z</dc:date>
    </item>
  </channel>
</rss>

