public interface LegalDocumentService extends BatchService<LegalDocumentServiceBatch>
This synchronous inbound service helps you to create and read legal documents through an API call. Legal documents are instances of legal content which are tailored to a specific legal transaction. The service contains legal document and legal document stamp nodes. The information sent in the request as a payload is used when creating a legal document, including appropriate checks for restricted values and authorizations. Once the legal document is created, the legal document ID is sent in the response with the data included in the legal document. If there are any issues when the legal document is created, the system displays error messages in the response. Note that to create or change the content of the legal document you need to use the Attachment Service that is also published in the SAP API Business Hub. For more information, refer to the business documentation of this API..
Reference: SAP API Business Hub
OData Service: | OP_API_LEGAL_DOCUMENT_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Legal Document |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
Modifier and Type | Method and Description |
---|---|
LegalDocumentCreateFluentHelper |
createLegalDocument(LegalDocument legalDocument)
Create a new
LegalDocument entity and save it to the S/4HANA system. |
LglDocStampCreateFluentHelper |
createLglDocStamp(LglDocStamp lglDocStamp)
Create a new
LglDocStamp entity and save it to the S/4HANA system. |
LegalDocumentFluentHelper |
getAllLegalDocument()
Fetch multiple
LegalDocument entities. |
LglDocStampFluentHelper |
getAllLglDocStamp()
Fetch multiple
LglDocStamp
entities. |
LegalDocumentByKeyFluentHelper |
getLegalDocumentByKey(UUID lglCntntMDocumentUUID)
Fetch a single
LegalDocument entity using key fields. |
LglDocStampByKeyFluentHelper |
getLglDocStampByKey(UUID lglCntntMDocumentStampUUID)
Fetch a single
LglDocStamp
entity using key fields. |
LegalDocumentService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull LegalDocumentService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull LegalDocumentFluentHelper getAllLegalDocument()
LegalDocument
entities.LegalDocument
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 LegalDocumentByKeyFluentHelper getLegalDocumentByKey(UUID lglCntntMDocumentUUID)
LegalDocument
entity using key fields.lglCntntMDocumentUUID
- Universal Unique Identifier
Constraints: Not nullable
LegalDocument
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 LegalDocumentCreateFluentHelper createLegalDocument(@Nonnull LegalDocument legalDocument)
LegalDocument
entity and save it to the S/4HANA system.legalDocument
- LegalDocument
entity object that will be created in the S/4HANA system.LegalDocument
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull LglDocStampFluentHelper getAllLglDocStamp()
LglDocStamp
entities.LglDocStamp
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 LglDocStampByKeyFluentHelper getLglDocStampByKey(UUID lglCntntMDocumentStampUUID)
LglDocStamp
entity using key fields.lglCntntMDocumentStampUUID
- Universal Unique Identifier
Constraints: Not nullable
LglDocStamp
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 LglDocStampCreateFluentHelper createLglDocStamp(@Nonnull LglDocStamp lglDocStamp)
LglDocStamp
entity and save it to the S/4HANA system.lglDocStamp
- LglDocStamp
entity object that will be created in the S/4HANA system.LglDocStamp
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.