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

Reg ALV

Former Member
0 Likes
514

HI,

How will you create variants in ALV grid display ?

Regards,

Sudhan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
492

Hi Sudhan,

In Reuse_alv_grid_display I_save = 'A' . Then execute your report. ALV grid display you can save diffrenet layouts. That can be selected every time.

Bye

M.Manickam

HI,

How will you create variants in ALV grid display ?

Regards,

Sudhan

3 REPLIES 3
Read only

Former Member
0 Likes
492

Example.....

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

i_callback_program = repid

i_callback_pf_status_set = 'SET_PF_STATUS'

i_callback_user_command = 'USER_COMMAND'

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

is_layout = wa_layout

it_fieldcat = it_fcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

<b> i_save = 'X'</b>

  • IS_VARIANT =

  • IT_EVENTS =

  • 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

  • I_HTML_HEIGHT_TOP = 0

  • I_HTML_HEIGHT_END = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • IR_SALV_FULLSCREEN_ADAPTER =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = it_daily

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.

<b> i_save = 'X'</b> in this FM enables a button to save the the layout in ALv display

u can save any lay outs

and u can select particular lay outs for ur output...

c d below link for more details....

http://www.erpgenie.com/abap/controls/alvgrid.htm#Refresh%20grid%20display

u can also check reference program

<b>BCALV_TEST_GRID_LAYOUT</b>

Ramesh.

Message was edited by:

Ramesh

Read only

Former Member
0 Likes
492

Send ur mail id .

Read only

Former Member
0 Likes
493

Hi Sudhan,

In Reuse_alv_grid_display I_save = 'A' . Then execute your report. ALV grid display you can save diffrenet layouts. That can be selected every time.

Bye

M.Manickam