Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

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 comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    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 comment
    10|10000 characters needed characters exceeded