Autor Tema: Como Crear ListBox en Reportes  (Leído 12888 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado Enrique.Borroni

  • Moderador_
  • Usuario Completo
  • *****
  • Mensajes: 89
    • Ver Perfil
Como Crear ListBox en Reportes
« en: 03 de Noviembre de 2007, 10:30:37 am »
REPORT Y_ListBox_en_Reportes.

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 = 'Linea 1'. APPEND value TO list.
  value-key = '2'. value-text = 'Linea 2'. APPEND value TO list.
  value-key = '3'. value-text = 'Linea 3'. APPEND value TO list.
  value-key = '4'. value-text = 'Linea 4'. APPEND value TO list.
  value-key = '5'. value-text = 'Linea 5'. APPEND value TO list.
  value-key = '6'. value-text = 'Linea 6'. APPEND value TO list.

  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id     = name
            values = list.

START-OF-SELECTION.
  WRITE: / 'Parametros : ', ps_parm.
Saludos.

Atte.,
Enrique Borroni

maito : enrique.borroni@abap.es

Desconectado molaci

  • Usuario Sr.
  • ****
  • Mensajes: 113
    • Ver Perfil
Re:Como Crear ListBox en Reportes
« Respuesta #1 en: 26 de Agosto de 2014, 09:42:26 am »
Muchas gracias Enrique, me sirvió de mucho tu código.

Gracias por compartirlo.