Skip to Content
author's profile photo Former Member
Former Member

move using index

hai

Using move statement i want to move the records from internal table to another using index.

is it possible, let me know

actually my requirement is that my final table is having mroe than 2 lakhs but excel can capture 60000 records only so i have to create no of excel files based on no of records, in this case each time i have to move 60000 records to another internal table and then i have to call gui_download.

madhavi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Nov 20, 2007 at 06:06 AM

    You can use APPEND statement for moving data from one internal table to a TEMP internal table.

    APPEND LINES OF <itab1> [FROM <n1>] [TO <n 2>] TO <itab2>.

    n1 and n2 will be variable which you can increment accordingly

    ITAB1 will be your main table and ITAB2 will be your temp table to which you will move 60000 entries and then download.

    Regards,

    Abhishek

    Message was edited by:

    Abhishek Jolly

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 05:53 AM

    create a counter and sort it loop it using index

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 05:55 AM

    i cann't use move statement in this scenario

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 05:56 AM

    Hi,

    Read the no of records and based on the records u can divide , how many entries ur itab has to handle.

    U can use loop at itab where <cond>.

    in condition u have to use index from and to.

    The specification TO is only possible with standard tables and sorted tables. The specification only accepts table rows after table index idx2. For idx2, a data object of the type i is expected. If the value of idx2 is smaller or equal to 0, then the loop will not be passed. If the value is larger than the number of table rows, then the value will be set to the number of rows. If idx2 is smaller than idx1, then the loop is not passed as well.

    Cheers,

    SImha.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.