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

ALV standard button Click event tracing in OOP

pkb
Participant
0 Kudos
370

Dear all,

I need a help for the following problem.

I am developing one program where I have used CL_GUI_ALV_GRID for editable ALV . Now I want to write code against standard toolbar button click. For example If user click on + button ( Insert row) , then I have to track that user have clicked the Insert Row button from satndard toolbar . Like that I want to track other button clicked by user through there attribute value in HANDLE_TOOLBAR method.

I am new in OOP programing in ABAP . Please help.

-pk

3 REPLIES 3
Read only

Former Member
0 Kudos
306

Hello pk,

first create a push button on application tool bar in zpfstatus.

and assign a fun code for that.

In the code by using that function code we can capture the action which user made on that application tool bar.

Thanks,

vijay

Read only

pkb
Participant
0 Kudos
306

Dear Vijay,

I want to use standard toolbar button , not user defined button in standard toolbar.

-pk

Read only

Former Member
0 Kudos
306

Hi,

Check the standard ALV toolbar. Check the sy-ucomm attached to each button. But generally we use Custom PF Status and not Standard PF Status. But you can try this. Goto-> System-> Status->Check the program and screen number from here. Check the PF status used here. Simultaneously, you will have to click on the required button and enter the program in debugging mode so put /H then click on the required button. Then see the value of sy-ucomm. At this value you can write your code under User-Command. Hope this helps!