<?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: BAPI Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667674#M1574757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was the first thing I thought when I read the problem. Get all the records at once! Deal with the 50K record blocks in Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNREDDY11,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other thing: based on the wording of the initial post "display" 50,000 records at a time?! Why would it ever be useful to display that many records? I'm curious about the scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 17:23:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-11T17:23:01Z</dc:date>
    <item>
      <title>BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667651#M1574734</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 this BAPI which is getting data from tstc and tstct tables. The data has 200k+ records, I need to display 50K at a time. Can someone please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SNReddy&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION bptcoddata_extract.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(FILEPATH) TYPE  RLGRAP-FILENAME OPTIONAL
*"     VALUE(STANDARD_TABLES) TYPE  FLAG DEFAULT 'X'
*"     VALUE(CONNECTOR) TYPE  CHAR5 OPTIONAL
*"     VALUE(TCODE_DATA) TYPE  FLAG DEFAULT 'X'
*"     VALUE(TCODE_SELECT) TYPE  STRING OPTIONAL
*"  TABLES
*"      TBL_BAPIRET STRUCTURE  BAPIRET2 OPTIONAL
*"      TCODES STRUCTURE  TWBTCODE OPTIONAL
*"      TCODES_DESC STRUCTURE  TSTCT OPTIONAL
*"----------------------------------------------------------------------

  DATA : t_tcodes_tstc TYPE STANDARD TABLE OF twbtcode,
         wa_bapiret TYPE bapiret2,
         t_tcodes TYPE STANDARD TABLE OF ty_tcodes,
         wa_tcodes TYPE ty_tcodes,
         lv_filename TYPE string,
         t_tcodes_script TYPE tt_tcodes_script,
         wa_tcodes_script TYPE stcodes_script,
         t_bapiret TYPE STANDARD TABLE OF bapiret2,
         wa_tstct TYPE tstct,
         t_seluserstr TYPE STANDARD TABLE OF ssel_user_str.


*If there is any pattern sent for Transaction codes then use the same for fetching Transaction codes
  IF NOT tcode_select IS INITIAL.
    PERFORM process_tcodepattern TABLES t_seluserstr
                                  USING tcode_select.
  ENDIF.

  IF tcode_data = 'X'.
* Fetch All Transaction codes from the SAP system
    IF standard_tables = 'X'.
      IF t_seluserstr[] IS INITIAL.
        select * into corresponding fields of table tcodes from tstc.
        select * into corresponding fields of table tcodes_desc from
          tstct where sprsl = 'E'.
      ELSE.
        select * into corresponding fields of table tcodes from tstc
          where tcode in t_seluserstr[].
        select * into corresponding fields of table tcodes_desc from
          tstct where sprsl = 'E' and tcode in t_seluserstr[].
      ENDIF.

    ELSE.
      IF t_seluserstr[] IS INITIAL.
        SELECT tcode FROM (lv_alrttstc) INTO TABLE t_tcodes_tstc WHERE tcode NE space AND sprsl = 'E'.
      ELSE.
        SELECT tcode FROM (lv_alrttstc) INTO TABLE t_tcodes_tstc WHERE tcode IN t_seluserstr[] AND sprsl = 'E'.
      ENDIF.

      SELECT sprsl tcode ttext FROM (lv_alrttstct)
      INTO CORRESPONDING FIELDS OF TABLE t_tcodes
      FOR ALL ENTRIES IN t_tcodes_tstc
      WHERE   sprsl = 'E' AND
              tcode = t_tcodes_tstc-tcode.

    ENDIF.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      wa_bapiret-type = 'E'.
      wa_bapiret-id = 'MSG'.
      wa_bapiret-number = '000'.
      wa_bapiret-message = 'There are no Transaction Codes available in the System'."#EC NOTEXT
      APPEND wa_bapiret TO tbl_bapiret.
      CLEAR wa_bapiret.
      EXIT.
    ENDIF.


    FREE : t_tcodes_tstc.
  ENDIF.

ENDFUNCTION.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 23:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667651#M1574734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-09T23:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667652#M1574735</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 am getting number of lines from internal table like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Describe table tcodes lines lv_count.&lt;/P&gt;&lt;P&gt;      IF lv_count &amp;gt; 50000.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        Tcodes = tcodes.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I get each time only 50k and display them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;NReddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 00:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667652#M1574735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T00:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667653#M1574736</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;you can use as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * up to 10 rows from ekko where bukrs = '1001'.&lt;/P&gt;&lt;P&gt;    write:/ EKKO-ebeln.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or after entries in Internal table, you have to write like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt;If Sy-tabix &amp;lt;= 50000.&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;Regards,&lt;/P&gt;&lt;P&gt;Ani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 03:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667653#M1574736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T03:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667654#M1574737</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 am trying this code, but is not working. Can any one please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select * into corresponding fields of table tcodes from tstc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Describe table tcodes lines lv_count.&lt;/P&gt;&lt;P&gt;      IF lv_count &amp;gt; 50000.&lt;/P&gt;&lt;P&gt;        select * from tcodes&lt;/P&gt;&lt;P&gt;        up to 50000 rows&lt;/P&gt;&lt;P&gt;        into table tcodes.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also how can I loop it so that I will get all the 200k records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 19:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667654#M1574737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667655#M1574738</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 tried this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;      TCODES type table of TWBTCODE,&lt;/P&gt;&lt;P&gt;      TCODES1 type table of TWBTCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select * into corresponding fields of table tcodes from tstc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Describe table tcodes lines lv_count.&lt;/P&gt;&lt;P&gt;      IF lv_count &amp;gt; 50000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        LOOP at tcodes.&lt;/P&gt;&lt;P&gt;          select up to 50000 rows&lt;/P&gt;&lt;P&gt;          into table tcodes1.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get data in loop stmt and also how do I get remaining entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 19:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667655#M1574738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T19:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667656#M1574739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type &lt;STRONG&gt;package size&lt;/STRONG&gt; in your editor and hit F1 key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 19:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667656#M1574739</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-02-10T19:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667657#M1574740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. If I use INTO package size last few records are staying and if I use APPENDING all the records are comming. How can I get each time 50,000 until all records are done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 20:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667657#M1574740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667658#M1574741</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 tried this, but the program is getting teminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DATA: dbcur1 TYPE cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      OPEN CURSOR dbcur1 FOR&lt;/P&gt;&lt;P&gt;      select * from tstc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DO.&lt;/P&gt;&lt;P&gt;        FETCH NEXT CURSOR dbcur1&lt;/P&gt;&lt;P&gt;        INTO TABLE tcodes PACKAGE SIZE 50000.&lt;/P&gt;&lt;P&gt;      ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLOSE CURSOR: dbcur1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 20:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667658#M1574741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T20:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667659#M1574742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling this function remotely?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 20:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667659#M1574742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T20:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667660#M1574743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We call this BAPI from Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 20:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667660#M1574743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T20:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667661#M1574744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Thank you. If I use INTO package size last few records are staying and if I use APPENDING all the records are comming. How can I get each time 50,000 until all records are done.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean last few records are staying? For me, package size seems to working and it returns the last package correctly.. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM VBAK INTO TABLE T_VBAK
       PACKAGE SIZE 20.
  LOOP AT T_VBAK INTO S_VBAK. 
     write: / s_vbak-vbeln
  ENDLOOP.
  WRITE: / 'END OF PACKAGE'.
ENDSELECT. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 20:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667661#M1574744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T20:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667662#M1574745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; We call this BAPI from Java.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So is it correct to say that you want to call this function repeatedly? The first time you pick up the first 50,000 records, the second time the next 50,000 records and so on until you have returned all of the records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 21:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667662#M1574745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T21:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667663#M1574746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you may be able to make use of the 'tcode_select' parameter. The first time you call the fm it will return more than you want but you can just use the first 50k and save the key of the 50001th record and pass that in the parameter to the next call to the FM(telling it to give you records &amp;gt;= that key value) and then repeat this process until you have no records coming back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 23:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667663#M1574746</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-10T23:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667664#M1574747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rob and Neil. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main function module I have bptcoddata_extract is having 200k records. I need to get the data in batches. As I am new this functionality, but can I write a wrapper fuction module to call this function and get data once every 50,000 records until I get all the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me an example of using tcode_select parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I greatly appriciate all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 23:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667664#M1574747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T23:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667665#M1574748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that fm does not exist in my system but assuming this field is a range or select option type field:&lt;/P&gt;&lt;P&gt;  tcode_select-option = 'GE'.&lt;/P&gt;&lt;P&gt;  tcode_select-sign   = 'I'.&lt;/P&gt;&lt;P&gt;  tcode_select-low    = "your value from the 50001th entry".&lt;/P&gt;&lt;P&gt;  APPEND tcode_select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 00:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667665#M1574748</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-11T00:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667666#M1574749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Neil. I also do not have tcode_select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the wrapper function module I am calling the main function module, which contains all the data. How to loop through that data to send 50000 records at a time until all the data is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 05:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667666#M1574749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T05:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667667#M1574750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually I see that TCODE_SELECT is listed as a type 'string'.......can you double-click on the function module to view the code? If so you will be able to work out how this string is used by the fm. I think you maybe able to pass a pattern, something like 'TCODE &amp;gt;= 'abcd'.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another thing you could try is to get your wrapper to have the following parameters:&lt;/P&gt;&lt;P&gt;start_number and end_number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from java you should call your wrapper in a loop, say 4 times so that &lt;/P&gt;&lt;P&gt;start_number is 1, 50001,100001,150001 and end_number is 50000, 100000, 150000 and 200000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code from you rwrapper can call the fm and then delete the entries it does not want before sending it back to java.&lt;/P&gt;&lt;P&gt;so it would have something like:&lt;/P&gt;&lt;P&gt;*remove records after your target first&lt;/P&gt;&lt;P&gt;l_first_to_delete = i_end_number + 1.&lt;/P&gt;&lt;P&gt;delete lt_tcode from l_first_to_delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*now remove entries before your first target entry&lt;/P&gt;&lt;P&gt;if i_start_number &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;l_last_to_delete = i_start_number - 1.&lt;/P&gt;&lt;P&gt;delete lt_tcode from 1 to l_last_to_delete.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 05:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667667#M1574750</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-11T05:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667668#M1574751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your java program, you can call the fm in a loop, each time passing a number indicating which group of records you want (1, 2, 3, ...N). Then in the FM, use the package size addition to the SELECT statement to skip the 50,000*(N-1) records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667668#M1574751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667669#M1574752</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;use the package size addition to the SELECT statement to skip the 50,000*(N-1) records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose there are 50,000 thousand records to fetched in 5 loops ... say 5 calls to the fm.  The select statement in each hit will always give the first 10000 records in five loops not the records from 20,000 to 50,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that its not possible to skip using package statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667669#M1574752</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-02-11T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667670#M1574753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - it's ugly, but what else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-help/m-p/7667670#M1574753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T14:12:50Z</dc:date>
    </item>
  </channel>
</rss>

