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: 

ALV-layout

Former Member
0 Kudos

Hi,

In my layout, while i m saving a particular variant, the option ' USER-SPECIFIC'

doesnot gets activated. Only the 'DEFAULT SETTING' could be made.

please help me in activating the 'user specific' option.

points will be rewarded to helpful

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi..,

FU REUSE_ALV_GRID_DISPLAY -


I_SAVE

_______________________________________________

Variants can be saved

Description

Controls the save mode

Prerequisite:

Parameter IS_VARIANT is filled accordingly.

See also the documentation on IMPORTING parameter IS_VARIANT.

Value range

o ' ' = Display variants cannot be saved

Defined display variants (such as delivered display variants) can be

selected for presentation regardless of this indicator. However,

changes cannot be saved.

o 'X' = Standard save mode

Display variants can be saved as standard display variants.

Saving display variants as user-specific is not possible.

o 'U' = User-specific save mode

Display variants can only be saved as user-specific.

o 'A' = Standard and user-specific save mode

Display variants can be saved both as user-specific and as standard

variants. Users make their choice on the dialog box for saving the

display variant.

regards,

sai ramesh

8 REPLIES 8

Former Member
0 Kudos

In the FM used to display the ALV there is an exporting parameter I_SAVE.

make I_SAVE = 'U'.

0 Kudos

I_SAVE = 'U' isn't working

0 Kudos

while creating the ALV GRID object

change it to <b> I_USE_VARIANT_CLASS = 'X'</b>

CREATE OBJECT ref_grid_items

EXPORTING

  • I_SHELLSTYLE = 0

  • I_LIFETIME =

i_parent = ref_container_items

  • I_APPL_EVENTS = space

  • I_PARENTDBG =

  • I_APPLOGPARENT =

  • I_GRAPHICSPARENT =

<b> I_USE_VARIANT_CLASS = 'X'</b>

  • I_NAME =

  • I_NO_AUTO_DETAILS =

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

others = 5

.

regards,

santosh

0 Kudos

Santosh,

where should i put this code.

i mean under which FM?

0 Kudos

try to keep i_save = 'A' instead of i_save = 'U'.

regards,

santosh

Former Member
0 Kudos

Hi..,

FU REUSE_ALV_GRID_DISPLAY -


I_SAVE

_______________________________________________

Variants can be saved

Description

Controls the save mode

Prerequisite:

Parameter IS_VARIANT is filled accordingly.

See also the documentation on IMPORTING parameter IS_VARIANT.

Value range

o ' ' = Display variants cannot be saved

Defined display variants (such as delivered display variants) can be

selected for presentation regardless of this indicator. However,

changes cannot be saved.

o 'X' = Standard save mode

Display variants can be saved as standard display variants.

Saving display variants as user-specific is not possible.

o 'U' = User-specific save mode

Display variants can only be saved as user-specific.

o 'A' = Standard and user-specific save mode

Display variants can be saved both as user-specific and as standard

variants. Users make their choice on the dialog box for saving the

display variant.

regards,

sai ramesh

0 Kudos

Sai,

I wrote I_SAVE in ALV_GRID_DISPLAY.

Its working. Thanks a lot.

I m awarding points to all helpful answers n closing this tag.

Former Member
0 Kudos

Check this out

http://www.sap-img.com/fu017.htm

Regards,

Santosh