npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

rfctransportdemo

v2.0.0

Published

As this now supports pluggable HTTP clients, we can call the API over RFC as eclipse does.

Readme

Sample code for RFC transport

As this now supports pluggable HTTP clients, we can call the API over RFC as eclipse does.

This is based on node-rfc which requires SAP NW RFC SDK to be installed. Installation instructions can be found in its home page. I believe you'll need a SAP S-user to obtain it.

instructions

This only supports logging in a single app server with username and password The node-rfc documentation covers other cases

To run the sample code install the dependencies by running in this folder:

npm i

If this is successful (requires the SAP NW RFC SDK to be installed) run:

npx ts-node callwithrfc.ts myappserver 00 myuser mypass

Of course you'll need to replace the server details with your own

You will get something like:

Direct HTTP call:
 {
  body: '<?xml version="1.0" encoding="utf-8"?><program:abapProgram program:lockedByEditor="false" program:programType="modulePool" abapsource:sourceUri="source/main" abapsource:sourceObjectStatus="system" abapsource:fixPointArithmetic="true" abapsource:activeUnicodeCheck="true" adtcore:responsible="SAP" adtcore:masterLanguage="DE" adtcore:masterSystem="SAP" adtcore:name="SAPMCRFC" adtcore:type="PROG/P" adtcore:changedAt="2015-02-13T19:23:27Z" adtcore:version="active" adtcore:createdAt="2004-10-13T00:00:00Z" adtcore:changedBy="SAP" adtcore:description="Display and Edit RFC Destinations" adtcore:descriptionTextLimit="70" adtcore:language="EN" xmlns:program="http://www.sap.com/adt/programs/programs" xmlns:abapsource="http://www.sap.com/adt/abapsource" xmlns:adtcore="http://www.sap.com/adt/core"><atom:link href="source/main/versions" rel="http://www.sap.com/adt/relations/versions" xmlns:atom="http://www.w3.org/2005/Atom"/><atom:link href="source/main" rel="http://www.sap.com/adt/relations/source" type="text/plain" etag="201502131923270011" xmlns:atom="http://www.w3.org/2005/Atom"/><atom:link href="source/main" rel="http://www.sap.com/adt/relations/source" type="text/html" etag="201502131923270011" xmlns:atom="http://www.w3.org/2005/Atom"/><atom:link href="/sap/bc/adt/vit/wb/object_type/progpx/object_name/SAPMCRFC" rel="http://www.sap.com/adt/relations/sources/textelements" type="application/vnd.sap.sapgui" title="Text Elements" xmlns:atom="http://www.w3.org/2005/Atom"/><adtcore:packageRef adtcore:uri="/sap/bc/adt/vit/wb/object_type/devck/object_name/SRCX" adtcore:type="DEVC/K" adtcore:name="SRCX"/><abapsource:syntaxConfiguration><abapsource:language><abapsource:version>X</abapsource:version><atom:link href="/sap/bc/adt/abapsource/parsers/rnd/grammar" rel="http://www.sap.com/adt/relations/abapsource/parser" type="text/plain" etag="750" xmlns:atom="http://www.w3.org/2005/Atom"/></abapsource:language></abapsource:syntaxConfiguration><program:authorizationGroup program:application="S"/></program:abapProgram>',
  headers: {
    '~server_protocol': 'HTTP/1.1',
    ETag: '201502131923270014',
    'Last-Modified': 'Fri, 13 Feb 2015 19:23:27 GMT',
    'Content-Type': 'application/vnd.sap.adt.programs.programs.v2+xml; charset=utf-8'
  },
  status: 200,
  statusText: 'OK'
}

Client API call:
 {
  objectUrl: '/sap/bc/adt/programs/programs/SAPMCRFC',
  metaData: {
    'program:lockedByEditor': false,
    'program:programType': 'modulePool',
    'abapsource:sourceUri': 'source/main',
    'abapsource:sourceObjectStatus': 'system',
    'abapsource:fixPointArithmetic': true,
    'abapsource:activeUnicodeCheck': true,
    'adtcore:responsible': 'SAP',
    'adtcore:masterLanguage': 'DE',
    'adtcore:masterSystem': 'SAP',
    'adtcore:name': 'SAPMCRFC',
    'adtcore:type': 'PROG/P',
    'adtcore:changedAt': 1423855407000,
    'adtcore:version': 'active',
    'adtcore:createdAt': 1097625600000,
    'adtcore:changedBy': 'SAP',
    'adtcore:description': 'Display and Edit RFC Destinations',
    'adtcore:descriptionTextLimit': 70,
    'adtcore:language': 'EN'
  },
  links: [
    {
      href: 'source/main/versions',
      rel: 'http://www.sap.com/adt/relations/versions'
    },
    {
      href: 'source/main',
      rel: 'http://www.sap.com/adt/relations/source',
      type: 'text/plain',
      etag: '201502131923270011'
    },
    {
      href: 'source/main',
      rel: 'http://www.sap.com/adt/relations/source',
      type: 'text/html',
      etag: '201502131923270011'
    },
    {
      href: '/sap/bc/adt/vit/wb/object_type/progpx/object_name/SAPMCRFC',
      rel: 'http://www.sap.com/adt/relations/sources/textelements',
      type: 'application/vnd.sap.sapgui',
      title: 'Text Elements'
    }
  ]
}