cancel
Showing results for 
Search instead for 
Did you mean: 

IF_FPM_GUIBB_SEARCH - "is between" for MATNR field

former_member186822
Participant
0 Kudos

Hi,

I created a simple report, using a search feeder class .

Added a Material field to the screen. ( MARA-MATNR )

Everything works OK, but I have one problem:

I need a "From"  and a "To" field on mye selection screen for the MATNR field.

.....similar to good old days with: SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.  

In my method:  IF_FPM_GUIBB_SEARCH~GET_DEFINITION, I have tried this, without any good result:

    DATA: lt_include_operators TYPE fpmgb_t_search_operator.
  DATA: lt_exclude_operators TYPE fpmgb_t_search_operator.
  DATA: ls_include_operators TYPE fpmgb_s_search_operator.
  DATA: ls_exclude_operators TYPE fpmgb_s_search_operator.
  DATA: ls_field_description_attr TYPE LINE OF fpmgb_t_searchfield_descr.

* set as default all the FPMGB_SEARCH_OPERATORS to be supported
  ls_include_operators-operator_id = '01'. " is
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '02'. " is not
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '03'. " is empty
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '04'. " starts with
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '05'. " contains
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '06'. " equals
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '07'. " does not equal
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '08'. " is greater than
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '09'. " is less than
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '10'. " is between
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '11'. " is earlier than
  APPEND ls_include_operators TO lt_include_operators[].
  ls_include_operators-operator_id = '12'. " is later than
  APPEND ls_include_operators TO lt_include_operators[].

  ls_exclude_operators-operator_id = '01'. " is
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '02'. " is not
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '03'. " is empty
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '04'. " starts with
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '05'. " contains
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '06'. " equals
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '07'. " does not equal
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '08'. " is greater than
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '09'. " is less than
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '10'. " is between
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '11'. " is earlier than
  APPEND ls_exclude_operators TO lt_exclude_operators[].
  ls_exclude_operators-operator_id = '12'. " is later than
  APPEND ls_exclude_operators TO lt_exclude_operators[].


ls_field_description_attr-name       = 'MATNR'.
ls_field_description_attr-is_of_type = 'TE'.

  ls_field_description_attr-include_operators[] = lt_include_operators[].
  ls_field_description_attr-exclude_operators[] = lt_exclude_operators[].
  INSERT ls_field_description_attr INTO TABLE et_field_description_attr.

Accepted Solutions (1)

Accepted Solutions (1)

hendrik_brandes
Contributor
0 Kudos

Hi Rolf,

in your definition you have both tables filled: include_operators and exclude_operators. Both with the same set of operators. I can image, that FPM gives you no operator to be selected.

I would try to do it directly in the Search-UIBB configuration: Define your search fields, Definde your result-fields and then define the operators to be excluded.

If the button is not shown at first try, you should save between the single steps. Sometime I saw, that the configuration-application reacts in an other way than expected.

Kind regards,

Hendrik

Answers (0)