| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
Totals and Subtotals in ALV Web Dynpro (Web Dynpro for ABAP)By Richa Tripathi, Yash Technologies Scenario:
To create a dynamic ALV based on a SFLIGHT context node in Web Dynpro for ABAP
and display the TOTALS and SUBTOTALS in it. First,
create a web dynpro application and include the ALV component in the “Used Web
Dynpro Components”.
Now in the
Component Usages add the component used
Now in the
Main window include the components in the Properties.
Do the
mapping of the node to the Data. Take Care for the Cardinality. If the
Cardinality is not proper, it gives a runtime error for cardinality.
Now in the
Layout, create the View Container in Which the ALV will be displayed.
Now in the
Methods tab in the DOINIT, enter the following code for the ALV. First bind
the data to the ALV, instantiate the ALV and then code to display the Totals in
ALV. DATA lo_nd_sflight TYPE REF TO if_wd_context_node. data: * navigate from <CONTEXT> to <SFLIGHT> via lead selection *& Fetch flight data from database table loop at lt_column into ls_column. Now, in the Window add the View Container and the ALV Table in
it.
Create a Web dynpro Application for the Program.
Activate and test the Application. The Total is displayed as shown below.
After you click the sort, the Subtotals are shown as below.
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||