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

Internal Table data has to be displayed as it is

Hi ,

I have an internal table of type string .

Internal table contains Report Output .

when i am trying to display the data in a view ..the spaces between text has been removed.

I need to dispay internal table data as it is.

I tried with the UI elements : TextView, Text Editor and Table

With TextEditor i alomost got the required output but still some alignment is missing because of spaces between text.

Please help me in this issue.

Thanks and regards,

Sravan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 21, 2009 at 01:24 PM

    I guess one question is why is your data in the internal table as a string and with no column separators. Do you have any control over the creation of the internal table? There really isn't a UI element in Web Dynpro that will be able to display that very well. If the data was at least tab delimited or something like that, you could display it via Excel.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Thomas Jung

      Hi Thamos,

      Thank you for your valuable replies.

      I've tried with below statement.

      REPLACE ALL OCCURRENCES OF `|`

      IN TABLE olist WITH cl_abap_char_utilities=>horizontal_tab

      RESPECTING CASE.

      I am getting the item level data with perfect alignment .

      But the alignment with header datal and item level data was not there.

      Thanks & Regards,

      Sravan.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 06:49 AM

    Hi, for this you have to use to use the rowrepeater UI element. Else there is absolutely no way to display a string table as it is.

    For this 1. bind the data source, 2. bind the rowdescription property to the attribute of your data source node, 3. set the firstvisiblerow as 5 (say), 4. set the height and width property accordingly.

    Regards,

    Prosenjit.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.