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

How to display output without fieldnames in write statements

hi,

can any one tell how to get output with all fields values of a table without writing fieldnames in write statement.

giv proper code for this task.Thaks in advance.

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 Jun 19, 2008 at 10:04 AM
    
    loop at itab.
    write:/  matnr.
    endloop.
    
    
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 10:07 AM

    Hi,

    You can display using the work area of the table. You will get the correct output if your table has only text related fields(Type C, N, D)

    loop at itab into wa.

    write:\ wa.

    endloop.

    Thanks,

    Rajinikanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 10:10 AM

    Use ALV report. Pass the internal table to the ALV function module.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 10:14 AM

    REPORT .

    data: itab type table of mara with header line ,

    wa like mara .

    select * from mara into table itab up to 3 rows.

    loop at itab into wa.

    write:/ wa+0(18) .

    write:/ wa+18(3).

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 10:14 AM

    hiii

    if you want to write just values then you can use write statement only ..no need to do anything else.simply write as follows

    LOOP AT t_customer INTO fs_customer.
    
      WRITE:/ fs_customer-customer_no,
              fs_customer-customer_name,
              fs_customer-customer_amount.
    
    ENDLOOP

    reward if useful

    thx

    twinkal

    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.