MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Imprimir Tabla Internan En Html (foro/showthread.php?t=73046)

gponteh 02/12/14 12:36:29

Imprimir Tabla Internan En Html
 
:confused: BUENAS QUE TAL LES ESCRIBO A VER SI ME PUEDEN HECHAR UNA MANO.

El caso es el siguiente. El sistema envia un reporte por correo este reporte esta en html me imprime todo al momento de enviarlo pero al momento que modifique y agrege una tabla internan me da error dice: "ITAB_ZIKG" cannot be converted to the line type of "LV_MESSAGE".

yo he creado una tabla internan y aun asi no funciona aqui les dejo el codigo

***********************types: begin of tabla_zikg,
BUDAT TYPE ZIK2-BUDAT,
XBLNR TYPE ZIK2-XBLNR,
ZUONR TYPE ZIK2-ZUONR,
end of tabla_zikg.
*************************

***********
data: itab_zikg type table of tabla_zikg,
witab_zikg type tabla_zikg.
*************
DATA: lv_message TYPE bcsy_text.

SELECT BUDAT XBLNR ZUONR FROM ZIK2 INTO CORRESPONDING FIELDS OF TABLE itab_zikg WHERE BUKRS EQ BUKRS.



APPEND '<TABLE BORDER=1 WIDTH=300>' TO lv_message.
APPEND '<TR><TD WIDTH=100>Fecha Documento</TD>' TO lv_message.
APPEND '<TD WIDTH=100>Numero Factura</TD>' TO lv_message.
APPEND '<TD WIDTH=100>Nro. Control de Documento</TD> </TR>' TO lv_message.
APPEND '<TR><TD WIDTH=100>' TO lv_message.
APPEND itab_zikg TO lv_message. *** AQUI DONDE ESTA EL PROBLEMA
APPEND '</TD> </TR>' TO lv_message.
APPEND '</TABLE>' TO lv_message.

sconoredhot 03/12/14 10:56:43

hola
 
Hola,

Lo que sucede es que la estructura tiene que ser del mismo tipo que la tabla, si no nunca le vas a poder hacer un append!

Y por otro lado, deberia ser alrevez, uno appendea la estructura a la tabla y no la tabla a la estructura.

calanis 06/12/14 17:22:45

Hola Gponteh!

Te paso lo que considero te ayudara a resolver lo que necesitas realizar.
1-Un
2-El código de lo que deseas realizar.

Espero que te sea de utilidad.


Husos Horarios son GMT. La hora en este momento es 05:00:07.

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