Skip to Content
author's profile photo Former Member
Former Member

how to do with restriction of search help

my requirement is that F4 one field, you can get popup dialog and can input some value of field1 field2. i want to get data of condition is field1 OR field2, but the relationship is AND. how to do it?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on May 22, 2009 at 10:35 AM

    Hi,

    This is possible by including EXIT for a SEARCH-HELP.

    Please have a look into this link. This gives a very good details about how to create an EXIT for a Search help:

    /people/vishal.sharma8/blog/2009/03/11/controllingmanipulating-data-of-search-help-using-search-help-exit

    Rgds,

    Ramani N

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 22, 2009 at 09:31 AM

    Hi,

    Can you explain your requirement more clearly.

    the relationship is AND--> What do u mean it.

    Anyway you can write your condition in the Search Help Exit.

    __Naveen Inuganti.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2009 at 09:43 AM

    Hi ,

    if my understanding is correct,

    create a collective search and can use according to your req.

    regards

    gowri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2009 at 10:02 AM

    hi,

    You can implement self programmed value help using value request at selection screen.

    Sample code for your reference

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.

    CLEAR: DYFIELDS[], DYFIELDS.

    *--- select currency

    CALL FUNCTION 'HELP_VALUES_GET'

    EXPORTING

    fieldname = 'WAERS'

    tabname = 'TCURT'

    IMPORTING

    SELECT_VALUE = P_WAERS.

    *--- get long text for the selected currency

    SELECT SINGLE LTEXT FROM TCURT

    INTO DYFIELDS-FIELDVALUE

    WHERE SPRAS = SY-LANGU

    AND WAERS = P_WAERS.

    IF SY-SUBRC <> 0.

    CLEAR DYFIELDS-FIELDVALUE.

    ENDIF.

    *--- update another field

    DYFIELDS-FIELDNAME = 'P_LTEXT'.

    APPEND DYFIELDS.

    CALL FUNCTION 'DYNP_VALUES_UPDATE'

    EXPORTING

    DYNAME = SY-CPROG

    DYNUMB = SY-DYNNR

    tables

    dynpfields = DYFIELDS .

    Hope this will solve your issue.

    Thanks &Regards,

    Kimaya

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.