Önceki Sayfa

List Box in ABAP Report

*

* List Box in ABAP Report

*

REPORT ZLIST.

TYPE-POOLS: VRM.

DATA: NAME  TYPE VRM_ID,

LIST  TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.

NAME = 'PS_PARM'.

VALUE-KEY = '1'.

VALUE-TEXT = 'LINE 1'.

APPEND VALUE TO LIST. VALUE-KEY = '2'.

VALUE-TEXT = 'LINE 2'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.

START-OF-SELECTION.

WRITE: / 'PARAMETER:', PS_PARM.

Copyright</span></span><span style='font-size:7.5pt;font-family:"Tahoma","sans-serif"; mso-fareast-font-family:"Times New Roman";color:#464646'> &copy; 2010. KM <span class=SpellE>Group</span>. <span class=SpellE>All</span> <span class=SpellE>Rights</span> <span class=SpellE>Reserved</span>.</span></p> </td> </tr> </table> <p class=MsoNormal><span style='mso-fareast-font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></p> </div> </body> </html>