@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultBusinessEventsSubscriptionService") public class DefaultBusinessEventsSubscriptionService extends Object implements BusinessEventsSubscriptionService
This service lets the caller create a subscription for business events for a given subscriber. A subscription is required to activate the events so they are delivered to the event queue where they can be read. The information sent in the request as a payload is used to maintain a business events subscription, make the appropriate checks for restricted values and authorizations. Once an event subscription is maintained, the system displays a success or failure message in the response..
Reference: SAP API Business Hub
OData Service: | OP_CA_BEH_SUBSCRIPTION_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultBusinessEventsSubscriptionService()
Creates a service using
BusinessEventsSubscriptionService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultBusinessEventsSubscriptionService()
BusinessEventsSubscriptionService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultBusinessEventsSubscriptionService withServicePath(@Nonnull String servicePath)
BusinessEventsSubscriptionService
withServicePath
in interface BusinessEventsSubscriptionService
servicePath
- Service path that will override the default.@Nonnull public DefaultBusinessEventsSubscriptionServiceBatch batch()
batch
in interface BatchService<BusinessEventsSubscriptionServiceBatch>
@Nonnull public SubscriptionMaintainFluentHelper getAllSubscriptionMaintain()
BusinessEventsSubscriptionService
SubscriptionMaintain
entities.getAllSubscriptionMaintain
in interface BusinessEventsSubscriptionService
SubscriptionMaintain
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 SubscriptionMaintainByKeyFluentHelper getSubscriptionMaintainByKey(String busEventSubscriberCode, String sAPObjectType, String sAPObjectTaskCode)
BusinessEventsSubscriptionService
SubscriptionMaintain
entity using key fields.getSubscriptionMaintainByKey
in interface BusinessEventsSubscriptionService
busEventSubscriberCode
- Subscriber ID
Constraints: Not nullable, Maximum length: 4
sAPObjectType
- SAP Object Type
Constraints: Not nullable, Maximum length: 30
sAPObjectTaskCode
- SAP Object Task Code
Constraints: Not nullable, Maximum length: 18
SubscriptionMaintain
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 SubscriptionMaintainCreateFluentHelper createSubscriptionMaintain(@Nonnull SubscriptionMaintain subscriptionMaintain)
BusinessEventsSubscriptionService
SubscriptionMaintain
entity and save it to the S/4HANA system.createSubscriptionMaintain
in interface BusinessEventsSubscriptionService
subscriptionMaintain
- SubscriptionMaintain
entity object that will be created in the S/4HANA system.SubscriptionMaintain
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SubscriptionMaintainUpdateFluentHelper updateSubscriptionMaintain(@Nonnull SubscriptionMaintain subscriptionMaintain)
BusinessEventsSubscriptionService
SubscriptionMaintain
entity and save it to the S/4HANA system.updateSubscriptionMaintain
in interface BusinessEventsSubscriptionService
subscriptionMaintain
- SubscriptionMaintain
entity object that will be updated in the S/4HANA system.SubscriptionMaintain
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public SubscriptionReadFluentHelper getAllSubscriptionRead()
BusinessEventsSubscriptionService
SubscriptionRead
entities.getAllSubscriptionRead
in interface BusinessEventsSubscriptionService
SubscriptionRead
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 SubscriptionReadByKeyFluentHelper getSubscriptionReadByKey(String busEventSubscriberCode, String sAPObjectType, String sAPObjectTaskCode)
BusinessEventsSubscriptionService
SubscriptionRead
entity using key fields.getSubscriptionReadByKey
in interface BusinessEventsSubscriptionService
busEventSubscriberCode
- Subscriber ID
Constraints: Not nullable, Maximum length: 4
sAPObjectType
- SAP Object Type
Constraints: Not nullable, Maximum length: 30
sAPObjectTaskCode
- SAP Object Task Code
Constraints: Not nullable, Maximum length: 18
SubscriptionRead
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.