‎2009 May 29 5:51 PM
Hi friends,
i have one listbox for operations within order, if order is there then it shows it's operations in listbox and in other case if order is not there then also it shows previous valus and space value. so how to clear previous values from listbox when order not there.
waiting for reply..
thanks.
‎2009 May 29 5:52 PM
in the F4 help..
"clear and refresh below internal table according to your condition
loop at i_evp.
wa-key = i_evp-name.
wa-text = i_evp-name. append wa to itab.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P0001-ZZ_CHEVP'
values = itab.
clear the internal table..
Prabhudas
‎2009 May 29 6:38 PM
hi
try this Function Module
VRM_SET_VALUES
The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So
we should declare TYPE-POOLS VRM before using this FM.
Some important types declared in the VRM type group are
VRM_ID
It refers to the name of the input/output field associated with list box
VRM_VALUES
It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C
that will be used to create the list values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = name of screen element ,it is of TYPE VRM_ID
VALUES = internal table containing values,of TYPE VRM_VALUES
Regards