@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultSchedulingAgreementService") public class DefaultSchedulingAgreementService extends Object implements SchedulingAgreementService
This service enables you to read and create purchase scheduling agreements through an API call from a source system outside SAP S/4HANA Cloud or SAP S/4HANA. # .
Reference: SAP API Business Hub
OData Service: | API_SCHED_AGRMT_PROCESS_SRV |
API Version: | 1 |
Communication Scenario: | Purchase Scheduling Agreement Integration (SAP_COM_0103) |
Scope Items: | Scheduling Agreements in Procurement (BMR), Consumable Purchasing (BNX), Procurement of Direct Materials (J45) |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultSchedulingAgreementService()
Creates a service using
SchedulingAgreementService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultSchedulingAgreementServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
SchAgrmtHeaderCreateFluentHelper |
createSchAgrmtHeader(SchAgrmtHeader schAgrmtHeader)
Create a new
SchAgrmtHeader entity and save it to the S/4HANA system. |
SchAgrmtAcCntFluentHelper |
getAllSchAgrmtAcCnt()
Fetch multiple
SchAgrmtAcCnt entities. |
SchAgrmtHeaderFluentHelper |
getAllSchAgrmtHeader()
Fetch multiple
SchAgrmtHeader entities. |
SchAgrmtItemFluentHelper |
getAllSchAgrmtItem()
Fetch multiple
SchAgrmtItem entities. |
SchAgrmtPartnerFluentHelper |
getAllSchAgrmtPartner()
Fetch multiple
SchAgrmtPartner entities. |
SchAgrmtSchLineFluentHelper |
getAllSchAgrmtSchLine()
Fetch multiple
SchAgrmtSchLine entities. |
SchAgrmtAcCntByKeyFluentHelper |
getSchAgrmtAcCntByKey(String accountAssignmentNumber,
String schedulingAgreementItem,
String schedulingAgreement)
Fetch a single
SchAgrmtAcCnt entity using key fields. |
SchAgrmtHeaderByKeyFluentHelper |
getSchAgrmtHeaderByKey(String schedulingAgreement)
Fetch a single
SchAgrmtHeader entity using key fields. |
SchAgrmtItemByKeyFluentHelper |
getSchAgrmtItemByKey(String schedulingAgreement,
String schedulingAgreementItem)
Fetch a single
SchAgrmtItem entity using key fields. |
SchAgrmtPartnerByKeyFluentHelper |
getSchAgrmtPartnerByKey(String schedulingAgreement,
String schedulingAgreementItem,
String purchasingOrganization,
String supplierSubrange,
String plant,
String partnerFunction,
String partnerCounter)
Fetch a single
SchAgrmtPartner entity using key fields. |
SchAgrmtSchLineByKeyFluentHelper |
getSchAgrmtSchLineByKey(String schedulingAgreement,
String schedulingAgreementItem,
String scheduleLine)
Fetch a single
SchAgrmtSchLine entity using key fields. |
DefaultSchedulingAgreementService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultSchedulingAgreementService()
SchedulingAgreementService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultSchedulingAgreementService withServicePath(@Nonnull String servicePath)
SchedulingAgreementService
withServicePath
in interface SchedulingAgreementService
servicePath
- Service path that will override the default.@Nonnull public DefaultSchedulingAgreementServiceBatch batch()
batch
in interface BatchService<SchedulingAgreementServiceBatch>
@Nonnull public SchAgrmtAcCntFluentHelper getAllSchAgrmtAcCnt()
SchedulingAgreementService
SchAgrmtAcCnt
entities.getAllSchAgrmtAcCnt
in interface SchedulingAgreementService
SchAgrmtAcCnt
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 SchAgrmtAcCntByKeyFluentHelper getSchAgrmtAcCntByKey(String accountAssignmentNumber, String schedulingAgreementItem, String schedulingAgreement)
SchedulingAgreementService
SchAgrmtAcCnt
entity using key fields.getSchAgrmtAcCntByKey
in interface SchedulingAgreementService
accountAssignmentNumber
- Number uniquely defining the account assignment of a purchase document item.
Constraints: Not nullable, Maximum length: 2
schedulingAgreementItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
schedulingAgreement
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
SchAgrmtAcCnt
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.@Nonnull public SchAgrmtHeaderFluentHelper getAllSchAgrmtHeader()
SchedulingAgreementService
SchAgrmtHeader
entities.getAllSchAgrmtHeader
in interface SchedulingAgreementService
SchAgrmtHeader
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 SchAgrmtHeaderByKeyFluentHelper getSchAgrmtHeaderByKey(String schedulingAgreement)
SchedulingAgreementService
SchAgrmtHeader
entity using key fields.getSchAgrmtHeaderByKey
in interface SchedulingAgreementService
schedulingAgreement
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
SchAgrmtHeader
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.@Nonnull public SchAgrmtHeaderCreateFluentHelper createSchAgrmtHeader(@Nonnull SchAgrmtHeader schAgrmtHeader)
SchedulingAgreementService
SchAgrmtHeader
entity and save it to the S/4HANA system.createSchAgrmtHeader
in interface SchedulingAgreementService
schAgrmtHeader
- SchAgrmtHeader
entity object that will be created in the S/4HANA system.SchAgrmtHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SchAgrmtItemFluentHelper getAllSchAgrmtItem()
SchedulingAgreementService
SchAgrmtItem
entities.getAllSchAgrmtItem
in interface SchedulingAgreementService
SchAgrmtItem
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 SchAgrmtItemByKeyFluentHelper getSchAgrmtItemByKey(String schedulingAgreement, String schedulingAgreementItem)
SchedulingAgreementService
SchAgrmtItem
entity using key fields.getSchAgrmtItemByKey
in interface SchedulingAgreementService
schedulingAgreement
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
schedulingAgreementItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
SchAgrmtItem
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.@Nonnull public SchAgrmtPartnerFluentHelper getAllSchAgrmtPartner()
SchedulingAgreementService
SchAgrmtPartner
entities.getAllSchAgrmtPartner
in interface SchedulingAgreementService
SchAgrmtPartner
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 SchAgrmtPartnerByKeyFluentHelper getSchAgrmtPartnerByKey(String schedulingAgreement, String schedulingAgreementItem, String purchasingOrganization, String supplierSubrange, String plant, String partnerFunction, String partnerCounter)
SchedulingAgreementService
SchAgrmtPartner
entity using key fields.getSchAgrmtPartnerByKey
in interface SchedulingAgreementService
schedulingAgreement
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
schedulingAgreementItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
purchasingOrganization
- Denotes the purchasing organization.
Constraints: Not nullable, Maximum length: 4
supplierSubrange
- Subdivision of a supplier's overall product range according to various criteria.
Constraints: Not nullable, Maximum length: 6
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
partnerFunction
- The abbreviated form of the name that identifies the partner function.
Constraints: Not nullable, Maximum length: 2
partnerCounter
- The sequential number that the system applies when there is more than one partner for a particular
partner function.
Constraints: Not nullable, Maximum length: 3
SchAgrmtPartner
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.@Nonnull public SchAgrmtSchLineFluentHelper getAllSchAgrmtSchLine()
SchedulingAgreementService
SchAgrmtSchLine
entities.getAllSchAgrmtSchLine
in interface SchedulingAgreementService
SchAgrmtSchLine
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 SchAgrmtSchLineByKeyFluentHelper getSchAgrmtSchLineByKey(String schedulingAgreement, String schedulingAgreementItem, String scheduleLine)
SchedulingAgreementService
SchAgrmtSchLine
entity using key fields.getSchAgrmtSchLineByKey
in interface SchedulingAgreementService
schedulingAgreement
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
schedulingAgreementItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
scheduleLine
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 4
SchAgrmtSchLine
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 © 2019 SAP SE. All rights reserved.