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

table

hi all,

in the report i have an final internal table.

when i run the report the final internal table data should come to one of the ztable which i have created.

ztable fields and final internal table fields are same.

please help me how to write code for this.

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 01:36 PM

    hi,

    do this way ...

    select * from ztable into it_final where <conditions>.
    if sy-subrc = 0.
    endif.
    
    loop at it_final.
      write : it_final-field1,
                it_final-field2,
                .........
    endloop. 

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 01:41 PM

    Hi hemal!!

    Try this:

    loop at itab.

    Move-corresponding itab into <zfields>.

    endloop.

    where itab is ur final internal table and zfields is ur zstructure.

    kindly reward if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 01:46 PM

    Hi Hema,

    Try this,

    Insert ZTABLE from table FINAL_ITAB.

    reward points if usful.

    thanks and regards,

    muralidhar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 02:47 PM

    Use can use this:

    modify ztab from table itab

    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.