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

formatting in reports

hi experts,

what is the best and easiest way to format a non-alv report it is time consuming by using under, text,sy-vline,screen offsets,positions in write statement .please send me a sample code for this

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2007 at 10:25 AM

    hi,

    in classic reports you must foramt report with sy-vline only...no other way..

    but instead of using fixed column positions you can use variable lenghts...easy to format..

    for example..

    WRITE :/ sy-vline,
                2 itab-matnr,   "fixed column positions
                19 sy-vline,
                20 itab-menge ,
                33 sy-vline.
    
    you can write above code like this,
    WRITE :/ sy-vline,
                (18) itab-matnr, sy-vline,
                (13) itab-menge , sy-vline.
             
    

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi perez,

      WRITE :/ sy-vline,

      2 itab-matnr, "fixed column positions

      19 sy-vline,

      20 itab-menge ,

      33 sy-vline.

      you can write above code like this,

      WRITE :/ sy-vline,

      (18) itab-matnr, sy-vline,

      (13) itab-menge , sy-vline.

      can u please explain a little bit more

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2007 at 10:32 AM

    Hi,

    No other simply ways.

    You can go ALV List Display instead of Grid Display.

    for Placeholders, you can create constants like l_pos10 for position 10...

    So that you can change the pos at definition level instead of changing eveywhere.

    For Example:

    data: l_10 type i value 10,

    l_25 type i value 25.

    write: /l_10 'Baburaj ',

    AT l_25 'Manickam'.

    Regards,

    Baburaj

    Add a comment
    10|10000 characters needed characters exceeded

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

    sdn rocks

    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.