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

Need function module

Hi All,

I am looking for a function module in which we can pass the internal table value. More Important that this function module should have the Readio button or any indicator. I have the function module F4IF_INT_TABLE_VALUE_REQUEST which have the check box.

Requirment is when this function module display the content of internal table, User can choose the only one record from function module and the selected row will be checked radio button. But in function module F4IF_INT_TABLE_VALUE_REQUEST user can select more that one. So i need radio button

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2005 at 10:29 AM

    Hello Rakesh,

    The function module has a parameter called MULTIPLE_CHOICE, which by default is SPACE. Make sure you are not passing anything to this parameter. That way, the user can only select one option.

    Hope this helps,

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rakesh,

      If you want to set a default for selection (which is what I think you mean), then I think you need to use the parameter MARK_TAB. It is a table, but just put in one value with the index of the value that is to be the default.

      Cheers,

      Martin

  • Posted on May 27, 2005 at 10:33 AM

    Hi,

    Here is the sample coding for the function module you mentioned.

    F4IF_INT_TABLE_VALUE_REQUEST F4 help that returns the values selected in an internal table. Very handy when programming your very own F4 help for a field.

    Example:

    data:

    begin of t_values occurs 2,

    value like kna1-begru,

    end of t_values,

    t_return like ddshretval occurs 0 with header line.

    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.

    o_begru-low = t_return-fieldval.

    if o_begru-low = 'PAR*'.

    o_begru-option = 'CP'.

    else.

    o_begru-option = 'EQ'.

    endif.

    o_begru-sign = 'I'.

    append o_begru to s_begru.

    else.

    o_begru = i_begru.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2005 at 10:47 AM

    Hi,

    Check this thread

    f4ifinttablevaluerequest

    function-'f4ifinttablevaluerequest'

    • { START

    DATA: retval LIKE ddshretval OCCURS 1 WITH HEADER LINE,

    BEGIN OF search_help_tab OCCURS 10,

    field_1(10),

    field_2(10),

    END OF search_help_tab.

    PERFORM create_search_help_tab.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = 'FIELD'

    value_org = 'S'

    window_title = text-001 " Dialog window

    header text

    TABLES

    value_tab = search_help_tab " Pre-filled

    with your data and the

    return_tab = retval. "

    fields/columns of your choice

    READ TABLE retval INDEX 1.

    my_selection_variable = retval-fieldval.

    • } END

    Thanks & Regards,

    Judith.

    Message was edited by: Judith Jessie Selvi

    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.