‎2011 Jan 13 12:16 PM
Dear All,
I am using the F4IF_INT_TABLE_VALUE_REQUEST this FM for filling the list box .Now i want to set default value in the list box
Example-
Supose i have 2 List box A & B and in list box i have to set default value in A list box X value and in B list box Y value .
X and Y value is coming in the list box from the master table .
Thanks & Regards
‎2011 Jan 13 11:22 PM
Hi,
Read the default value to internal table after the function module and assign it to the list box parameter.
Regards,
Kranthi
‎2011 Jan 14 5:16 AM
Hello,
You need to set the default values in the in the PBO event in case of normal screens. For selection-screen program use either the INITIALIZATION or AT SELECTION-SCREEN OUTPUT event.
BR,
Suhas
‎2011 Jan 14 5:35 AM
Code Snippet for your referance:
*F4 Help for Output Type
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KSCHL
DATA: l_repid TYPE syrepid,
l_dynnr TYPE sydynnr.
MOVE: sy-repid TO l_repid,
sy-dynnr TO l_dynnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'KSCHL'
dynpprog = l_repid
dynpnr = l_dynnr
dynprofield = 'P_KSCHL'
window_title = text-001
value_org = 'S'
TABLES
value_tab = it_value_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3