‎2006 Jan 11 6:46 AM
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.
‎2006 Jan 11 6:55 AM
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.
‎2006 Jan 11 7:15 AM
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.
‎2006 Jan 11 7:24 AM
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.
‎2006 Jan 11 10:04 AM
Sure , You can only use write on top of page event ,and which is same as in the list report.
‎2006 Jan 13 2:51 AM
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.