Class DefaultLegalDocumentService
- All Implemented Interfaces:
BatchService<LegalDocumentServiceBatch>,LegalDocumentService
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 Business Accelerator Hub
Details:
| OData Service: | API_LEGAL_DOCUMENT_SRV |
| API Version: | 1.1.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Legal Document Integration(SAP_COM_0178), Procurement - Supplier Quotation Management Integration(SAP_COM_0760) |
| Scope Items: | SAP S/4HANA for Enterprise Contract Management(1XV), Direct Material Sourcing(4RD) |
| Authentication Methods: | x509 |
| Business Object: | Legal Document |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.LegalDocumentService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingLegalDocumentService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createLegalDocument(LegalDocument legalDocument) Deprecated.Create a newLegalDocumententity and save it to the S/4HANA system.createLglCntntMDocCategory(LglCntntMDocCategory lglCntntMDocCategory) Deprecated.Create a newLglCntntMDocCategoryentity and save it to the S/4HANA system.createLglCntntMDocParCategory(LglCntntMDocParCategory lglCntntMDocParCategory) Deprecated.Create a newLglCntntMDocParCategoryentity and save it to the S/4HANA system.createLglDocStamp(LglDocStamp lglDocStamp) Deprecated.Create a newLglDocStampentity and save it to the S/4HANA system.Deprecated.Fetch multipleLegalDocumententities.Deprecated.Fetch multipleLglCntntMDocCategoryentities.Deprecated.Fetch multipleLglCntntMDocParCategoryentities.Deprecated.Fetch multipleLglDocStampentities.getLegalDocumentByKey(UUID lglCntntMDocumentUUID) Deprecated.Fetch a singleLegalDocumententity using key fields.getLglCntntMDocCategoryByKey(UUID lglCntntMDocCategoryUUID) Deprecated.Fetch a singleLglCntntMDocCategoryentity using key fields.getLglCntntMDocParCategoryByKey(UUID lglCntntMDocParCatUUID) Deprecated.Fetch a singleLglCntntMDocParCategoryentity using key fields.getLglDocStampByKey(UUID lglCntntMDocumentStampUUID) Deprecated.Fetch a singleLglDocStampentity using key fields.setLegalDocumentToAccepted(UUID lglCntntMDocumentUUID) Deprecated.Creates a fluent helper for the SetLegalDocumentToAccepted OData function import.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultLegalDocumentService
public DefaultLegalDocumentService()Deprecated.Creates a service usingLegalDocumentService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:LegalDocumentServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceLegalDocumentService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<LegalDocumentServiceBatch>
-
getAllLegalDocument
Deprecated.Description copied from interface:LegalDocumentServiceFetch multipleLegalDocumententities.- Specified by:
getAllLegalDocumentin interfaceLegalDocumentService- Returns:
- A fluent helper to fetch multiple
LegalDocumententities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getLegalDocumentByKey
Deprecated.Description copied from interface:LegalDocumentServiceFetch a singleLegalDocumententity using key fields.- Specified by:
getLegalDocumentByKeyin interfaceLegalDocumentService- Parameters:
lglCntntMDocumentUUID- Universal Unique IdentifierConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
LegalDocumententity 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 theexecutemethod on the fluent helper object.
-
createLegalDocument
@Nonnull public LegalDocumentCreateFluentHelper createLegalDocument(@Nonnull LegalDocument legalDocument) Deprecated.Description copied from interface:LegalDocumentServiceCreate a newLegalDocumententity and save it to the S/4HANA system.- Specified by:
createLegalDocumentin interfaceLegalDocumentService- Parameters:
legalDocument-LegalDocumententity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
LegalDocumententity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllLglCntntMDocCategory
Deprecated.Description copied from interface:LegalDocumentServiceFetch multipleLglCntntMDocCategoryentities.- Specified by:
getAllLglCntntMDocCategoryin interfaceLegalDocumentService- Returns:
- A fluent helper to fetch multiple
LglCntntMDocCategoryentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getLglCntntMDocCategoryByKey
@Nonnull public LglCntntMDocCategoryByKeyFluentHelper getLglCntntMDocCategoryByKey(UUID lglCntntMDocCategoryUUID) Deprecated.Description copied from interface:LegalDocumentServiceFetch a singleLglCntntMDocCategoryentity using key fields.- Specified by:
getLglCntntMDocCategoryByKeyin interfaceLegalDocumentService- Parameters:
lglCntntMDocCategoryUUID- Universal Unique IdentifierConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
LglCntntMDocCategoryentity 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 theexecutemethod on the fluent helper object.
-
createLglCntntMDocCategory
@Nonnull public LglCntntMDocCategoryCreateFluentHelper createLglCntntMDocCategory(@Nonnull LglCntntMDocCategory lglCntntMDocCategory) Deprecated.Description copied from interface:LegalDocumentServiceCreate a newLglCntntMDocCategoryentity and save it to the S/4HANA system.- Specified by:
createLglCntntMDocCategoryin interfaceLegalDocumentService- Parameters:
lglCntntMDocCategory-LglCntntMDocCategoryentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
LglCntntMDocCategoryentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllLglCntntMDocParCategory
Deprecated.Description copied from interface:LegalDocumentServiceFetch multipleLglCntntMDocParCategoryentities.- Specified by:
getAllLglCntntMDocParCategoryin interfaceLegalDocumentService- Returns:
- A fluent helper to fetch multiple
LglCntntMDocParCategoryentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getLglCntntMDocParCategoryByKey
@Nonnull public LglCntntMDocParCategoryByKeyFluentHelper getLglCntntMDocParCategoryByKey(UUID lglCntntMDocParCatUUID) Deprecated.Description copied from interface:LegalDocumentServiceFetch a singleLglCntntMDocParCategoryentity using key fields.- Specified by:
getLglCntntMDocParCategoryByKeyin interfaceLegalDocumentService- Parameters:
lglCntntMDocParCatUUID- Universal Unique IdentifierConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
LglCntntMDocParCategoryentity 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 theexecutemethod on the fluent helper object.
-
createLglCntntMDocParCategory
@Nonnull public LglCntntMDocParCategoryCreateFluentHelper createLglCntntMDocParCategory(@Nonnull LglCntntMDocParCategory lglCntntMDocParCategory) Deprecated.Description copied from interface:LegalDocumentServiceCreate a newLglCntntMDocParCategoryentity and save it to the S/4HANA system.- Specified by:
createLglCntntMDocParCategoryin interfaceLegalDocumentService- Parameters:
lglCntntMDocParCategory-LglCntntMDocParCategoryentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
LglCntntMDocParCategoryentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllLglDocStamp
Deprecated.Description copied from interface:LegalDocumentServiceFetch multipleLglDocStampentities.- Specified by:
getAllLglDocStampin interfaceLegalDocumentService- Returns:
- A fluent helper to fetch multiple
LglDocStampentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getLglDocStampByKey
Deprecated.Description copied from interface:LegalDocumentServiceFetch a singleLglDocStampentity using key fields.- Specified by:
getLglDocStampByKeyin interfaceLegalDocumentService- Parameters:
lglCntntMDocumentStampUUID- Universal Unique IdentifierConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
LglDocStampentity 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 theexecutemethod on the fluent helper object.
-
createLglDocStamp
Deprecated.Description copied from interface:LegalDocumentServiceCreate a newLglDocStampentity and save it to the S/4HANA system.- Specified by:
createLglDocStampin interfaceLegalDocumentService- Parameters:
lglDocStamp-LglDocStampentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
LglDocStampentity. To perform execution, call theexecutemethod on the fluent helper object.
-
setLegalDocumentToAccepted
@Nonnull public SetLegalDocumentToAcceptedFluentHelper setLegalDocumentToAccepted(@Nonnull UUID lglCntntMDocumentUUID) Deprecated.Description copied from interface:LegalDocumentServiceCreates a fluent helper for the SetLegalDocumentToAccepted OData function import.
- Specified by:
setLegalDocumentToAcceptedin interfaceLegalDocumentService- Parameters:
lglCntntMDocumentUUID- Universal Unique IDConstraints: none
Original parameter name from the Odata EDM: LglCntntMDocumentUUID
- Returns:
- A fluent helper object that will execute the SetLegalDocumentToAccepted OData function import with
the provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-