Creating Custom button in ALV toolbar in webdynpro

..Previous

15. Go to the methods list in main view add a event handler for the button to be placed in the ALV toolbar

So ONbuttonclick is triggered when the button on ALV toolbar is clicked.Inside that method need to check if it same function code which is set so

  DATA l_button TYPE string.
  l_button = r_param->id.

*---------checking if the function is set to 'button' ---------*
  
IF l_button = 'BUTTON'.

      endif.

Inside the above if condition I Have just generated a report_message in that method to show that method is triggered

16. Go to windows and right click VIEW and click on embed

Embed the table view of the ALV

17. Create an application for the webdynpro component

Output:

The button on the ALV toolbar is displayed

 

On button click the event is triggered

SAP Virtual/Onsite Trainings

Document Categories:

What's New?

Contribute?

Sample Specs

What's Hot?

Web Dynpro for ABAP Tutorials 


Join the Mailing List
Enter name and email address below:
Name:
Email:
Subscribe  Unsubscribe 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image