01-24-2011 11:00 AM
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
01-24-2011 12:38 PM
Create it globally in se24 or particularly for that transaction. Or access it via grouped function modules.
01-24-2011 12:38 PM
Create it globally in se24 or particularly for that transaction. Or access it via grouped function modules.
01-24-2011 12:56 PM
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
01-26-2011 5:08 PM
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