public interface CustomerReturnService extends BatchService<CustomerReturnServiceBatch>
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 |
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. |
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull CustomerReturnService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull CustomerReturnFluentHelper getAllCustomerReturn()
CustomerReturn
entities.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 CustomerReturnByKeyFluentHelper getCustomerReturnByKey(String customerReturn)
CustomerReturn
entity using key fields.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 CustomerReturnCreateFluentHelper createCustomerReturn(@Nonnull CustomerReturn customerReturn)
CustomerReturn
entity and save it to the S/4HANA system.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 CustomerReturnUpdateFluentHelper updateCustomerReturn(@Nonnull CustomerReturn customerReturn)
CustomerReturn
entity and save it to the S/4HANA system.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 CustomerReturnDeleteFluentHelper deleteCustomerReturn(@Nonnull CustomerReturn customerReturn)
CustomerReturn
entity in the S/4HANA system.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 CustomerReturnItemFluentHelper getAllCustomerReturnItem()
CustomerReturnItem
entities.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 CustomerReturnItemByKeyFluentHelper getCustomerReturnItemByKey(String customerReturn, String customerReturnItem)
CustomerReturnItem
entity using key fields.customerReturnItem
- Customer Return Item
Constraints: Not nullable, Maximum length: 6
customerReturn
- Customer Return
Constraints: Not nullable, Maximum length: 10
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 CustomerReturnItemCreateFluentHelper createCustomerReturnItem(@Nonnull CustomerReturnItem customerReturnItem)
CustomerReturnItem
entity and save it to the S/4HANA system.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 CustomerReturnItemUpdateFluentHelper updateCustomerReturnItem(@Nonnull CustomerReturnItem customerReturnItem)
CustomerReturnItem
entity and save it to the S/4HANA system.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 CustomerReturnItemDeleteFluentHelper deleteCustomerReturnItem(@Nonnull CustomerReturnItem customerReturnItem)
CustomerReturnItem
entity in the S/4HANA system.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 CustomerReturnItemPartnerFluentHelper getAllCustomerReturnItemPartner()
CustomerReturnItemPartner
entities.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 CustomerReturnItemPartnerByKeyFluentHelper getCustomerReturnItemPartnerByKey(String customerReturn, String customerReturnItem, String partnerFunction)
CustomerReturnItemPartner
entity using key fields.partnerFunction
- Partner Function
Constraints: Not nullable, Maximum length: 2
customerReturnItem
- Item number of the SD document
Constraints: Not nullable, Maximum length: 6
customerReturn
- Sales and Distribution Document Number
Constraints: Not nullable, Maximum length: 10
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 CustomerReturnItemPartnerUpdateFluentHelper updateCustomerReturnItemPartner(@Nonnull CustomerReturnItemPartner customerReturnItemPartner)
CustomerReturnItemPartner
entity and save it to the S/4HANA system.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 CustomerReturnItemPartnerDeleteFluentHelper deleteCustomerReturnItemPartner(@Nonnull CustomerReturnItemPartner customerReturnItemPartner)
CustomerReturnItemPartner
entity in the S/4HANA system.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 CustomerReturnItemPrcgElmntFluentHelper getAllCustomerReturnItemPrcgElmnt()
CustomerReturnItemPrcgElmnt
entities.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 CustomerReturnItemPrcgElmntByKeyFluentHelper getCustomerReturnItemPrcgElmntByKey(String customerReturn, String customerReturnItem, String pricingProcedureStep, String pricingProcedureCounter)
CustomerReturnItemPrcgElmnt
entity using key fields.customerReturnItem
- Condition item number
Constraints: Not nullable, Maximum length: 6
pricingProcedureCounter
- Condition Counter
Constraints: Not nullable, Maximum length: 3
customerReturn
- Sales Document
Constraints: Not nullable, Maximum length: 10
pricingProcedureStep
- Step Number
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 CustomerReturnItemPrcgElmntUpdateFluentHelper updateCustomerReturnItemPrcgElmnt(@Nonnull CustomerReturnItemPrcgElmnt customerReturnItemPrcgElmnt)
CustomerReturnItemPrcgElmnt
entity and save it to the S/4HANA system.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 CustomerReturnItemPrcgElmntDeleteFluentHelper deleteCustomerReturnItemPrcgElmnt(@Nonnull CustomerReturnItemPrcgElmnt customerReturnItemPrcgElmnt)
CustomerReturnItemPrcgElmnt
entity in the S/4HANA system.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 CustomerReturnPartnerFluentHelper getAllCustomerReturnPartner()
CustomerReturnPartner
entities.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 CustomerReturnPartnerByKeyFluentHelper getCustomerReturnPartnerByKey(String customerReturn, String partnerFunction)
CustomerReturnPartner
entity using key fields.partnerFunction
- Partner Function
Constraints: Not nullable, Maximum length: 2
customerReturn
- Sales and Distribution Document Number
Constraints: Not nullable, Maximum length: 10
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 CustomerReturnPartnerUpdateFluentHelper updateCustomerReturnPartner(@Nonnull CustomerReturnPartner customerReturnPartner)
CustomerReturnPartner
entity and save it to the S/4HANA system.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 CustomerReturnPartnerDeleteFluentHelper deleteCustomerReturnPartner(@Nonnull CustomerReturnPartner customerReturnPartner)
CustomerReturnPartner
entity in the S/4HANA system.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 CustomerReturnPrcgElmntFluentHelper getAllCustomerReturnPrcgElmnt()
CustomerReturnPrcgElmnt
entities.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 CustomerReturnPrcgElmntByKeyFluentHelper getCustomerReturnPrcgElmntByKey(String customerReturn, String pricingProcedureStep, String pricingProcedureCounter)
CustomerReturnPrcgElmnt
entity using key fields.pricingProcedureCounter
- Condition Counter
Constraints: Not nullable, Maximum length: 3
customerReturn
- Sales Document
Constraints: Not nullable, Maximum length: 10
pricingProcedureStep
- Step Number
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 CustomerReturnPrcgElmntUpdateFluentHelper updateCustomerReturnPrcgElmnt(@Nonnull CustomerReturnPrcgElmnt customerReturnPrcgElmnt)
CustomerReturnPrcgElmnt
entity and save it to the S/4HANA system.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 CustomerReturnPrcgElmntDeleteFluentHelper deleteCustomerReturnPrcgElmnt(@Nonnull CustomerReturnPrcgElmnt customerReturnPrcgElmnt)
CustomerReturnPrcgElmnt
entity in the S/4HANA system.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 CustomerReturnProcessStepFluentHelper getAllCustomerReturnProcessStep()
CustomerReturnProcessStep
entities.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 CustomerReturnProcessStepByKeyFluentHelper getCustomerReturnProcessStepByKey(String retsMgmtProcess, String retsMgmtProcessItem, String retsMgmtProcItmQtySplit, String retsMgmtProcessStep, String returnsDocumentType, String returnsDocument, String returnsDocumentItem)
CustomerReturnProcessStep
entity using key fields.returnsDocumentType
- Document Type
Constraints: Not nullable, Maximum length: 2
retsMgmtProcessStep
- Step ID
Constraints: Not nullable, Maximum length: 4
returnsDocumentItem
- Document Item
Constraints: Not nullable, Maximum length: 10
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
returnsDocument
- Document Number
Constraints: Not nullable, Maximum length: 30
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 CustomerReturnScheduleLineFluentHelper getAllCustomerReturnScheduleLine()
CustomerReturnScheduleLine
entities.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 CustomerReturnScheduleLineByKeyFluentHelper getCustomerReturnScheduleLineByKey(String customerReturn, String customerReturnItem, String scheduleLine)
CustomerReturnScheduleLine
entity using key fields.customerReturnItem
- Sales Document Item
Constraints: Not nullable, Maximum length: 6
scheduleLine
- Schedule Line Number
Constraints: Not nullable, Maximum length: 4
customerReturn
- Sales Document
Constraints: Not nullable, Maximum length: 10
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 CustomerReturnValAddedSrvcFluentHelper getAllCustomerReturnValAddedSrvc()
CustomerReturnValAddedSrvc
entities.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 CustomerReturnValAddedSrvcByKeyFluentHelper getCustomerReturnValAddedSrvcByKey(String valueAddedServiceType, String valueAddedSubServiceType, String customerReturn, String customerReturnItem)
CustomerReturnValAddedSrvc
entity using key fields.customerReturnItem
- Item number of the reference item
Constraints: Not nullable, Maximum length: 6
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
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 CustomerReturnValAddedSrvcCreateFluentHelper createCustomerReturnValAddedSrvc(@Nonnull CustomerReturnValAddedSrvc customerReturnValAddedSrvc)
CustomerReturnValAddedSrvc
entity and save it to the S/4HANA system.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 CustomerReturnValAddedSrvcUpdateFluentHelper updateCustomerReturnValAddedSrvc(@Nonnull CustomerReturnValAddedSrvc customerReturnValAddedSrvc)
CustomerReturnValAddedSrvc
entity and save it to the S/4HANA system.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 CustomerReturnValAddedSrvcDeleteFluentHelper deleteCustomerReturnValAddedSrvc(@Nonnull CustomerReturnValAddedSrvc customerReturnValAddedSrvc)
CustomerReturnValAddedSrvc
entity in the S/4HANA system.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 RejectApprovalRequestFluentHelper rejectApprovalRequest(String customerReturn)
Creates a fluent helper for the rejectApprovalRequest OData function import.
customerReturn
- Constraints: Not nullable, Maximum length: 11
Original parameter name from the Odata EDM: CustomerReturn
execute
method on the fluent helper object.@Nonnull ReleaseApprovalRequestFluentHelper releaseApprovalRequest(String customerReturn)
Creates a fluent helper for the releaseApprovalRequest OData function import.
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.