Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP

Former Member
0 Likes
498

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

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

2 REPLIES 2
Read only

Former Member
0 Likes
467

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

Read only

former_member195698
Active Contributor
0 Likes
466

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