2009 Dec 14 11:16 AM
Hi All,
I am using a FM POPUP_GET_VALUES it give the user an option to select the record....
it is workiing fine...
my issue is....to restrict the values or to show only valid data only..in the pop up....
eg.
If i have two warranties AB valid from 01-01-2009 valid to 31-03-2009
XY valid from 01-04-2009 valid to 31-12-2009
pop up is showing botht the values....
I want to display only the valid one...ie AB which is valid.....
FYI--my warranty table is Ztable...and i have created a search help for the wrnty field....
Please suggest...
Thnx
RK
2009 Dec 16 12:17 PM
Hi Rahul Keshav,
Use FM F4IF_INT_TABLE_VALUE_REQUEST for this purpose..
Select valid data from your Ztable to internal table and then paas it to above FM and pass the fieldname etc where you want F4 help..
So your F4 help will be having only valid data ...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
2009 Dec 14 11:27 AM
Hi,
can u pls give the clear scenario...
suppose, what is the first field for selection, is it warranties? if yes, u pass the value of warranties to the date selection field..then ur prob will be solved...in this case u have to use one more fun mod...
thanks
Yeruakala Setty
2009 Dec 14 11:42 AM
Hi,
I am not using select query...
If u have seen the FM....it just ask for the DB table name and the Field....
and if u have created the search help for that field then F4 help will be displayed on the POP up as well.....
DATA tab LIKE sval OCCURS 0 WITH HEADER LINE.
tab-tabname = 'ZAWARRANTY_CAPT'.
tab-fieldname = 'WRNTY_COND'.
tab-field_obl = 'X'.
APPEND tab.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
popup_title = 'Please Choose Warranty Condition'
start_column = '5'
start_row = '5'
TABLES
fields = tab
EXCEPTIONS
error_in_fields = 1
OTHERS = 2 .
Like this...
So please suggest..
Thnx
RK
2009 Dec 14 11:28 AM
Fetch only the valid data from Ztable.
The filtering will happen at the select query itself.
~Pranu
2009 Dec 15 7:23 AM
2009 Dec 15 7:47 AM
Dear Rahul,
You can use below FM -> POPUP_GET_VALUES_DB_CHECKED for your current scenario.
Please try it and let us know.
Thanks and Regards,
anversha
2009 Dec 16 12:00 PM
If you don't want to touch the search help logic then you have to delete the entries which are not required (as per the selection criteria) from the internal table before passing it to the pop up FM.
2009 Dec 16 12:17 PM
Hi Rahul Keshav,
Use FM F4IF_INT_TABLE_VALUE_REQUEST for this purpose..
Select valid data from your Ztable to internal table and then paas it to above FM and pass the fieldname etc where you want F4 help..
So your F4 help will be having only valid data ...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
2009 Dec 16 12:32 PM