MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Mandar llamar una subscreen desde otra subscreen (foro/showthread.php?t=15600)

Jazzy_LeBon 09/08/08 03:17:32

Mandar llamar una subscreen desde otra subscreen
 
Hola a todos!!!

Tengo un problemita:

tengo una dynpro con dos pestañas. Termino de introducir datos en la primera pestaña, y necesito validarlos.. esto lo hago al mandar llamar a la segunda subscreen... lo intente con call screen '0101' pero me manda un dump... entonces lo intente con call subscreen '0101' y menos...
Alguna pista??? Voy bien o tengo q replantear el flujo???

Muchas gracias :)

Jazzy LeBon

DavidXD_XD 09/08/08 16:43:29

Hola ... puedes poner la logica de tus pantallas para que podamos ayudarte mejor ... :D

Jazzy_LeBon 11/08/08 21:03:45

Mi logica.. espero se entienda
 
A ver, esto va asi:

Subscreen 1:
Introduce datos del usuario.
Al dar clic sobre la pestaña de la subscreen 2, valida las fechas introducidas
en la subscreen 1. Si no son validas, regresa a la subscreen 1 para poderlas modificar. Si son validas, permite introducir datos en la subscreen 2.

Entonces en la llama a mi subscreen 1 tengo algo como esto:

form compara_fechas.
if lt_numcredito-autoridad_imp is initial or lt_numcredito-ofic_deter is initial or
lt_numcredito-medio_notif is initial or lt_numcredito-en_calidad_de is initial or
lt_numcredito-tipo_resol is initial or lt_numcredito-fec_ofic_deter is initial or
lt_numcredito-fecha_notif is initial.
message 'FALTAN DATOS, FAVOR DE AGREGAR' type 'W'.
call screen 0100.
elseif lt_numcredito-fecha_citatorio is initial.
if lt_numcredito-fecha_notif < lt_numcredito-fec_ofic_deter.
message 'LA FECHA DE NOTIFICACION NO PUEDE SER MENOR A LA FECHA DE OFICIO DETERMINANTE' type 'W'.
call screen 0100.
endif.
else.
if lt_numcredito-fecha_notif < lt_numcredito-fecha_citatorio.
message 'LA FECHA DE NOTIFICACION NO PUEDE SER MENOR A LA FECHA DE CITATORIO' type 'W'.
call screen 0100.
elseif lt_numcredito-fecha_citatorio < lt_numcredito-fec_ofic_deter.
message 'LA FECHA DE CITATORIO NO PUEDE SER MENOR QUE LA FECHA DE OFICIO DETERMINANTE' type 'W'.
call screen 0100.
endif.
endif.
endform.


Ayuda please???? :confused:


Husos Horarios son GMT. La hora en este momento es 09:24:31.

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