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: 

Gui status - In alv OO

Former Member
0 Kudos
244

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.

4 REPLIES 4

Former Member
0 Kudos
77

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?

0 Kudos
77

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.

Former Member
0 Kudos
77

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

0 Kudos
77

thank you all for reply.

i solved the problem - i didnt write set....

so it didnt work.

thank you very much.

Michal.