@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultCustomerReturnService") public class DefaultCustomerReturnService extends Object implements CustomerReturnService
You can use this service to integrate external applications with customer return processing. In every API call, you can make use of the following operations: - You can retrieve customer returns. Apply any of the filters provided or retrieve all existing data. - You can create customer returns. Note that you must use “deep insert” requests (a header plus at least one of the following entities: header partner, header pricing element, item, item partner, and item pricing element). You cannot create headers without including any related entities. - You can create items for existing customer returns. Note that you must use “deep insert” requests (an item plus at least one of the following entities: item partner and item pricing element). You cannot create items without including any related entities. - For existing customer returns, you can update the header, header partner, header pricing element, item, item partner, and item pricing element. - For existing customer returns, you can delete the header, header partner, header pricing element, item, item partner, and item pricing element. - You can approve or reject existing accelerated returns. Note: Certain elements and entities can only be used if you activate the business function ISR_RETAILSYSTEM. For more information, see Business Documentation. .
Reference: SAP API Business Hub
OData Service: | OP_API_CUSTOMER_RETURN_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Customer Return |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCustomerReturnService()
Creates a service using
CustomerReturnService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultCustomerReturnService()
CustomerReturnService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCustomerReturnService withServicePath(@Nonnull String servicePath)
CustomerReturnService
withServicePath
in interface CustomerReturnService
servicePath
- Service path that will override the default.@Nonnull public DefaultCustomerReturnServiceBatch batch()
batch
in interface BatchService<CustomerReturnServiceBatch>
@Nonnull public CustomerReturnFluentHelper getAllCustomerReturn()
CustomerReturnService
CustomerReturn
entities.getAllCustomerReturn
in interface CustomerReturnService
CustomerReturn
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 CustomerReturnByKeyFluentHelper getCustomerReturnByKey(String customerReturn)
CustomerReturnService
CustomerReturn
entity using key fields.getCustomerReturnByKey
in interface CustomerReturnService
customerReturn
- Customer Return
Constraints: Not nullable, Maximum length: 10
CustomerReturn
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 CustomerReturnCreateFluentHelper createCustomerReturn(@Nonnull CustomerReturn customerReturn)
CustomerReturnService
CustomerReturn
entity and save it to the S/4HANA system.createCustomerReturn
in interface CustomerReturnService
customerReturn
- CustomerReturn
entity object that will be created in the S/4HANA system.CustomerReturn
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnUpdateFluentHelper updateCustomerReturn(@Nonnull CustomerReturn customerReturn)
CustomerReturnService
CustomerReturn
entity and save it to the S/4HANA system.updateCustomerReturn
in interface CustomerReturnService
customerReturn
- CustomerReturn
entity object that will be updated in the S/4HANA system.CustomerReturn
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnDeleteFluentHelper deleteCustomerReturn(@Nonnull CustomerReturn customerReturn)
CustomerReturnService
CustomerReturn
entity in the S/4HANA system.deleteCustomerReturn
in interface CustomerReturnService
customerReturn
- CustomerReturn
entity object that will be deleted in the S/4HANA system.CustomerReturn
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemFluentHelper getAllCustomerReturnItem()
CustomerReturnService
CustomerReturnItem
entities.getAllCustomerReturnItem
in interface CustomerReturnService
CustomerReturnItem
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 CustomerReturnItemByKeyFluentHelper getCustomerReturnItemByKey(String customerReturn, String customerReturnItem)
CustomerReturnService
CustomerReturnItem
entity using key fields.getCustomerReturnItemByKey
in interface CustomerReturnService
customerReturn
- Customer Return
Constraints: Not nullable, Maximum length: 10
customerReturnItem
- Customer Return Item
Constraints: Not nullable, Maximum length: 6
CustomerReturnItem
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 CustomerReturnItemCreateFluentHelper createCustomerReturnItem(@Nonnull CustomerReturnItem customerReturnItem)
CustomerReturnService
CustomerReturnItem
entity and save it to the S/4HANA system.createCustomerReturnItem
in interface CustomerReturnService
customerReturnItem
- CustomerReturnItem
entity object that will be created in the S/4HANA system.CustomerReturnItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemUpdateFluentHelper updateCustomerReturnItem(@Nonnull CustomerReturnItem customerReturnItem)
CustomerReturnService
CustomerReturnItem
entity and save it to the S/4HANA system.updateCustomerReturnItem
in interface CustomerReturnService
customerReturnItem
- CustomerReturnItem
entity object that will be updated in the S/4HANA system.CustomerReturnItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemDeleteFluentHelper deleteCustomerReturnItem(@Nonnull CustomerReturnItem customerReturnItem)
CustomerReturnService
CustomerReturnItem
entity in the S/4HANA system.deleteCustomerReturnItem
in interface CustomerReturnService
customerReturnItem
- CustomerReturnItem
entity object that will be deleted in the S/4HANA system.CustomerReturnItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemPartnerFluentHelper getAllCustomerReturnItemPartner()
CustomerReturnService
CustomerReturnItemPartner
entities.getAllCustomerReturnItemPartner
in interface CustomerReturnService
CustomerReturnItemPartner
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 CustomerReturnItemPartnerByKeyFluentHelper getCustomerReturnItemPartnerByKey(String customerReturn, String customerReturnItem, String partnerFunction)
CustomerReturnService
CustomerReturnItemPartner
entity using key fields.getCustomerReturnItemPartnerByKey
in interface CustomerReturnService
customerReturn
- Sales and Distribution Document Number
Constraints: Not nullable, Maximum length: 10
customerReturnItem
- Item number of the SD document
Constraints: Not nullable, Maximum length: 6
partnerFunction
- Partner Function
Constraints: Not nullable, Maximum length: 2
CustomerReturnItemPartner
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 CustomerReturnItemPartnerUpdateFluentHelper updateCustomerReturnItemPartner(@Nonnull CustomerReturnItemPartner customerReturnItemPartner)
CustomerReturnService
CustomerReturnItemPartner
entity and save it to the S/4HANA system.updateCustomerReturnItemPartner
in interface CustomerReturnService
customerReturnItemPartner
- CustomerReturnItemPartner
entity object that will be updated in the S/4HANA system.CustomerReturnItemPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemPartnerDeleteFluentHelper deleteCustomerReturnItemPartner(@Nonnull CustomerReturnItemPartner customerReturnItemPartner)
CustomerReturnService
CustomerReturnItemPartner
entity in the S/4HANA system.deleteCustomerReturnItemPartner
in interface CustomerReturnService
customerReturnItemPartner
- CustomerReturnItemPartner
entity object that will be deleted in the S/4HANA system.CustomerReturnItemPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemPrcgElmntFluentHelper getAllCustomerReturnItemPrcgElmnt()
CustomerReturnService
CustomerReturnItemPrcgElmnt
entities.getAllCustomerReturnItemPrcgElmnt
in interface CustomerReturnService
CustomerReturnItemPrcgElmnt
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 CustomerReturnItemPrcgElmntByKeyFluentHelper getCustomerReturnItemPrcgElmntByKey(String customerReturn, String customerReturnItem, String pricingProcedureStep, String pricingProcedureCounter)
CustomerReturnService
CustomerReturnItemPrcgElmnt
entity using key fields.getCustomerReturnItemPrcgElmntByKey
in interface CustomerReturnService
customerReturn
- Sales Document
Constraints: Not nullable, Maximum length: 10
customerReturnItem
- Condition item number
Constraints: Not nullable, Maximum length: 6
pricingProcedureStep
- Step Number
Constraints: Not nullable, Maximum length: 3
pricingProcedureCounter
- Condition Counter
Constraints: Not nullable, Maximum length: 3
CustomerReturnItemPrcgElmnt
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 CustomerReturnItemPrcgElmntUpdateFluentHelper updateCustomerReturnItemPrcgElmnt(@Nonnull CustomerReturnItemPrcgElmnt customerReturnItemPrcgElmnt)
CustomerReturnService
CustomerReturnItemPrcgElmnt
entity and save it to the S/4HANA system.updateCustomerReturnItemPrcgElmnt
in interface CustomerReturnService
customerReturnItemPrcgElmnt
- CustomerReturnItemPrcgElmnt
entity object that will be updated in the S/4HANA system.CustomerReturnItemPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnItemPrcgElmntDeleteFluentHelper deleteCustomerReturnItemPrcgElmnt(@Nonnull CustomerReturnItemPrcgElmnt customerReturnItemPrcgElmnt)
CustomerReturnService
CustomerReturnItemPrcgElmnt
entity in the S/4HANA system.deleteCustomerReturnItemPrcgElmnt
in interface CustomerReturnService
customerReturnItemPrcgElmnt
- CustomerReturnItemPrcgElmnt
entity object that will be deleted in the S/4HANA system.CustomerReturnItemPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnPartnerFluentHelper getAllCustomerReturnPartner()
CustomerReturnService
CustomerReturnPartner
entities.getAllCustomerReturnPartner
in interface CustomerReturnService
CustomerReturnPartner
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 CustomerReturnPartnerByKeyFluentHelper getCustomerReturnPartnerByKey(String customerReturn, String partnerFunction)
CustomerReturnService
CustomerReturnPartner
entity using key fields.getCustomerReturnPartnerByKey
in interface CustomerReturnService
customerReturn
- Sales and Distribution Document Number
Constraints: Not nullable, Maximum length: 10
partnerFunction
- Partner Function
Constraints: Not nullable, Maximum length: 2
CustomerReturnPartner
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 CustomerReturnPartnerUpdateFluentHelper updateCustomerReturnPartner(@Nonnull CustomerReturnPartner customerReturnPartner)
CustomerReturnService
CustomerReturnPartner
entity and save it to the S/4HANA system.updateCustomerReturnPartner
in interface CustomerReturnService
customerReturnPartner
- CustomerReturnPartner
entity object that will be updated in the S/4HANA system.CustomerReturnPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnPartnerDeleteFluentHelper deleteCustomerReturnPartner(@Nonnull CustomerReturnPartner customerReturnPartner)
CustomerReturnService
CustomerReturnPartner
entity in the S/4HANA system.deleteCustomerReturnPartner
in interface CustomerReturnService
customerReturnPartner
- CustomerReturnPartner
entity object that will be deleted in the S/4HANA system.CustomerReturnPartner
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnPrcgElmntFluentHelper getAllCustomerReturnPrcgElmnt()
CustomerReturnService
CustomerReturnPrcgElmnt
entities.getAllCustomerReturnPrcgElmnt
in interface CustomerReturnService
CustomerReturnPrcgElmnt
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 CustomerReturnPrcgElmntByKeyFluentHelper getCustomerReturnPrcgElmntByKey(String customerReturn, String pricingProcedureStep, String pricingProcedureCounter)
CustomerReturnService
CustomerReturnPrcgElmnt
entity using key fields.getCustomerReturnPrcgElmntByKey
in interface CustomerReturnService
customerReturn
- Sales Document
Constraints: Not nullable, Maximum length: 10
pricingProcedureStep
- Step Number
Constraints: Not nullable, Maximum length: 3
pricingProcedureCounter
- Condition Counter
Constraints: Not nullable, Maximum length: 3
CustomerReturnPrcgElmnt
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 CustomerReturnPrcgElmntUpdateFluentHelper updateCustomerReturnPrcgElmnt(@Nonnull CustomerReturnPrcgElmnt customerReturnPrcgElmnt)
CustomerReturnService
CustomerReturnPrcgElmnt
entity and save it to the S/4HANA system.updateCustomerReturnPrcgElmnt
in interface CustomerReturnService
customerReturnPrcgElmnt
- CustomerReturnPrcgElmnt
entity object that will be updated in the S/4HANA system.CustomerReturnPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnPrcgElmntDeleteFluentHelper deleteCustomerReturnPrcgElmnt(@Nonnull CustomerReturnPrcgElmnt customerReturnPrcgElmnt)
CustomerReturnService
CustomerReturnPrcgElmnt
entity in the S/4HANA system.deleteCustomerReturnPrcgElmnt
in interface CustomerReturnService
customerReturnPrcgElmnt
- CustomerReturnPrcgElmnt
entity object that will be deleted in the S/4HANA system.CustomerReturnPrcgElmnt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnProcessStepFluentHelper getAllCustomerReturnProcessStep()
CustomerReturnService
CustomerReturnProcessStep
entities.getAllCustomerReturnProcessStep
in interface CustomerReturnService
CustomerReturnProcessStep
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 CustomerReturnProcessStepByKeyFluentHelper getCustomerReturnProcessStepByKey(String retsMgmtProcess, String retsMgmtProcessItem, String retsMgmtProcItmQtySplit, String retsMgmtProcessStep, String returnsDocumentType, String returnsDocument, String returnsDocumentItem)
CustomerReturnService
CustomerReturnProcessStep
entity using key fields.getCustomerReturnProcessStepByKey
in interface CustomerReturnService
retsMgmtProcess
- Process Identification Number
Constraints: Not nullable, Maximum length: 10
retsMgmtProcessItem
- Item Number
Constraints: Not nullable, Maximum length: 6
retsMgmtProcItmQtySplit
- Split Identification Number
Constraints: Not nullable, Maximum length: 3
retsMgmtProcessStep
- Step ID
Constraints: Not nullable, Maximum length: 4
returnsDocumentType
- Document Type
Constraints: Not nullable, Maximum length: 2
returnsDocument
- Document Number
Constraints: Not nullable, Maximum length: 30
returnsDocumentItem
- Document Item
Constraints: Not nullable, Maximum length: 10
CustomerReturnProcessStep
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 CustomerReturnScheduleLineFluentHelper getAllCustomerReturnScheduleLine()
CustomerReturnService
CustomerReturnScheduleLine
entities.getAllCustomerReturnScheduleLine
in interface CustomerReturnService
CustomerReturnScheduleLine
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 CustomerReturnScheduleLineByKeyFluentHelper getCustomerReturnScheduleLineByKey(String customerReturn, String customerReturnItem, String scheduleLine)
CustomerReturnService
CustomerReturnScheduleLine
entity using key fields.getCustomerReturnScheduleLineByKey
in interface CustomerReturnService
customerReturn
- Sales Document
Constraints: Not nullable, Maximum length: 10
customerReturnItem
- Sales Document Item
Constraints: Not nullable, Maximum length: 6
scheduleLine
- Schedule Line Number
Constraints: Not nullable, Maximum length: 4
CustomerReturnScheduleLine
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 CustomerReturnValAddedSrvcFluentHelper getAllCustomerReturnValAddedSrvc()
CustomerReturnService
CustomerReturnValAddedSrvc
entities.getAllCustomerReturnValAddedSrvc
in interface CustomerReturnService
CustomerReturnValAddedSrvc
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 CustomerReturnValAddedSrvcByKeyFluentHelper getCustomerReturnValAddedSrvcByKey(String valueAddedServiceType, String valueAddedSubServiceType, String customerReturn, String customerReturnItem)
CustomerReturnService
CustomerReturnValAddedSrvc
entity using key fields.getCustomerReturnValAddedSrvcByKey
in interface CustomerReturnService
valueAddedServiceType
- VAS Service Types
Constraints: Not nullable, Maximum length: 2
valueAddedSubServiceType
- VAS Sub Services
Constraints: Not nullable, Maximum length: 5
customerReturn
- Document number of the reference document
Constraints: Not nullable, Maximum length: 10
customerReturnItem
- Item number of the reference item
Constraints: Not nullable, Maximum length: 6
CustomerReturnValAddedSrvc
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 CustomerReturnValAddedSrvcCreateFluentHelper createCustomerReturnValAddedSrvc(@Nonnull CustomerReturnValAddedSrvc customerReturnValAddedSrvc)
CustomerReturnService
CustomerReturnValAddedSrvc
entity and save it to the S/4HANA system.createCustomerReturnValAddedSrvc
in interface CustomerReturnService
customerReturnValAddedSrvc
- CustomerReturnValAddedSrvc
entity object that will be created in the S/4HANA system.CustomerReturnValAddedSrvc
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnValAddedSrvcUpdateFluentHelper updateCustomerReturnValAddedSrvc(@Nonnull CustomerReturnValAddedSrvc customerReturnValAddedSrvc)
CustomerReturnService
CustomerReturnValAddedSrvc
entity and save it to the S/4HANA system.updateCustomerReturnValAddedSrvc
in interface CustomerReturnService
customerReturnValAddedSrvc
- CustomerReturnValAddedSrvc
entity object that will be updated in the S/4HANA system.CustomerReturnValAddedSrvc
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerReturnValAddedSrvcDeleteFluentHelper deleteCustomerReturnValAddedSrvc(@Nonnull CustomerReturnValAddedSrvc customerReturnValAddedSrvc)
CustomerReturnService
CustomerReturnValAddedSrvc
entity in the S/4HANA system.deleteCustomerReturnValAddedSrvc
in interface CustomerReturnService
customerReturnValAddedSrvc
- CustomerReturnValAddedSrvc
entity object that will be deleted in the S/4HANA system.CustomerReturnValAddedSrvc
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public RejectApprovalRequestFluentHelper rejectApprovalRequest(String customerReturn)
CustomerReturnService
Creates a fluent helper for the rejectApprovalRequest OData function import.
rejectApprovalRequest
in interface CustomerReturnService
customerReturn
- Constraints: Not nullable, Maximum length: 11
Original parameter name from the Odata EDM: CustomerReturn
execute
method on the fluent helper object.@Nonnull public ReleaseApprovalRequestFluentHelper releaseApprovalRequest(String customerReturn)
CustomerReturnService
Creates a fluent helper for the releaseApprovalRequest OData function import.
releaseApprovalRequest
in interface CustomerReturnService
customerReturn
- Constraints: Not nullable, Maximum length: 11
Original parameter name from the Odata EDM: CustomerReturn
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.