@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.DefaultBankService") public class DefaultBankService extends Object implements ServiceWithNavigableEntities, BankService
You can use this inbound synchronous service to create, read, update, and mark bank master data for deletion. Use a standard archiving tool for the actual deletion of bank master data. The service is based on the OData protocol and can be consumed in SAP Fiori apps and other user interfaces. The service contains Bank Country, Bank Internal ID, Bank Name, Region, Street Name, City Name, SWIFT Code, Is Marked For Deletion, and branch..
Reference: SAP API Business Hub
OData Service: | BANK_0001 |
API Version: | 1 |
Communication Scenario: | Finance - Bank Integration (SAP_COM_0379) |
Scope Items: | Basic Bank Account Management (BFA) |
Authentication Methods: | Basic, x509, OAuth2 |
Service Group Name: | API_BANK |
Business Object: | Bank |
ServiceWithNavigableEntities.NavigableEntity<EntityT extends VdmEntity<EntityT>>
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultBankService()
Creates a service using
BankService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
BatchRequestBuilder |
batch()
Creates a batch request builder object.
|
CountRequestBuilder<Bank> |
countBank()
Fetch the number of entries from the
Bank
entity collection matching the filter and search expressions. |
CreateRequestBuilder<Bank> |
createBank(Bank bank)
Create a new
Bank entity and save it to
the S/4HANA system. |
GetAllRequestBuilder<Bank> |
getAllBank()
Fetch multiple
Bank entities. |
GetByKeyRequestBuilder<Bank> |
getBankByKey(String bankCountry,
String bankInternalID)
Fetch a single
Bank entity using key
fields. |
String |
getServicePath()
Getter for the OData service root path.
|
UpdateRequestBuilder<Bank> |
updateBank(Bank bank)
Update an existing
Bank entity and save
it to the S/4HANA system. |
DefaultBankService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEntity
public DefaultBankService()
BankService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultBankService withServicePath(@Nonnull String servicePath)
BankService
withServicePath
in interface BankService
servicePath
- Service path that will override the default.@Nonnull public BatchRequestBuilder batch()
BankService
batch
in interface BankService
execute
method on the request builder object.@Nonnull public GetAllRequestBuilder<Bank> getAllBank()
BankService
Bank
entities.getAllBank
in interface BankService
Bank
entities. This request
builder allows methods which modify the underlying query to be called before executing the query itself.
To perform execution, call the
execute
method on the request builder object.@Nonnull public CountRequestBuilder<Bank> countBank()
BankService
Bank
entity collection matching the filter and search expressions.countBank
in interface BankService
Bank
entities. This request
builder allows methods which modify the underlying query to be called before executing the query itself.
To perform execution, call the
execute
method on the request builder object.@Nonnull public GetByKeyRequestBuilder<Bank> getBankByKey(@Nonnull String bankCountry, @Nonnull String bankInternalID)
BankService
Bank
entity using key
fields.getBankByKey
in interface BankService
bankCountry
- Country/Region Key of Bank
Constraints: Not nullable, Maximum length: 3
bankInternalID
- Bank Keys
Constraints: Not nullable, Maximum length: 15
Bank
entity using key fields.
This request builder allows methods which modify the underlying query to be called before executing the
query itself. To perform execution, call the
execute
method on the request builder object.@Nonnull public CreateRequestBuilder<Bank> createBank(@Nonnull Bank bank)
BankService
Bank
entity and save it to
the S/4HANA system.createBank
in interface BankService
bank
- Bank
entity object that will
be created in the S/4HANA system.Bank
entity. To perform execution, call the
execute
method on the request builder object.@Nonnull public UpdateRequestBuilder<Bank> updateBank(@Nonnull Bank bank)
BankService
Bank
entity and save
it to the S/4HANA system.updateBank
in interface BankService
bank
- Bank
entity object that will
be updated in the S/4HANA system.Bank
entity. To perform
execution, call the
execute
method on the request builder object.@Nonnull public String getServicePath()
ServiceWithNavigableEntities
getServicePath
in interface ServiceWithNavigableEntities
Copyright © 2021 SAP SE. All rights reserved.