Esto debe servirte.
data t_head like thead occurs 0 with header line.
data texto like tline occurs 0 with header line.
concatenate sociedad sy-repid p_numletra into name.
t_head-tdobject = 'TEXT'.
t_head-tdname = name.
t_head-tdid = 'TXTR'.
t_head-tdspras = sy-langu.
APPEND t_head.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = t_head
savemode_direct = 'X'
TABLES
lines = texto.
|