Class DefaultPurchasingSourceService
- All Implemented Interfaces:
BatchService<PurchasingSourceServiceBatch>,PurchasingSourceService
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
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.PurchasingSourceService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingPurchasingSourceService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createPurchasingSource(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.
-
Constructor Details
-
DefaultPurchasingSourceService
public DefaultPurchasingSourceService()Deprecated.Creates a service usingPurchasingSourceService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:PurchasingSourceServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfacePurchasingSourceService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<PurchasingSourceServiceBatch>
-
getAllPurchasingSource
Deprecated.Description copied from interface:PurchasingSourceServiceFetch multiplePurchasingSourceentities.- Specified by:
getAllPurchasingSourcein interfacePurchasingSourceService- 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 public PurchasingSourceByKeyFluentHelper getPurchasingSourceByKey(String material, String plant, String sourceListRecord) Deprecated.Description copied from interface:PurchasingSourceServiceFetch a singlePurchasingSourceentity using key fields.- Specified by:
getPurchasingSourceByKeyin interfacePurchasingSourceService- 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 public PurchasingSourceCreateFluentHelper createPurchasingSource(@Nonnull PurchasingSource purchasingSource) Deprecated.Description copied from interface:PurchasingSourceServiceCreate a newPurchasingSourceentity and save it to the S/4HANA system.- Specified by:
createPurchasingSourcein interfacePurchasingSourceService- 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 public PurchasingSourceUpdateFluentHelper updatePurchasingSource(@Nonnull PurchasingSource purchasingSource) Deprecated.Description copied from interface:PurchasingSourceServiceUpdate an existingPurchasingSourceentity and save it to the S/4HANA system.- Specified by:
updatePurchasingSourcein interfacePurchasingSourceService- 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 public PurchasingSourceDeleteFluentHelper deletePurchasingSource(@Nonnull PurchasingSource purchasingSource) Deprecated.Description copied from interface:PurchasingSourceServiceDeletes an existingPurchasingSourceentity in the S/4HANA system.- Specified by:
deletePurchasingSourcein interfacePurchasingSourceService- 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.
-