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

Resize ALV Grid

herzelhaimharel_gilor
Participant
0 Likes
449

Hi Folks ,

i'm using an alv grid in my program and might have change the initial size of it's custom container which seats above it .

is there any way that i can chnage the initial size (H/V) of it ?

i try via screen table but it can't cupture the custom container name within the loop .

Hi Folks ,

i'm using an alv grid in my program and might have change the initial size of it's custom container which seats above it .

is there any way that i can chnage the initial size (H/V) of it ?

i try via screen table but it can't cupture the custom container name within the loop .

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
416

you can use the set_alignment method of cl_gui_custom_container class for this

 create object my_container
        exporting
            container_name = 'OUTPUT_CONTAINER'
        exceptions
            others = 1.
    case sy-subrc.
      when 0.
      when others.
        raise cntl_error.
    endcase.

    alignment = my_container->align_at_left +
              my_container->align_at_right +
              my_container->align_at_top +
              my_container->align_at_bottom.

    call method my_container->set_alignment
       exporting
         alignment = alignment.

Regards

Raja