Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Line width Issue regarding call_function Format_text-lines.

Former Member
0 Likes
2,355

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

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,507

You cannot with this FM as it uses an internal table parameter with a length of 132 characters.

So you could analyze the FM source and adapt it in one customer-FM. (Analyze form f_tl of program SAPLSTXL include LSTXLFFO.)

Regards,

Raymond

Read only

0 Likes
1,507

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.

Read only

Former Member
0 Likes
1,507

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.

Read only

0 Likes
1,507

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

Read only

0 Likes
1,507

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.