09-09-2009 7:15 AM
Hi experts,
I created a button in the gui status.
i defined lcl_handle_event and did implementation.
the method i use: on user command.
My problem is:
When i click the button in the gui status after i ran the alv report i expect that it will do what i wrote in the implementation - and its not even get there.
what should i do to make him do as i wrote in the implementation of the class?
Thank,
Michal.
09-09-2009 7:20 AM
MODULE USER_COMMAND_0200 INPUT.
PERFORM USER_COMM USING OK_CODE.
ENDMODULE.
FORM USER_COMM USING OK_CODE TYPE SY-UCOMM .
CASE OK_CODE.
WHEN POST MESSAGE'.
endcase.
endform.
Have you written code like this?
09-09-2009 7:31 AM
No i didnt.
I defined class and did implementation.
How is he will get to the user command that you wrote?
what should i defind that he will get there?
thank you very much.
09-09-2009 7:32 AM
If you are adding buttons is the staus those will not be available in the events of alv.
If you want to get ok code in implementation add these buttons using the toolbar event in CL_GUI_ALV_GRID.
if you are addigng buttons in status you have to handle it using at user command module
09-09-2009 7:54 AM
thank you all for reply.
i solved the problem - i didnt write set....
so it didnt work.
thank you very much.
Michal.