PDA

Ver la Versión Completa : pasar mensaje char 250 a un campo de TABLE CONTROL


romario2
19/01/09, 16:59:04
Hola,

tengo un programa module pool por donde usuario entra campos y un mensaje largo de 250 char,
los datos se rellenan correctamente en un Table control excepto el mensaje de texto.
El código del mensaje es el siguiente, aunque falta completarlo, alguien me puede ayudar?
Gracias de antemano!

SELECT SINGLE * FROM stxh CLIENT SPECIFIED
WHERE mandt = sy-mandt
AND tdobject = 'TEXT'
AND tdname = v_text8
AND tdid = 'ST'
AND tdspras = 'S'.

IF sy-subrc = 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'ST'
language = 'S'
name = v_text8
object = 'TEXT'
TABLES
lines = t_txtcabecera8.

CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
TABLES
itf_text = t_txtcabecera9
text_stream = i_texttable8.

CALL METHOD g_editor->set_text_as_stream
EXPORTING
text = i_texttable8
EXCEPTIONS
error_dp = 1.

CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = 'ST'
flanguage = 'S'
fname = v_texto1
fobject = 'TEXT'
TABLES
flines = t_txtcabecera5.
*********por COMPLETAR**********++
ENDIF.
ENDIF.