@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultTradingPartnerService") public class DefaultTradingPartnerService extends Object implements TradingPartnerService
The service enables you to retrieve trading partners and their texts..
Reference: SAP API Business Hub
OData Service: | API_PARTNERCOMPANY_SRV |
API Version: | 1 |
Communication Scenario: | SAP Analytics Cloud for Planning Integration (SAP_COM_0087), Finance - Cloud Consolidation Data Collection Integration (SAP_COM_0241) |
Scope Items: | Import Connection setup with SAP Analytics Cloud (1YB), Group Reporting - Data from SAP Group Reporting Data Collection (287) |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultTradingPartnerService()
Creates a service using
TradingPartnerService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultTradingPartnerServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
PartnerCompanyFluentHelper |
getAllPartnerCompany()
Fetch multiple
PartnerCompany entities. |
PartnerCompanyByKeyFluentHelper |
getPartnerCompanyByKey(String partnerCompany)
Fetch a single
PartnerCompany entity using key fields. |
DefaultTradingPartnerService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultTradingPartnerService()
TradingPartnerService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultTradingPartnerService withServicePath(@Nonnull String servicePath)
TradingPartnerService
withServicePath
in interface TradingPartnerService
servicePath
- Service path that will override the default.@Nonnull public DefaultTradingPartnerServiceBatch batch()
batch
in interface BatchService<TradingPartnerServiceBatch>
@Nonnull public PartnerCompanyFluentHelper getAllPartnerCompany()
TradingPartnerService
PartnerCompany
entities.getAllPartnerCompany
in interface TradingPartnerService
PartnerCompany
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 PartnerCompanyByKeyFluentHelper getPartnerCompanyByKey(String partnerCompany)
TradingPartnerService
PartnerCompany
entity using key fields.getPartnerCompanyByKey
in interface TradingPartnerService
partnerCompany
- Unique company ID of a company within your corporate group.
Constraints: Not nullable, Maximum length: 6
PartnerCompany
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 © 2020 SAP SE. All rights reserved.