Skip to Content
avatar image
Former Member

Suppress fields of Search Area at runtime

Hi,

I need to suppress certain fields of search area at runtime. The problem is read is not getting called for search area structure. I cannot use a screen variant because there are many combinations and creating screen variants is not possible.

Another problem is with F4 for a search area fields. I have a search-help linked to the corresponding structure field. The values that I show in F4 help or dependant on one of the other fields of the search area which is mapped when linking search help. The problem is the other field is not being passed to the search-help. But if I default the value or click on 'Go' with some value than the value gets passed. Is this the actual behaviour. In that case the only solution would be to create a new application and map fields using customizing.

Did anyone had any situation like this before. Any information in this regard would be appreciated.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 22, 2006 at 09:50 AM

    Hi Srinivas,

    To suppress the search help fields at run time, write the following code in the PRESEL event of the search help.

    Loop at shlp_tab into wa_shlp_fieldprop.
    * Check for some condition using the work area
      IF wa_shlp_fieldprop-fieldname = 'PRODUCT'.
        wa_shlp_fieldprop-shlpselpos = '0'.
      ENDIF.
      MODIFY xyt_shlp-fieldprop FROM wa_shlp_fieldprop.
    ENDLOOP.

    <b>Reward if it helps.</b>

    Regards,

    Amit Mishra

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Amit,

      My question was in PC-UI context. I need to suppress fields in Advanced Search area of a PC-UI application.

      Thanks.

      Srinivas.