Skip to Content
avatar image
Former Member

alv layout problem ?

Hi everyone,

I generating 2 alv reports within a program.In the selection screen there are 2 radio buttons for different alv reports. First i selected the 1st radio button and executed the prog to get a alv report.Then i went to change layout and selected the required columns from the columns set and then saved the layout as the default layout.

Then I came back to the selection screen again.In the selection screen, in the parameter p_var there is default variant,so i cleared the parameter with no layout variant selected.then i selected the 2nd radio button and executed the program.Here the program is again taking the default layout (even though i cleared it in the selection screen )and generating the alv report according to that.But i don't want to use the default layout when i select the 2nd radio button,unless i select it from the variant list.How can i do that?

Any suggestions please?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 10, 2007 at 08:49 AM

    the layout may be seleted thru the fucntion module reuse_alv_grid_display. in which there will be aparameter is_layout.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Hymavathi,

      I commented the paramter is_layout as u said but it is still taking the default layout.Even though i cleared the parameter p_var in the selection screen still it is taking the default layout.Any more suggestions please?

      Thank you.

  • avatar image
    Former Member
    Oct 10, 2007 at 08:56 AM

    hi,

    for any thing related to layout .. go to reuse_alv_grid_display function module and there two parameters is_layout and it_varient which are related to layout ... you can go to function module documentation and can get several option related to is_layout... one of them will fulfill your problem...

    reach out to me any issues

    reward if i have helped u

    regards

    Nikesh kumar

    Add comment
    10|10000 characters needed characters exceeded