10-03-2006 6:40 AM
Hi,
1) What is the maximum line size for OO ALV?
Or in the other way round, how is the maximum column size for OO ALV when i using the method below:
DATA: r_grid TYPE REF TO cl_salv_form_layout_grid.
CREATE OBJECT r_grid.
r_grid->create_text(
row = 2
column = 2
text = sy-mandt ).
2) Another question, how to change the below time format:
223801 -> 22:38:01?
When I try to use sy-uzeit to display the header in ALV like below:
CREATE OBJECT r_grid.
r_grid->create_text(
row = 2
column = 2
text = sy-uzeit ).
The ALV will be displaying 223801. How i can convert to format 22:38:01 and display it in ALV?
Thanks.
10-03-2006 6:46 AM
Hi,
For your second qn.,try by declaring an extra field of type character of length 10 in the structure you are using for ALV.
After that ,after you appended the records,just try the follg...
loop at itab into wa.
concatenate f10(2) ':' f12(2) ':' f1+4(2) into f2.
modify itab from wa transporting f2 index sy-tabix.
endloop.
10-03-2006 6:54 AM
Hi Jaya,
I dont want to use that way to convert the time, is there any standard coding or FM that I can use to convert the time?
10-03-2006 7:27 AM
Hi,
Use the FM
CONVERT_TIME_INPUT
and give the parameters input as '115400' and plausiblity_check = 'X' ,you will get the output in the required format you want.