1 1 1 1 1 Rating 0% (0 Votes)
Tags: FALV
The latest version of each part of FALV can be found on github repository https://github.com/fidley/falv which you can use in abapGit for easier up to date handling. 
 
When we want to adapt fieldcatalog the we can use standard old technique of getting frontend field catalog and then manipulating the entries or we can use column method which returns zcl_falv_column object and then using this object we can set all fieldcatalog settings. We can do it in two ways which shows this demo program.

"! This is demo for FALV full screen with fieldcatalog update
"! done by Lukasz Pegiel for http://abapblog.com

report zdemo_falv07.

datasflight type standard table of sflight.


start-of-selection.


  select up to 100 rows
  into corresponding fields of table @sflight
  from sflight.

  "FALV creation with only table passed
  data(falvzcl_falv=>createchanging ct_table sflight ).

  "Add title variable
  falv->title_v1 'ZDEMO_FALV07'.


  "Changing some of field catalog settings
  falv->column'SEATSMAX' )->set_hotspotabap_true ).
  falv->column'SEATSMAX' )->set_color'C700' ).

  falv->column'PLANETYPE' )->set_color'C300' ).
  falv->column'PLANETYPE' )->set_no_mergingabap_true ).

  falv->column'PAYMENTSUM' )->set_no_zeroabap_true ).

  "or

  data(pricefalv->column'PRICE' ).
  price->set_no_outabap_true ).
  data(occupfalv->column'SEATSOCC' ).
  occup->set_no_zeroabap_true ).
  occup->set_no_mergingabap_true  ).

  "Display full screen grid
  falv->display).

Result of demo program