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 display

Former Member
0 Likes
418

hi,

i have filled my layout for avl display using slis_layout_alv

cs_layout-detail_initial_lines = 'X'. "all fields in detail

MOVE 'COLOR' TO cs_layout-info_fieldname.

cs_layout-get_selinfos = 'X'.

cs_layout-group_change_edit = 'X'.

but now i need to convert this using LVC_S_LAYO . i m not getting the respective fields...

please can any one help me...

thnx..

2 REPLIES 2
Read only

Former Member
0 Likes
381

cs_layout-info_fieldname -


> INFO_FNAME

Check in Se11 with structure LVC_S_LAYO , you can get an idea

Read only

Former Member
0 Likes
381

hi

good

Note that the structure lvc_s_layo can be used for to customize the grid appearance in many ways.

DATA:

  • ALV control: Layout structure

gs_layout TYPE lvc_s_layo.

  • Set grid title

gs_layout-grid_title = 'Flights'.

CALL METHOD go_grid->set_table_for_first_display

EXPORTING i_structure_name = 'SFLIGHT'

is_layout = gs_layout

CHANGING it_outtab = gi_sflight.

Customize the appearence of the grid

The structure lvc_s_layo contains fields for setting graphical properties, displaying exceptions, calculating totals and enabling specific interaction options.

Fill the apporpiate fields of structure lvc_s_layo and insert it as a parameter in the CALL METHOD go_grid->set_table_for_first_display. See the example under Set the title of the grid.

If you want to change apperance after list output, use the methods get_frontend_layout and set_frontend_layout.

Examples of fields in structure lvc_s_layo:

GRID_TITLE Setting the title of the grid

SEL_MODE. Selection mode, determines how rows can be selected. Can have the following values:

A Multiple columns, multiple rows with selection buttons.

B Simple selection, listbox, Single row/column

C Multiple rows without buttons

D Multiple rows with buttons and select all ICON

http://www.erpgenie.com/abap/controls/alvgrid.htm

thanks

mrutyun^