01-08-2008 9:54 AM
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
01-08-2008 10:06 AM
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...