Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

plz write coding for this .....alv report

Former Member
0 Likes
489

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......

3 REPLIES 3
Read only

Former Member
0 Likes
448

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

Read only

Former Member
0 Likes
448

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

Read only

andreas_mann3
Active Contributor
0 Likes
448

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