SAP / fundamental-tools

Web applications with ABAP, done simple.
Apache License 2.0
70 stars 13 forks source link

Error during handling ABAP function modules w/o parameters #25

Closed bsrdjan closed 3 years ago

bsrdjan commented 3 years ago

Describe the bug

abap call fails when called for ABAP function module which does not have parameters.

To Reproduce

abap call MME RFC_PING

 MME (en) 

Error: ENOENT: no such file or directory, open 'yaml/parameters.yaml'
    at Object.openSync (node:fs:582:3)
    at Object.readFileSync (node:fs:450:35)
    at Object.fileLoad (/Users/d037732/.nvm/versions/node/v16.6.2/lib/node_modules/abap-api-tools/dist/utils.js:23:34)
    at Object.annotations_read (/Users/d037732/.nvm/versions/node/v16.6.2/lib/node_modules/abap-api-tools/dist/backend.js:645:29)
    at new Frontend (/Users/d037732/.nvm/versions/node/v16.6.2/lib/node_modules/abap-api-tools/dist/frontend.js:34:39)
    at CliHandler.run (/Users/d037732/.nvm/versions/node/v16.6.2/lib/node_modules/abap-api-tools/dist/abap.js:74:38) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: 'yaml/parameters.yaml'
}