Awesome
Ballerina S/4HANA Sales Connectors
S/4HANA is a robust enterprise resource planning (ERP) solution, designed for large-scale enterprises by SAP SE.
This repository encompasses all Ballerina packages pertaining to the S/4HANA sales submodule. Notably:
-
The
ballerinax/sap.s4hana.api_salesdistrict_srv
package provides APIs that enable seamless integration with the Sales District - Read API v1.0.0. The service contains sales district and sales district text nodes. -
The
ballerinax/sap.s4hana.api_salesorganization_srv
package provides APIs that enable seamless integration with the Sales Organization - Read API v1.0.0. The service allows users to read sales organization master data. -
The
ballerinax/sap.s4hana.api_sales_order_srv
package provides APIs that enable seamless integration with the Sales Order (A2X) API v1.0.0. The service allows to create, read, update, and delete sales orders. -
The
ballerinax/sap.s4hana.api_sd_sa_soldtopartydetn
package provides APIs that enable seamless integration with the Sold-to Party Assignment of Sales Scheduling Agreement - Read (A2X) v1.0.0. The service allows users to read sold-to party assignment of sales scheduling agreement master data. -
The
ballerinax/sap.s4hana.salesarea_0001
package provides APIs that enable seamless integration with the Sales Area - Read (A2X) v1.0.0. The service allows users to read sales areas. -
The
ballerinax/sap.s4hana.api_sd_incoterms_srv
package provides APIs that enable seamless integration with the Incoterm - Read (A2X) v1.0.0. The service allows users to read incoterms defined in the system. -
The
ballerinax/sap.s4hana.api_sales_inquiry_srv
package provides APIs that enable seamless integration with the Sales Inquiry - Read (A2X) API v1.0.0. The service allows to read Sales Inquiries. -
The
ballerinax/sap.s4hana.api_sales_quotation_srv
package provides APIs that enable seamless integration with the Sales Quotation (A2X) API v1.0.0. The service allows to create, read, update, and delete sales quotation. -
The
ballerinax/sap.s4hana.api_sales_order_simulation_srv
package provides APIs that enable seamless integration with the Sales Order - Simulate (A2X) API v1.0.0. The service gives you information about pricing, material availability, and the customer's credit limit. The simulated sales order is not saved. -
The
ballerinax/sap.s4hana.ce_salesorder_0001
package provides APIs that enable seamless integration with the Sales Order (A2X) API (ODatav4) v1.0.0. The service allows to create, read, update, and delete sales orders.
Issues and projects
The Issues and Projects tabs are disabled for this repository as this is part of the Ballerina library. To report bugs, request new features, start new discussions, view project boards, etc., visit the Ballerina library parent repository.
This repository only contains the source code for the package.
Build from the source
Prerequisites
-
Download and install Java SE Development Kit (JDK) version 17. You can download it from either of the following sources:
Note: After installation, remember to set the
JAVA_HOME
environment variable to the directory where JDK was installed. -
Download and install Ballerina Swan Lake.
-
Download and install Docker.
Note: Ensure that the Docker daemon is running before executing any tests.
Build options
Execute the commands below to build from the source.
-
To build all packages:
./gradlew clean build
-
To run the tests in all packages:
./gradlew clean test
-
To build the without the tests:
./gradlew clean build -x test
-
To build only one specific package
./gradlew clean :sales-ballerina:<api_name>:build
API Name Connector api_salesdistrict_srv ballerinax/sap.s4hana.api_salesdistrict_srv api_salesorganization_srv ballerinax/sap.s4hana.api_salesorganization_srv api_sales_order_srv ballerinax/sap.s4hana.api_sales_order_srv api_sd_sa_soldtopartydetn ballerinax/sap.s4hana.api_sd_sa_soldtopartydetn salesarea_0001 ballerinax/sap.s4hana.salesarea_0001 api_sd_incoterms_srv ballerinax/sap.s4hana.api_sd_incoterms_srv api_sales_inquiry_srv ballerinax/sap.s4hana.api_sales_inquiry_srv api_sales_quotation_srv ballerinax/sap.s4hana.api_sales_quotation_srv api_sales_order_simulation_srv ballerinax/sap.s4hana.api_sales_order_simulation_srv ce_salesorder_0001 ballerinax/sap.s4hana.ce_salesorder_0001 -
To run tests against different environment:
isTestOnLiveServer=true ./gradlew clean test
Note:
isTestOnLiveServer
is false by default, tests are run against mock server. -
To debug packages with a remote debugger:
./gradlew clean build -Pdebug=<port>
-
To debug with the Ballerina language:
./gradlew clean build -PbalJavaDebug=<port>
-
Publish the generated artifacts to the local Ballerina Central repository:
./gradlew clean build -PpublishToLocalCentral=true
-
Publish the generated artifacts to the Ballerina Central repository:
./gradlew clean build -PpublishToCentral=true
Contribute to Ballerina
As an open-source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
Code of conduct
All the contributors are encouraged to read the Ballerina Code of Conduct.
Useful links
- For more information go to the
sap
package. - For example demonstrations of the usage, go to Ballerina By Examples.
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.