MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Mostrar u ocultar radiobuttons (foro/showthread.php?t=67421)

funkeeiads 21/06/13 00:38:23

Mostrar u ocultar radiobuttons
 
Hola muchachos..
Soy muy nuevo en abap.
he buscado la solución pero no me funciona..
para algunos debe ser muy simple.

Quiero que al iniciar la pantalla no muestre los 3 radiobuttons del group gr4.

Necesito que solo muestre los 3 radiobutton ( R_LIBCON,RLIBCON2,RLIBCON3) cuando seleccionen el radiobutton llamado 'radio1' el cual esta en group gr1.

parameter: radio1 RADIOBUTTON GROUP gr1. "" generacion

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-bl3.
parameter: R_LIBCON RADIOBUTTON GROUP gr4. "" generacion
parameter: RLIBCON2 RADIOBUTTON GROUP gr4.
parameter: RLIBCON3 RADIOBUTTON GROUP gr4.
SELECTION-SCREEN END OF BLOCK b4.


Espero su ayuda..
Saludos

coloso 21/06/13 08:24:20

Hola compañero, seguro que has buscado ?????
Pones en google "ocultar radio button abap" y el primer enlace que me sale:



Y ahí tienes el ejemplo, que en AT SELECTION-SCREEN OUTPUT tienes que usar el loop al screen y ya está. :eek:

SELECTION-SCREEN BEGIN OF BLOCK 4.
PARAMETERS:BUCH LIKE RFPDO1-DKAGSELE RADIOBUTTON GROUP FRAG modif id C1,
EINK LIKE RFPDO1-DKAGSELE RADIOBUTTON GROUP FRAG modif id C2.
SELECTION-SCREEN END OF BLOCK 4.


AT SELECTION-SCREEN OUTPUT event write the following code

AT SELECTION-SCREEN output.
loop at screen.
if screen-group1 = 'C1'.
screen-input = 0.
screen-invisible = 1.
modify screen.
elseif screen-group1 = 'C2'.
screen-input = 0.
screen-invisible = 1.
modify screen.
endif.
endloop.


Husos Horarios son GMT. La hora en este momento es 11:20:06.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web