02-11-2010 2:30 PM
Hi everybody,
I want to creat a report (we can call it as a tool) with the help of which I want to creat a report.
Like this tool will have the table name as input and the report should be able to generate a maintenance report for that table.
What will be the syntax to create a Report . I was trying out with "Generate Report" but that dosent seem to the right one.
Please guide me.
Thanks
Suraj
02-11-2010 2:57 PM
Check those allowed statements documentation
- [GENERATE SUBROUTINE POOL|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SUBROUTINE_POOL.htm]
- [READ REPORT|http://help.sap.com/abapdocu_70/en/ABAPREAD_REPORT.htm]
- [SYNTAX-CHECK|http://help.sap.com/abapdocu_70/en/ABAPSYNTAX-CHECK_FOR_ITAB.htm]
- [INSERT REPORT|http://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT.htm] <- Use this one
- [EDITOR-CALL FOR REPORT|http://help.sap.com/abapdocu_70/en/ABAPEDITOR-CALL_FOR_REPORT.htm]
And those not so allowed (so better not to call those)
- [SYNTAX-CHECK FOR PROGRAM|http://help.sap.com/abapdocu_70/en/ABAPSYNTAX-CHECK_FOR_PROGRAM.htm]
- [GENERATE REPORT|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_REPORT.htm]
- [LOAD REPORT|http://help.sap.com/abapdocu_70/en/ABAPLOAD.htm]
- [DELETE REPORT|http://help.sap.com/abapdocu_70/en/ABAPDELETE_REPORT.htm]
- [SCAN ABAP-SOURCE|http://help.sap.com/abapdocu_70/en/ABAPSCAN.htm]
More statements available at [Dynamic Program Editing|http://help.sap.com/abapdocu_70/en/ABENABAP_LANGUAGE_DYNAMIC.htm]
Also look at this small sample in [wiki|http://wiki.sdn.sap.com/wiki/display/WHP/Home] : [ABAP - Program to get run time for a given code |http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Programtogetruntimeforagivencode]
Regards,
Raymond
02-11-2010 2:58 PM
Hi,
GENERATE REPORT prog. is for internal use only. We are not supposed to use this.
Check below link if it helps...
http://help.sap.com/saphelp_47x200/helpdata/EN/9f/db996e35c111d1829f0000e829fbfe/frameset.htm
You can think of BDC for SE11 as well.
Thanks,
Vinod.
Edited by: Vinod Vemuru on Feb 11, 2010 9:49 PM
02-11-2010 3:01 PM
Hi,
are you trying to duplicate the functionality that SAP gives you with the Table Maintenance Generator (trans. SE55) ?? Why do you need to create such a tool, or with other words, why do you have to reinvent the wheel ??
After the maintenance view has been created for your table, you can process it in SM30 or you can even assign a transaction to it.