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 Quality Management submodule. Notably:
-
The
ballerinax/sap.s4hana.api_inspectionlot_srv
package offers APIs for seamless integration with the Inspection Lot API v1.2.0.In the SAP system, you process quality inspections on the basis of inspection lots. With this service it is possible, for example, to update inspection lot header data or to create inspection results and usage decisions. -
The
ballerinax/sap.s4hana.api_inspectionmethod_srv
package offers APIs for seamless integration with the Inspection Method - Read API v2.0.0.An inspection method is a master data record that describes the procedure for performing the quality inspection of a characteristic. This service enables you to retrieve inspection methods with their settings and administrative data. -
The
ballerinax/sap.s4hana.api_inspectionplan_srv
package offers APIs for seamless integration with the Inspection Plan API v1.0.0. This service enables external systems to create, read, update, and delete inspection plans. -
The
ballerinax/sap.s4hana.api_masterinspcharacteristic_srv
package offers APIs for seamless integration with the Master Inspection Characteristic - Read API v2.0.0 .This service allows to read quality inspection specifications of the type master inspection characteristic. A master inspection characteristic is a master data record that describes the quality inspection criteria for materials. -
The
ballerinax/sap.s4hana.api_qualityinforecord_srv
package offers APIs for seamless integration with the Quality Info Record API v1.2.0. This service allows to create, read, update, and delete data related to quality info records and first article inspection. -
The
ballerinax/sap.s4hana.api_charcattributecatalog_srv
package offers APIs for seamless integration with the Characteristic Attribute Catalog - Read API v1.0.0 .This service allows to read plant-specific selected sets with their codes that are used to record inspection results for qualitative characteristics, for example, the codes 01 (Smooth) and 02 (Rough) for the characteristic Surface.
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 :qm-ballerina:<api_name>:build
API Name Connector api_inspectionlot_srv ballerinax/sap.s4hana.api_inspectionlot_srv api_inspectionplan_srv ballerinax/sap.s4hana.api_inspectionplan_srv api_masterinspcharacteristic_srv ballerinax/sap.s4hana.api_masterinspcharacteristic_srv api_inspectionmethod_srv ballerinax/sap.s4hana.api_inspectionmethod_srv api_qualityinforecord_srv ballerinax/sap.s4hana.api_qualityinforecord_srv api_charcattributecatalog_srv ballerinax/sap.s4hana.api_charcattributecatalog_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.