Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

regards

Shambuling 

Former Member
Former Member replied

Hi ,

Dont just read the internal table with index 1.

Bu instead loop on it and conctat into one field.

like this

data: lv_char type char 'Your Desired field length or the Max to be displayed'

loop at  lt_lines  INTO ls_lines.

concatnate lv_char ls_lines-tdline into lv_char.

endloop.

Now check

if lv_char is not initial

pass lv_char to your final output table.

endif.

Hope this will help you more.

Regards,

Amit

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question