Önceki Sayfa

SAP ABAP Programming, Functional and Basis Component Reference Books

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

<span class=SpellE><span style='font-size:7.5pt;font-family:"Tahoma","sans-serif"; mso-fareast-font-family:"Times New Roman";color:#464646'>Copyright</span></span><span style='font-size:7.5pt;font-family:"Tahoma","sans-serif";mso-fareast-font-family: "Times New Roman";color:#464646'> &copy; 2010. KM <span class=SpellE>Group</span>. <span class=SpellE>All</span> <span class=SpellE>Rights</span> <span class=SpellE>Reserved</span>.</span></p> </td> </tr> </table> <p class=MsoNormal><span style='mso-fareast-font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></p> </div> </body> </html>