PDA

Ver la Versión Completa : Elemento de Texto


Triby
14/08/09, 17:25:36
Hola a Todos,
Tengo un filtro de entrada con una seccion con RadioButton y otra con variables, lo que tengo que hacer es que dependiendo del RadioButton elegido necesito cambiar el texto de la variable de entrada, es posible hacer esto? y como?

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE Text-001.
PARAMETERS: VG_MSAP LIKE febpdo-xcall RADIOBUTTON GROUP 1,
VG_MCLI LIKE febpdo-xcall RADIOBUTTON GROUP 1.
SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE Text-002.
PARAMETERS: VG_MTA LIKE KNMT-Matnr OBLIGATORY,
VG_MTN LIKE KNMT-Matnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B2.

Atlas
17/08/09, 08:34:46
Prueba esto:

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE Text-001.
PARAMETERS: VG_MSAP LIKE febpdo-xcall RADIOBUTTON GROUP 1
user-command USR1,
VG_MCLI LIKE febpdo-xcall RADIOBUTTON GROUP 1.
SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE Text-002.
selection-screen begin of line.
selection-screen comment 1(10) v_texto.
PARAMETERS: VG_MTA LIKE KNMT-Matnr OBLIGATORY.
selection-screen end of line.

parameters: VG_MTN LIKE KNMT-Matnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B2.


at selection-screen output.
if v_texto is initial.
v_texto = 'texto1'.
endif.

at selection-screen.

if sy-ucomm = 'USR1'.
if VG_MSAP = 'X'.
v_texto = 'texto1'.
else.
v_texto = 'texto2'.
endif.

endif.