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: 

hi all sap experts F4 problem - no solution is coming from forum

Former Member
0 Kudos

hi all

in alv grid output ( not in selection screen) there is a input enabled field say xyz, this field is given f4 help by creating ztable, and when f4 is pressed on xyz field, it is fetching all the data related to that field, but the user wants restricted value with respect to company code and land1, the alv grid shows no of rows and company code and land1 are 1st and 2nd fields in the output.

how to restrict the value in F4 help ???

provide code pl.

thanking u in advance

rocky

1 REPLY 1

Former Member
0 Kudos

Rocky,

Already i replied for this.

See you might have written a FM

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'WERKS'

dynpprog = ws_repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = i_t001w

return_tab = v_return

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

whatever the fields you have in the internal table those will display in help.

To restrict these take company code and land1 fields in internal table select the values and pass that internal table into above FM

Ex : internal table is "i_t001w"

Don't forget to reward if useful...