ALV Grid layout problem

Question:
hi guys,
I've got a qeustion related to ALV Grid LAYOUT. The problem is that layout for ALV Grid "works" not properly. For example:
  data:  gs_layout    type lvc_s_layo.
...
  gs_layout-cwidth_opt = 'X'.
  gs_layout-zebra      = 'X '.
  gs_layout-sel_mode   = 'A'.
...
    call method my_grid->set_table_for_first_display
      exporting
        is_layout = gs_layout
...
but during showing data in ALV Grid only SEL_MODE is OK the others features aren't present i.e. the width of columns isn't optimal and the color of the records is the same (no ZEBRA).
I'm working with SAP version 46B (before I used ALV Grids in version 46C and everything was fine). Maybe it is due to SAP version?
will be gratefull for any advice
_________________
Best regards,
Jag
Answer:
Hi !!
Please check if it`s working without that SPACE after X in ZEBRA
Your Source:
gs_layout-zebra = 'X '.
Working:
gs_layout-zebra = 'X'.
cwidth_opt:
You may check that in 2 modi, ( you can kill that X in Debugger ) and compare the layouts.
Maybe you have to long colum-Text ??? ( and what you see is optimized )
So long
Insane
Answer:
first I want to thanks INSANE for the replay. actually I made a little mistake writing this post: in my source code stands gs_layout-zebra = 'X' without any space. besides I tried to change layout structure in debugger but vainly - the ALV Grid dont accept my layout.
I think it is question for Basis experts to a greater or lesser extent. anyway thank for ur attempt to help me
Answer:
I had the same with my first ALV. The zebra worked perfectly when I looked at the PRINT preview
Answer:
yes by clicking on PrintPreview you can see 'zebra'. the matter is that if you choose Print Preview the FM 'REUSE_ALV_VARIANT_DEFAULT_GET' is called and this FM works properly but for key-users it's necessary to see zebra not clicking on the button PrintPreview...
_________________
Best regards,
Jag

More Articles:

R/3 DCOM Connector Object Builder: Registry Issue?
LSMW file(s)?
links that are current?
EAN128 barcode?
Querying of Cluster Table?
Table Indexes Analysis.?