2006 Nov 29 12:54 AM
hi!
Can someone explain how to write a report output in a tabular column?
thanks,
Srikanth.
2006 Nov 29 12:56 AM
Can you explain a little more, what exactly are you looking for?
A ALV report is display in a tabular format. Take a look at these examples.
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sap-img.com/abap-function.htm
You can also look at BCALV programs in SE38 in your systems.
Regards,
Ravi
Note - Please mark all the helpful answers
Can you explain a little more, what exactly are you looking for?
A ALV report is display in a tabular format. Take a look at these examples.
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sap-img.com/abap-function.htm
You can also look at BCALV programs in SE38 in your systems.
Regards,
Ravi
Note - Please mark all the helpful answers
2006 Nov 29 12:56 AM
Can you explain a little more, what exactly are you looking for?
A ALV report is display in a tabular format. Take a look at these examples.
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sap-img.com/abap-function.htm
You can also look at BCALV programs in SE38 in your systems.
Regards,
Ravi
Note - Please mark all the helpful answers
2006 Nov 29 1:07 AM
2006 Nov 29 12:56 AM
2006 Nov 29 1:07 AM
2006 Nov 29 12:56 AM
2006 Nov 29 1:06 AM
2006 Nov 29 12:57 AM
Hi,
use the ALV FM REUSE_ALV_LIST_DISPLAY to display the ouput in tabular form..
Check this sample report..
TYPE-POOLS: slis.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
DATA: BEGIN OF wa_mara,
matnr LIKE mara-matnr,
bismt LIKE mara-bismt,
ernam LIKE mara-ernam,
ersda LIKE mara-ersda,
maktx LIKE makt-maktx,
END OF wa_mara.
DATA: v_repid TYPE syrepid.
v_repid = sy-repid.
DATA it_mara LIKE STANDARD TABLE OF wa_mara.
SELECT *
FROM mara
INTO CORRESPONDING FIELDS OF TABLE it_mara.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = v_repid
i_internal_tabname = 'WA_MARA'
i_inclname = v_repid
CHANGING
ct_fieldcat = gt_fieldcat.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = gt_fieldcat
TABLES
t_outtab = it_mara.
Thanks,
Naren
2006 Nov 29 1:09 AM
2006 Nov 29 1:14 AM
Yep, ALV is a good tool to display tabular data. It allows the user to sort and filter as they need, without you having to program it. There are two ways to implement in older versions of SAP, one is to use the function module and the other is to use the class CL_GUI_ALV_GRID. Examples of this have already been mentioned.
In the netweaver release(starting with 6.40) there is the ALV Object model which is an encapsulation of the ALV tool. Everything that you can do with the function module and the class(mentioned above) can be done using the ALV OM. The ALV object model is totally ABAP OO, which makes it nice to work with. Here is a tutorial.
Here is the help.
http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm
Also, you may want to take away the 6 points that you awarded to my post above as it is hardly helpful.
Regards,
Rich Heilman
2006 Nov 29 2:20 AM
Thanks a lot Rich!
You have been so helpful. Don't worry abt the points as I'm very new to ABAP, any suggestion is a big help o me.
Thanks once again.
cheers,
Srikanth.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |