Application Development 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: 

Maximum line size for OO ALV

Former Member
0 Kudos

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.

3 REPLIES 3

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

0 Kudos

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?

0 Kudos

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.