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

clear dropdown listbox

Former Member
0 Likes
1,824

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.

2 REPLIES 2
Read only

Former Member
0 Likes
715

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

Read only

Former Member
0 Likes
715

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