<?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 me21 bdc session method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/me21-bdc-session-method/m-p/2157265#M455889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can any help me how to write code for po change  (ME21 tcode and me22) in bdc session.and for every 1000 records i want to create the session.plz waiting for response....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;akitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 05:19:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-25T05:19:38Z</dc:date>
    <item>
      <title>me21 bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me21-bdc-session-method/m-p/2157265#M455889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can any help me how to write code for po change  (ME21 tcode and me22) in bdc session.and for every 1000 records i want to create the session.plz waiting for response....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;akitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 05:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me21-bdc-session-method/m-p/2157265#M455889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T05:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: me21 bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me21-bdc-session-method/m-p/2157266#M455890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not sure about that, please luk into this solution you will get atleast some idea , its just briefly.&lt;/P&gt;&lt;P&gt;you can record using tcode me22 .&lt;/P&gt;&lt;P&gt;call the bdc_open_group for creating the session for first 1000 records.&lt;/P&gt;&lt;P&gt;create a local variable for counting the records&lt;/P&gt;&lt;P&gt;within the loop, increase tat local variable and call the bdc_insert FM and dont call the Close_group FM.&lt;/P&gt;&lt;P&gt;after the BDC_Insert FM just check the condition.&lt;/P&gt;&lt;P&gt;Check local_variable = 1000.&lt;/P&gt;&lt;P&gt;just exit from the current loop and continue the next statement.&lt;/P&gt;&lt;P&gt;Next statement should be:&lt;/P&gt;&lt;P&gt;again you call the fM open_group for creating the next session for next 1000 records.  and u can goo lik this only.&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;GROUP = session1.&lt;/P&gt;&lt;P&gt;data: lv_var like sy-dbcnt.&lt;/P&gt;&lt;P&gt;loop at session_data.&lt;/P&gt;&lt;P&gt;lv_var = lv_var + 1.&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;if lv_var = 1000.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;for next 1000 recrods&lt;/P&gt;&lt;P&gt;you can repeat the same code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 06:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me21-bdc-session-method/m-p/2157266#M455890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T06:35:07Z</dc:date>
    </item>
  </channel>
</rss>

