Skip to Content
author's profile photo Former Member
Former Member

need to save text

hi

i need to save text that has no fixed length,but table tline can only hold '132' char..need some way to wrap text??

data : text type string.

text ='can be 500 char'.

Have to use FM 'SAVE_TEXT'...

any thoughts are appreciated..

Regards.

mob.

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2006 at 04:11 AM

    just create one more line item @ LINES table.

    like.

    loop at itab.

    lines-tdline = itab-text.

    append lines.

    endloop.

    Regards

    Prabhu

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2006 at 04:25 AM

    Hi ,

    you can add as many records in the table and pass it to the FM .

    eg :

    TYPES: BEGIN OF ty_tline,

    tdformat LIKE stxitfd-tdformat, " Tag column

    tdline LIKE stxitfd-tdline, " Text line

    END OF ty_tline.

    DATA: i_text

    TYPE STANDARD TABLE OF ty_tline

    INITIAL SIZE 0

    WITH HEADER LINE.

    Loop at i_tab.

    i_text-tdformat = sy-langu.

    i_text-tdline = i_tab-text

    APPEND i_text.

    endloop.

    And pass this i_text to the save_text Fm.

    Regards

    beena

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2006 at 06:20 AM

    assume you have TEXT to be saved in the field have more than 132 characters,

    IT_LINE-TDFORMAT = '*'.

    IT_LINE-TDLINE = V_TEXT+0(132).

    APPEND IT_LINE.

    IT_LINE-TDLINE = V_TEXT+132(132).

    APPEND IT_LINE.

    Like this you can proceed.

    regards

    srikanth.

    Message was edited by: Srikanth Kidambi

    Add comment
    10|10000 characters needed characters exceeded