Showing posts with label Creating new program. Show all posts
Showing posts with label Creating new program. Show all posts

Friday, November 23, 2007

Creating new program via ABAP

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

Blog Archive