Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Selection field as Drop down list

Hi experts can any one explain how can we create Drop down list in Selection screen.

and What is the F.M. used for that..?

I think using VRM we can do it. Please guide me?

Tags:
Former Member
Former Member replied

Hi,

use this

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

data: BEGIN OF itab OCCURS 0,

belnr type BELNR_D,

end of itab.

PARAMETERS: P_BELNR TYPE BELNR_D AS LISTBOX VISIBLE LENGTH 20.

AT SELECTION-SCREEN OUTPUT.

NAME = 'P_BELNR'.

select belnr from bsis into table itab up to 10 rows.

loop at itab.

VALUE-KEY = VALUE-KEY + 1.

VALUE-TEXT = itab-belnr.

append value to list.

endloop.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = NAME

VALUES = LIST.

thanks & regards,

Venkatesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question