09-05-2008 2:17 PM
Hi All
I have created one search help which displays all the rows on screen but depending on the radio button I have selected on the screen I need to display the rows from search help suitable for that option.Please help me to sort this problem.At present I am using FM F4IF_FIELD_VALUE_REQUEST.Thanks in advance.
Regards
Giri.
09-05-2008 2:24 PM
09-05-2008 2:24 PM
09-05-2008 2:37 PM
Hi
I want to fileter the values which I received from search help and display only suitable values on the screen.Thank you.
09-05-2008 2:39 PM
show me the code what you are doing..?
you are reading the values from where..? that time can't you filter them..
and Search help are you using single selection or multiple selection..
09-05-2008 2:45 PM
Hi Vijay
This is the code I am using.I don't know where I have to specify the parameters to filter the values.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = struc
fieldname = comp
searchhelp = 'ZBAS_OVRIDE_AUTH'
SHLPPARAM = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
return_tab = f4ret
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
Thank you.
09-05-2008 2:51 PM
TABLES
return_tab = f4ret "<----this parameter you can get the selected
"values
f4ret is the internal table here you can see the entries what ever you select.
09-05-2008 2:55 PM
Hi Vijay
But I want to delete some of the rows from the search help before displaying on screen and selecting.For example if search help getting 10 records I want to display only 5 when I select 'A' option and 6 records on screen when I select 'B' option.Hope you understood my problem.Thank you.
09-05-2008 2:59 PM
ok in that case you have to use this Function module
F4IF_INT_TABLE_VALUE_REQUEST
for this you need to pass the Records what ever you want to the table parameter VALUE_TAB
You may have to write the select on the table and Populate the records what ever you want and call the function.
Search with the Function name you can get lot of examples here..
09-05-2008 2:30 PM
Hi,
You can try creating a Internal table with all the rows that u need, and add an extra field for the corresponding option you selected.
then in PAI you must loop at the ti with the mark you saved before.
good luck
09-05-2008 3:16 PM
hi giri prasad,
if u are using a "Search Help", U can use a Exit inside Search Help.
U'll need a Function Group and a Function Module.
at Include "TOP"
TYPE-POOLS shlp .
at function Module use those parameters:
"Changing"
CALLCONTROL LIKE DDSHF4CTRL
SHLP TYPE SHLP_DESCR_T
"Tables"
RECORD_TAB LIKE SEAHLPRES
SHLP_TAB TYPE SHLP_DESCR_TAB_T
"Source Code"
- create this table (it's like the table that's system return).
DATA: BEGIN OF itab_record OCCURS 0.
INCLUDE STRUCTURE seahlpres.
DATA: END OF itab_record.
- U can control the steps at ur exit comparing the variable "callcontrol-step".
CASE callcontrol-step.
WHEN 'SELECT'.
- before Select of Search Help
WHEN 'DISP'.
- before display search values
ENDCASE.
- shlp-selopt[] - table with Select Options
- U can append the name of field and values
- record_tab[]
- Return table - U have the values at step 'DISP' from callcontrol-step
- U have the values that will be displayed...
Using Exit at SH you can delete at Step 'DISP'...
U can control the rows using the variable callcontrol-maxrecords
Regards
Allan Cristian
Edited by: Allan Cristian on Sep 5, 2008 11:18 AM