MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Deshabilitar boton status (foro/showthread.php?t=9557)

vlg1971 05/12/07 15:56:39

Deshabilitar boton status
 
Hola tengo un boton el estatus de un report que mi intencion una vez pulsado es inabilitarlo, os muestro el codigo que estoy utilizando

PARA CAPTURAR CLICK DE BOTON
FORM user_command USING rf_ucomm LIKE sy-ucomm
rs TYPE slis_selfield.
CASE rf_ucomm.
WHEN 'ALV'.
"STANDARD es el nombre del status gui y ALV es el nombre del boton
set pf-status 'STANDARD' excluding 'ALV' immediately.
PERFORM display_data USING 1.
ENDCASE.

CLEAR rf_ucomm.
ENDFORM. "user_command

Tengo entendido que el set pf-status..... permite hacer esto pero mi boton sigue habilitado, alguien me puede echar una mano

Mil gracias

chivi82 10/12/07 13:29:02

Deshabilitar boton status
 
Hola,

La sentencia es correcta:
SET PF-STATUS 'STANDARD_FULLSCREEN' EXCLUDING it_auth.
pero la variable que les pasas debe de ser una table interna con la siguiente definición:
TYPES: BEGIN OF t_auth,
fcode LIKE rsmpe-func,
END OF t_auth.

DATA: it_auth TYPE TABLE OF t_auth, "Tabla interna
wa_auth TYPE t_auth. "Work Area

Por último hay que rellenarla:
CLEAR wa_auth.
MOVE 'VE' TO wa_auth-fcode. "VE = código del botón
APPEND wa_auth TO it_auth.

Espero que te sirva. Saludos.

sap2006 11/12/07 15:13:05

Mirate este hilo.


Saludos.


Husos Horarios son GMT. La hora en este momento es 23:12:43.

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