|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Assistance class in Web Dynpro ABAP
assistance class in Web Dynpro component
a Web Dynpro Component ZZ_00_BOOKINGS, with input as Departure City/Country and
logic to display the flights available meeting the input criteria and display
the flight details in ALV format.
another table in MAIN view to display the flight bookings.
go to the web Dynpro component, ZZ_00_BOOKINGS.
assistance class, put the name of the class we created
‘ZCL_WDABAP_FLIGHT_MODEL’ and save.
include the ALV component as shown in the below screenshot as we will be
displaying the flights bookings in ALV format.
After saving the Web Dynpro Component,
you can see ‘Assistance class’ folder is generated under the component as
shown in the below screenshot.
to Component controller and open the attributes tab. Check if WD_ASSIST
attribute is created or not. This is the reference attribute of the assistance
class which will be used to access the logic written in the class.
to context tab and make sure you have created additional subnode called
‘Bookings’ to display the flights bookings.
We will be displaying the below fields
in the flight bookings ALV.
go to the methods tab and double click on method GET_BOOKINGS. We will use the
assistance class we have created in this method to get the details of the booked
flight. These details will be stored in the internal table ‘ITAB_BOOKINGS’.
internal table ‘ITAB_BOOKINGS’ with the sub node ‘.
and Execution of the Web Dynpro Application
and execute the Web Dynpro Component.
the Departure city as Berlin/Germany and destination city as Frankfurt/Germany.
Press button ‘Search Flights’.
will display the available flights in the first ALV and bookings of the flights
in the second ALV.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
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