PDA

Ver la Versión Completa : Cambiar el status en una SELECTION-SCREEN


aldape
08/09/08, 22:41:50
como puedo agregar un boton a una selection screen en la barra de herramientas??

es posible hacer eso??

saludos!!

DavidXD_XD
08/09/08, 23:23:51
Claro ... dale una mirada a este post ....

http://www.mundosap.com/foro/showthread.php?t=11605

Aver si sirve pal caso :D

aldape
09/09/08, 21:50:54
Jejeje, gracias hermano... fue algo impulsiva la pregunta... ;)


Saludos!

aldape
09/09/08, 22:09:51
Este es el codigo que funciono para mi.. espero que a alguien le sirva

Donde tuve que crear el status '10'
Y zprograma es el nombre de mi programa,
FIND y BACK son los codigos que utilice en el status.

saludos

at selection-screen output.
if sy-dynnr = '0111'.
data itab type table of sy-ucomm.
call function 'RS_SET_SELSCREEN_STATUS'
exporting
p_status = '10'
p_program = 'ZPROGRAMA'
tables
p_exclude = itab.
endif.


at selection-screen.
case sy-ucomm.
when 'BACK'.
sy-subrc = 4.
leave to screen 0.
when 'FIND'.
sy-subrc = 0.
leave to SCREEN 0.
endcase.