‎2010 May 03 9:48 AM
Hi All,
I am using a Function Module to send email, in this Function module content table is off type "SOLI_TAB" i.e. char255 in which i have to pass the values. From CRM Web UI i am getting values in table that is off type "TLINE" i.e. char132.
Now i have to convert the values from that table to my table type, for that i used FM "FORMAT_TEXTLINES", i got the values in the char255 format in that table.
But now when i am passing these values to FM "EFG_GEN_SEND_EMAIL" to send email, it is printing text in a fix format, i want it to be as user is giving input.
e.g - user's input in the comments notes is as below
"MUMBAI: On Monday, judge M L Tahaliyani will pronounce a verdict in the biggest terror trial the city has witnessed in recent times. In the box will be Ajmal Amir Kasab, the Pakistani gunman charged with the deaths of 166 Indians and foreigners. Along with him, his two Indian co-accused -- Faheem Ansari and Sabauddin Shaikh -- will also know their fate.
-
but that FM is printing in the below format.
"MUMBAI: On Monday, judge M L Tahaliyani will pronounce a verdict in the biggest terror trial the city has witnessed in
recent
times. In the box will be Ajmal Amir Kasab, the Pakistani gunman charged with the deaths of 166 Indians and foreigners.
Along with
him, his two Indian co-accused -- Faheem Ansari and Sabauddin Shaikh -- will also know their fate.
how can i pass & print the text in the same format as user is entering on the screen.
Thanks & Regards
Raman Khurana
Edited by: ramankhurana on May 3, 2010 10:48 AM
Edited by: ramankhurana on May 3, 2010 10:49 AM
‎2010 May 03 10:55 AM
Hi,
Extend the "FORMATWITH" and "LINEWIDTH" in the function module.
Thanks & Regards,
Vallamuthu.M
‎2010 May 03 11:05 AM
Hi Vallamuthu,
What exact values i should pass ? As of now i am passing below values.
CALL FUNCTION 'FORMAT_TEXTLINES'
EXPORTING
ENDLINE = 99999
FORMATWIDTH = 132
LINEWIDTH = 255
STARTLINE = 1
LANGUAGE = SY-LANGU
TABLES
LINES = lt_lines
Thanks & Regards,
Raman Khurana.