sap.s4hana.api_slspricingconditionrecord_srv
Modules
sap.s4hana.api_slspricingconditionrecord_srv
sap.s4hana.api_slspricingconditionrecord_srv.oasModule sap.s4hana.api_slspricingconditionrecord_srv
API
ballerinax/sap.s4hana.api_slspricingconditionrecord_srv Ballerina library
Overview
S/4HANA is a robust enterprise resource planning (ERP) solution, designed for large-scale enterprises by SAP SE.
The SAP S/4HANA Sales connector provides APIs that enable seamless integration with the Condition Record for Pricing in Sales API v1.2.0. The service allows to create, read, update, and delete condition records inside condition record, validity of condition record, pricing scale, and condition supplement.
Key Features
- Create, read, update, and delete pricing condition records in SAP S/4HANA
- Seamless integration with the Condition Record for Pricing in Sales API v1.2.0
- Support for basic and OAuth 2.0 authentication
- Batch operations, so a whole price list is published in one round trip
Setup guide
-
Sign in to your S/4HANA dashboard.
-
Under the
Communication Managementsection, click on theDisplay Communications Scenariotitle.
-
In the search bar, type
Pricing Data Integrationand select the corresponding scenario from the results.
-
In the top right corner of the screen, click on
Create Communication Arrangement.
-
Enter a unique name for the arrangement.

-
Choose an existing
Communication Systemfrom the dropdown menu and save your arrangement.
-
The hostname (
<unique id>-api.s4hana.cloud.sap) will be displayed in the top right corner of the screen.
Quickstart
To use the sap.s4hana.api_slspricingconditionrecord_srv connector in your Ballerina application, modify the .bal file as follows:
Step 1: Import the module
Import the sap.s4hana.api_slspricingconditionrecord_srv module.
import ballerinax/sap.s4hana.api_slspricingconditionrecord_srv as conditionrecord; import ballerinax/sap.s4hana.api_slspricingconditionrecord_srv.oas;
Step 2: Instantiate a new connector
Use the hostname and credentials to initiate a client
configurable string hostname = ?; configurable string username = ?; configurable string password = ?; conditionrecord:Client conditionRecordClient = check new ( { auth: { username, password } }, hostname );
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
oas:CollectionOfA_SlsPrcgConditionRecordWrapper listASlsPrcgConditionRecord = check conditionRecordClient->listA_SlsPrcgConditionRecords();
Step 4: Run the Ballerina application
bal run
Examples
The S/4 HANA Sales and Distribution Ballerina connectors provide practical examples illustrating usage in various scenarios. Explore these examples, covering use cases like accessing S/4HANA Sales Order (A2X) API.
-
Salesforce to S/4HANA Integration - Demonstrates leveraging the
sap.s4hana.api_sales_order_srv:Clientin Ballerina for S/4HANA API interactions. It specifically showcases how to respond to a Salesforce Opportunity Close Event by automatically generating a Sales Order in the S/4HANA SD module. -
Shopify to S/4HANA Integration - Details the integration process between Shopify, a leading e-commerce platform, and SAP S/4HANA, a comprehensive ERP system. The objective is to automate SAP sales order creation for new orders placed on Shopify, enhancing efficiency and accuracy in order management.
Functions
batchCreate
function batchCreate(string entitySet, BatchEntity[] entities) returns BatchRequest[]Turns a plain array of entities into create requests against one entity set.
performBatchOperation applies this on its own when it is given entities rather than requests, so it is
only needed when the requests are assembled up front.
Parameters
- entitySet string - Name of the target entity set, such as
oas:A_SlsPrcgConditionRecord
- entities BatchEntity[] - Entities to create
Return Type
- BatchRequest[] - One create request per entity, in the given order
Clients
sap.s4hana.api_slspricingconditionrecord_srv: Client
The sap.s4hana.api_slspricingconditionrecord_srv client.
Wraps the generated oas client, which is kept as pristine, regeneratable code in the oas
submodule, and adds the one thing a generated client cannot provide: a usable $batch operation.
A batch body is a multipart/mixed envelope whose parts are complete HTTP requests, which is a
transport encoding rather than a data shape, so the OpenAPI contract cannot describe it and the
generated operation would otherwise hand back a raw http:Request.
Every other operation is forwarded to the oas client unchanged.
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 - Hostname of the S/4HANA system, without the scheme
- port int 443 - Port the service is reachable on
performBatchOperation
function performBatchOperation(BatchRequest[]|BatchEntity[] requests, string entitySet, map<string|string[]> headers, boolean atomic) returns BatchResult[]|errorSend a group of requests in a single round trip.
Entities may be passed directly, in which case each one is created in entitySet. Pass
BatchRequest values instead to control the method, the target and the headers per request,
which is what updates, deletes and reads need.
Parameters
- requests BatchRequest[]|BatchEntity[] - Entities to create, or requests to send. Reads are sent as standalone parts, since OData does not allow them inside a change set
- entitySet string (default "A_SlsPrcgConditionRecord") - Entity set the entities are created in. Ignored when
BatchRequestvalues are passed
- atomic boolean (default false) - Whether every write belongs to a single transaction. By default each write gets its own change set, so that a rejected request does not roll back the others
Return Type
- BatchResult[]|error - The outcome of each request, in the order they were sent, or an error if the batch
itself was rejected. When
atomicis set a failed change set answers with a single error result for the whole transaction, so fewer results than requests can come back
listA_SlsPrcgCndnRecdSuplmnts
function listA_SlsPrcgCndnRecdSuplmnts(map<string|string[]> headers, *ListA_SlsPrcgCndnRecdSuplmntsQueries queries) returns CollectionOfA_SlsPrcgCndnRecdSuplmntWrapper|errorReads all condition supplements in the system.
Parameters
- queries *ListA_SlsPrcgCndnRecdSuplmntsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecdSuplmntWrapper|error - Retrieved entities
createA_SlsPrcgCndnRecdSuplmnt
function createA_SlsPrcgCndnRecdSuplmnt(CreateA_SlsPrcgCndnRecdSuplmnt payload, map<string|string[]> headers) returns A_SlsPrcgCndnRecdSuplmntWrapper|errorCreates one or more condition supplements.
Parameters
- payload CreateA_SlsPrcgCndnRecdSuplmnt - New entity
Return Type
- A_SlsPrcgCndnRecdSuplmntWrapper|error - Created entity
getA_SlsPrcgCndnRecdSuplmnt
function getA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, map<string|string[]> headers, *GetA_SlsPrcgCndnRecdSuplmntQueries queries) returns A_SlsPrcgCndnRecdSuplmntWrapper|errorReads a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- queries *GetA_SlsPrcgCndnRecdSuplmntQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgCndnRecdSuplmntWrapper|error - Retrieved entity
deleteA_SlsPrcgCndnRecdSuplmnt
function deleteA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, map<string|string[]> headers) returns error?Deletes a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
Return Type
- error? - Success
patchA_SlsPrcgCndnRecdSuplmnt
function patchA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, Modified\ A_SlsPrcgCndnRecdSuplmntType payload, map<string|string[]> headers) returns error?Updates a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- payload Modified\ A_SlsPrcgCndnRecdSuplmntType - New property values
Return Type
- error? - Success
listSlsPrcgCndnRecdValiditiesOfA_SlsPrcgCndnRecdSuplmnt
function listSlsPrcgCndnRecdValiditiesOfA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, map<string|string[]> headers, *ListSlsPrcgCndnRecdValiditiesOfA_SlsPrcgCndnRecdSuplmntQueries queries) returns CollectionOfA_SlsPrcgCndnRecdValidityWrapper|errorReads validity of the condition record for a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- queries *ListSlsPrcgCndnRecdValiditiesOfA_SlsPrcgCndnRecdSuplmntQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecdValidityWrapper|error - Retrieved entities
listSlsPrcgCndnRecordScalesOfA_SlsPrcgCndnRecdSuplmnt
function listSlsPrcgCndnRecordScalesOfA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, map<string|string[]> headers, *ListSlsPrcgCndnRecordScalesOfA_SlsPrcgCndnRecdSuplmntQueries queries) returns CollectionOfA_SlsPrcgCndnRecordScaleWrapper|errorReads the pricing scales of a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- queries *ListSlsPrcgCndnRecordScalesOfA_SlsPrcgCndnRecdSuplmntQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecordScaleWrapper|error - Retrieved entities
createSlsPrcgCndnRecordScaleOfA_SlsPrcgCndnRecdSuplmnt
function createSlsPrcgCndnRecordScaleOfA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, CreateA_SlsPrcgCndnRecordScale payload, map<string|string[]> headers) returns A_SlsPrcgCndnRecordScaleWrapper|errorCreates one or more pricing scales for a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- payload CreateA_SlsPrcgCndnRecordScale - New entity
Return Type
- A_SlsPrcgCndnRecordScaleWrapper|error - Created entity
listSlsPrcgCndnSupplementTextsOfA_SlsPrcgCndnRecdSuplmnt
function listSlsPrcgCndnSupplementTextsOfA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, map<string|string[]> headers, *ListSlsPrcgCndnSupplementTextsOfA_SlsPrcgCndnRecdSuplmntQueries queries) returns CollectionOfA_SlsPrcgCndnSupplementTextWrapper|errorReads the pricing supplement texts of a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- queries *ListSlsPrcgCndnSupplementTextsOfA_SlsPrcgCndnRecdSuplmntQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnSupplementTextWrapper|error - Retrieved entities
createSlsPrcgCndnSupplementTextOfA_SlsPrcgCndnRecdSuplmnt
function createSlsPrcgCndnSupplementTextOfA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, CreateA_SlsPrcgCndnSupplementText payload, map<string|string[]> headers) returns A_SlsPrcgCndnSupplementTextWrapper|errorCreates one or more pricing supplement texts for a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- payload CreateA_SlsPrcgCndnSupplementText - New entity
Return Type
- A_SlsPrcgCndnSupplementTextWrapper|error - Created entity
getSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdSuplmnt
function getSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdSuplmnt(string ConditionRecord, string ConditionSequentialNumber, map<string|string[]> headers, *GetSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdSuplmntQueries queries) returns A_SlsPrcgConditionRecordWrapper|errorReads the condition record for a specific condition supplement.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- queries *GetSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdSuplmntQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgConditionRecordWrapper|error - Retrieved entity
listA_SlsPrcgCndnRecdValidities
function listA_SlsPrcgCndnRecdValidities(map<string|string[]> headers, *ListA_SlsPrcgCndnRecdValiditiesQueries queries) returns CollectionOfA_SlsPrcgCndnRecdValidityWrapper|errorReads validity of all condition records in the system.
Parameters
- queries *ListA_SlsPrcgCndnRecdValiditiesQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecdValidityWrapper|error - Retrieved entities
getA_SlsPrcgCndnRecdValidity
function getA_SlsPrcgCndnRecdValidity(string ConditionRecord, string ConditionValidityEndDate, map<string|string[]> headers, *GetA_SlsPrcgCndnRecdValidityQueries queries) returns A_SlsPrcgCndnRecdValidityWrapper|errorReads the validity of a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionValidityEndDate string - Validity end date of the condition record
- queries *GetA_SlsPrcgCndnRecdValidityQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgCndnRecdValidityWrapper|error - Retrieved entity
patchA_SlsPrcgCndnRecdValidity
function patchA_SlsPrcgCndnRecdValidity(string ConditionRecord, string ConditionValidityEndDate, Modified\ A_SlsPrcgCndnRecdValidityType payload, map<string|string[]> headers) returns error?Updates the validity period of a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionValidityEndDate string - Validity end date of the condition record
- payload Modified\ A_SlsPrcgCndnRecdValidityType - New property values
Return Type
- error? - Success
listSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgCndnRecdValidity
function listSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgCndnRecdValidity(string ConditionRecord, string ConditionValidityEndDate, map<string|string[]> headers, *ListSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgCndnRecdValidityQueries queries) returns CollectionOfA_SlsPrcgCndnRecdSuplmntWrapper|errorReads the condition supplements for a specific condition record validity period.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionValidityEndDate string - Validity end date of the condition record
- queries *ListSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgCndnRecdValidityQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecdSuplmntWrapper|error - Retrieved entities
createSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnRecdValidity
function createSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnRecdValidity(string ConditionRecord, string ConditionValidityEndDate, CreateA_SlsPrcgCndnRecdSuplmnt payload, map<string|string[]> headers) returns A_SlsPrcgCndnRecdSuplmntWrapper|errorCreates one or more condition supplements for a specific condition record validity period.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionValidityEndDate string - Validity end date of the condition record
- payload CreateA_SlsPrcgCndnRecdSuplmnt - New entity
Return Type
- A_SlsPrcgCndnRecdSuplmntWrapper|error - Created entity
getSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdValidity
function getSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdValidity(string ConditionRecord, string ConditionValidityEndDate, map<string|string[]> headers, *GetSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdValidityQueries queries) returns A_SlsPrcgConditionRecordWrapper|errorReads the condition record for a specific condition record validity period.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionValidityEndDate string - Validity end date of the condition record
- queries *GetSlsPrcgConditionRecordOfA_SlsPrcgCndnRecdValidityQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgConditionRecordWrapper|error - Retrieved entity
listA_SlsPrcgCndnRecordScales
function listA_SlsPrcgCndnRecordScales(map<string|string[]> headers, *ListA_SlsPrcgCndnRecordScalesQueries queries) returns CollectionOfA_SlsPrcgCndnRecordScaleWrapper|errorReads all pricing scales in the system.
Parameters
- queries *ListA_SlsPrcgCndnRecordScalesQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecordScaleWrapper|error - Retrieved entities
createA_SlsPrcgCndnRecordScale
function createA_SlsPrcgCndnRecordScale(CreateA_SlsPrcgCndnRecordScale payload, map<string|string[]> headers) returns A_SlsPrcgCndnRecordScaleWrapper|errorCreates one or more pricing scales.
Parameters
- payload CreateA_SlsPrcgCndnRecordScale - New entity
Return Type
- A_SlsPrcgCndnRecordScaleWrapper|error - Created entity
getA_SlsPrcgCndnRecordScale
function getA_SlsPrcgCndnRecordScale(string ConditionRecord, string ConditionSequentialNumber, string ConditionScaleLine, map<string|string[]> headers, *GetA_SlsPrcgCndnRecordScaleQueries queries) returns A_SlsPrcgCndnRecordScaleWrapper|errorReads a specific pricing scale.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- ConditionScaleLine string - Current number of the line scale
- queries *GetA_SlsPrcgCndnRecordScaleQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgCndnRecordScaleWrapper|error - Retrieved entity
deleteA_SlsPrcgCndnRecordScale
function deleteA_SlsPrcgCndnRecordScale(string ConditionRecord, string ConditionSequentialNumber, string ConditionScaleLine, map<string|string[]> headers) returns error?Deletes a specific pricing scale.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- ConditionScaleLine string - Current number of the line scale
Return Type
- error? - Success
patchA_SlsPrcgCndnRecordScale
function patchA_SlsPrcgCndnRecordScale(string ConditionRecord, string ConditionSequentialNumber, string ConditionScaleLine, Modified\ A_SlsPrcgCndnRecordScaleType payload, map<string|string[]> headers) returns error?Updates a specific pricing scale.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- ConditionScaleLine string - Current number of the line scale
- payload Modified\ A_SlsPrcgCndnRecordScaleType - New property values
Return Type
- error? - Success
getSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnRecordScale
function getSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnRecordScale(string ConditionRecord, string ConditionSequentialNumber, string ConditionScaleLine, map<string|string[]> headers, *GetSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnRecordScaleQueries queries) returns A_SlsPrcgCndnRecdSuplmntWrapper|errorReads the condition supplement for a specific condition supplement pricing scale.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- ConditionScaleLine string - Current number of the line scale
- queries *GetSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnRecordScaleQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgCndnRecdSuplmntWrapper|error - Retrieved entity
getSlsPrcgConditionRecordOfA_SlsPrcgCndnRecordScale
function getSlsPrcgConditionRecordOfA_SlsPrcgCndnRecordScale(string ConditionRecord, string ConditionSequentialNumber, string ConditionScaleLine, map<string|string[]> headers, *GetSlsPrcgConditionRecordOfA_SlsPrcgCndnRecordScaleQueries queries) returns A_SlsPrcgConditionRecordWrapper|errorReads the condition record for a specific pricing scale.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- ConditionScaleLine string - Current number of the line scale
- queries *GetSlsPrcgConditionRecordOfA_SlsPrcgCndnRecordScaleQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgConditionRecordWrapper|error - Retrieved entity
listA_SlsPrcgCndnSupplementTexts
function listA_SlsPrcgCndnSupplementTexts(map<string|string[]> headers, *ListA_SlsPrcgCndnSupplementTextsQueries queries) returns CollectionOfA_SlsPrcgCndnSupplementTextWrapper|errorReads all pricing supplement texts in the system.
Parameters
- queries *ListA_SlsPrcgCndnSupplementTextsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnSupplementTextWrapper|error - Retrieved entities
createA_SlsPrcgCndnSupplementText
function createA_SlsPrcgCndnSupplementText(CreateA_SlsPrcgCndnSupplementText payload, map<string|string[]> headers) returns A_SlsPrcgCndnSupplementTextWrapper|errorCreates one or more pricing supplement texts.
Parameters
- payload CreateA_SlsPrcgCndnSupplementText - New entity
Return Type
- A_SlsPrcgCndnSupplementTextWrapper|error - Created entity
getA_SlsPrcgCndnSupplementText
function getA_SlsPrcgCndnSupplementText(string ConditionRecord, string ConditionSequentialNumber, string Language, map<string|string[]> headers, *GetA_SlsPrcgCndnSupplementTextQueries queries) returns A_SlsPrcgCndnSupplementTextWrapper|errorReads a specific pricing supplement text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
- queries *GetA_SlsPrcgCndnSupplementTextQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgCndnSupplementTextWrapper|error - Retrieved entity
deleteA_SlsPrcgCndnSupplementText
function deleteA_SlsPrcgCndnSupplementText(string ConditionRecord, string ConditionSequentialNumber, string Language, map<string|string[]> headers) returns error?Deletes a specific pricing supplement text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
Return Type
- error? - Success
patchA_SlsPrcgCndnSupplementText
function patchA_SlsPrcgCndnSupplementText(string ConditionRecord, string ConditionSequentialNumber, string Language, Modified\ A_SlsPrcgCndnSupplementTextType payload, map<string|string[]> headers) returns error?Updates a specific pricing supplement text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
- payload Modified\ A_SlsPrcgCndnSupplementTextType - New property values
Return Type
- error? - Success
getSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnSupplementText
function getSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnSupplementText(string ConditionRecord, string ConditionSequentialNumber, string Language, map<string|string[]> headers, *GetSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnSupplementTextQueries queries) returns A_SlsPrcgCndnRecdSuplmntWrapper|errorReads the condition record for a specific pricing supplement text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
- queries *GetSlsPrcgCndnRecdSuplmntOfA_SlsPrcgCndnSupplementTextQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgCndnRecdSuplmntWrapper|error - Retrieved entity
listA_SlsPrcgConditionRecords
function listA_SlsPrcgConditionRecords(map<string|string[]> headers, *ListA_SlsPrcgConditionRecordsQueries queries) returns CollectionOfA_SlsPrcgConditionRecordWrapper|errorReads all condition records in the system.
Parameters
- queries *ListA_SlsPrcgConditionRecordsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgConditionRecordWrapper|error - Retrieved entities
createA_SlsPrcgConditionRecord
function createA_SlsPrcgConditionRecord(CreateA_SlsPrcgConditionRecord payload, map<string|string[]> headers) returns A_SlsPrcgConditionRecordWrapper|errorCreates one or more condition records.
Parameters
- payload CreateA_SlsPrcgConditionRecord - New entity
Return Type
- A_SlsPrcgConditionRecordWrapper|error - Created entity
getA_SlsPrcgConditionRecord
function getA_SlsPrcgConditionRecord(string ConditionRecord, map<string|string[]> headers, *GetA_SlsPrcgConditionRecordQueries queries) returns A_SlsPrcgConditionRecordWrapper|errorReads a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- queries *GetA_SlsPrcgConditionRecordQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgConditionRecordWrapper|error - Retrieved entity
deleteA_SlsPrcgConditionRecord
function deleteA_SlsPrcgConditionRecord(string ConditionRecord, map<string|string[]> headers) returns error?Deletes a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
Return Type
- error? - Success
patchA_SlsPrcgConditionRecord
function patchA_SlsPrcgConditionRecord(string ConditionRecord, Modified\ A_SlsPrcgConditionRecordType payload, map<string|string[]> headers) returns error?Updates a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- payload Modified\ A_SlsPrcgConditionRecordType - New property values
Return Type
- error? - Success
listSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgConditionRecord
function listSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgConditionRecord(string ConditionRecord, map<string|string[]> headers, *ListSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgConditionRecordQueries queries) returns CollectionOfA_SlsPrcgCndnRecdSuplmntWrapper|errorReads the condition supplements of a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- queries *ListSlsPrcgCndnRecdSuplmntsOfA_SlsPrcgConditionRecordQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecdSuplmntWrapper|error - Retrieved entities
createSlsPrcgCndnRecdSuplmntOfA_SlsPrcgConditionRecord
function createSlsPrcgCndnRecdSuplmntOfA_SlsPrcgConditionRecord(string ConditionRecord, CreateA_SlsPrcgCndnRecdSuplmnt payload, map<string|string[]> headers) returns A_SlsPrcgCndnRecdSuplmntWrapper|errorCreates one or more condition supplements for a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- payload CreateA_SlsPrcgCndnRecdSuplmnt - New entity
Return Type
- A_SlsPrcgCndnRecdSuplmntWrapper|error - Created entity
listSlsPrcgCndnRecdValiditiesOfA_SlsPrcgConditionRecord
function listSlsPrcgCndnRecdValiditiesOfA_SlsPrcgConditionRecord(string ConditionRecord, map<string|string[]> headers, *ListSlsPrcgCndnRecdValiditiesOfA_SlsPrcgConditionRecordQueries queries) returns CollectionOfA_SlsPrcgCndnRecdValidityWrapper|errorReads the validity of a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- queries *ListSlsPrcgCndnRecdValiditiesOfA_SlsPrcgConditionRecordQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecdValidityWrapper|error - Retrieved entities
listSlsPrcgCndnRecordScalesOfA_SlsPrcgConditionRecord
function listSlsPrcgCndnRecordScalesOfA_SlsPrcgConditionRecord(string ConditionRecord, map<string|string[]> headers, *ListSlsPrcgCndnRecordScalesOfA_SlsPrcgConditionRecordQueries queries) returns CollectionOfA_SlsPrcgCndnRecordScaleWrapper|errorReads the pricing scales of a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- queries *ListSlsPrcgCndnRecordScalesOfA_SlsPrcgConditionRecordQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgCndnRecordScaleWrapper|error - Retrieved entities
createSlsPrcgCndnRecordScaleOfA_SlsPrcgConditionRecord
function createSlsPrcgCndnRecordScaleOfA_SlsPrcgConditionRecord(string ConditionRecord, CreateA_SlsPrcgCndnRecordScale payload, map<string|string[]> headers) returns A_SlsPrcgCndnRecordScaleWrapper|errorCreates one or more pricing scales for a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- payload CreateA_SlsPrcgCndnRecordScale - New entity
Return Type
- A_SlsPrcgCndnRecordScaleWrapper|error - Created entity
listSlsPrcgConditionRecordTextsOfA_SlsPrcgConditionRecord
function listSlsPrcgConditionRecordTextsOfA_SlsPrcgConditionRecord(string ConditionRecord, map<string|string[]> headers, *ListSlsPrcgConditionRecordTextsOfA_SlsPrcgConditionRecordQueries queries) returns CollectionOfA_SlsPrcgConditionRecordTextWrapper|errorReads the pricing record texts of a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- queries *ListSlsPrcgConditionRecordTextsOfA_SlsPrcgConditionRecordQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgConditionRecordTextWrapper|error - Retrieved entities
createSlsPrcgConditionRecordTextOfA_SlsPrcgConditionRecord
function createSlsPrcgConditionRecordTextOfA_SlsPrcgConditionRecord(string ConditionRecord, CreateA_SlsPrcgConditionRecordText payload, map<string|string[]> headers) returns A_SlsPrcgConditionRecordTextWrapper|errorCreates one or more pricing record texts for a specific condition record.
Parameters
- ConditionRecord string - Number of Condition Record
- payload CreateA_SlsPrcgConditionRecordText - New entity
Return Type
- A_SlsPrcgConditionRecordTextWrapper|error - Created entity
listA_SlsPrcgConditionRecordTexts
function listA_SlsPrcgConditionRecordTexts(map<string|string[]> headers, *ListA_SlsPrcgConditionRecordTextsQueries queries) returns CollectionOfA_SlsPrcgConditionRecordTextWrapper|errorReads all pricing record texts in the system.
Parameters
- queries *ListA_SlsPrcgConditionRecordTextsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SlsPrcgConditionRecordTextWrapper|error - Retrieved entities
createA_SlsPrcgConditionRecordText
function createA_SlsPrcgConditionRecordText(CreateA_SlsPrcgConditionRecordText payload, map<string|string[]> headers) returns A_SlsPrcgConditionRecordTextWrapper|errorCreates one or more pricing record texts.
Parameters
- payload CreateA_SlsPrcgConditionRecordText - New entity
Return Type
- A_SlsPrcgConditionRecordTextWrapper|error - Created entity
getA_SlsPrcgConditionRecordText
function getA_SlsPrcgConditionRecordText(string ConditionRecord, string ConditionSequentialNumber, string Language, map<string|string[]> headers, *GetA_SlsPrcgConditionRecordTextQueries queries) returns A_SlsPrcgConditionRecordTextWrapper|errorReads a specific pricing record text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
- queries *GetA_SlsPrcgConditionRecordTextQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgConditionRecordTextWrapper|error - Retrieved entity
deleteA_SlsPrcgConditionRecordText
function deleteA_SlsPrcgConditionRecordText(string ConditionRecord, string ConditionSequentialNumber, string Language, map<string|string[]> headers) returns error?Deletes a specific pricing record text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
Return Type
- error? - Success
patchA_SlsPrcgConditionRecordText
function patchA_SlsPrcgConditionRecordText(string ConditionRecord, string ConditionSequentialNumber, string Language, Modified\ A_SlsPrcgConditionRecordTextType payload, map<string|string[]> headers) returns error?Updates a specific pricing record text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
- payload Modified\ A_SlsPrcgConditionRecordTextType - New property values
Return Type
- error? - Success
getSlsPrcgConditionRecordOfA_SlsPrcgConditionRecordText
function getSlsPrcgConditionRecordOfA_SlsPrcgConditionRecordText(string ConditionRecord, string ConditionSequentialNumber, string Language, map<string|string[]> headers, *GetSlsPrcgConditionRecordOfA_SlsPrcgConditionRecordTextQueries queries) returns A_SlsPrcgConditionRecordWrapper|errorReads the condition record for a specific pricing record text.
Parameters
- ConditionRecord string - Number of Condition Record
- ConditionSequentialNumber string - Sequential number of the condition
- Language string - Language Key
- queries *GetSlsPrcgConditionRecordOfA_SlsPrcgConditionRecordTextQueries - Queries to be sent with the request
Return Type
- A_SlsPrcgConditionRecordWrapper|error - Retrieved entity
Records
sap.s4hana.api_slspricingconditionrecord_srv: BatchRequest
A single request inside a batch.
Fields
- method "GET"|"POST"|"PATCH"|"PUT"|"DELETE" (default "POST") - HTTP method of the request
- uri string - Resource path relative to the service root, such as
oas:A_SlsPrcgConditionRecord. Query options must be percent encoded, since this goes into an HTTP request line
- payload? BatchEntity - Entity to send, omitted for methods that do not carry one
sap.s4hana.api_slspricingconditionrecord_srv: BatchResult
The outcome of one request inside a batch.
Fields
- statusCode int - HTTP status of this individual request
- location string? - Value of the
locationheader, which carries the key assigned by a successful create
- body string - Raw response body of this individual request
Union types
sap.s4hana.api_slspricingconditionrecord_srv: BatchEntity
BatchEntity
An entity that may be sent inside a batch request: any create payload, any update payload, or an update payload already wrapped for a modify request.
A bare array of entities is created in the given entity set, so updates only make sense through
BatchRequest, which lets each request carry its own key in the URI and its own If-Match header.
A modify request accepts either a bare Update... payload or the same payload wrapped as
{"d": { ... }}, which is what the oas:Modified\ ...Type records are. Both answer 204.
A modify always needs the entity's current ETag in an If-Match header: without one the service
answers 428 The Data Service Request is required to be conditional, and If-Match: * is rejected
with State of the resource (entity) was already changed.
Import
import ballerinax/sap.s4hana.api_slspricingconditionrecord_srv;Other versions
0.1.0
Metadata
Released date: about 11 hours ago
Version: 0.1.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.13.0
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Type/Connector
Vendor/SAP
Area/ERP & Business Operations
Business Management/ERP
Cost/Paid
Sales and Distribution
SD
Contributors