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 blocks

Former Member
0 Likes
708

I am using the functions for the alv blocks like

REUSE_ALV_BLOCK_LIST_INIT

REUSE_ALV_BLOCK_LIST_HS_APPEND

REUSE_ALV_BLOCK_LIST_DISPLAY

and i have seen that i can´t choose and save a layout, i would like if exists a way of changing and saving the layout in the alv blocks.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
680

TRY for grid:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

try for header:

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

Warren

TRY for grid:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

try for header:

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

Warren

3 REPLIES 3
Read only

Former Member
0 Likes
681

TRY for grid:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

try for header:

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

Warren

Read only

sreekanthgo
Contributor
0 Likes
680

Hi Carl,

Use the FM

REUSE_ALV_LIST_LAYOUT_INFO_GET

Below is the sample code for it.

  call function 'REUSE_ALV_LIST_LAYOUT_INFO_GET'
    importing
      es_layout     = lv_layout1
      et_fieldcat   = i_fieldcat1
    exceptions
      no_infos      = 1
      program_error = 2
      others        = 3.

Please do not forget to mark the helpful answers.

Thanks,

Sreekanth

Read only

Former Member
0 Likes
680

i will change the functions.

thanks everybody