{"_id":"sapnwrfc","_rev":"26-b87ce796942e13923e170de0be3c8467","name":"sapnwrfc","description":"Bindings for the SAP NetWeaver RFC SDK","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"sapnwrfc","version":"0.1.0","description":"Bindings for the SAP NetWeaver RFC SDK","homepage":"","keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"j.dorner@gmx.net"},"main":"sapnwrfc","engines":{"node":">= 0.4.0"},"scripts":{"preinstall":"node-waf configure clean build install --sapnwrfcsdk=${SAPNWRFCSDK}"},"_npmJsonOpts":{"file":"/home/joe/.npm/sapnwrfc/0.1.0/package/package.json","contributors":false,"serverjs":false,"wscript":true},"_id":"sapnwrfc@0.1.0","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"3d384e8115a18d5f343389fbfea0f77a54bf0073","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.0.tgz","integrity":"sha512-vKj0Pc8+W/J0p69J8Vb7JXrPfabop8KzhNwRgcbkLEm7yGm1wXzzZ+3/HtgiIvHgeL7QnV4k5LPXsiVFZLbqog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkuUV6mHXzqP48Rffc66T/LejbRHghw10vjzHEyxStKgIgYNmd8q1g7HoMAdbt67JyrMQaxaBpLSSNWv6nfBJFXF8="}]},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}],"directories":{}},"0.1.1":{"name":"sapnwrfc","version":"0.1.1","description":"Bindings for the SAP NetWeaver RFC SDK","homepage":"https://github.com/jdorner/node-sapnwrfc","keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"j.dorner@gmx.net"},"main":"sapnwrfc","engines":{"node":">= 0.5.0"},"scripts":{"preinstall":"node-waf configure clean build install --sapnwrfcsdk=${SAPNWRFCSDK}"},"_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"_id":"sapnwrfc@0.1.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"9e3683fed9583eeab36d73d4dbb610cd73b119c4","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.1.tgz","integrity":"sha512-HkS5LFbd2J4n58QvNWOCDBUO+veMmUv2h9ds72pwSPPSyMUZe+UYyeXReQm73/DVVDdJUtquQQ1Ej4Ru3BDLNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8Ocwa5lNAiNTDBzCQh0Wj+aeyBVkY14EQT59kMKIIoAiBsGJamDJtrzrbpGASymSJKJvzSbDQya+/FqAERZ8VxDA=="}]},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.1.2":{"name":"sapnwrfc","version":"0.1.2","description":"Bindings for the SAP NetWeaver RFC SDK","homepage":"https://github.com/jdorner/node-sapnwrfc","keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.6.0"},"dependencies":{"bindings":">=0.3.0"},"scripts":{"install":"node preinstall.js"},"_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"_id":"sapnwrfc@0.1.2","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.16","_defaultsLoaded":true,"dist":{"shasum":"6595520c49d078c71af0c15af2cb80b4d2e59172","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.2.tgz","integrity":"sha512-hIp7thwpGfzE9A/BEYedo6cER+vd9Txg8idYVeKGNuFKIOze+7hI761EeUJ2xxusgX5zKP424BHMxTsH+c+Czg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmV8ypNqt88tPnACiGS4kpxOt5Sb/3xBE7mb+NccKIcAIhAKegdgAPBqG730s3pVzs6TvU+xIcfaTfNJIIUoLn+J0Q"}]},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.1.3":{"name":"sapnwrfc","version":"0.1.3","description":"Bindings for the SAP NetWeaver RFC SDK","homepage":"https://github.com/jdorner/node-sapnwrfc","keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.6.0"},"dependencies":{"bindings":">=0.3.0"},"scripts":{"install":"node preinstall.js"},"_id":"sapnwrfc@0.1.3","dist":{"shasum":"d65fa5998644ae754670871a7438e97b9eb08c50","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.3.tgz","integrity":"sha512-/X2ncPRrabRVPHgkrweYrgXPG0VHv1c0vb3rzaKA1l0Bf/3S12oQbG432gUtPIlWNWGm232scZSotJ5gVPjCXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+4nifAiscGCTEvj/S6RJ219fIT8zu3jMorLBeV+Nb5AIgBzQWdc4vQChiIxq6t74S7ts9xxz7KWf9PYUJadKd8aU="}]},"_from":"../node/node_modules/sapnwrfc/","maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.1.4":{"name":"sapnwrfc","version":"0.1.4","description":"Bindings for the SAP NetWeaver RFC SDK","homepage":"https://github.com/jdorner/node-sapnwrfc","repository":{"type":"git","url":"git://github.com/jdorner/node-sapnwrfc.git"},"keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.6.0"},"dependencies":{"bindings":">=0.3.0"},"scripts":{"install":"node preinstall.js"},"_id":"sapnwrfc@0.1.4","dist":{"shasum":"8e8c3122ee596ed75b127d5778bf40b2932a14df","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.4.tgz","integrity":"sha512-WYwIaWPaZVrynNJRkwxMC9P/Xk7GMQe2DU8Q/xaNVrUypauhPMdUoBKfXX7tKtHJGtf44p/l1U/J2UCSmAlPKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5cxrz/trygVqbzJFALuaSxo9GWvId0BlFaqwI5NltKAiBSZzcIu8bVTcn4p6D6NcpR+WqeBvP0tbEhVkWvBDsFEQ=="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.1.5":{"name":"sapnwrfc","version":"0.1.5","description":"Bindings for the SAP NetWeaver RFC SDK","homepage":"https://github.com/jdorner/node-sapnwrfc","repository":{"type":"git","url":"git://github.com/jdorner/node-sapnwrfc.git"},"keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.6.0"},"dependencies":{"bindings":">=0.3.0"},"scripts":{"install":"node preinstall.js"},"bugs":{"url":"https://github.com/jdorner/node-sapnwrfc/issues"},"_id":"sapnwrfc@0.1.5","dist":{"shasum":"8022e44dbee561914b6b900c956950f81f814202","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.5.tgz","integrity":"sha512-/qSiPG8Kb3N6mDN9hy3J1/jr50ccsvXrqkkI1pNavOQkacMz6eFR7C6XnRNgl+03l/D/Szw29FPO2ICo2GKR6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVvL1K8VyimJ6lAMYpsaKpNYHKgK1MRpW5re6jaZa9YAiBXkZsm0I4EyKSInRDQobGi/UkOUVI9DWJi10KcmelfFA=="}]},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.1.7":{"name":"sapnwrfc","version":"0.1.7","description":"Bindings for the SAP NetWeaver RFC SDK","license":"MIT","homepage":"https://github.com/jdorner/node-sapnwrfc","repository":{"type":"git","url":"git://github.com/jdorner/node-sapnwrfc.git"},"keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.8.0","iojs":">= 1.0.0"},"dependencies":{"bindings":">=0.3.0","nan":"^2.1.0"},"scripts":{"install":"node preinstall.js"},"devDependencies":{"gulp":"^3.9.0","gulp-util":"^3.0.7","run-sequence":"^1.1.4"},"gitHead":"052c55b00f6981d70173fd9bc43cf37aaf465dc9","bugs":{"url":"https://github.com/jdorner/node-sapnwrfc/issues"},"_id":"sapnwrfc@0.1.7","_shasum":"912061999b81dd22d712cc97802c180094182049","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"dist":{"shasum":"912061999b81dd22d712cc97802c180094182049","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.7.tgz","integrity":"sha512-POwwi0gFCqNhyWjEsilTPdZ9/C7PuVtmX65K5yrReq8SJwPw1cI92GwWI18HR2ooMKtK5UeUV+mAuDHFGMr3IA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3qetgNLS36pYjxHCKkw4jW//w2pnWZObTcw6soRTuCAiByhwP2ZY81Gi2cetHPJdN73DrohUJuLCbMUInK5TRitg=="}]},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.1.8":{"name":"sapnwrfc","version":"0.1.8","description":"Bindings for the SAP NetWeaver RFC SDK","license":"MIT","homepage":"https://github.com/jdorner/node-sapnwrfc","repository":{"type":"git","url":"git://github.com/jdorner/node-sapnwrfc.git"},"keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.8.0","iojs":">= 1.0.0"},"dependencies":{"bindings":">=0.3.0","nan":"^2.1.0"},"devDependencies":{"gulp":"^3.9.0","gulp-mocha":"^2.1.3","gulp-util":"^3.0.7","mocha":"^2.3.3","run-sequence":"^1.1.4","should":"^7.1.1"},"scripts":{"install":"node preinstall.js","test":"npm run test:linux","test:linux":"export LD_LIBRARY_PATH=nwrfcsdk/lib && gulp test","test:win32":"gulp test"},"gitHead":"b19b6dec990da3de21d6299f9904a39339126193","bugs":{"url":"https://github.com/jdorner/node-sapnwrfc/issues"},"_id":"sapnwrfc@0.1.8","_shasum":"a1fa0e675137d2b177555fccd07f4f95167cad28","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"dist":{"shasum":"a1fa0e675137d2b177555fccd07f4f95167cad28","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.1.8.tgz","integrity":"sha512-va3fHNX3ory2ftzs9DZ/bbXTqT3mjYpCrJpGc11mDvioiaa0+3ZhjZrrCBdaTqmrDNPg08rqaqljKBHeB61oQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPbY//2GLsFRVxxJdblb+RGH5yFXi0ScE8QD0elRxErAIhANUFlKAjB3dv1blSJJw9D5Yi2DOqGZp/ye6YyqDGo5/o"}]},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]},"0.2.0":{"name":"sapnwrfc","version":"0.2.0","description":"Bindings for the SAP NetWeaver RFC SDK","license":"MIT","homepage":"https://github.com/jdorner/node-sapnwrfc","repository":{"type":"git","url":"git://github.com/jdorner/node-sapnwrfc.git"},"keywords":["sapnwrfc","sap","rfc"],"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"main":"sapnwrfc","engines":{"node":">= 0.8.0","iojs":">= 1.0.0"},"dependencies":{"bindings":">=0.3.0","nan":"^2.1.0"},"devDependencies":{"gulp":"^3.9.0","gulp-mocha":"^2.1.3","gulp-util":"^3.0.7","mocha":"^2.3.3","run-sequence":"^1.1.4","should":"^7.1.1"},"scripts":{"install":"node preinstall.js","test":"npm run test:linux","test:linux":"export LD_LIBRARY_PATH=nwrfcsdk/lib && gulp test","test:win32":"gulp test"},"gitHead":"a626e0273a162efe9ef6584fe2d682b60632b932","bugs":{"url":"https://github.com/jdorner/node-sapnwrfc/issues"},"_id":"sapnwrfc@0.2.0","_shasum":"9fdaf35beba8f147c2fc3349444bf73df3a24fc6","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jdorner","email":"jdorner@gmx.net"},"dist":{"shasum":"9fdaf35beba8f147c2fc3349444bf73df3a24fc6","tarball":"https://registry.npmjs.org/sapnwrfc/-/sapnwrfc-0.2.0.tgz","integrity":"sha512-x2tGTZk3hCcK1X5en2/nG94fAYxoKCclQUcsYuMoMsnlO8E+6Q52IBy6urSandKVmho6ljeXiSJDj/buRrzzhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGCKPaBGZqD/aMHWEk6v7wOEOrtRVc77PloY/cLNVdbAiEA0zn8OYvkCaLiLDnrm6IJmA8EJVblR8WDIcbb8sQmdjA="}]},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}]}},"maintainers":[{"name":"jdorner","email":"j.dorner@gmx.net"}],"time":{"modified":"2022-06-26T15:58:25.832Z","created":"2011-08-02T10:48:50.566Z","0.1.0":"2011-08-02T10:48:51.669Z","0.1.1":"2012-01-21T09:45:23.445Z","0.1.2":"2012-05-01T07:20:27.658Z","0.1.3":"2012-08-16T18:31:02.453Z","0.1.4":"2013-02-09T15:19:43.474Z","0.1.5":"2013-05-25T10:12:29.542Z","0.1.6":"2015-11-01T08:03:13.651Z","0.1.7":"2015-11-01T13:52:47.489Z","0.1.8":"2015-11-02T22:25:20.855Z","0.2.0":"2015-11-12T22:20:46.197Z"},"author":{"name":"Joachim Dorner","email":"joachim.dorner@gmail.com"},"repository":{"type":"git","url":"git://github.com/jdorner/node-sapnwrfc.git"},"readme":"# SAP Netweaver RFC SDK Bindings for Node.js\n\n[![Build status](https://ci.appveyor.com/api/projects/status/oi489ecnryrt4pdg/branch/master?svg=true)](https://ci.appveyor.com/project/jdorner/node-sapnwrfc/branch/master) [![Circle CI](https://circleci.com/gh/jdorner/node-sapnwrfc/tree/master.svg?style=svg)](https://circleci.com/gh/jdorner/node-sapnwrfc/tree/master) [![npm version](https://badge.fury.io/js/sapnwrfc.svg)](https://badge.fury.io/js/sapnwrfc)\n\n## Description\n\nThis module provides bindings to the SAP Netweaver RFC SDK. With it, you will be able to call remote enabled function modules of a SAP system.\nOpening the connection and function invocations are fully/partially asynchronous operations, which will call a callback function upon completion.\n\n## Preparation\n\n**Note:** In order to use this module you will have to obtain the SAP NW RFC SDK via http://service.sap.com. For further instructions see OSS note 1025361.\n\n### Linux\n\n- Extract the SDK archive with SAPCAR\n- Copy the files from the lib and include folders to the corresponding system directories (/usr/local/Lib /usr/local/include)\n\n```sh\n./SAPCAR_3-20002089.EXE -xf NWRFC_8-20004549.SAR\ncd nwrfcsdk\ncp ./lib/* /usr/lib\ncp ./include/* /usr/inlude\n```\n\n### Windows\n\n- Extract the SDK archive with SAPCAR\n- Copy the files from the lib folder to C:\\Windows\\system32\n- Warning: If you are working with NodeJS 32-bit on a Windows 64-bit OS, you should copy the files to C:\\Windows\\SysWOW64 instead.\n\n### OS X\n\nOS X is **not supported** due to the fact that there is no suitable SAP RFC NW SDK available. The module will compile but fail when trying to lazy-load its dependencies.\n\n## Installation (both Linux and Windows)\n\n- You may now download the addon from the [npm registry](http://search.npmjs.org) and install it by using the `npm` command.\n\n```sh\nnpm install sapnwrfc\n```\n\n## Usage\n\nAs with all other Node.js modules, you need to require it:\n\n```js\nvar sapnwrfc = require('sapnwrfc');\n```\n\n## Connection parameters\n\nConnection parameters have to be specified using a JavaScript object. For a complete list of possible parameters, refer to the\n_SAP NetWeaver RFC SDK Guide_ which is available via [SAP Connectors](http://service.sap.com/connectors).\n\nExample:\n\n```js\nvar conParams = {\n  ashost: '192.168.0.10',\n  sysid: 'NPL',\n  sysnr: '42',\n  user: 'DEVELOPER',\n  passwd: 'password',\n  client: '001',\n  lang: 'E'\n};\n```\n\n## Set path to sapnwrfc.ini\n\nBefore you open a connection you can set the directory path to look for the `sapnwrfc.ini` file.\n\nExample:\n\n```js\nvar con = new sapnwrfc.Connection;\nvar iniPath = '/path/to/dir/with/inifile/in/it'\n\ncon.SetIniPath(iniPath);\n```\n\n## Opening the connection\n\nBefore you can invoke a remote function, you will have to open a connection to the SAP system.\n\n```js\nConnection.Open( connectionParameters, callback( errorObject ) );\n```\n\n- **connectionParameters:** JavaScript object containing the parameters used for connecting to a SAP system (see above)\n- **callback:** A function to be executed after the connection has been attempted. In case of an error, an errorObject will be passed as an argument.\n\n```js\nversionInfo = Connection.GetVersion( );\n```\n\n- **versionInfo:** An Array containing major number, minor number and patch level of the NW RFC SDK\n\nExample:\n\n```js\nvar con = new sapnwrfc.Connection;\n\ncon.Open(conParams, function(err) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n  console.log('sapnwrfc: ' + con.GetVersion());\n});\n```\n\n## Calling a remote function module\n\nThis is a two step process:\n\n- You will first have to lookup the function module's definition, getting a Function object in return\n- After a successful lookup, you may invoke the function and pass arguments to it\n\nHowever, you can use the Function object subsequently multiple times for invocations, without having to do another lookup upfront.\n\n```js\nfunctionObject = Connection.Lookup( functionModuleName )\n```\n\n- **functionModuleName:** A string containing the name of the remote function module to be called\n- **functionObject:** A JavaScript object (class name: Function) which represents an interface to invoke the function\n\n```js\nFunction.Invoke( functionParameters, callback( errorObject, result ) )\n```\n\n- **functionParameters:** JavaScript object containing the parameters used for connecting to a SAP system (see above)\n- **callback:** A function to be executed after the connection has been attempted. In case of an error, an errorObject will be passed as an argument. The result will be returned as a JavaScriptObject (see below for details)\n\nFor the sake of simplicity, the following example will neither pass arguments to the remote function nor receive a result:\n\n```js\nvar func = con.Lookup('RFC_PING');\nfunc.Invoke({ }, function(err, result) {\n  console.log('Got pong!');\n});\n```\n\n## Passing and receiving arguments\n\nRemote function arguments are being passed by using a plain JavaScript object. For each parameter to pass in, you'll have to define a\nmember property named according to the remote function's interface. There is no need to distinguish between importing, exporting or table\nparameters.\n\n### Primitives\n\nAssigning primitive types (non-structures, non-tables) is straightforward. You will, however, have to take care that the argument matches\nthe parameter's data type. E.g. if the parameter type is an integer, you may not assign a string value to it.\n\nExample:\n\n```js\nvar params = {\n  QUESTION: 'How are you'\n};\n\nvar func = con.Lookup('STFC_STRING');\nfunc.Invoke(params, function(err, result) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n\n  console.log(result);\n});\n```\n\n### Binary data\n\nSAP data types like XSTRING and RAW need some special treatment as JavaScript does not support binary data very well. In order to safely pass\nbinary data back and forth, you will have to use [Node Buffers](https://nodejs.org/api/buffer.html). This, of course, also holds true for binary\ndata types used within structures and tables.\n\nExample:\n\n```js\n\nvar func = con.Lookup('STFC_XSTRING');\nvar params = { QUESTION: new Buffer('00FF65', 'hex') };\n\nfunc.Invoke(params, function (err, result) {\n  console.log(result); // => <Buffer de ad>\n});\n\n```\n\n### Structures\n\nStructures are represented by JavaScriptObjects, where each field corresponds to a member property.\n\nExample:\n\n```js\nvar params = {\n  IMPORTSTRUCT: { RFCFLOAT: 3.14159, RFCINT1: 123, RFCTIME: '094500', RFCCHAR4: 'NODE' }\n};\n\nvar func = con.Lookup('STFC_STRUCTURE');\nfunc.Invoke(params, function(err, result) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n\n  console.log(result);\n});\n```\n\n### Tables\n\nA table is nothing else than an array of structures. This means, in terms of JavaScript, that you need to put JavaScript objects into an array.\n\nExample:\n\n```js\nvar table = [\n  { I: 1, C: 'A', STR: 'String1' },\n  { I: 2, C: 'B', STR: 'String2' },\n  { I: 3, C: 'C', STR: 'String3' }\n];\n\nvar params = {\n  IMPORT_TAB: table\n};\n\nvar func = con.Lookup('STFC_DEEP_TABLE');\nfunc.Invoke(params, function(err, result) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n\n  for (var i = 0; i < result.EXPORT_TAB.length; i++) {\n    console.log('Row ' + (i + 1) + ':');\n    console.log(result.EXPORT_TAB[i]);\n  }\n  console.log(result.RESPTEXT);\n});\n```\n\n## Retrieving function signature as JSON Schema\n\nYou can retrieve the name and types of remote function arguments with MetaData() call.\n\nExample:\n\n```js\nvar func = con.Lookup('STFC_STRING');\nvar signature = func.MetaData();\nconsole.log(JSON.stringify(signature, null, 2));\n```\n\nThe console output is:\n```js\n{\n  \"title\": \"Signature of SAP RFC function STFC_STRING\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"MYANSWER\": {\n      \"type\": \"string\",\n      \"length\": \"0\",\n      \"sapType\": \"RFCTYPE_STRING\",\n      \"description\": \"\",\n      \"sapDirection\": \"RFC_EXPORT\"\n    },\n    \"QUESTION\": {\n      \"type\": \"string\",\n      \"length\": \"0\",\n      \"sapType\": \"RFCTYPE_STRING\",\n      \"description\": \"\",\n      \"sapDirection\": \"RFC_IMPORT\"\n    }\n  }\n}\n```\n\nThe result of function MetaData() is an object of [JSON Schema](http://json-schema.org/latest/json-schema-core.html).\n\nThe *properties* sub-object specifies the parameter of the remote function. In the above example the remote function STFC_STRING has the parameters MYANSWER and QUESTION. The *sapDirection* specifies if it is an input parameter (RFC_IMPORT) or output parameter (RFC_EXPORT) or input and/or output (RFC_CHANGING | RFC_TABLES).\n\nAttributes with the prefix *sap* are specific to this JSON Schema instance.\n\n- **title:** Name of the JSON Schema.\n- **type:** JavaScript type.\n- **length:** Length of a simple type or structure.\n- **description:** Description of parameters from SAP. Can be empty.\n- **sapType:** Native SAP type. RFCTYPE_TABLE | RFCTYPE_STRUCTURE | RFCTYPE_STRING | RFCTYPE_INT | RFCTYPE_BCD | RFCTYPE_FLOAT | RFCTYPE_CHAR | RFCTYPE_DATE | RFCTYPE_TIME | RFCTYPE_BYTE | RFCTYPE_NUM | ... . You find the complete list of possible values in the SAP header file sapnwrfc.h. Look for enum type *RFCTYPE*.\n- **sapDirection:** Attribute of the first level of properties. RFC_IMPORT | RFC_EXPORT | RFC_CHANGING | RFC_TABLES\n- **sapTypeName:** Name of a structure or name of a structure of a table.\n\n\n## Contributors\n- Alfred Gebert\n- Stefan Scherer\n- Michael Scherer\n- Szilard Novaki\n- Jakub Zakrzewski\n- Alex\n- LeandroDG\n\n## Changelog\n\n### 0.2.0 (2015-11-11)\n- Add SetIniPath\n- RAW fields and XSTRINGs return/expect node Buffers\n\n### 0.1.8 (2015-11-02)\n- Automatic builds for Linux and Windows\n- Add tests\n- Bugfixes\n\n### 0.1.7 (2015-11-01)\n- Add gulp script for bulk compiling\n\n### 0.1.6 (2015-11-01)\n- Support for Node.js 4.x (and io.js)\n- Fix library path issue (Windows)\n- Add parameter msvs_nwrfcsdk_path for node-gyp\n- Add MetaData()\n\n### 0.1.5 (2013-05-25)\n- Support for Node.js 0.10\n\n### 0.1.4 (2013-02-09)\n- Fix compilation on Linux (issue #2)\n\n### 0.1.3 (2012-08-16)\n\n- Support for Node.js >= 0.7.9\n- Change global invocation lock to a connection based lock\n\n## TODO\n\n- Unit tests\n- Missing but probably useful functions:\n  - RfcIsConnectionHandleValid (aka Connection::IsOpen())\n  - RfcRemoveFunctionDesc (invalidate cache)\n  - RfcGetPartnerSSOTicket\n- Use of buffers for xstring\n- Event emission on disconnect\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011-2012 Joachim Dorner\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","homepage":"https://github.com/jdorner/node-sapnwrfc","keywords":["sapnwrfc","sap","rfc"],"bugs":{"url":"https://github.com/jdorner/node-sapnwrfc/issues"},"readmeFilename":"README.md","license":"MIT"}