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: 

how to validate the values in FM POPUP_GET_VALUES

RahulKeshav
Active Contributor
0 Kudos
2,084

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

1 ACCEPTED SOLUTION

former_member387317
Active Contributor
0 Kudos
329

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 ...

[Example Link|;

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

8 REPLIES 8

former_member231368
Participant
0 Kudos
329

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

0 Kudos
329

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

Former Member
0 Kudos
329

Fetch only the valid data from Ztable.

The filtering will happen at the select query itself.

~Pranu

RahulKeshav
Active Contributor
0 Kudos
329

hi experts....

any suggestion s?????

0 Kudos
329

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

0 Kudos
329

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.

former_member387317
Active Contributor
0 Kudos
330

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 ...

[Example Link|;

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

RahulKeshav
Active Contributor
0 Kudos
329

hi

it is done ...

i used search help exit.....

thnx all

RK