07-24-2008 9:17 AM
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.
07-24-2008 9:19 AM
hi
use this link it will give the lead to solve ur problem
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm
Cheers
Snehi
07-24-2008 9:19 AM
hi
use this link it will give the lead to solve ur problem
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm
Cheers
Snehi
07-24-2008 9:20 AM
07-24-2008 9:28 AM
07-24-2008 9:28 AM
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.
07-24-2008 9:30 AM
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.
07-24-2008 9:36 AM
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
07-24-2008 9:48 AM
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