DCErick
02/05/07, 23:06:15
Hola..
estoy tratando de ejecutar la siguiente linea de codigo y no me anda...
SELECT c~matnr c~werks t~maktx a~prdha
FROM marc AS c INNER JOIN makt AS t
ON t~matnr = c~matnr
AND t~spras = sy-langu
INNER JOIN mara AS a
ON a~matnr = c~matnr
INTO CORRESPONDING FIELDS OF TABLE gt_repop
WHERE c~werks IN r_werks
AND c~matnr IN s_matnr.
Me marca el siguiente error :
Err.tmpo.ejec. DBIF_RSQL_INVALID_RSQL
Excep. CX_SY_OPEN_SQL_DB
Fecha y hora 02.05.2007 16:47:47
Txt.brv.
Error in RSQL module of database interface.
Anál.errores :
An exception occurred. This exception is dealt with in more detail below. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was neither caught nor passed along using a RAISING clause, in the procedure "GET_DATOS" "(FORM)".
The reason for the exception is:
The SQL statement generated from the SAP Open SQL Statement violates a restriction imposed by the database system used in R/3.
Possible errors:
o The maximum size of an SQL statement has been exceeded.
o The statement contains too many input variables.
o The space needed for the input data exceeds the available memory.
o ...
En el parametro s_matnr que es un rango estoy metiendo 4,372 materiales los cuales quiero consultar.
Estos los meto mediante la opcion de Seleccion Multiple y subiendo un archivo TXT con las entradas...
A lo que veo es por algo de memoria de SAP permitada en las consultas SQL, pero no estoy muy seguro...
Que opinan?....
estoy tratando de ejecutar la siguiente linea de codigo y no me anda...
SELECT c~matnr c~werks t~maktx a~prdha
FROM marc AS c INNER JOIN makt AS t
ON t~matnr = c~matnr
AND t~spras = sy-langu
INNER JOIN mara AS a
ON a~matnr = c~matnr
INTO CORRESPONDING FIELDS OF TABLE gt_repop
WHERE c~werks IN r_werks
AND c~matnr IN s_matnr.
Me marca el siguiente error :
Err.tmpo.ejec. DBIF_RSQL_INVALID_RSQL
Excep. CX_SY_OPEN_SQL_DB
Fecha y hora 02.05.2007 16:47:47
Txt.brv.
Error in RSQL module of database interface.
Anál.errores :
An exception occurred. This exception is dealt with in more detail below. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was neither caught nor passed along using a RAISING clause, in the procedure "GET_DATOS" "(FORM)".
The reason for the exception is:
The SQL statement generated from the SAP Open SQL Statement violates a restriction imposed by the database system used in R/3.
Possible errors:
o The maximum size of an SQL statement has been exceeded.
o The statement contains too many input variables.
o The space needed for the input data exceeds the available memory.
o ...
En el parametro s_matnr que es un rango estoy metiendo 4,372 materiales los cuales quiero consultar.
Estos los meto mediante la opcion de Seleccion Multiple y subiendo un archivo TXT con las entradas...
A lo que veo es por algo de memoria de SAP permitada en las consultas SQL, pero no estoy muy seguro...
Que opinan?....