Application Development 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: 

Create a class definition and implementation inside PBO module

Former Member
0 Kudos

Hi all,

I am having 5 screens in a report. Now for the fifth screen i have created a separate transaction.

But the class definition and implementation of screen 5 for method on_dropdown_clicked is written in main program.

so if i run the transaction that program is not called and hence the class and the methods are not called(bez i am using separate txn for the 5th screen).

Could you please tell me how to call this?

Regards,

Ranjith

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

Create it globally in se24 or particularly for that transaction. Or access it via grouped function modules.

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

Create it globally in se24 or particularly for that transaction. Or access it via grouped function modules.

0 Kudos

Thanks for your reply.

Could you please tell me how i can call the below definition and implementation ? Please give me the full explanation since i am new to this.

Here is the code in Main pgm:

CLASS lcl_toolbar_event_receiver DEFINITION.

PUBLIC SECTION.

METHODS: on_function_selected

FOR EVENT function_selected OF cl_gui_toolbar

IMPORTING fcode,

on_dropdown_clicked

FOR EVENT dropdown_clicked OF cl_gui_toolbar

IMPORTING fcode

posx

posy.

ENDCLASS. "lcl_toolbar_event_receiver DEFINITION

*----


    • CLASS lcl_toolbar_event_receiver IMPLEMENTATION

*----


**

*----


CLASS lcl_toolbar_event_receiver IMPLEMENTATION.

METHOD on_function_selected.

PERFORM create_node USING ''.

CALL FUNCTION 'IQS1_GET_TMP_NUMBER'

IMPORTING

e_qmnum = p_aggre.

ENDMETHOD. "on_function_selected

0 Kudos

Hello,

I am not sure what you mean by another transaction here but I am assuming that it implies that it is defined in some other object. Can you not define the class below in the other object as well? I suppose that should solve your problem.

Thank you,

Ramneek