PDA

Ver la Versión Completa : Select dinamico dentro de RFC


Ery
17/04/10, 18:09:54
Hola compañeros buenos dias,
disculpen alguien de ustedes sabe si se puede meter dentro de una rfc Un select dinamico ya tengo funcionando el select de manera local
pero al ejecutarlo dentro d ela rfc me marca error. :confused:

ME dice que no es posible ejecutar el select dinamico

se que funciona la conexion porque ya intente entrar
comentarizando el select y no me marca el error.

osea me deja activar y todo pero al momento de ejecutar me manda un DUMP. :(

Jonathan Barrio
19/04/10, 10:22:34
Mira a ver si pegando el código o el mensaje del dump, se te puede ayudar mejor.

Es posible que cuando vaya a buscar a esa tabla no la reconozca, o no le estén llegando los parámetros que le pasas a al RFC.

Saludos

Ery
19/04/10, 14:37:52
Hola chicos aqui anexo el mensaje que me envia...
Ya intente agregarle un encabezado a la tabla haber si es
por eso, es decir declararla:

It_tab like standard table of dntab-tabname with header line.

MOVE 'tabla' TO V_COMP2.
APPEND V_COMP2.

el from es:
SELECT * INTO CORRESPONDING FIELDS OF TABLE it_camptablas
FROM (v_comp2) WHERE (v_compara).

________________________________________________________




"A dynamically specified FROM clause has an unexpected format."


What happened?


Error in ABAP application program.

The current ABAP program "ZMXCL_VISTAS==================FT" had to be
terminated because one of the
statements could not be executed.

This is probably due to an error in the ABAP program.

The error occurred in an RFC call to another system.
The target system has also written a short dump.
Consult this short dump for more precise information about
the cause of the error.



What can you do?


Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.

To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.