Package de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.interf.erp.strategy
Interface LrdActionsStrategy
- All Known Implementing Classes:
LrdActionsStrategyERP,LrdActionsStrategyERP605
public interface LrdActionsStrategy
Standard actions provided by the LORD API; such as save, load, copy, etc.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionexecuteLrdDoActionsDelete(TransactionConfiguration shop, SalesDocument salesDoc, JCoConnection cn, String objectName, TechKey[] itemsToDelete) Strategy for ERP_LORD_DO_ACTIONS.voidexecuteLrdDoActionsDocumentPricing(SalesDocument salesDoc, JCoConnection cn, TransactionConfiguration transConf) Executes ERP_LORD_DO_ACTIONS with PRICING action on header level.voidexecuteLrdDoActionsDocumentPricing(SalesDocument salesDoc, String pricingType, JCoConnection cn, TransactionConfiguration transConf) Executes ERP_LORD_DO_ACTIONS with PRICING action on header level.executeLrdLoad(SalesDocument posd, BackendState erpDocument, JCoConnection cn, LoadOperation loadState) Strategy for ERP_LORD_LOAD.executeLrdSave(SalesDocument posd, boolean commit, JCoConnection cn) Strategy for ERP_LORD_SAVE.Strategy for ERP_LORD_SET_ACTIVE_FIELDS.
-
Field Details
-
SHIPTO_PARTNER
Object type constant to delete partner function.- See Also:
-
ITEMS
Object type constant to delete sales document items.- See Also:
-
-
Method Details
-
executeLrdDoActionsDelete
BaseStrategyERP.ReturnValue executeLrdDoActionsDelete(TransactionConfiguration shop, SalesDocument salesDoc, JCoConnection cn, String objectName, TechKey[] itemsToDelete) throws BackendException Strategy for ERP_LORD_DO_ACTIONS.- Parameters:
shop- The shop objectsalesDoc- The sales document (e.g. basket, order, ...)cn- Connection to useobjectName- Object type to delete, one ofDoActionsStrategy.CREDIT_CARD,DoActionsStrategy.ITEMSorDoActionsStrategy.SHIP_TO_PARTNER.itemsToDelete- Array ofTechKeysof the items to delete. UseDoActionsStrategy.NO_ITEMSif no items are to be deleted.- Returns:
- Object containing messages of call and (if present) the return code generated by the function module.
- Throws:
BackendException- in case of a back-end or communication error
-
executeLrdSave
BackendCallResult executeLrdSave(SalesDocument posd, boolean commit, JCoConnection cn) throws BackendException Strategy for ERP_LORD_SAVE.- Parameters:
posd- The sales document (e.g. basket, order, ...)commit- Specifies if the save should be committed alsocn- Connection to use- Returns:
- Object containing messages of call and (if present) the return code generated by the function module.
- Throws:
BackendException- in case of a back-end or communication error
-
executeLrdLoad
BackendCallResult executeLrdLoad(SalesDocument posd, BackendState erpDocument, JCoConnection cn, LoadOperation loadState) throws BackendException Strategy for ERP_LORD_LOAD.- Parameters:
posd- The sales document (e.g. basket, order, ...)erpDocument- back-end layer representation of ERP sales documentcn- Connection to useloadState- operation with should be performed, create, display or- Returns:
- Object containing messages of call and (if present) the return code generated by the function module.
- Throws:
BackendException- in case of a back-end error
-
executeSetActiveFields
Strategy for ERP_LORD_SET_ACTIVE_FIELDS. Allows to instruct LRD API to perform only checks on fields which are actually in use (performance).
The "ActiveFieldsList" should be filled as follows:
ArrayList activFieldList = new ArrayList();
SetActiveFieldsListEntry aflE = new SetActiveFieldsListEntry("HEAD", "BSTKD");
activeFieldList.add(aflE);
- Parameters:
cn- Connection to use- Returns:
- Object containing messages of call and (if present) the return code generated by the function module.
- Throws:
BackendException- in case of a back-end or communication error
-
executeLrdDoActionsDocumentPricing
void executeLrdDoActionsDocumentPricing(SalesDocument salesDoc, JCoConnection cn, TransactionConfiguration transConf) throws BackendException Executes ERP_LORD_DO_ACTIONS with PRICING action on header level. Updates the freights, i.e. runs with pricing type 'H'- Parameters:
salesDoc- Sales documentcn- JCO connection to ERPtransConf- Sales transaction specific customizing- Throws:
BackendException- in case of a back-end or communication error
-
executeLrdDoActionsDocumentPricing
void executeLrdDoActionsDocumentPricing(SalesDocument salesDoc, String pricingType, JCoConnection cn, TransactionConfiguration transConf) throws BackendException Executes ERP_LORD_DO_ACTIONS with PRICING action on header level.- Parameters:
salesDoc- Sales documentpricingType- Pricing type. SeeAdditionalPricing.getPriceType()cn- JCO connection to ERPtransConf- Sales transaction specific customising- Throws:
BackendException- in case of a back-end or communication error
-