2008 Mar 28 11:29 AM
Hey people i am new to ALV reports.
Can any one plz tell me what these grid layouts in the following codes are for??& how do they function??thanx.
FORM build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
ENDFORM. " BUILD_LAYOUT
2008 Mar 28 11:45 AM
Hi,
Study this u will understand the Layout Functionality.
The layout structure is of type LVC_S_LAYO . It contains fields for settinig graphical properties of the grid control, displaying exceptions, calculating totals and enabling specific interaction options.
Structure
Alphabetic Index
Field name
Short description
Purpose
CTAB_FNAME
Field name of table with cell color codes
Colors
CWIDTH_OPT
Optimize column width
Properties of the Grid Control
DETAILINIT
Display initial values on detail screen
Interaction Control
DETAILTITL
Title bar of detail screen
Interaction Control
EXCP_CONDS
Inherit exceptions to (sub) total
Exceptions
EXCP_FNAME
Field name with exception code
Exceptions
EXCP_LED
Exception as LED
Exceptions
EXCP_ROLLN
Data element for exception documentation
Exceptions
GRID_TITLE
Text of title bar
Properties of the Grid Control
INFO_FNAME
Name of field with row color codes
Colors
KEYHOT
Key columns as hotspot
Interaction Control
NO_HEADERS
Hide column headers
Properties of the Grid Control
NO_HGRIDLN
Hide horizontal grid lines
Properties of the Grid Control
NO_MERGING
Disable cell merging
Properties of the Grid Control
NO_ROWMARK
Hide row marks
Properties of the Grid Control
NO_TOOLBAR
Hide toolbar
Properties of the Grid Control
NO_TOTARR
Do not display totals arrrows
Totals Options
NO_TOTEXP
Do not display expand icons
Totals Options
NO_TOTLINE
Do not display totals line
Totals Options
NO_VGRIDLN
Hide vertical grid lines
Properties of the Grid Control
NUMC_TOTAL
Allow totals calculation for NUMC fields
Totals Options
S_DRAGDROP
Drag & Drop control settings
Interaction Control
SEL_MODE
Selection mode
Properties of the Grid Control
SGL_CLK_HD
Single click on column header
Interaction Control
SMALLTITLE
Title size
Properties of the Grid Control
STYLEFNAME
Name of the cell table for pushbuttons
Interaction Control
TOTALS_BEF
Totals output before single records
Totals Options
ZEBRA
Alternating cell color (zebra pattern) for print output
Colors
Regards,
Morris Bond.
Reward Points if Helpful.
2008 Mar 28 11:45 AM
Hi,
Study this u will understand the Layout Functionality.
The layout structure is of type LVC_S_LAYO . It contains fields for settinig graphical properties of the grid control, displaying exceptions, calculating totals and enabling specific interaction options.
Structure
Alphabetic Index
Field name
Short description
Purpose
CTAB_FNAME
Field name of table with cell color codes
Colors
CWIDTH_OPT
Optimize column width
Properties of the Grid Control
DETAILINIT
Display initial values on detail screen
Interaction Control
DETAILTITL
Title bar of detail screen
Interaction Control
EXCP_CONDS
Inherit exceptions to (sub) total
Exceptions
EXCP_FNAME
Field name with exception code
Exceptions
EXCP_LED
Exception as LED
Exceptions
EXCP_ROLLN
Data element for exception documentation
Exceptions
GRID_TITLE
Text of title bar
Properties of the Grid Control
INFO_FNAME
Name of field with row color codes
Colors
KEYHOT
Key columns as hotspot
Interaction Control
NO_HEADERS
Hide column headers
Properties of the Grid Control
NO_HGRIDLN
Hide horizontal grid lines
Properties of the Grid Control
NO_MERGING
Disable cell merging
Properties of the Grid Control
NO_ROWMARK
Hide row marks
Properties of the Grid Control
NO_TOOLBAR
Hide toolbar
Properties of the Grid Control
NO_TOTARR
Do not display totals arrrows
Totals Options
NO_TOTEXP
Do not display expand icons
Totals Options
NO_TOTLINE
Do not display totals line
Totals Options
NO_VGRIDLN
Hide vertical grid lines
Properties of the Grid Control
NUMC_TOTAL
Allow totals calculation for NUMC fields
Totals Options
S_DRAGDROP
Drag & Drop control settings
Interaction Control
SEL_MODE
Selection mode
Properties of the Grid Control
SGL_CLK_HD
Single click on column header
Interaction Control
SMALLTITLE
Title size
Properties of the Grid Control
STYLEFNAME
Name of the cell table for pushbuttons
Interaction Control
TOTALS_BEF
Totals output before single records
Totals Options
ZEBRA
Alternating cell color (zebra pattern) for print output
Colors
Regards,
Morris Bond.
Reward Points if Helpful.
2008 Mar 28 11:49 AM
Hi Mohanty,
No_input = it won't accepts input ie; it is only for display purpose.
colwidth_optimize = resize facility is available for columns.
totals_text = it totals for only ist column...
Plz rewards if useful,
Thanks,
Ganesh.
2008 Mar 28 11:52 AM
Hi,
The attributes you have mentioned are of properties for the grid.
Just goto se11 and in the type-group option give SLIS as input and get into it. You can see lotsof properties. Also use the sample program as BCALV_GRID_DEMO. It will give you some picture about the ALV.
Regards,
Sanki.