eslieduardo
8th July 2013, 23:01
Hola, estoy tratando de obtener los datos de la tabla ttccom100 para llenar una hoja de Excel.
alguien sabe como hacer una consulta a baan para llenar las celdas con t_nama(descripción cliente) y t_bpid(código baan cliente).
muchas gracias y un buen dia a todos.
bhushanchanda
9th July 2013, 06:59
I am not sure what you are looking for as I have just tried to understand the language using a converter :). But you can use the following code to get the two fields and you can redirect them to excel using an excel device or you can use baan to excel programs available on board.
select tccom100.bpid,
tccom100.nama
from tccom100
selectdo
endselect
Similar query for T_SQL will be something like this:-
e.g. Say the table is in company 500 then:-
select ttccom100500.t_bpid,
ttccom100500.t_nama
from ttccom100500
eslieduardo
11th July 2013, 19:06
Gracias por indicarme el camino a seguir, tu ayuda me hizo pensar en mas alternativas de las que tenia.
Eduardo