Application Development and Automation 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: 
Read only

F4 help:Restrict Value Range

Former Member
0 Likes
3,737

Hello Experts,

I want to a search help for one field such that when user click on F4 help , it will again pop- up with one screen, in which I need to have 2- 4 fields to Restrict the values then user enter some values here then F4 help will appaer.

Like in standard tables mseg-lifnr F4 help Restrict Value Range screen , but i require only one tab

Plz suggest

Aastha

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
1,574

Create a Collective search help for that field and assign it in your program.

SEARCH in SCN for collective search help , you will get lot of posts.

Read only

Former Member
0 Likes
1,574

Hello Experts,

I have created search help using se11, for F4 help in screen field

But the probelm is as i want F4 help for excise no, its not picking excise no, its picking plant,

Plz suggest,

Aastha

Read only

Former Member
0 Likes
1,574

do the code in at selection-screen on value request for p_field.

and call FM F4IF_INT_TABLE_VALUE_REQUEST to pass the value table

Read only

Former Member
0 Likes
1,574

Hi,

This is simple ,

Declare an intrenal table with the fileds you want to come in the F4 help and extract the data in the internal table and then call the FM F4IF_INT_TABLE_VALUE_REQUEST and pass the table in the FM.

You'll get good example on the implementation of this FM.

Hope this help you.

Pooja

Read only

Former Member
0 Likes
1,574

Hello,

Use the following piece of code.

Parameter : p_value type ......

TYPES : BEGIN OF y_value,

value TYPE text6,

END OF y_value.

DATA : t_value TYPE STANDARD TABLE OF y_value.

DATA: t_return TYPE STANDARD TABLE OF ddshretval.

Fill table t_value with the values which u require in the F4 help.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 't_value-value'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'p_email'

TABLES

value_tab = t_value

return_tab = i_return

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.