sap.s4hana.api_masterinspcharacteristic_srv
Module sap.s4hana.api_masterinspcharacteristic_srv
API
Definitions
ballerinax/sap.s4hana.api_masterinspcharacteristic_srv Ballerina library
Overview
SAP S/4HANA is a robust enterprise resource planning (ERP) solution, designed for large-scale enterprises by SAP SE. It covers core business processes such as finance, procurement, sales, and materials management, including quality management.
WSO2 SAP S/4HANA Master Inspection Characteristic provides a way to interact with the Master Inspection Characteristic - Read API. The service allows to read master inspection characteristics, the master data records that describe the quality inspection criteria for materials, with their settings, control indicators and texts.
Key Features
- Read master inspection characteristics with their settings and control indicators
- Read the language-dependent texts of master inspection characteristics
- Filter, sort and page results with OData query options
Setup guide
This connector uses Basic Authentication with an SAP S/4HANA Cloud communication user. Each S/4HANA API is
exposed through a communication scenario, so the user must be assigned to a communication arrangement for the
Inspection Master Data Integration (SAP_COM_0110) scenario before the connector can call it.
All the apps used below are in the Communication Management group of the SAP Fiori launchpad.

Step 1: Create a communication user
- Sign in to your SAP S/4HANA Cloud system as an administrator.
- Open the Maintain Communication Users app and choose New.
- Enter a user name and a description, set a password, and choose Create.
Note the user name and password. These are the credentials the connector uses.
Step 2: Create a communication system
-
Open the Communication Systems app and choose New.
-
Enter a system ID and a system name, and choose Create.

-
Under General > Technical Data, enter a host name and a Logical System (an uppercase ID of up to 10 characters, for example,
INTEGRATOR). Some scenarios refuse to activate when the logical system is empty. -
Under Users for Inbound Communication, add the communication user from Step 1 with the User Name and Password authentication method.

-
Choose Save.
Step 3: Create a communication arrangement
-
Open the Communication Arrangements app and choose New.
-
In the Scenario value help, search for Inspection Master Data Integration and select
SAP_COM_0110. This is the scenario that exposesAPI_MASTERINSPCHARACTERISTIC_SRV, the service this connector calls.
-
Enter a unique name for the arrangement and choose Create.

-
Select the communication system from Step 2. The communication user from Step 1 is filled in as the inbound user. If the scenario lists outbound services that the integration does not need, clear their Active check boxes so that no outbound user is required.

-
Choose Save.
Step 4: Note the hostname
Open the saved arrangement. The API-URL next to Own SAP Cloud System shows the hostname
(<unique id>-api.s4hana.cloud.sap).

You now have everything the connector needs:
- hostname - the API hostname, for example,
my123456-api.s4hana.cloud.sap - username - the communication user name
- password - the communication user password
Quickstart
To use the sap.s4hana.api_masterinspcharacteristic_srv connector in your Ballerina application, modify the .bal file as follows:
Step 1: Import the module
Import the sap.s4hana.api_masterinspcharacteristic_srv module.
import ballerinax/sap.s4hana.api_masterinspcharacteristic_srv as masterinspchar;
Step 2: Instantiate a new connector
Use the hostname and credentials to initiate a client.
configurable string hostname = ?; configurable string username = ?; configurable string password = ?; masterinspchar:Client masterinspcharClient = check new ( { auth: { username, password } }, hostname );
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
masterinspchar:CollectionOfA_InspectionSpecificationWrapper listOfInspectionSpecs = check masterinspcharClient->listA_InspectionSpecifications();
Step 4: Run the Ballerina application
bal run
Clients
sap.s4hana.api_masterinspcharacteristic_srv: Client
A master inspection characteristic is a master data record that describes the quality inspection criteria for materials. This service enables you to retrieve, for example, the settings and the control indicators defined for a master inspection characteristic.
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string hostname, int port)- config ConnectionConfig - The configurations to be used when initializing the
connector
- hostname string -
- port int 443 -
getA_InspectionSpecification
function getA_InspectionSpecification(string InspectionSpecification, string InspectionSpecificationVersion, string InspectionSpecificationPlant, map<string|string[]> headers, *GetA_InspectionSpecificationQueries queries) returns A_InspectionSpecificationWrapper|errorReads a specific master inspection characteristic.
Parameters
- InspectionSpecification string - Master Inspection Characteristic
- InspectionSpecificationVersion string - Version Number of Master Inspection Characteristic
- InspectionSpecificationPlant string - Plant for Master Inspection Characteristic
- queries *GetA_InspectionSpecificationQueries - Queries to be sent with the request
Return Type
- A_InspectionSpecificationWrapper|error - Retrieved entity
getA_InspectionSpecificationText
function getA_InspectionSpecificationText(string InspectionSpecification, string InspectionSpecificationVersion, string InspectionSpecificationPlant, string Language, map<string|string[]> headers, *GetA_InspectionSpecificationTextQueries queries) returns A_InspectionSpecificationTextWrapper|errorReads the text of a master inspection characteristic in a specific language.
Parameters
- InspectionSpecification string - Master Inspection Characteristic
- InspectionSpecificationVersion string - Version Number of Inspection Method
- InspectionSpecificationPlant string - Plant for Master Inspection Characteristic
- Language string - Language Key
- queries *GetA_InspectionSpecificationTextQueries - Queries to be sent with the request
Return Type
- A_InspectionSpecificationTextWrapper|error - Retrieved entity
getInspectionSpecificationOfA_InspectionSpecificationText
function getInspectionSpecificationOfA_InspectionSpecificationText(string InspectionSpecification, string InspectionSpecificationVersion, string InspectionSpecificationPlant, string Language, map<string|string[]> headers, *GetInspectionSpecificationOfA_InspectionSpecificationTextQueries queries) returns A_InspectionSpecificationWrapper|errorReads master inspection characteristic texts with associations to master inspection characteristics.
Parameters
- InspectionSpecification string - Master Inspection Characteristic
- InspectionSpecificationVersion string - Version Number of Inspection Method
- InspectionSpecificationPlant string - Plant for Master Inspection Characteristic
- Language string - Language Key
- queries *GetInspectionSpecificationOfA_InspectionSpecificationTextQueries - Queries to be sent with the request
Return Type
- A_InspectionSpecificationWrapper|error - Retrieved entity
listA_InspectionSpecificationTexts
function listA_InspectionSpecificationTexts(map<string|string[]> headers, *ListA_InspectionSpecificationTextsQueries queries) returns CollectionOfA_InspectionSpecificationTextWrapper|errorReads all master inspection characteristic texts.
Parameters
- queries *ListA_InspectionSpecificationTextsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_InspectionSpecificationTextWrapper|error - Retrieved entities
listA_InspectionSpecifications
function listA_InspectionSpecifications(map<string|string[]> headers, *ListA_InspectionSpecificationsQueries queries) returns CollectionOfA_InspectionSpecificationWrapper|errorReads a set of master inspection characteristics.
Parameters
- queries *ListA_InspectionSpecificationsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_InspectionSpecificationWrapper|error - Retrieved entities
listTextsOfA_InspectionSpecification
function listTextsOfA_InspectionSpecification(string InspectionSpecification, string InspectionSpecificationVersion, string InspectionSpecificationPlant, map<string|string[]> headers, *ListTextsOfA_InspectionSpecificationQueries queries) returns CollectionOfA_InspectionSpecificationTextWrapper|errorReads master inspection characteristics with text associations.
Parameters
- InspectionSpecification string - Master Inspection Characteristic
- InspectionSpecificationVersion string - Version Number of Master Inspection Characteristic
- InspectionSpecificationPlant string - Plant for Master Inspection Characteristic
- queries *ListTextsOfA_InspectionSpecificationQueries - Queries to be sent with the request
Return Type
- CollectionOfA_InspectionSpecificationTextWrapper|error - Retrieved entities
performBatchOperation
function performBatchOperation(Request request, map<string|string[]> headers) returns Response|errorSend a group of requests
Parameters
- request Request - Batch request
Records
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecification
Fields
- InspectionSpecification? string -
- InspectionSpecificationVersion? string - Version Number of Master Inspection Characteristic
- InspectionSpecificationPlant? string - Plant for Master Inspection Characteristic
- Plant? string? -
- ValidityStartDate? string? - Valid-From Date
- InspectionSpecificationSrchTxt? string? -
- InspSpecGlobalName? string? - Characteristic Description for Quality Data Exchange
- InspectionSpecificationStatus? string? - Status of Master Record
- InspSpecTransferType? string? - Copy Model/Reference Characteristic
- InspSpecCreatedByUser? string? - Name of User Who Created the Data Record
- InspSpecCreationDate? string? - System Date on Which Data Record Was Created
- InspSpecChangedByUser? string? - Name of User Who Last Changed Data Record
- InspSpecChangeDate? string? - System Date on Which Data Record Was Changed
- InspSpecIsQuantitative? boolean? -
- InspSpecCharacteristicType? string? -
- InspSpecIsMeasuredValueRqd? string? - Measured Values Must Be Recorded
- InspSpecIsSelectedSetRequired? string? - Reference to Characteristic Attribute Required
- InspSpecIsUpperLimitRequired? string? - Upper Specification Limit
- InspSpecIsLowerLimitRequired? string? - Lower Specification Limit
- InspSpecIsTargetValueInLimit? string? -
- InspectionScope? string? -
- InspSpecIsLongTermInspection? string? -
- InspSpecRecordingType? string? -
- InspResultIsDocumentationRqd? string? - Documentation Required for Inspection Result
- InspSpecCharcCategory? string? -
- InspSpecIsDefectsRecgAutomatic? string? - Defects Recording Automatically Called Up
- InspSpecIsSampleQtyAdditive? string? - Inspection Sample Quantity Is Added
- InspSpecIsDestructive? string? - Destructive Inspection
- InspSpecResultCalculation? string? -
- InspSpecIsSamplingProcedRqd? string? - Sampling Procedure Is Required
- InspSpecIsScrapRelevant? string? - Characteristic Relevant for Quality Score and Scrap Share
- InspSpecIsTestEquipmentRqd? string? - Assignment of Test Equipment Required
- InspSpecIsChgDocRequired? string? - Create Change Documents During Results Recording
- InspSpecIsControlChartUsed? string? -
- InspSpecPrintControl? string? -
- InspSpecImportanceCode? string? -
- InspectorQualification? string? - Inspector Qualification
- InspSpecInformationField1? string? - Text Line for Additional Information
- InspSpecInformationField2? string? - Text Line for Additional Information
- InspSpecInformationField3? string? - Text Line for Additional Information
- QltyMstrDataAuthorizationGroup? string? - Authorization Group QM Master Data
- InspToleranceSpecification? string? -
- InspSpecDecimalPlaces? int? - Number of Places to the Right of a Decimal Point (Accuracy)
- InspectionSpecificationUnit? string? - Unit of Measurement in Which Quantitative Data Is Stored
- InspSpecificationUnitTechName? string? - External Unit of Measurement for Quantitative Data
- InspSpecificationUnitISOCode? string? - ISO Code for Unit of Measurement for Quantitative Data
- InspSpecificationUnitSAPCode? string? - SAP Code for Unit of Measurement for Quantitative Data
- InspSpecHasTargetValue? string? - Value Not Initial If Set
- InspSpecHasLowerLimit? string? - Value Not Initial If Set
- InspSpecHasLowrPlausibilityLmt? string? - Value Not Initial If Set
- InspSpecHasFirstLowerSpecLimit? string? - Value Not Initial If Set
- InspSpecHasSecondLowrSpecLimit? string? - Value Not Initial If Set
- InspSpecHasLowrSpecLimitChange? string? - Value Not Initial If Set
- InspSpecHasUpperLimit? string? - Value Not Initial If Set
- InspSpecHasUprPlausibilityLmt? string? - Value Not Initial If Set
- InspSpecHasFirstUpperSpecLimit? string? - Value Not Initial If Set
- InspSpecHasSecondUprSpecLimit? string? - Value Not Initial If Set
- InspSpecHasUprSpecLimitChange? string? - Value Not Initial If Set
- InspSpecToleranceChgValidFrom? string? - Date from Which the Tolerance Change Is Valid
- InspSpecToleranceChgValidTo? string? - Date Until Which the Tolerance Change Is Valid
- InspSpecDefectCodeGrpRejection? string? - Defect Code Group for General Rejection
- InspSpecDefectCodeRejection? string? - Defect Code for Rejection: General
- InspSpecDefectCodeGrpRjcnUpper? string? - Defect Code Group for Rejection at Upper Tolerance
- InspSpecDefectCodeRjcnUpper? string? - Defect Code for Rejection at Upper Specification Limit
- InspSpecDefectCodeGrpRjcnLower? string? - Defect Code Group for Rejection at Lower Tolerance
- InspSpecDefectCodeRjcnLower? string? - Defect Code for Rejection at Lower Specification Limit
- CharacteristicInternalID? string? - Internal characteristic
- DefectFractionEstimationProced? string? -
- to_Text? A_InspectionSpecification_to_Text -
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecification_to_Text
Fields
- results? A_InspectionSpecificationText[] -
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationText
Fields
- InspectionSpecification? string -
- InspectionSpecificationVersion? string - Version Number of Inspection Method
- InspectionSpecificationPlant? string - Plant for Master Inspection Characteristic
- Language? string -
- InspectionSpecificationText? string? - Text of Master Inspection Characteristic
- to_InspectionSpecification? A_InspectionSpecification -
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationTextWrapper
Fields
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationWrapper
Fields
sap.s4hana.api_masterinspcharacteristic_srv: CollectionOfA_InspectionSpecification
Fields
- __count? count -
- results? A_InspectionSpecification[] -
sap.s4hana.api_masterinspcharacteristic_srv: CollectionOfA_InspectionSpecificationText
Fields
- __count? count -
- results? A_InspectionSpecificationText[] -
sap.s4hana.api_masterinspcharacteristic_srv: CollectionOfA_InspectionSpecificationTextWrapper
Fields
sap.s4hana.api_masterinspcharacteristic_srv: CollectionOfA_InspectionSpecificationWrapper
Fields
sap.s4hana.api_masterinspcharacteristic_srv: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig|CredentialsConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
sap.s4hana.api_masterinspcharacteristic_srv: GetA_InspectionSpecificationQueries
Represents the Queries record for the operation: getA_InspectionSpecification
Fields
- \$expand? A_InspectionSpecificationExpandOptions - Expand related entities, see Expand
- \$select? A_InspectionSpecificationSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_masterinspcharacteristic_srv: GetA_InspectionSpecificationTextQueries
Represents the Queries record for the operation: getA_InspectionSpecificationText
Fields
- \$expand? A_InspectionSpecificationTextExpandOptions - Expand related entities, see Expand
- \$select? A_InspectionSpecificationTextSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_masterinspcharacteristic_srv: GetInspectionSpecificationOfA_InspectionSpecificationTextQueries
Represents the Queries record for the operation: getInspectionSpecificationOfA_InspectionSpecificationText
Fields
- \$expand? InspectionSpecificationOfA_InspectionSpecificationTextExpandOptions - Expand related entities, see Expand
- \$select? InspectionSpecificationOfA_InspectionSpecificationTextSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_masterinspcharacteristic_srv: ListA_InspectionSpecificationsQueries
Represents the Queries record for the operation: listA_InspectionSpecifications
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? A_InspectionSpecificationOrderByOptions - Order items by property values, see Sorting
- \$expand? A_InspectionSpecificationExpandOptions - Expand related entities, see Expand
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? A_InspectionSpecificationSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_masterinspcharacteristic_srv: ListA_InspectionSpecificationTextsQueries
Represents the Queries record for the operation: listA_InspectionSpecificationTexts
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? A_InspectionSpecificationTextOrderByOptions - Order items by property values, see Sorting
- \$expand? A_InspectionSpecificationTextExpandOptions - Expand related entities, see Expand
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? A_InspectionSpecificationTextSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_masterinspcharacteristic_srv: ListTextsOfA_InspectionSpecificationQueries
Represents the Queries record for the operation: listTextsOfA_InspectionSpecification
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? A_InspectionSpecificationTextOrderByOptions - Order items by property values, see Sorting
- \$expand? A_InspectionSpecificationTextExpandOptions - Expand related entities, see Expand
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? A_InspectionSpecificationTextSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_masterinspcharacteristic_srv: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://{host}:{port}") - Refresh URL
Array types
sap.s4hana.api_masterinspcharacteristic_srv: InspectionSpecificationOfA_InspectionSpecificationTextExpandOptions
InspectionSpecificationOfA_InspectionSpecificationTextExpandOptions
sap.s4hana.api_masterinspcharacteristic_srv: InspectionSpecificationOfA_InspectionSpecificationTextSelectOptions
InspectionSpecificationOfA_InspectionSpecificationTextSelectOptions
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationTextOrderByOptions
A_InspectionSpecificationTextOrderByOptions
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationSelectOptions
A_InspectionSpecificationSelectOptions
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationTextExpandOptions
A_InspectionSpecificationTextExpandOptions
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationExpandOptions
A_InspectionSpecificationExpandOptions
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationOrderByOptions
A_InspectionSpecificationOrderByOptions
sap.s4hana.api_masterinspcharacteristic_srv: A_InspectionSpecificationTextSelectOptions
A_InspectionSpecificationTextSelectOptions
String types
sap.s4hana.api_masterinspcharacteristic_srv: count
count
The number of entities in the collection. Available when using the $inlinecount query option.
Import
import ballerinax/sap.s4hana.api_masterinspcharacteristic_srv;Other versions
1.0.0
Metadata
Released date: 1 day ago
Version: 1.0.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.13.0
GraalVM compatible: Yes
Pull count
Total: 1
Current verison: 1
Weekly downloads
Keywords
Name/SAP S/4HANA Master Inspection Characteristic
Type/Connector
Vendor/SAP
Area/ERP & Business Operations
Business Management/ERP
Cost/Paid
S/4HANA
Quality Management
QM
Quality Planning
Master Inspection Characteristic
Contributors