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

ALV-layout

Former Member
0 Likes
1,209

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

Former Member
0 Likes
1,175

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

Former Member
0 Likes
1,175

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

make I_SAVE = 'U'.

Read only

0 Likes
1,175

I_SAVE = 'U' isn't working

Read only

0 Likes
1,175

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

Read only

0 Likes
1,175

Santosh,

where should i put this code.

i mean under which FM?

Read only

0 Likes
1,175

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

regards,

santosh

Read only

Former Member
0 Likes
1,176

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

Read only

0 Likes
1,175

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.

Read only

Former Member
0 Likes
1,175

Check this out

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

Regards,

Santosh