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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@abapify/adt-rfc

v0.3.6

Published

SAP RFC transport for @abapify — SOAP-over-HTTP RFC implementation (/sap/bc/soap/rfc)

Readme

@abapify/adt-rfc

SOAP-over-HTTP RFC transport for SAP systems. Calls classic RFC function modules (BAPIs, STFC_CONNECTION, TH_USER_LIST, custom FMs, etc.) without requiring the native libsapnwrfc SDK — by tunnelling the call through SAP's built-in /sap/bc/soap/rfc endpoint.

This package lives outside the /sap/bc/adt/* URL space. RFC is a separate transport layer from ADT — that's why it's a separate package, not a schema/contract under @abapify/adt-client.

Install

bun add @abapify/adt-rfc

Usage

import { createAdtClient } from '@abapify/adt-client';
import { createRfcClient } from '@abapify/adt-rfc';

const adt = createAdtClient({
  baseUrl: 'https://my.sap.example.com',
  username: 'DEVELOPER',
  password: '…',
  client: '100',
});

const rfc = createRfcClient({
  fetch: (url, opts) => adt.fetch(url, opts),
  client: '100',
});

const resp = await rfc.call('STFC_CONNECTION', { REQUTEXT: 'hello' });
console.log(resp.ECHOTEXT); // → "hello"
console.log(resp.RESPTEXT); // → "SAP R/3 Rel. 7.55 Sysid: TRL …"

Parameter types

Parameters and responses are modelled as loose JSON trees:

| RFC type | TypeScript representation | | --------- | ------------------------------------- | | Scalar | string \| number \| boolean \| null | | Structure | { FIELD1: …, FIELD2: … } | | Table | [{ FIELD: … }, { FIELD: … }] |

Tables are serialised as SAP's <TABLE_NAME><item>…</item><item>…</item></TABLE_NAME> convention on the wire.

Errors

  • RfcSoapFault — the server returned a soap:Fault. Exposes faultcode, faultstring, and the raw response body.
  • RfcTransportUnavailable — the /sap/bc/soap/rfc endpoint returned 401/403/404/501. Some SAP systems disable SOAP-RFC; catch this to downgrade gracefully.

Limitations

  • SOAP-RFC only. Native libsapnwrfc binding (via node-rfc) is deliberately out of scope — track @abapify/adt-plugin-rfc-native for that future path.
  • Type encoding. SAP's SOAP-RFC wrapper does not round-trip every RFC data type perfectly. Binary fields come back as base64-looking strings; dates/times come back as SAP internal strings (YYYYMMDD, HHMMSS). Callers convert.
  • Authentication. Reuses the ADT client's session/CSRF/cookie state — no separate auth plumbing.

See also

  • Spec: docs/roadmap/epics/e13-startrfc.md
  • Reference implementation: tmp/sapcli-ref/sapcli/sap/rfc/