|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Display data dynamically using Field Symbols
By Vineesh Batchu, Yash Technologies
the table contents dynamically as per table name mentioned on selection screen
with help of field symbols. If
user enters MARA, then the data from MARA table is retrieved. If VBAK, then VBAK
data is shown.
Declare two parameter variables as
Create a field symbol as below:-
Initially check whether table exists
If table exists in database then by
using create data statement create
the data object and assign the reference to data object of w_dref reference
Now assign the reference variable to
field symbol as below:
In runtime after assign statement the
<t_itab> structure will be same as table name entered on selection screen.
Now select the data from database and
put it in field-symbol (dynamic internal table).
Now create the field catalog by using
the function module
Display the data by using function
Give table name as mara on selection
screen and no of records as 100 and press F8.
List is displayed as below:
Now give table name as VBAK and press
importance of this tutorial is to display the data as per table name mentioned
on selection screen by user with Field
REPORT y_saptechnical_dynamic NO STANDARD PAGE HEADING.
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