Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Pop-up

Former Member
0 Likes
4,413

Hi Friends ,

I have an ALV output . When I double click on one of the lines , soem columns of the line should pop-up like we have details screen for ALV( ALV Line->Right click-> Details) . I should be able to edit some of the fields in ALV also. Is there is any standard

function module for this kind of pop-up ? can anybody help me ?

Thanhks ,

Joby

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,387

Hi,

you can use the method double click of the alv to get the line which is clicked and use the FM "POPUP_WITH_TABLE_DISPLAY"

to display data in FM.

Hi Friends ,

I have an ALV output . When I double click on one of the lines , soem columns of the line should pop-up like we have details screen for ALV( ALV Line->Right click-> Details) . I should be able to edit some of the fields in ALV also. Is there is any standard

function module for this kind of pop-up ? can anybody help me ?

Thanhks ,

Joby

7 REPLIES 7
Read only

Former Member
0 Likes
2,388

Hi,

you can use the method double click of the alv to get the line which is clicked and use the FM "POPUP_WITH_TABLE_DISPLAY"

to display data in FM.

Read only

Former Member
0 Likes
2,387

This message was moderated.

Read only

Former Member
0 Likes
2,387

Joby,

Functionality like double click in ALV can be achieved by handling User_command &IC1&. We have a wiki on that in SDN by Gu Chris.

[Double click in ALV|http://wiki.sdn.sap.com/wiki/display/Snippets/DoubleclickusedinALV]

To edit a column in ALV:

Use the below code in field catalog.

gwa_fieldcat-edit = gc_x

To get pop up detailed screen in ALV,

call function REUSE_ALV_POPUP_TO_SELECT

Read only

Former Member
0 Likes
2,387

Just handle the user command event on first ALV.... I hope this u know...

and in that call next alv with function module Reuse ALV grid display bt remember to pass the parameters.....

I_SCREEN_START_COLUMN

I_SCREEN_START_LINE

I_SCREEN_END_COLUMN

I_SCREEN_END_LINE

Read only

Former Member
0 Likes
2,387

*Put this in user command and don't forget the fielcatalog ;)

*Popup ALV
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program    = sy-repid
          it_fieldcat           = wa_fcat1[]
          i_screen_start_column = 12
          i_screen_start_line   = 4
          i_screen_end_column   = 155
          i_screen_end_line     = 15
        tables
          t_outtab              = itab1
        exceptions
          program_error         = 1
          others                = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
Read only

chandra_sekhar3
Explorer
0 Likes
2,387

Hi,

The Function Module

Reuse_alv_popup_to_select : In the dialog box to choose one or more entries or it for display

Edited by: chandrasek on Jan 2, 2011 1:12 PM

Read only

Former Member
0 Likes
2,387

I have used a custom screen and solved this issue.