Skip to content

Merge ABAP INCLUDEs into single file

License

Notifications You must be signed in to change notification settings

Sirius-A/abapmerge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status npm version devDependencies Status Greenkeeper badge

abapmerge

Merge ABAP INCLUDEs into single file. Function groups are skipped

Test online: http://larshp.github.io/abapmerge/

Building

  • npm install

  • npm test

How it works

abapmerge takes a path to the main report and analyzes its code and all files stored in the same directory and all sub-directories.

The resulting code consists of the code of all found ABAP classes and interfaces, regardless of their production use in any part of the resulting report, and contents of ABAP includes found in the main report or the included reports.

abapmerge expects that the whole directory structure should result into a single executable program and, hence, if it finds an ABAP report that is not directly or indirectly included in the main report, abapmerge terminates its processing without issuing the input.

abapmerge requires file naming schema compatible with the schema used by abapGit.

Additional features

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
  • main void
    • must be included at the very first line of a ABAP program that should be treated as a standalone main report and abamerge should not die with an error if the program is never included.

Example

...
  " @@abapmerge include somefile.txt > APPEND '$$' TO styletab.
...

About

Merge ABAP INCLUDEs into single file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.3%
  • HTML 2.5%
  • CSS 1.1%
  • JavaScript 0.1%