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

'Save layout' button missing in the ALV report layout screen

Former Member
0 Likes
6,577

Hi Friends,

In one of our ALV report the 'save layout' button is missing in the report output screen.i have used the OO concept for creating the ALV output and not the function module.I have attached the code below used for creating the ALV grid.

CREATE OBJECT alv_grid

EXPORTING i_parent = g_container_2.

CALL METHOD alv_grid->set_table_for_first_display

  • exporting

  • i_structure_name = 'PA0002'

  • is_layout =

CHANGING

it_outtab = gt_outtab

it_fieldcatalog = wa_fieldcat.

But i'm not able to trace why the 'save layout' button is missing in the output.Can anyone of you help me in sorting out this problem.

Thanks and Regards,

Vadivel.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,270

Pass values to <b><u>is_layout</u></b> parameter.

4 REPLIES 4
Read only

Former Member
0 Likes
2,271

Pass values to <b><u>is_layout</u></b> parameter.

Read only

Former Member
0 Likes
2,270

Pass <u><i><b>A to I_SAVE</b></i></u> parameter. That will give the options to the user to save the layout outs.

I_SAVE = SPACE

Layouts cannot be saved.

I_SAVE = 'U'

Only user-defined layouts can be saved.

I_SAVE = 'X'

Only global layouts can be saved.

I_SAVE = 'A'

Both user-defined and global layouts can be saved.

Regards,

Ravi

Note : Please mark all the helpful answers

Message was edited by: Ravikumar Allampallam

Read only

Former Member
0 Likes
2,270

Hai,

There is a struture of type DISVARIANT, pass the name of your program in its parameter. In the method

CALL METHOD C_ALV->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

IS_VARIANT = <disvariant stru>

I_SAVE = 'X' - to Save layout

I_DEFAULT = 'X' - to open default saved layout.

You can also specify the default setting to be loaded ie) the variant name can also be specified in the disvariant structure.

Read only

Former Member
0 Likes
2,270

This message was moderated.