Enterprise Integration

SAP BTP & Cloud Barcode RESTapi

Scale your barcode labeling strategy using SAP BTP Integration Suite. This guide covers the end-to-end technical lifecycle from connectivity to script-based transformation.

OAuth 2.0 Security

BTP Key Store manages Bearer tokens, eliminating the need for hardcoded API keys in S/4HANA.

Groovy Processing

Dynamically calculate barcode dimensions and formats based on S/4HANA OData payloads.

Multi-Format Output

Directly stream SVG for Fiori web apps or high-res PNG for warehouse thermal printers.

1

Subaccount Connectivity

In your SAP BTP Subaccount, navigate to Connectivity > Destinations. Define a new HTTP destination to route traffic through the SAP cloud backbone.

PropertyValue
NameBARCODESOFT_CLOUD
URLhttps://www.barcodesoft.com
AuthenticationNoAuthentication (Token managed in iFlow)
2

Dynamic Request Processing (Groovy)

Within your SAP Integration Suite iFlow, use a Groovy Script to ensure the barcode data is URL-encoded and GS1 compliant before hitting the endpoint.

import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;

def Message processData(Message message) {
    def map = message.getHeaders();
    def rawData = map.get("S4_Material_Batch"); // Incoming from S/4HANA
    
    // Format GS1 data: (01)GTIN(10)BATCH
    def encodedData = java.net.URLEncoder.encode(rawData, "UTF-8");
    message.setHeader("EncodedBarcodeData", encodedData);
    
    return message;
}
3

Enterprise Error Handling

Robust integrations must handle expired tokens or invalid data inputs. Configure your iFlow **Exception Subprocess** to capture these states:

HTTP 401 (Unauthorized)

Trigger the "Auth" local integration process to refresh the Bearer token automatically.

HTTP 400 (Bad Request)

Log the payload to the MPL (Message Processing Log) to identify illegal GS1 characters.

Integration Best Practices

  • Caching: Store access tokens in BTP Variables for their full 3600s duration.
  • SVG over PNG: Use SVG for Fiori UI to ensure crisp scaling on mobile devices.
  • DPI Settings: Use dpi=600 for small 2D DataMatrix codes in Adobe Forms.
  • API Management: Apply a Quota Policy to prevent API overuse during peak batch jobs.

Instant Access to Barcodesoft Cloud

A subscription provides unlimited access to GS1-128, QR Code, DataMatrix, and Code 128 generation for your SAP integration. Credentials delivered immediately via email[cite: 3, 4].

Instant Setup OAuth 2.0 Secure[cite: 3, 4] 600 DPI Ready[cite: 3, 4]

Technical Assistance

Our engineering team specializes in SAP BTP, Integration Suite (CPI), and ABAP scenarios to help you troubleshoot complex integrations.

Contact Support

Ready to Go Live?

Accelerate your project with our pre-configured iFlow templates and production-ready deployment checklists.