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: 

Functionality for Select and Save layout in a report output

Former Member
0 Kudos

Hi,

I had developed a report program containing several fields in the output and requires the Functionality for Select layout and Save layout in a report output.

Please suggest.

Thanks,

Shariq.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Create a transaction for the report and assign a transaction variant to it.

The transaction for creating transaction variant is SHD0.

Regards,

Renjith Michael.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Create a transaction for the report and assign a transaction variant to it.

The transaction for creating transaction variant is SHD0.

Regards,

Renjith Michael.

Former Member
0 Kudos

Hi,

I am not able to create any variants in the output list,

I mean..say i have 20 fields in the output list, I have a change layout button in the task bar, So the user needs to select required layout and save it.

Former Member
0 Kudos

you can use following function modules to save and use layout:

REUSE_ALV_VARIANT_SAVE

REUSE_ALV_VARIANT_DEFAULT_GET

REUSE_ALV_VARIANT_F4

Former Member
0 Kudos

While calling the FM for List Display ( "REUSE_ALV_LIST_DISPLAY" or "REUSE_ALV_GRID_DISPLAY" ) set the Parameter I_SAVE for Setting the Layout and Selecting a different Layouts.

The possible values for I_SAVE are "A", "U", "X" or others. Depending on the requiement you can set different values for the Parameter I_SAVE.

' ' = display variants cannot be saved

Defined display variants (e.g. delivered display variants) can be selected for presentation independently of this flag.

Changes can not be saved.

'X' = standard save

Display variants can be saved as standard display variants.

User-specific saving is not possible.

'U' = only user-specific saving

The user can only save display variants user-specifically

'A' = standard and user-specific saving

The user can save a display variant user-specifically and

as standard display variant. The user chooses in the display variant

save popup.

Reward points if helpful.

Former Member
0 Kudos

Thanks a lot to all