2005 Nov 08 12:48 PM
Hi
I am using Object Oriented Method for an ALV using
call method alv_grid->set_table_for_first_display
Now i want it to make it interactive. When the user clicks on a row in this ALV, i need a Popup ALV to appear. Is there any method for this. I know that there is a FM for this - 'REUSE_ALV_POPUP_TO_SELECT'. But i want a method for this.
Please Help.
Hi
I am using Object Oriented Method for an ALV using
call method alv_grid->set_table_for_first_display
Now i want it to make it interactive. When the user clicks on a row in this ALV, i need a Popup ALV to appear. Is there any method for this. I know that there is a FM for this - 'REUSE_ALV_POPUP_TO_SELECT'. But i want a method for this.
Please Help.
2005 Nov 08 12:52 PM
Hi,
goto se80.
in development class --> <b>SLIS</b>
Check the programme <b>BCALV_GRID_03</b>
it solves your problem...
regards,
venu.
2005 Nov 08 12:55 PM
I don't think there is a seperate method for that. You will define another screen as dialog box, and do exactly as you did with this initial ALV. In your user command routine of the first ALV, do a CALL SCREEN with its coordinates.
2005 Nov 08 8:07 PM
Hi Shanmugham,
Check the below code. This may work for you.
*-- Create Object for POP-UP
CREATE OBJECT DIALOGBOX
EXPORTING
WIDTH = 900
HEIGHT = 200
TOP = 100
LEFT = 100
CAPTION =
'Item Wholesale/Production Contract Details'(c00)
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
EVENT_ALREADY_REGISTERED = 6
ERROR_REGIST_EVENT = 7
others = 8.
*-- Create object for Grid in POP-UP
create object grid_200 exporting
i_parent = dialogbox.
*-- Set handler for closing the pop-up
set handler event_receiver->handle_close for dialogbox.
*-- Call method to display the data in Grid table
CALL METHOD GRID_200->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = x_layout
CHANGING
IT_OUTTAB = it_contracts[]
IT_FIELDCATALOG = it_fieldcat_cont[]
IT_SORT = it_sortcat_cont[]
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4.
CALL METHOD CL_GUI_CONTROL=>SET_FOCUS EXPORTING CONTROL = GRID_200.
Thanks,
Rajesh.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |