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

Functionality for Select and Save layout in a report output

Former Member
0 Likes
1,999

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
Read only

Former Member
0 Likes
1,298

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.

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
Read only

Former Member
0 Likes
1,299

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.

Read only

Former Member
0 Likes
1,298

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.

Read only

Former Member
0 Likes
1,298

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

REUSE_ALV_VARIANT_SAVE

REUSE_ALV_VARIANT_DEFAULT_GET

REUSE_ALV_VARIANT_F4

Read only

Former Member
0 Likes
1,298

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.

Read only

Former Member
0 Likes
1,298

Thanks a lot to all