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

PUT OWN HELP IN SELECT-OPTIONS ( REPORTS)

HOW CAN I USE MY OWN QUERY HELP IN SELCT-OPTIONS F4 HELP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2006 at 09:26 AM

    Call the FM F4IF_INT_TABLE_VALUE_REQUEST under the event

    AT SELECTION_SCREEN ON VALUE-REQUEST for FIELD.

    Thanks

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2006 at 09:28 AM

    Hi

    If you have created the F4 help in diciotnary

    SELECT-OPTIONS: SO_SEL FOR .... MATCHCODE OBJECT <ZHELP>.

    If you need to build it at run time:

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR SO_SEL-LOW.

    PERFORM MY_F4_HELP.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR SO_SEL-HIGH.

    PERFORM MY_F4_HELP.

    In routine MY_F4_HELP insert the code to manage your search help

    U can use fm F4IF_INT_TABLE_VALUE_REQUEST to create a search help at run time.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 01:58 AM

    hi amit,

    check the FM 'F4IF_INT_TABLE_VALUE_REQUEST'

    DATA: L_RETFIELD TYPE DFIES-FIELDNAME.

    DATA: T_FIELD like DFIES occurs 0 with header line,

    T_RETURN like DDSHRETVAL occurs 0 with header line.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    RETFIELD = L_RETFIELD

    TABLES

    VALUE_TAB = t_values

    FIELD_TAB = t_Field

    RETURN_TAB = t_return

    EXCEPTIONS

    PARAMETER_ERROR = 1

    NO_VALUES_FOUND = 2

    OTHERS = 3.

    do reward if it helps,

    regards,

    priya.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 04:37 AM

    Hi,

    Check this sample code and reward points if it helps.

    tables kna1.

    data:

    begin of t_values occurs 2,

    value like kna1-begru,

    end of t_values,

    t_return like ddshretval occurs 0 with header line.

    select-options s_begru for kna1-begru.

    at selection-screen on value-request for s_begru-low.

    refresh t_values.

    t_values = 'PAR*'.

    append t_values.

    t_values = 'UGG'.

    append t_values.

    call function 'F4IF_INT_TABLE_VALUE_REQUEST'

    exporting

    retfield = 'BEGRU'

    value_org = 'S'

    tables

    value_tab = t_values

    return_tab = t_return

    exceptions

    parameter_error = 1

    no_values_found = 2

    others = 3.

    if sy-subrc = 0.

    read table t_return index 1.

    s_begru-low = t_return-fieldval.

    endif.

    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.