@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultSupplyAssignmentService") public class DefaultSupplyAssignmentService extends Object implements SupplyAssignmentService
This service enables you to read the existing supply assignments of different requirement documents from the SAP S/4HANA system. You can use this service to save the supply assignments in SAP S/4HANA system. The service contains only the item node. You can also use this service to unassign existing assignments from different requirement documents (sales order, fashion contract, stock transport order, production order, and subcontracting order components). Note: You can use the functionality of this service only by activating the business functions ISR_RETAILSYSTEM and SUPPLY_ASSIGNMENT_01..
Reference: SAP API Business Hub
OData Service: | OP_API_ARUN_SUPPLY_ASSIGNMENT_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Sales Order |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultSupplyAssignmentService()
Creates a service using
SupplyAssignmentService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultSupplyAssignmentServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
SUPPLYASSIGNMENTCreateFluentHelper |
createSUPPLYASSIGNMENT(SUPPLYASSIGNMENT sUPPLYASSIGNMENT)
Create a new
SUPPLYASSIGNMENT entity and save it to the S/4HANA system. |
SupplyAssignment_2FluentHelper |
getAllSupplyAssignment_2()
Fetch multiple
SupplyAssignment_2 entities. |
SupplyAssignment_2ByKeyFluentHelper |
getSupplyAssignment_2ByKey(String plant,
String material,
String storageLocation,
String requirementType,
String requirementDocumentNumber,
String requirementDocumentItem,
String assignedSupplyType,
String supplyNumber,
String supplyItem,
String supplyScheduleLine,
String supplyAssignmentStatus,
LocalDateTime requestedDate,
LocalDateTime productAvailabilityDate)
Fetch a single
SupplyAssignment_2 entity using key fields. |
SUPPLYUNASSIGNMENTUpdateFluentHelper |
updateSUPPLYUNASSIGNMENT(SUPPLYUNASSIGNMENT sUPPLYUNASSIGNMENT)
Update an existing
SUPPLYUNASSIGNMENT entity and save it to the S/4HANA system. |
DefaultSupplyAssignmentService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultSupplyAssignmentService()
SupplyAssignmentService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultSupplyAssignmentService withServicePath(@Nonnull String servicePath)
SupplyAssignmentService
withServicePath
in interface SupplyAssignmentService
servicePath
- Service path that will override the default.@Nonnull public DefaultSupplyAssignmentServiceBatch batch()
batch
in interface BatchService<SupplyAssignmentServiceBatch>
@Nonnull public SUPPLYUNASSIGNMENTUpdateFluentHelper updateSUPPLYUNASSIGNMENT(@Nonnull SUPPLYUNASSIGNMENT sUPPLYUNASSIGNMENT)
SupplyAssignmentService
SUPPLYUNASSIGNMENT
entity and save it to the S/4HANA system.updateSUPPLYUNASSIGNMENT
in interface SupplyAssignmentService
sUPPLYUNASSIGNMENT
- SUPPLYUNASSIGNMENT
entity object that will be updated in the S/4HANA system.SUPPLYUNASSIGNMENT
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SUPPLYASSIGNMENTCreateFluentHelper createSUPPLYASSIGNMENT(@Nonnull SUPPLYASSIGNMENT sUPPLYASSIGNMENT)
SupplyAssignmentService
SUPPLYASSIGNMENT
entity and save it to the S/4HANA system.createSUPPLYASSIGNMENT
in interface SupplyAssignmentService
sUPPLYASSIGNMENT
- SUPPLYASSIGNMENT
entity object that will be created in the S/4HANA system.SUPPLYASSIGNMENT
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplyAssignment_2FluentHelper getAllSupplyAssignment_2()
SupplyAssignmentService
SupplyAssignment_2
entities.getAllSupplyAssignment_2
in interface SupplyAssignmentService
SupplyAssignment_2
entities. This fluent helper allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SupplyAssignment_2ByKeyFluentHelper getSupplyAssignment_2ByKey(String plant, String material, String storageLocation, String requirementType, String requirementDocumentNumber, String requirementDocumentItem, String assignedSupplyType, String supplyNumber, String supplyItem, String supplyScheduleLine, String supplyAssignmentStatus, LocalDateTime requestedDate, LocalDateTime productAvailabilityDate)
SupplyAssignmentService
SupplyAssignment_2
entity using key fields.getSupplyAssignment_2ByKey
in interface SupplyAssignmentService
plant
- Plant
Constraints: Not nullable, Maximum length: 4
material
- Material Number
Constraints: Not nullable, Maximum length: 40
storageLocation
- Storage location
Constraints: Not nullable, Maximum length: 4
requirementType
- Requirement Type
Constraints: Not nullable, Maximum length: 2
assignedSupplyType
- ARun Stock Source
Constraints: Not nullable, Maximum length: 1
supplyAssignmentStatus
- ARun Status
Constraints: Not nullable, Maximum length: 1
requestedDate
- Requested date
Constraints: Not nullable, Precision: 0
productAvailabilityDate
- Material Staging/Availability Date
Constraints: Not nullable, Precision: 0
SupplyAssignment_2
entity 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 the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.