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

re: regarding value request

HI,

when i use this below it is not showing the values in the f4 help . just it is giving popup screen.

parameters: b type i.

data: begin of it occurs 0,

b type i,

end of it.

initialization.

it-b = 1.

append it.

it-b = 2.

append it.

it-b = 3.

append it.

it-b = 4.

append it.

at selection-screen on value-request for b.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'B'

VALUE_ORG = 'S'

tables

value_tab = it[].

Is there any error in the code.

rgds

p.kp

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 04:34 AM

    Hi,

    Look at this piece of code...

    **************

    refresh t_itab.

    clear t_return.

    select pernr from zfdmr_records into table t_itab.

    delete adjacent duplicates from t_itab.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    • DDIC_STRUCTURE = ' '

    RETFIELD = 'PERNR'

    • PVALKEY = ' '

    DYNPPROG = sy-cprog

    DYNPNR = sy-dynnr

    DYNPROFIELD = 'ZFDMR_RECORDS-PERNR'

    • STEPL = 0

    • WINDOW_TITLE =

    • VALUE = ' '

    VALUE_ORG = 'S'

    MULTIPLE_CHOICE = ' '

    DISPLAY = 'F'

    • CALLBACK_PROGRAM = ' '

    • CALLBACK_FORM = ' '

    TABLES

    VALUE_TAB = t_itab

    • FIELD_TAB =

    RETURN_TAB = t_return

    • DYNPFLD_MAPPING =

    • EXCEPTIONS

    • PARAMETER_ERROR = 1

    • NO_VALUES_FOUND = 2

    • OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ***********

    READ TABLE t_return INDEX 1.

    p_s_pernr = t_return-fieldval.

    ****************

    Here you need to assign the value to selection-screen field.

    Thanks.

    If your issue is solved with this award points.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      parameters: b type i.

      data: begin of it occurs 0,

      b type i,

      end of it.

      initialization.

      it-b = 1.

      append it.

      it-b = 2.

      append it.

      it-b = 3.

      append it.

      it-b = 4.

      append it.

      at selection-screen on value-request for b.

      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

      EXPORTING

      retfield = 'B'

      VALUE_ORG = 'S'

      tables

      value_tab = it[].

      ****************************

      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

      EXPORTING

      • DDIC_STRUCTURE = ' '

      RETFIELD = 'B'

      • PVALKEY = ' '

      DYNPPROG = sy-cprog

      DYNPNR = sy-dynnr

      ********

      DYNPROFIELD = 'ZFDMR_RECORDS-PERNR'

      **********

      • STEPL = 0

      • WINDOW_TITLE =

      • VALUE = ' '

      VALUE_ORG = 'S'

      MULTIPLE_CHOICE = ' '

      DISPLAY = 'F'

      • CALLBACK_PROGRAM = ' '

      • CALLBACK_FORM = ' '

      TABLES

      VALUE_TAB = it

      • FIELD_TAB =

      RETURN_TAB = it

      • DYNPFLD_MAPPING =

      • EXCEPTIONS

      • PARAMETER_ERROR = 1

      • NO_VALUES_FOUND = 2

      • OTHERS = 3

      .

      IF SY-SUBRC <> 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ENDIF.

      ***********

      READ TABLE it INDEX 1.

      b = it-fieldval.

      ****************

      I hope now you will find your solution with this.

      If your issue is solved close the thread by giving points.

      Thanks.

      Message was edited by: Deepak333 k

  • Posted on Nov 18, 2005 at 04:50 AM

    Hi paluri,

    Try this,

    Move the code from the initialization and place it before calling the function module under at selection-screen on value-request for b.

    Thanks

    Lakshman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 18, 2005 at 04:53 AM

    Hi,

    Here is the sample.Kindly reward points by clikcing the star on the left of reply,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.

    PS:could you please close the thread and reward points appropriately if your problem is solved.

    Message was edited by: Jayanthi Jayaraman

    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.