Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-r3trans

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-r3trans

NodeJs wrapper for SAP R3trans program

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
decreased by-73.55%
Maintainers
0
Weekly downloads
 
Created
Source

node-r3trans

npm npm

NodeJs wrapper for SAP R3trans.

Installation

  • Download the R3trans program from SAP Software Download Center
  • Create a directory and extract its content
  • Create a new PATH enviroment variable named R3TRANS_HOME, pointing at the directory that was created earlier
  • Install node-r3trans
npm install node-r3trans

Getting started

Start by testing if the R3trans program is installed correctly and print out its version.

import { R3trans } from "node-r3trans";
const r3trans = new R3trans({
    r3transDirPath: "", //Optional, can be used instead of the R3TRANS_HOME enviroment variable
    tempDirPath: "", //Optional, the R3trans program will generate temporary files, and this folder indicates where they shall be generated. If left blank, defaults to the R3trans program dir path
});
r3trans.getVersion().then(version => {
    console.log(version);
}).catch(err => {
    console.error(err);
});

Transports

A transport data file can always be passed to the instance object methods as a buffer or a string file path.

To verify a transport data file is valid:
r3trans.isTransportValid(buffer).then(valid => {
    console.log("valid", valid);
}).catch(err => {
    console.error(err);
});
Get the R3trans log as a buffer
r3trans.getLogBuffer(buffer, 2).then(log => {
    console.log(log.toString());
}).catch(err => {
    console.error(err);
});
Get transport number
r3trans.getTransportTrkorr(buffer).then(trkorr => {
    console.log("trkorr", trkorr);
}).catch(err => {
    console.error(err);
});
Get table entries
r3trans.getTableEntries(buffer, "TADIR").then(tadir => {
    console.log("tadir", tadir);
}).catch(err => {
    console.error(err);
});

Keywords

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc