Deploying a SAPUI5/OpenUI5 file structure to SAP NetWeaver ABAP via ADT (ABAP Developer Tools)
npm install nwabap-ui5uploadernpx-prefix (as of npm 5.2.0):
npm install nwabap-ui5uploader --save-dev`
Or just install globally and skip the npx-prefix in the examples below:
`npm install -g nwabap-ui5uploader`
Usage
This node module describes itself on the command line. Use your favorite CI/CD configuration to call this module.
`
npx nwabap --help
`
`
npx nwabap upload --help
`
$3
| Option | Default | Description |
|---------------------|---------|-------------|
| conn_server | | SAP host
| conn_user | | SAP user
| conn_client | | Optional parameter to specify the client (transferred as sap-client URL parameter). In case the option is not specified the default client is used if specified.
| conn_usestrictssl | true | SSL mode handling. In case of self signed certificates the useStrictSSL mode option can be set to false to allow an upload of files.
| base | | Base dir
| files | ** | Files to upload (relative from basedir)
| abap_transport | | ABAP transport no.
| abap_package | | ABAP package name
| abap_bsp | | ABAP BSP container ID
| abap_bsp_text | | ABAP BSP container name
| abap_language | EN | ABAP language
| calcappindex | false | Re-calculate application index
| git_diff_commit | | Optional git commit, branch or reference to compare current state with. Will only upload files that were somehow changed (added, modified or deleted) since specified state.
| git_diff_unstaged | false | Include unstaged files in git diff.
| preserve_unselected | false | Don't delete files from BSP container, that were not selected to upload. Useful when using git_diff_commit option to keep unchanged files untouched.
| nwabaprc | | If set, specifies a different path for a ./.nwabaprc file
#### .nwabaprc
It is possible to use a configuration file. If this file exists in the project root, this tool will automatically discover it. Create a .nwabaprc file in your package root, i.e.:
`
{
"base": "./dist",
"conn_server": "http://myserver:8000",
"conn_user": "upload",
"conn_password": "upl04d",
"abap_package": "$TMP",
"abap_bsp": "ZZ_UI5_LOCAL",
"abap_bsp_text": "UI5 upload local objects"
}
`
NOTE: command line arguments are ordered to be mapped after the configuration file. This means that the command line arguments override individual configuration file attributes.
$3
#### Upload to $TMP package
`
npx nwabap upload --base ./dist --conn_server http://myserver:8000 --conn_user upload --conn_password upl04d --abap_package $TMP --abap_bsp ZZ_UI5_LOCAL --abap_bsp_text "UI5 upload local objects"
`
#### Upload to a transport tracked package
`
npx nwabap upload --base ./dist --conn_server http://myserver:8000 --conn_user upload --conn_password upl04d --abap_package ZFRONTENDS_TEST --abap_bsp ZABSHR --abap_bsp_text "Absence HR" --abap_transport PRDNK1230120032
`
#### Use package.json script
`
"scripts": {
"upload": "npx nwabap upload"
}
`
#### Different .nwabaprc location/file
`
npx nwabap upload ... --nwabaprc ./config/.nwabaprc2
``