Interface PurchasingSourceService
- All Superinterfaces:
BatchService<PurchasingSourceServiceBatch>
- All Known Implementing Classes:
DefaultPurchasingSourceService
This synchronous inbound service enables you to create, update, and delete purchasing source lists. It is based on the OData protocol. The information is sent in the request as a payload. All information is used when creating a purchasing source list, and they are checked for authorizations. Once the purchasing source list has been created, the purchasing source list number is sent in the response. If there are any issues when the purchasing source list is created, the system displays error messages in the response.
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_PURCHASING_SOURCE_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Purchasing Source Integration(SAP_COM_0162) |
| Scope Items: | Purchase Contract(BMD), Purchase Contract(OMD) |
| Authentication Methods: | x509 |
| Business Object: | Source List in Procurement |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptioncreatePurchasingSource(PurchasingSource purchasingSource) Deprecated.Create a newPurchasingSourceentity and save it to the S/4HANA system.deletePurchasingSource(PurchasingSource purchasingSource) Deprecated.Deletes an existingPurchasingSourceentity in the S/4HANA system.Deprecated.Fetch multiplePurchasingSourceentities.getPurchasingSourceByKey(String material, String plant, String sourceListRecord) Deprecated.Fetch a singlePurchasingSourceentity using key fields.updatePurchasingSource(PurchasingSource purchasingSource) Deprecated.Update an existingPurchasingSourceentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.BatchService
batch
-
Field Details
-
DEFAULT_SERVICE_PATH
Deprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
Deprecated.Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
getAllPurchasingSource
Deprecated.Fetch multiplePurchasingSourceentities.- Returns:
- A fluent helper to fetch multiple
PurchasingSourceentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getPurchasingSourceByKey
@Nonnull PurchasingSourceByKeyFluentHelper getPurchasingSourceByKey(String material, String plant, String sourceListRecord) Deprecated.Fetch a singlePurchasingSourceentity using key fields.- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 40
plant- PlantConstraints: Not nullable, Maximum length: 4
sourceListRecord- Number of Source List RecordConstraints: Not nullable, Maximum length: 5
- Returns:
- A fluent helper to fetch a single
PurchasingSourceentity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
createPurchasingSource
@Nonnull PurchasingSourceCreateFluentHelper createPurchasingSource(@Nonnull PurchasingSource purchasingSource) Deprecated.Create a newPurchasingSourceentity and save it to the S/4HANA system.- Parameters:
purchasingSource-PurchasingSourceentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurchasingSourceentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurchasingSource
@Nonnull PurchasingSourceUpdateFluentHelper updatePurchasingSource(@Nonnull PurchasingSource purchasingSource) Deprecated.Update an existingPurchasingSourceentity and save it to the S/4HANA system.- Parameters:
purchasingSource-PurchasingSourceentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurchasingSourceentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deletePurchasingSource
@Nonnull PurchasingSourceDeleteFluentHelper deletePurchasingSource(@Nonnull PurchasingSource purchasingSource) Deprecated.Deletes an existingPurchasingSourceentity in the S/4HANA system.- Parameters:
purchasingSource-PurchasingSourceentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
PurchasingSourceentity. To perform execution, call theexecutemethod on the fluent helper object.
-