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.
|