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

To std. table as internal table

Dear all,

While executing the program in ABAP, if two internal table having a same structure

we can move body of one table to another one.

eg.

ITAB1[] = ITAB2[].

Like the above is there any possiblity of moving whole body of std. table to

internal table.

i.e. itab1 having a same structure of MSEG.

i want like this

itab1[] = MSEG[].

If so, it is very useful in many ways.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 11:22 AM

    no only you have to use select to fetch the value from dbtable and then you have to fill the int table.

    regards

    shiba dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 11:21 AM

    Hi

    Not possible directly through assignment.

    You need to use SELECT statement to fetch data into your internal table.

    <b>select * from MSEG into table itab</b>.

    Regards

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 11:23 AM

    Hi Srini,

    You Can't do that. If you want retrieve the data from Standard Table to Internal table means you should Use the Select query.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 11:24 AM

    Hi,

    no u can not directly do itab1[] = MSEG[].

    u have do like.

    select * into itab1 from mseg.

    it will retrieve all records from mseg to itab1.

    regards,

    sudha.

    reward points if useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 11:25 AM

    Hi,

    no u can not directly do itab1[] = MSEG[].

    u have do like.

    select * into table itab1 from mseg.

    it will retrieve all records from mseg to itab1.

    regards,

    sudha.

    reward points if useful.

    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.