‎2013 Jun 17 1:14 PM
Dear Experts,
I am using Read_Text and Format_text-lines call functions.
The linewidth used in call function Format_text-lines is limit to 132 character.
But i need more than 132 Character for PO description purpose,
so How will Line width can be increased .
Sample Code:-
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = co_text_id4
language = sy-langu
name = gv_tdnamei
object = co_objecti
TABLES
lines = gt_linesi
EXCEPTIONS
id = 01
language = 02
name = 03
not_found = 04
object = 05
reference_check = 06.
IF sy-subrc EQ 0 AND NOT gt_linesi[] IS INITIAL.
CALL FUNCTION 'FORMAT_TEXTLINES'
EXPORTING
cursor_column = 0
cursor_line = 0
endline = 99999
formatwidth = 72
linewidth = 132
startline = 1
language = sy-langu
TABLES
lines = gt_linesi.
Thanks & regards
Gaurav
‎2013 Jun 17 2:22 PM
‎2013 Jun 17 2:41 PM
Dear Raymond Sir,
I have saw that include program but i don't understand anything from that.
please specify what to do by giving example.
Thanks
Gaurav.
‎2013 Jun 17 2:59 PM
Hi Gaurav,
Why do you want to increase it because the tables parameter takes a table of type TLINE which has 132 characters limit.
BR.
‎2013 Jun 17 3:11 PM
Ankit sir,
I know that its limit its 132 character but my PO Description is more than 132 character say
250 character long.
so what is the alternative solution for printing more than 132 character.
Thanks
Gaurav
‎2013 Jun 17 4:31 PM
Hi Gaurav,
No need to call anyone Sir here because we all are professionals.
Ok, i think i got your problem. You cannot do it via FORMAT_TEXTLINES.
See this thread - http://scn.sap.com/thread/2117740
(has another FM and a SAP note too).
Hope it helps.
BR.