Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

F4IF_INT_TABLE_VALUE_REQUEST

lijisusan_mathews
Active Contributor
0 Kudos

Hi,

I am using the function module F4IF_INT_TABLE_VALUE_REQUEST, to implement a search help in my program , but instead of directly displaying the hit list , i want the restrictions screen to be displayed first with some default values, and the list should be displayed only based on the valuies entered in thius restrictions screen. How can i do this using this function module.

Please help.

1 ACCEPTED SOLUTION
7 REPLIES 7

lijisusan_mathews
Active Contributor
0 Kudos

sorry , both din help..

former_member217544
Active Contributor
0 Kudos

Hi,

In that function module try passing the entered variable( like A* or B*) to the field VALUE.

This will return the values that match the selected critreria .

Regards,

Swarna Munukoti.

lijisusan_mathews
Active Contributor
0 Kudos

i have to enter the value at runtime.. and the hit list should be filtered based on the value entered at runtime.. ie, i want the restrictions screen to be displayed initially before the hit list appears.

0 Kudos

Hi,

Check out this code.


REPORT  z_test11 .


PARAMETERS:
  p_carrid(2).



DATA: table1 LIKE
             ddshretval
    OCCURS 0 WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carrid.


  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname                   = 'scarr'
      fieldname                 = 'carrid'
*   SEARCHHELP                = ' '
*   SHLPPARAM                 = ' '
*   DYNPPROG                  = ' '
*   DYNPNR                    = ' '
*   DYNPROFIELD               = 'p_carrid'
*   STEPL                     = 0
*   VALUE                     = ' '
*   MULTIPLE_CHOICE           = ' '
*   DISPLAY                   =  ' '
*   SUPPRESS_RECORDLIST       = ' '
*   CALLBACK_PROGRAM          = ' '
*   CALLBACK_FORM             = ' '
*   SELECTION_SCREEN          = ' '
   TABLES
     return_tab                 = table1
   EXCEPTIONS
     field_not_found           = 1
     no_help_for_field         = 2
     inconsistent_help         = 3
     no_values_found           = 4
     OTHERS                    = 5
            .
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  p_carrid = table1-fieldval.

START-OF-SELECTION.
  WRITE: p_carrid.

Regards

Abhijeet

lijisusan_mathews
Active Contributor
0 Kudos

Hi,

I got the restrictions dialog when i passed the value 'A' to the parameter VALUE as Swarna had said. But now my problem is, i have 6 fields that get displayed in the restrictions dialog box out of which the value 'A' that I entered gets into the input box for the first field. But that field needs to be empty. and i need to pass values from my program to 2 of these fields and the rest of the fields can be entered by the user. how do i achieve this?

Edited by: Suzie on Jul 24, 2008 10:53 AM

Edited by: Suzie on Jul 24, 2008 10:57 AM