Ver Mensaje Individual
  #2  
Viejo 25/01/10, 15:50:29
Neo_25 Neo_25 is offline
Member
 
Fecha de Ingreso: jun 2009
Mensajes: 51
Yo añado la tabla de la siguiente manera:

**********************************************************
*** Adjuntar PDF o DOC
**********************************************************
**////////////////////////////////////////
** A Ñ A D I M O S E L P D F
**////////////////////////////////////////
*
*DATA: BEGIN OF lt_pdf OCCURS 0.
* INCLUDE STRUCTURE solisti1.
*DATA: END OF lt_pdf.
*
*CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
*EXPORTING
** LINE_WIDTH_SRC =
* line_width_dst = '255'
** TRANSFER_BIN = ' '
*TABLES
* content_in = li_tline[]
* content_out = lt_pdf[] "TABLA A MANDAR
*EXCEPTIONS
* err_line_width_src_too_long = 1
* err_line_width_dst_too_long = 2
* err_conv_failed = 3
* OTHERS = 4.
*IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*ENDIF.
*
** Calculamos datos de la tabla a mandar
*i_objbin[] = lt_pdf[].
*
*i_objpack-transf_bin = 'X'.
*i_objpack-head_start = 1.
*i_objpack-head_num = 0.
*i_objpack-body_start = 1.
*
*
*DESCRIBE TABLE i_objbin LINES v_lines_bin.
*READ TABLE i_objbin INDEX v_lines_bin.
*i_objpack-doc_size = v_lines_bin * 255 .
*
*i_objpack-body_num = v_lines_bin.
*i_objpack-doc_type = 'PDF'. "Tipo de documento
*i_objpack-obj_name = 'fichero'. "Nombre del objeto
*i_objpack-obj_descr = 'PDFEMAIL'. "NOMBRE DEL DOCUMENTO ADJUNTO
*APPEND i_objpack.
**********************************************************

En tu caso la tabla a mandar es: it_packing_list
en la mía es: i_objpack.
Sustituye una por otra y prueba a ver.
Responder Con Cita