<?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 call by session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026116#M1498669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While reading the items put a check before bdc_insert, not to exceed 300 lines and ask your functional consultant what to do incase items are more than 300.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 May 2010 07:15:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-31T07:15:42Z</dc:date>
    <item>
      <title>BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026113#M1498666</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;we have to create sales order through BDC using session method but the problem is that,  we have to create sales order not more than 300 line item as there is a check on accounting entries of bills of not more than 300 line items.&lt;/P&gt;&lt;P&gt;So how would I create sales order of not more than 300 items from a text files which can containg 500 line items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 06:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026113#M1498666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T06:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026114#M1498667</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;Its purely business requirement on whether to split the line items at 300 and then create a new sales order...Please check the same with your functional consultant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 07:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026114#M1498667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T07:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026115#M1498668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know how to do it as all the data is stored in BDC Session than how would i do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 07:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026115#M1498668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T07:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026116#M1498669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While reading the items put a check before bdc_insert, not to exceed 300 lines and ask your functional consultant what to do incase items are more than 300.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 07:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026116#M1498669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T07:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026117#M1498670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tahnks Arjun &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can we do that if all the 5000 records have come to BDC Sessions tahn how will we insert only 300 in first time . We have to create 1 sale order for 300 line items and another SO for next 300 line items and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have to call form open group for 300 line items only and again for next 300 items or any other metod is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 08:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026117#M1498670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026118#M1498671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have to call form open group for 300 line items only and again for next 300 items or any other metod is there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you have to .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 08:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026118#M1498671</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-05-31T08:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026119#M1498672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;find the common field which have same data so that it can come into one sales order by this we can reduce the number of sales orders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 12:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026119#M1498672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-31T12:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: BDC call by session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026120#M1498673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suchender,&lt;/P&gt;&lt;P&gt;I also had similar requirement as yours. Please find the below logic. It will work for you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ TABLE itab.
recs = sy-tfill.
a = recs DIV 300.
b = recs MOD 300.

s1 = 1.
s2 = 300.

DO a TIMES.
  sno = sy-index.
  CONDENSE sno.
  CONCATENATE 'SESSION' sno INTO ses_nam SEPARATED BY '_'.
  PERFORM session USING ses_nam s1 s2.
  s1 = s1 + 300.
  IF sy-index &amp;lt;&amp;gt; a.
    s2 = s2 + 300.
  ENDIF.
ENDDO.

IF b &amp;lt;&amp;gt; 0.
  s2 = s2 + b.
  sno = sno + 1.
  CONDENSE sno.
  CONCATENATE 'SESSION' sno INTO ses_nam SEPARATED BY '_'.
  PERFORM session USING ses_nam s1 s2.
ENDIF.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  session
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;SES_NAM    text
*      --&amp;gt;S1         text
*      --&amp;gt;S2         text
*----------------------------------------------------------------------*
FORM session USING ses_nam s1 s2.
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      group               = ses_nam
      keep                = 'X'
      user                = sy-uname
    EXCEPTIONS
      client_invalid      = 1
      destination_invalid = 2
      group_invalid       = 3
      group_is_locked     = 4
      holddate_invalid    = 5
      internal_error      = 6
      queue_error         = 7
      running             = 8
      system_lock_error   = 9
      user_invalid        = 10
      OTHERS              = 11.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  LOOP AT itab FROM s1 TO s2.
    REFRESH bdcdata.
    PERFORM mapping.

    CALL FUNCTION 'BDC_INSERT'
      EXPORTING
        tcode     = 'MM01'
      TABLES
        dynprotab = bdcdata.
  ENDLOOP.

  CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      not_open    = 1
      queue_error = 2
      OTHERS      = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    "session

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 05:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-by-session/m-p/7026120#M1498673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-01T05:40:06Z</dc:date>
    </item>
  </channel>
</rss>

