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 Popup

Murali_Shanmu
SAP Champion
SAP Champion
0 Likes
564

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.

3 REPLIES 3
Read only

Former Member
0 Likes
528

Hi,

goto se80.

in development class --> <b>SLIS</b>

Check the programme <b>BCALV_GRID_03</b>

it solves your problem...

regards,

venu.

Read only

Former Member
0 Likes
528

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.

Read only

Former Member
0 Likes
528

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.