Module api_customer_returns_delivery_srv_0002

osa/api_customer_returns_delivery_srv_0002

0.1.0

Overview

S/4HANA is a robust enterprise resource planning (ERP) solution, designed for large-scale enterprises by SAP SE.

The ballerinax/sap.s4hana.api_customer_returns_delivery_srv_0002 package offers APIs for seamless integration with the Customer Returns Delivery API v2.1.0. This service enables users to read, create, update, and delete customer returns deliveries.

Setup guide

  1. Sign in to your S/4HANA dashboard.

  2. Under the Communication Management section, click on the Display Communications Scenario title.

    Display Scenarios

  3. In the search bar, type Delivery Processing Integration and select the corresponding scenario from the results.

    Search Sales Order

  4. In the top right corner of the screen, click on Create Communication Arrangement.

    Click Create Arrangement

  5. Enter a unique name for the arrangement.

    Give Arrangement Name

  6. Choose an existing Communication System from the dropdown menu and save your arrangement.

    Select Existing Communication Arrangement

  7. The hostname (<unique id>-api.s4hana.cloud.sap) will be displayed in the top right corner of the screen.

    View Hostname

Quickstart

To use the sap.s4hana.api_customer_returns_delivery_srv_0002 connector in your Ballerina application, modify the .bal file as follows:

Step 1: Import the module

Import the sap.s4hana.api_customer_returns_delivery_srv_0002 module.

Copy
mport ballerinax/sap.s4hana.api_customer_returns_delivery_srv_0002 as returnDel;

Step 2: Instantiate a new connector

Use the hostname and credentials to initiate a client

Copy
onfigurable string hostname = ?;
onfigurable string username = ?;
onfigurable string password = ?;

eturnDel:Client returnDelClient = check new (
   hostname = hostname,
   config = {
       auth: {
           username,
           password
       }
   }
;

Step 3: Invoke the connector operation

Now, utilize the available connector operations.

Copy
eturnDel:CollectionOfA_ReturnsDeliveryItemWrapper listReturnsDeliveryItems = check returnDelClient->listA_ReturnsDeliveryItems();

Step 4: Run the Ballerina application

Copy
al run

Import

import osa/api_customer_returns_delivery_srv_0002;Copy

Metadata

Released date: 4 months ago

Version: 0.1.0


Compatibility

Platform: any

Ballerina version: 2201.9.0

GraalVM compatible: Yes


Pull count

Total: 3

Current verison: 3


Weekly downloads


Other versions

0.1.0