Skip to Content
avatar image
Former Member

how to increase the length of field in report to display full text

hi experts,

i have created the ALV grid report for Purchase order . I need to display the item text of PO in the report,i have used the READ_TEXT FM and it is displaying item text but of only 50 characters. i assigned the text to MSEG-SGTXT field which is of 50 length. I want to display full text of item in the report so what i have to do to achieve this.

i have tried declaring the variable of char with 150 length but it is displaying only 70 char's

please suggest me the solution.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 10, 2012 at 01:57 PM

    Hi Shambuling,

    The maximum number of characters that may be displayed in a single ALV cell is 128. One option for your scenario could be to show the first n characters of the text inside the ALV, and have a button in the ALV row which the user may click to see the full text if they want. On click of this button, you could call function EDIT_TEXT to display the full text in the SAP text editor (in either edit or read-only mode).

    If you are seeing only the first 70 characters of a text, this may be because the text includes a line break after character 70 and you need to handle the line break when you write the text contents to your ALV field.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      check your concatenate keyword.....

      concatenate   .... separated by space or concatenate .... respecting blanks (use with caution).