MUNDOSAP

Regresar   MUNDOSAP > DESARROLLO > Programación ABAP IV
Nombre de Usuario
Contraseña
Home Descargas Registrar FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




 
 
 
Herramientas Buscar en Tema Desplegado
Prev Mensaje Previo   Próximo Mensaje Próx
  #1  
Viejo 04/09/08, 12:25:23
raulgar raulgar is offline
Junior Member
 
Fecha de Ingreso: dic 2007
Mensajes: 28
Dump al hacer un CALL FUNCTION en background URGENTE

Hola a todos.

Necesito ayuda. El problema que tengo es que me da un dump cuando hago una llamada a una función en background. Necesito que sea en back porque tiene que esperar a que se desbloqueen unos objetos para que haga un BI.

Esta es la llamada.
CALL FUNCTION 'ZREVALORIZACION_MATERIALES' IN BACKGROUND TASK
* CALL FUNCTION 'ZREVALORIZACION_MATERIALES' IN UPDATE TASK
EXPORTING
w_mseg = w_mseg.

Tengo comentado todo lo que hace dentro de la función y me da un dump por lo que el error es en la llamada. Os copio el dump en cuestión.

Errores tiempo ejec. PERFORM_PARAMETER_MISSING
Excepción CX_SY_DYN_CALL_PARAM_MISSING
Fecha y hora 04.09.2008 14:12:44

¿Qué ha sucedido?
A routine call specifies fewer parameters than the number
given when defining the routine.

Anál.errores
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
not caught in
procedure "XAB_RUN_DRIVER" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
A PERFORM was used to call the routine "XAB_RUN_DRIVER" of the program
"SAPMSSY1".
The current call contains 0 actual parameter(s),
but the routine "XAB_RUN_DRIVER" expects more than 0 parameters.
parameters.

Codigo


data : subrc type i.

call 'AB_GET_C_PARMS' id 'P1' field <prog> "Programmname
id 'P2' field <cntl>. "Handle

perform rfcdrv_rflush in program (<prog>) using <cntl>
subrc
if found.

call 'AB_SET_C_PARMS' id 'P2' field <cntl>. "Handle
syst-subrc = subrc.
endform.

form xab_run_driver using prog type c
if_found type i
new_function type c.
data : program like syst-repid.

program = prog.
if new_function = space.
call 'RfcImport' id 'Push' field rfctype_abap4_exit
id 'Info' field program.
else.
call 'RfcImport' id 'Push' field rfctype_abap4_exit
id 'Info' field program
id 'Function' field new_function.
endif.
if if_found = 0.
perform (sy-xform) in program (sy-xprog).
else. FALLO AQUI
perform (sy-xform) in program (sy-xprog) if found.
endif.

endform.

Alguien sabe que puede ser???

Muchas gracias!
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Reglas de Mensajes
no puedes crear nuevos temas
no puedes responder temas
no puedes adjuntar archivos
no puedes editar tus mensajes

El código vB está On
Las caritas están On
Código [IMG] está On
Código HTML está Off
Saltar a Foro


Husos Horarios son GMT. La hora en este momento es 04:42:12.


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