2013 Apr 26 6:48 AM
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
2013 Apr 26 8:08 AM
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
2013 Apr 26 9:05 AM
Dear Vijay,
I want to use standard toolbar button , not user defined button in standard toolbar.
-pk
2013 Apr 26 9:14 AM
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!