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

PATTERN Button

Former Member
0 Likes
1,150

Hello!

How can I use the PATTERN Button in the Abap workbench for call of the following event ?

ITEM_DOUBLE_CLICK OF cl_gui_alv_tree_simple

regards

ertas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
778

HI,

DATA: obj1 TYPE REF TO cl_gui_alv_tree_simple.

1) Click on Pattern (BUTTON)

2) Select ABAP Objects Pattern (Radio Button) and click on CONTINUE button.

3) A dialog box will be displayed in that we can find the different radiobuttons as below:

1) Call Method

2) Create Object

3) Raise Event

4) Raise Exception.

Then you can perform appropriate action by selecting the specific radiobutton.

--> Any way you are trying for ITEM_DOUBLE_CLICK, this is an event, before all these you should create the event class and should handle the event for cl_gui_alv_tree_simple class, unless do these you cannot call the event.

4 REPLIES 4
Read only

Former Member
0 Likes
778

Hi llhas,

Here is the step how to use Pattern Button.


1. Click on pattern Button.
2. Click Radion Button ABAP Object Patterns and click ok
3. Next Popup will come Select the Radion Button Raise/Event.
4. Enter Class/Interface:    cl_gui_alv_tree_simple
5. Enter Event : ITEM_DOUBLE_CLICK
6. Click Ok....

You would see automatically create a block of code for the above event.

&*********************Reward Point if helpful***********************&

Read only

Former Member
0 Likes
778

Hi,

Just click on Pattern, then select the radio button ABAP objects patterns radio button (2nd from top), in the next coming pop up screen select Raise event radio button (3rd from top) then give class name and event name there. If you call methods or can create objects in the same way.

Rgds,

Bujji

Read only

Former Member
0 Likes
779

HI,

DATA: obj1 TYPE REF TO cl_gui_alv_tree_simple.

1) Click on Pattern (BUTTON)

2) Select ABAP Objects Pattern (Radio Button) and click on CONTINUE button.

3) A dialog box will be displayed in that we can find the different radiobuttons as below:

1) Call Method

2) Create Object

3) Raise Event

4) Raise Exception.

Then you can perform appropriate action by selecting the specific radiobutton.

--> Any way you are trying for ITEM_DOUBLE_CLICK, this is an event, before all these you should create the event class and should handle the event for cl_gui_alv_tree_simple class, unless do these you cannot call the event.

Read only

Former Member
0 Likes
778

actually I ment something like this:

METHODS:

on_double_click FOR EVENT double_click OF cl_gui_alv_grid

IMPORTING es_row_no e_column.

I get IMPORTING Parameters. But the Pattern Button generates

exporting paramters

regards

sas