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

ABAP

Hi,

Go through the following.

write sy-uname into lw_user.

write sy-datum into lw_date.

write sy-pagno into lw_pagno.

append gw_top_of_page into gt_top_of_page.

concatenate lw_user lw_date lw_pagno into lw_heading seperated by space.

write lw_heading and the other stats.

When I use the above statements in top of page in ALV the display in the header part is as follows.

user:satya date:21-11-2007 pageno:1

If I want to increase the gap between each field as mentioned below what is to be done?

user:satya date:21-11-2007 pageno:1

simply i need to display with spaces in between.

regards

satya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:09 PM

    Declare lw_use, lw_date & lw_pageno with more length.

    Or

    CONSTANTS: GC_SPACE(5) type c value ' '.

    concatenate lw_user lw_date lw_pagno into lw_heading seperated by gc_space.

    Reward Points if this helps,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 07:10 PM

    Try this method.

    data:wf1,

    wf2,

    wf3(20).

    data : wf_4(10) type c.

    wf1 = 'A'.

    wf2 = 'B'.

    concatenate wf1 wf2 into wf3 separated by wf_4.

    I have declared the variable wf_4 with length of 10 spaces. Check if this works.

    It works in Normal list output.

    Reward Points if useful.

    Regards,

    Abhishek

    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.