‎2006 Aug 11 10:41 AM
to list all data from tables zfm_kfz and zfm_kmvrg i need alv program
list output is kfznr geraet kostentraeger bezeichnung tuvdatummmyyyy asudatummmyyyy kmstand histo reifen username
fileds in the zfm_kfz table is kfznr, geraet kostentraeger bezeichnung tuvdaummmyyyy asudatummmyyyy kmstand histo reifen username
fields in zfm_kmvrg is kfznr, kostentraeger kmstand
i n the selection screen beteen block use radio button is ALL FIRMLA -
( 4 characters).
this is the requirement somebody help me in this.
plz send coding in alv......
‎2006 Aug 11 10:50 AM
Hi Narendra,
Please do not expect ready made codes for your requirement. People can only help you partially.Rest you have to do your self.
Here is a skeleton of the steps you should follow.
1) get data from zfm_kfz and zfm_kmvrg using select statement using joins.
2) Build the field catalog for the fields you want to display in the alv grid.
3) call the function reuse_alv_grid_display , passing the Internal table with the actual data to be printed, the field catalog and the program which is calling this function.
See the below link to know how to use a alv fm to print the list.
http://www.sap-img.com/abap/alv-grid.htm
Also look at:
Regards,
Ravi
‎2006 Aug 11 10:50 AM
HI narenda,
are you sure you need an abap with ALV?
Why don't you use SAP-QUERY. I think its better and simple, because you display only tables.
Regards, Dieter
‎2006 Aug 11 11:05 AM
hi,
here's a dyn. report for all tables
-> pls copy and add your sel-opt.
http://www.a-saph.de/etc/ZTABALV.txt
Andreas