Hi All ,
Thanks for the help .
I'm trying to use the more standard possible to send email ( Object SELFITEM and SENDTASKDESCRIPTION Method ) passing the TYPEID , ADRESSSTRING and WF_JUSTIF parameters (the latter parameter is a variable char255 ) .
Inside the method SENDTASKDESCRIPTION there a function module which reads the task and puts in a table called text_lines this tex_lines table is declared as char132 . See the code below standard .
DATE : text_lines TYPE STANDARD TABLE OF tline WITH HEADER LINE .
CALL FUNCTION ' SWU_GET_TASK_TEXTLINES '
EXPORTING
task = workitem_task
usage = 'W '
linewidth = line_width
language = send_language
container_handle = wi_container
TABLES
ascii_text_lines = text_lines
EXCEPTIONS
wrong_usage = 01
text_not_found = 02
text_system_error = 03.
IF SY- SUBRC NE 0 .
exit_return 1004 space space space space .
ENDIF .
The function module selects the text that was recorded in a standard manner in char255 and put on a table char132.
Regards.