|Home • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Assistance class in Web Dynpro ABAP
By Archana Pawar, Infosys
Generally in Web Dynpro ABAP, we write
all the required logic within the component itself but we can write the
necessary logic outside the component that is in a class and we can use that
class as the assistance class in our Web Dynpro component.
So, in this BOK we demonstrate how to
create assistance class for Web Dynpro application and use it to get the desired
take example of displaying the flights available and bookings displayed in ALV
where Departure and Destination City and country are input.
class and coding the desired logic
to transaction se24 and create a class named as ‘ZCL_WDABAP_FLIGHT_MODEL’.
Instantiation as ‘Public’ and class type as ‘Usual ABAP Class’. And save
will be created as shown in the below screenshot.
a public method ‘GET_BOOKINGS’ and press ENTER.
to parameters and give IM_CARRID, IM_CONNID and IM_FLDATE as importing
These are the details that we get from
the 1st ALV in the Web Dynpro application where we display the
flights available for the provided departure and destination city/country.
LT_BOOKINGS as Exporting parameter.
go to code editor and we need to write the logic to fetch the desired details
from table SBOOK.
all values from table SBOOK where CARRID, CONNID and FLDATE are from the flight
details. Result will be stored in exporting parameter ‘LT_BOOKING’.
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