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

ALV Grid Subscreen to Display Text

Folks,

I am really sorry I am creating a new thread for this because I can see it has been discussed a lot but I am finding it hard to clearly identify what needs to be done from all the posts.

I have an ABAP with a selection screen, it runs and generates an ALV output, on that ALV output I have a column called COMMENT, in the column COMMENT there is a string of text which can be very large. Since I can not change the row height on the ALV grid I am going to implement a work-around where when the user double-clicks on the comment, it pops up a screen displaying the full text.

I presume I need to call a subscreen to get this to happen but I can not see how to do this and any help would be greatly appreciated.

Many Thanks,

Colm

P.S. Here is how I catch the double click.

FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.           "#EC CALLED

  DATA: w_ans(1).
  CASE r_ucomm. "The users command
 
   WHEN '&IC1'.                       "Double Click
*Doc drill down
      IF rs_selfield-fieldname = 'COMMENT'.
        READ TABLE gt_output INDEX rs_selfield-tabindex.
        IF sy-subrc = 0.
*Call the screen here displaying the full note text
        ENDIF.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 05, 2011 at 01:47 PM

    Hi,

    you could use the FM LAW_SHOW_POPUP_WITH_TEXT for open a popup.

    The maximum capacity is 1024 characters for this popup.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2011 at 01:44 PM

    How about using standard texts/SO10?

    If not, then split your string upto 60 chars into string tab table and in pop up, display another alv which will have only one column.

    Thanks,

    Santosh

    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.