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

table entries

hi all,

in my report i have a final internal table .

when i execute the report this final internal table values need to come under the ztable which i have created.

using modify command i am able to get the value but the problem is

i have 5 fields in my final internal table and same fields in ZTABLE.

in my final internal table i have 5 values but i am able to see only one value in Ztable i.e., last value.

please tell me how to write code to get all the values

its urgent

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 May 01, 2008 at 07:40 AM

    Hi,

    u need to loop ur final internal table and insert the records in to ur ZTABLE.

    hope this helps..

    regards,

    raam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 01, 2008 at 07:40 AM

    use insert instead of modify...!!!

    Regards,

    Nikhil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 01, 2008 at 07:44 AM

    Hi use the following code :

    
    Insert ZDATA from TABLE IT_DATA.
    
    Or
    
    Loop at IT_DATA into WA_DATA.
    
    Insert into ZTABLE values WA_DATA.
    
    Endloop.
    
    

    Reward If Found Helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 01, 2008 at 07:45 AM

    Hi,

    You can also use the following piece of code:

    Loop at itab into wa.

    insert ztable from wa.

    endloop.

    Here itab is your internal table and wa is the workarea.

    Regards,

    Himanshu

    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.