Merge ABAP INCLUDEs into single file
Test online: http://larshp.github.io/abapmerge/
-
npm install
-
npm test
Abapmerge supports pragmas that can be written inside an abap comment. If written as " comment, then indentation before " is also used for output.
@@abapmerge command params
Currently supported pragmas:
- include {filename} > {string wrapper}
- {filename} - path to the file relative to script execution dir (argv[0])
- {string wrapper} is a pattern where
$$
is replaced by the include line $$
is escaped - ' replaced to '' (to fit in abap string), use$$$
to skip escaping
Example
...
" @@abapmerge include somefile.txt > APPEND '$$' TO styletab.
...