Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV Output

I am using FM : Reuse_alv_grid_display_LVC to get ALV output.

When I am changing the Layout means, If I am changing the fields sequence, I want to save the layout.

Is it possible...

here I to save option is disable.\

How can I do it.

Thanks

kumar

Tags:
replied

hi...

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

i_callback_program = sy-repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

  • I_CALLBACK_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

i_structure_name = 'I_OUTPUT'

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • IS_LAYOUT = wa_layout

it_fieldcat = i_fieldcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

i_default = 'X'

i_save = 'X'------>This will save your layout.

try tis example

-


FOR VARIANT

-


data st_var type disvariant .

data save type c.

st_var-report = 'ZSPARTA_REP_ALV'.

save = 'A'.

-


FOR LAYOUT

-


data loyo type lvc_s_layo.

loyo-grid_title = 'Open And Realsed Repairs '.

loyo-detailtitl = 'Detail List of Open And Realsed Repairs'.

loyo-zebra = 'X'.

loyo-detailinit = 'X'.

loyo-info_fname = 'RED'.

*----


form alv_display.

call method ref_grid->set_table_for_first_display

exporting

is_variant = st_var

i_save = save

is_layout = loyo

changing

it_outtab = sel_repc[]

it_fieldcatalog = fcat.

call screen 100.

endform. "alv_display

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question