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 sourcing & procurement submodule. Notably:
- The
ballerinax/sap.s4hana.api_inforecord_process_srv
package offers APIs for seamless integration with the Purchasing Info Record API v1.0.0. This synchronous inbound service allows the creation, modification, and deletion of purchasing info records, complete with conditions. The service encompasses general data, purchasing organization data, and conditions.
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.
-
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.
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 :procurement-ballerina:<api_name>:build
API Name Connector api_inforecord_process_srv ballerinax/sap.s4hana.api_inforecord_process_srv -
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
As an open-source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
All the contributors are encouraged to read the Ballerina Code of Conduct.
- 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.