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

Regarding ALV

sreeramkumar_madisetty
Active Contributor
0 Likes
944

Hi Experts

I was developed an ALV Report. It's working fine.

But my requirement is the designed Layout has to be saveable.

As of now it is not saveable.

Can you please let me know the procedure how I can make the designed layout as saveable.

Your suggestions are highly appreciable.

Regards,

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
918

Hi,

Set the parameter I_SAVE to 'X'.

in REUSE_ALV_GRID_DISPLAY FM.

Regards,

Raghavendra

Hi,

Set the parameter I_SAVE to 'X'.

in REUSE_ALV_GRID_DISPLAY FM.

Regards,

Raghavendra

8 REPLIES 8
Read only

Former Member
0 Likes
919

Hi,

Set the parameter I_SAVE to 'X'.

in REUSE_ALV_GRID_DISPLAY FM.

Regards,

Raghavendra

Read only

0 Likes
918

set parametr I_SAVE = 'A' in FM 'reuse_alv_grid_display'.

amit

Read only

Former Member
0 Likes
918

Are you using REUSE_ALV FM. There is a parameter (i think it is I_SAVE), Please check the use of this function module in FM documentation. This will enable you to save the layout.

Read only

Former Member
0 Likes
918

just add reuse_alv_grid_display fm

I_SAVE = 'A'

in exporting.

regards

shiba dutta

Read only

shishupalreddy
Active Contributor
0 Likes
918

Hai,

See the below code for the same .

DATA : g_t_event TYPE slis_t_event,

r_t_event LIKE LINE OF g_t_event,

w_disp_variant TYPE disvariant.

PARAMETERS : p_varian LIKE disvariant-variant.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varian.

HELP IF YOU WANT TO USE DISPLAY VARIANTS, use this form

PERFORM show_existing_display_variants.

FORM show_existing_display_variants .

HELP VALUES OF I_SAVE:

HELP 'U' SHOW ONLY USER SPECIFIC VARIANTS

HELP 'X' SHOW ONLY USER INDEPENDENT VARIANTS

HELP 'A' SHOW ALL VARIANTS

CALL FUNCTION 'REUSE_ALV_VARIANT_F4'

EXPORTING

is_variant = w_disp_variant

i_save = 'A'

IMPORTING

es_variant = w_disp_variant

EXCEPTIONS

not_found = 1

program_error = 2

OTHERS = 3.

IF sy-subrc = 0.

p_varian = w_disp_variant-variant.

ENDIF.

ENDFORM. " show_existing_display_variants

aftere this pass the following exporting parameters tot he LIST_DISPLAY fm.

  • CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

  • EXPORTING

    • I_INTERFACE_CHECK = ' '

    • I_BYPASSING_BUFFER =

    • I_BUFFER_ACTIVE = ' '

  • i_callback_program = w_report_name_tx

    • I_CALLBACK_PF_STATUS_SET = ' '

    • I_CALLBACK_USER_COMMAND = ' '

  • i_structure_name =

  • IS_LAYOUT =

  • it_fieldcat = g_fcat_alv

    • IT_EXCLUDING =

    • IT_SPECIAL_GROUPS =

    • IT_SORT =

    • IT_FILTER =

    • IS_SEL_HIDE =

  • i_default = 'X'

  • i_save = 'A'

  • is_variant = w_disp_variant

*

  • it_events = g_t_event

    • IT_EVENT_EXIT =

    • IS_PRINT =

    • IS_REPREP_ID =

    • I_SCREEN_START_COLUMN = 0

    • I_SCREEN_START_LINE = 0

    • I_SCREEN_END_COLUMN = 0

    • I_SCREEN_END_LINE = 0

    • IMPORTING

    • E_EXIT_CAUSED_BY_CALLER =

    • ES_EXIT_CAUSED_BY_USER =

  • TABLES

  • t_outtab = t_final_out

    • EXCEPTIONS

    • PROGRAM_ERROR = 1

    • OTHERS = 2

  • .

  • IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • ENDIF.

*

*

*

ENDFORM. " ALV_DISPLAY

&----


this will help u

regards,

Read only

Former Member
0 Likes
918

Hi,

use i_save in the function module reuse_alv_grid_display. assign :

1. ' ' to Display variants cannot be saved

2. 'X' to Standard save mode

3. 'U' to User-specific save mode

4. 'A' to Standard and user-specific save mode

reward points if helpful

Read only

Former Member
0 Likes
918

Hi ,

You add FM REUSE_ALV_GRID_DISPLAY

I_SAVE = 'A' OR I_SAVE =X' .

In Exporting .

1.'X' used for Standard Save Mode

2.'A' used for Standard & User specific save Mode.

Reward points if helpful .

With Regards ,

Ravi

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
918

Hi

It's Answered.