Creating new program via ABAP

*
* Creating new program via ABAP
* WARNING : It Overwrite Original Report with same name
* Written by : SAP Basis, ABAP Programming and Other IMG Stuff
*                https://www.erpgreat.com
*
REPORT ZCREATE_NEW_PROGRAM_VIA_ABAP.

* Type of an editor line: rssource-line
DATA: code TYPE TABLE OF rssource-line.

* Report Name
APPEND  'REPORT ZTESTING.'
         TO code.

* Report Code
APPEND  'WRITE / ''Program created via ABAP!''.'
         TO code.

* Report Name in SE38
INSERT REPORT 'ZTESTING' FROM code.

WRITE: / 'Report created (old report with same name overwritten).'.
WRITE: / 'Please check via transaction SE38'.

*-- End of Program

ABAP Tips

Fast Links:
Get help for your ABAP problems
Do you have a ABAP Question?

BDC program examples:
Auto Disallowed Back Posting to Previous Period

SAP Books
SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books

ABAP Programming Tips
ABAP Forum for Discussion and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.