Show TOC

Complex ConditionsLocate this document in the navigation structure

It is possible to enhance the selection poptions to more complex structures. Using the instance method condition_factory there is an additional or logical operator available to you. You can combine and and or operators into a complex chain of selection options. Example:

READ  TABLE carrid  INTO  data(ls_carrid)  INDEX  1 .
READ  TABLE connid  INTO  data(ls_connid)  INDEX  1 .
DATA(lo_condition_factory)     = lo_alv_display ->condition_factory(  ) .
DATA(lo_additional_condition)  = lo_condition_factory->equals( name  =  'CARRID'   value  = ls_carrid -low  )->or(
                                  lo_condition_factory->equals( name  =  'CONNID'   value  = ls_connid -low  )  ) .

Interface Method
IF_SALV_GUI_TABLE_IDA condition_factory

Example report for an fullscreen display: SALV_IDA_DATA_CONDITIONS_FS