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

alv list header problem

Former Member
0 Likes
559

Hai Friends,

In my ALV List header..i am writing date , time and my program name.

but all are coming on left side.

can i get date on left side, program name on centered and time on write side.

my code is like this.

FORM list_headers.

lists-typ = 'H'.

lists-info = text-010.

APPEND lists.

CLEAR lists.

lists-typ = 'S'.

lists-key = text-011.

CONCATENATE sy-datum+6(2) '/'

sy-datum+4(2) '/'

sy-datum+0(4) INTO lists-info.

APPEND lists.

CLEAR lists.

lists-typ = 'S'.

lists-key = text-012.

CONCATENATE sy-uzeit+0(2) ':'

sy-uzeit+2(2) ':'

sy-uzeit+4(2) INTO lists-info.

APPEND lists.

CLEAR lists.

ENDFORM.

5 REPLIES 5
Read only

Former Member
0 Likes
517

Hi Hari,

1. Just use one variable for showing

all three

2. use this concept (just copy paste)

REPORT abc.

DATA : ln(100) TYPE c.

WRITE sy-datum TO ln .

WRITE sy-uzeit TO ln+35 .

ln+65 = sy-repid.

WRITE ln.

regards,

amit m.

Read only

0 Likes
517

hi amit.

your idea is gud.

but this is alv report.

it won't work , if we approach logic as normal report.

i tried here..it doesn't worked.

Read only

Former Member
0 Likes
517

Hi again,

1. first of all how are u writing / displaying

the alv header ?

2. using documentary write ?

then also, u can use one variable of

length 100 and use this concept.

3. If u are using top_of_page

event,

in this event, WE CAN use WRITE.

(i have used it, and it

works fantastic)

(not in case of alv grid)

4. My point is, what ever u are using,

use on variable of length 100.

WRITE value INTO variable.

using offset

and then proceed further.

regards,

amit m.

Read only

Former Member
0 Likes
517

Sure , You can only use write on top of page event ,and which is same as in the list report.

Read only

former_member186741
Active Contributor
0 Likes
517

you can do this quite simply by changing the fieldcat variable JUST for the fields in question:

just(1) type c, " (R)ight (L)eft (C)ent.