#1
|
|||
|
|||
Parametro tipo ranges para call function
Necesito pasarle a un call fucntion parametros de entrada que se obtiene de un select option para luego dentro del funcion realizar un select haciendo un where IN , que tipo de variable se tendria que utilizar para lograr esto
mil gracias |
#2
|
||||
|
||||
Hola,
Si pasas una tabla como parametro y la definis con una estructura igual a un rango(con campos sing, low, higth, option...) te va a servir. Saludos
__________________
Sebastián Chiavia |
#3
|
|||
|
|||
gracias pero me da error cuando le voy hacer un loop al parametro
|
#4
|
||||
|
||||
Supongo que el loop al que te referis es en el momento de armar el rango con el que comparas el campo en el select.
Podrias especificar que error te arroja y copiar el bloque de codigo?
__________________
Sebastián Chiavia |
#5
|
|||
|
|||
Dame un correo para enviarte un instructivo.
|
#6
|
|||
|
|||
hola es
|
#7
|
|||
|
|||
SELECT * INTO CORRESPONDING FIELDS OF TABLE it_data_proj FROM zvps_data_proy WHERE pspid IN pi_proj. The IN operator with "PI_PROJ" is followed neither by an internal table nor by a value list. |
#8
|
|||
|
|||
Me rebotó el correo.
Pero bueno yo cacho que te falta tipificar (asignar un tipo de datos a tus tabla) en la interfaz. Podrías mostrar los comentarios que están al principio de la función. |
#9
|
|||
|
|||
disculpa rectifico el correo *"---------------------------------------------------------------------- *"*"Interfase local *" IMPORTING *" REFERENCE(PI_FECHA) TYPE SY-DATUM *" REFERENCE(PI_DIV) TYPE ZEPS_DIV *" REFERENCE(PI_PRCTR) TYPE ZEPS_PRCTR *" REFERENCE(PI_PROJ) TYPE ZEPS_PROJ *" TABLES *" IT_DATA_PROJ STRUCTURE ZEPS_DATA_PROYECTO *" IT_DATA_CUENTAS STRUCTURE ZEFI_CUENTAS OPTIONAL *"---------------------------------------------------------------------- |
#10
|
||||
|
||||
proba crear un rango con los valores de la tabla parametro y comprara ese rango en el select.
__________________
Sebastián Chiavia |
Herramientas | Buscar en Tema |
Desplegado | |
|
|