public class SlsPricingProcedureItem extends VdmEntity<SlsPricingProcedureItem>
Original entity name from the Odata EDM: A_SlsPricingProcedureItemType
Modifier and Type | Class and Description |
---|---|
static class |
SlsPricingProcedureItem.SlsPricingProcedureItemBuilder |
Modifier and Type | Field and Description |
---|---|
static SlsPricingProcedureItemField<String> |
ACCOUNT_KEY_FOR_GL_ACCOUNT
Use with available fluent helpers to apply the AccountKeyForGLAccount field to query operations.
|
static SlsPricingProcedureItemField<String> |
ACCT_KEY_FOR_ACCRUALS_GL_ACCOUNT
Use with available fluent helpers to apply the AcctKeyForAccrualsGLAccount field to query operations.
|
static SlsPricingProcedureItemSelectable |
ALL_FIELDS
Selector for all available fields of SlsPricingProcedureItem.
|
static SlsPricingProcedureItemField<Boolean> |
CNDN_IS_ACCT_DETN_RELEVANT
Use with available fluent helpers to apply the CndnIsAcctDetnRelevant field to query operations.
|
static SlsPricingProcedureItemField<String> |
CONDITION_APPLICATION
Use with available fluent helpers to apply the ConditionApplication field to query operations.
|
static SlsPricingProcedureItemField<Boolean> |
CONDITION_IS_FOR_STATISTICS
Use with available fluent helpers to apply the ConditionIsForStatistics field to query operations.
|
static SlsPricingProcedureItemField<Boolean> |
CONDITION_IS_MANDATORY
Use with available fluent helpers to apply the ConditionIsMandatory field to query operations.
|
static SlsPricingProcedureItemField<Boolean> |
CONDITION_IS_MANUALLY_DTMND
Use with available fluent helpers to apply the ConditionIsManuallyDtmnd field to query operations.
|
static SlsPricingProcedureItemField<String> |
CONDITION_TYPE
Use with available fluent helpers to apply the ConditionType field to query operations.
|
static SlsPricingProcedureItemField<String> |
CONDITION_USAGE
Use with available fluent helpers to apply the ConditionUsage field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRCG_PROCED_ITEM_FROM_REF_STEP
Use with available fluent helpers to apply the PrcgProcedItemFromRefStep field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRCG_PROCED_ITEM_SUBTOTAL
Use with available fluent helpers to apply the PrcgProcedItemSubtotal field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRCG_PROCED_ITEM_TO_REF_STEP
Use with available fluent helpers to apply the PrcgProcedItemToRefStep field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRICING_PROCEDURE
Use with available fluent helpers to apply the PricingProcedure field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRICING_PROCEDURE_COUNTER
Use with available fluent helpers to apply the PricingProcedureCounter field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRICING_PROCEDURE_ITEM_PRINT_TYPE
Use with available fluent helpers to apply the PricingProcedureItemPrintType field to query operations.
|
static SlsPricingProcedureItemField<String> |
PRICING_PROCEDURE_STEP
Use with available fluent helpers to apply the PricingProcedureStep field to query operations.
|
static SlsPricingProcedureItemLink<SlsPricingProcedure> |
TO_SALES_PRICING_PROCEDURE
Use with available fluent helpers to apply the to_SalesPricingProcedure navigation property to query operations.
|
static SlsPricingProcedureItemLink<SlsPricingConditionType> |
TO_SLS_PRICING_CONDITION_TYPE
Use with available fluent helpers to apply the to_SlsPricingConditionType navigation property to query operations.
|
static SlsPricingProcedureItemLink<SlsPrcgProcedItemText> |
TO_TEXT
Use with available fluent helpers to apply the to_Text navigation property to query operations.
|
changedOriginalFields
Constructor and Description |
---|
SlsPricingProcedureItem() |
SlsPricingProcedureItem(String conditionUsage,
String conditionApplication,
String pricingProcedure,
String pricingProcedureStep,
String pricingProcedureCounter,
String conditionType,
String prcgProcedItemFromRefStep,
String prcgProcedItemToRefStep,
Boolean conditionIsManuallyDtmnd,
String prcgProcedItemSubtotal,
Boolean conditionIsForStatistics,
String accountKeyForGLAccount,
String acctKeyForAccrualsGLAccount,
String pricingProcedureItemPrintType,
Boolean conditionIsMandatory,
Boolean cndnIsAcctDetnRelevant,
ErpConfigContext erpConfigContext,
SlsPricingProcedure toSalesPricingProcedure,
SlsPricingConditionType toSlsPricingConditionType,
List<SlsPrcgProcedItemText> toText) |
Modifier and Type | Method and Description |
---|---|
void |
addText(SlsPrcgProcedItemText... entity)
Adds elements to the list of associated SlsPrcgProcedItemText entities.
|
static SlsPricingProcedureItem.SlsPricingProcedureItemBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
SlsPricingProcedure |
fetchSalesPricingProcedure()
Fetches the SlsPricingProcedure entity (one to one) associated with this entity.
|
SlsPricingConditionType |
fetchSlsPricingConditionType()
Fetches the SlsPricingConditionType entity (one to one) associated with this entity.
|
List<SlsPrcgProcedItemText> |
fetchText()
Fetches the SlsPrcgProcedItemText entities (one to many) associated with this entity.
|
static <T> SlsPricingProcedureItemField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getAccountKeyForGLAccount()
Constraints: Not nullable, Maximum length: 3
|
String |
getAcctKeyForAccrualsGLAccount()
Constraints: Not nullable, Maximum length: 3
|
Boolean |
getCndnIsAcctDetnRelevant()
Constraints: none
|
String |
getConditionApplication()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
Boolean |
getConditionIsForStatistics()
Constraints: none
|
Boolean |
getConditionIsMandatory()
Constraints: none
|
Boolean |
getConditionIsManuallyDtmnd()
Constraints: none
|
String |
getConditionType()
Constraints: Not nullable, Maximum length: 4
|
String |
getConditionUsage()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
protected Map<String,Object> |
getKey() |
String |
getPrcgProcedItemFromRefStep()
Constraints: Not nullable, Maximum length: 3
|
String |
getPrcgProcedItemSubtotal()
Constraints: Not nullable, Maximum length: 1
|
String |
getPrcgProcedItemToRefStep()
Constraints: Not nullable, Maximum length: 3
|
String |
getPricingProcedure()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
String |
getPricingProcedureCounter()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
String |
getPricingProcedureItemPrintType()
Constraints: Not nullable, Maximum length: 1
|
String |
getPricingProcedureStep()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
Optional<SlsPricingProcedure> |
getSalesPricingProcedureIfPresent()
Retrieval of associated SlsPricingProcedure entity (one to one).
|
SlsPricingProcedure |
getSalesPricingProcedureOrFetch()
Retrieval of associated SlsPricingProcedure entity (one to one).
|
Optional<SlsPricingConditionType> |
getSlsPricingConditionTypeIfPresent()
Retrieval of associated SlsPricingConditionType entity (one to one).
|
SlsPricingConditionType |
getSlsPricingConditionTypeOrFetch()
Retrieval of associated SlsPricingConditionType entity (one to one).
|
Optional<List<SlsPrcgProcedItemText>> |
getTextIfPresent()
Retrieval of associated SlsPrcgProcedItemText entities (one to many).
|
List<SlsPrcgProcedItemText> |
getTextOrFetch()
Retrieval of associated SlsPrcgProcedItemText entities (one to many).
|
Class<SlsPricingProcedureItem> |
getType() |
int |
hashCode() |
void |
setAccountKeyForGLAccount(String accountKeyForGLAccount)
Constraints: Not nullable, Maximum length: 3
|
void |
setAcctKeyForAccrualsGLAccount(String acctKeyForAccrualsGLAccount)
Constraints: Not nullable, Maximum length: 3
|
void |
setCndnIsAcctDetnRelevant(Boolean cndnIsAcctDetnRelevant)
Constraints: none
|
void |
setConditionApplication(String conditionApplication)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setConditionIsForStatistics(Boolean conditionIsForStatistics)
Constraints: none
|
void |
setConditionIsMandatory(Boolean conditionIsMandatory)
Constraints: none
|
void |
setConditionIsManuallyDtmnd(Boolean conditionIsManuallyDtmnd)
Constraints: none
|
void |
setConditionType(String conditionType)
Constraints: Not nullable, Maximum length: 4
|
void |
setConditionUsage(String conditionUsage)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
void |
setPrcgProcedItemFromRefStep(String prcgProcedItemFromRefStep)
Constraints: Not nullable, Maximum length: 3
|
void |
setPrcgProcedItemSubtotal(String prcgProcedItemSubtotal)
Constraints: Not nullable, Maximum length: 1
|
void |
setPrcgProcedItemToRefStep(String prcgProcedItemToRefStep)
Constraints: Not nullable, Maximum length: 3
|
void |
setPricingProcedure(String pricingProcedure)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
void |
setPricingProcedureCounter(String pricingProcedureCounter)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setPricingProcedureItemPrintType(String pricingProcedureItemPrintType)
Constraints: Not nullable, Maximum length: 1
|
void |
setPricingProcedureStep(String pricingProcedureStep)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setSalesPricingProcedure(SlsPricingProcedure value)
Overwrites the associated SlsPricingProcedure entity for the loaded navigation property to_SalesPricingProcedure.
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setSlsPricingConditionType(SlsPricingConditionType value)
Overwrites the associated SlsPricingConditionType entity for the loaded navigation property to_SlsPricingConditionType.
|
void |
setText(List<SlsPrcgProcedItemText> value)
Overwrites the list of associated SlsPrcgProcedItemText entities for the loaded navigation property to_Text.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final SlsPricingProcedureItemSelectable ALL_FIELDS
public static final SlsPricingProcedureItemField<String> CONDITION_USAGE
public static final SlsPricingProcedureItemField<String> CONDITION_APPLICATION
public static final SlsPricingProcedureItemField<String> PRICING_PROCEDURE
public static final SlsPricingProcedureItemField<String> PRICING_PROCEDURE_STEP
public static final SlsPricingProcedureItemField<String> PRICING_PROCEDURE_COUNTER
public static final SlsPricingProcedureItemField<String> CONDITION_TYPE
public static final SlsPricingProcedureItemField<String> PRCG_PROCED_ITEM_FROM_REF_STEP
public static final SlsPricingProcedureItemField<String> PRCG_PROCED_ITEM_TO_REF_STEP
public static final SlsPricingProcedureItemField<Boolean> CONDITION_IS_MANUALLY_DTMND
public static final SlsPricingProcedureItemField<String> PRCG_PROCED_ITEM_SUBTOTAL
public static final SlsPricingProcedureItemField<Boolean> CONDITION_IS_FOR_STATISTICS
public static final SlsPricingProcedureItemField<String> ACCOUNT_KEY_FOR_GL_ACCOUNT
public static final SlsPricingProcedureItemField<String> ACCT_KEY_FOR_ACCRUALS_GL_ACCOUNT
public static final SlsPricingProcedureItemField<String> PRICING_PROCEDURE_ITEM_PRINT_TYPE
public static final SlsPricingProcedureItemField<Boolean> CONDITION_IS_MANDATORY
public static final SlsPricingProcedureItemField<Boolean> CNDN_IS_ACCT_DETN_RELEVANT
public static final SlsPricingProcedureItemLink<SlsPricingProcedure> TO_SALES_PRICING_PROCEDURE
public static final SlsPricingProcedureItemLink<SlsPricingConditionType> TO_SLS_PRICING_CONDITION_TYPE
public static final SlsPricingProcedureItemLink<SlsPrcgProcedItemText> TO_TEXT
public SlsPricingProcedureItem()
public SlsPricingProcedureItem(@Nullable String conditionUsage, @Nullable String conditionApplication, @Nullable String pricingProcedure, @Nullable String pricingProcedureStep, @Nullable String pricingProcedureCounter, @Nullable String conditionType, @Nullable String prcgProcedItemFromRefStep, @Nullable String prcgProcedItemToRefStep, @Nullable Boolean conditionIsManuallyDtmnd, @Nullable String prcgProcedItemSubtotal, @Nullable Boolean conditionIsForStatistics, @Nullable String accountKeyForGLAccount, @Nullable String acctKeyForAccrualsGLAccount, @Nullable String pricingProcedureItemPrintType, @Nullable Boolean conditionIsMandatory, @Nullable Boolean cndnIsAcctDetnRelevant, @Nullable ErpConfigContext erpConfigContext, @Nullable SlsPricingProcedure toSalesPricingProcedure, @Nullable SlsPricingConditionType toSlsPricingConditionType, List<SlsPrcgProcedItemText> toText)
@Nonnull public Class<SlsPricingProcedureItem> getType()
getType
in class VdmObject<SlsPricingProcedureItem>
public void setConditionUsage(@Nullable String conditionUsage)
Original property name from the Odata EDM: ConditionUsage
conditionUsage
- Determines for which area the condition is used (for example, pricing or output).public void setConditionApplication(@Nullable String conditionApplication)
Original property name from the Odata EDM: ConditionApplication
conditionApplication
- Subdivides the usage of a condition (for example, pricing) for use in different application areas (for example, sales & distribution or purchasing).public void setPricingProcedure(@Nullable String pricingProcedure)
Original property name from the Odata EDM: PricingProcedure
Procedures are used, for example, in the following applications:Pricing in Sales and DistributionAccount determinationCalculating taxes on sales/purchases
pricingProcedure
- Specifies the conditions that are allowed for a document and defines the sequence in which they are used.public void setPricingProcedureStep(@Nullable String pricingProcedureStep)
Original property name from the Odata EDM: PricingProcedureStep
pricingProcedureStep
- Number that determines the sequence of the condition within a procedure.public void setPricingProcedureCounter(@Nullable String pricingProcedureCounter)
Original property name from the Odata EDM: PricingProcedureCounter
During automatic pricing, the system takes into account the sequence specified by the counter.
pricingProcedureCounter
- Access number of the conditions within a step in the pricing procedure.public void setConditionType(@Nullable String conditionType)
Original property name from the Odata EDM: ConditionType
conditionType
- The condition type is used for different functions. In pricing, for example, the condition type lets you differentiate between different kinds of discount; in output determination, between different output types such as order confirmation or delivery note; in batch determination, between different strategy types.public void setPrcgProcedItemFromRefStep(@Nullable String prcgProcedItemFromRefStep)
Original property name from the Odata EDM: PrcgProcedItemFromRefStep
If you specify a to-reference step at the same time, the condition values of the two steps specified and the conditions values of the steps in between are totaled. In this case, percentage surcharges are calculated on the basis of the total.Example:| Step | Condition Type | Description | From-Step | To-Step | Account Key |10 A-B1 Wages 20 A-B2 Salaries 30 A-B3 Overtime/Wages 40 A-Z1 Vacation bonus 10 30 E11The surcharge for step 40 is added to the total of steps 10 to 30.
prcgProcedItemFromRefStep
- The step referring to a condition, whose value is the basis for percentage surcharges.public void setPrcgProcedItemToRefStep(@Nullable String prcgProcedItemToRefStep)
Original property name from the Odata EDM: PrcgProcedItemToRefStep
If you specify a from-reference step at the same time, the condition values of the two steps specified and the condition values of the steps in between are totaled.Example:| Step | Condition Type | Description | From-Step | To-Step | Account Key |10 A-B1 Wages 20 A-B2 Salaries 30 A-B3 Overtime/Wages 40 A-Z1 Vacation bonus 10 30 E11The surcharge for step 40 is added to the total of steps 10 to 30.
prcgProcedItemToRefStep
- The step referring to a condition, up to which the condition values of the previous steps are totaled. Percentage surcharges are calculated on the basis of the total.public void setConditionIsManuallyDtmnd(@Nullable Boolean conditionIsManuallyDtmnd)
Original property name from the Odata EDM: ConditionIsManuallyDtmnd
conditionIsManuallyDtmnd
- Conditions, that are given this indicator in the pricing procedure, are only included in determination (price determination, outputdetermination, batch determination) either if they are entered manually, for example, on the condition overview screen in Pricing or if they are transferred from an external process, such as costing.public void setPrcgProcedItemSubtotal(@Nullable String prcgProcedItemSubtotal)
Original property name from the Odata EDM: PrcgProcedItemSubtotal
If the same fields are used to store different condition amounts, the system totals the individual amounts.These condition amounts or subtotals are used as a starting point for further calculations. You may, for example, want a subtotal of all the discounts included in the pricing of a sales order.
prcgProcedItemSubtotal
- Controls whether and in which fields condition amounts or subtotals (for example, a customer discount or the cost of a material) are stored.public void setConditionIsForStatistics(@Nullable Boolean conditionIsForStatistics)
Original property name from the Odata EDM: ConditionIsForStatistics
conditionIsForStatistics
- This indicator causes a surcharge or discount to be set in the document statistically (that is, without altering the value).public void setAccountKeyForGLAccount(@Nullable String accountKeyForGLAccount)
Original property name from the Odata EDM: AccountKeyForGLAccount
The account key enables the system to post amounts to certain types of revenue account. For example, the system can post freight charges (generated by the freight pricing condition) to the relevant freight revenue account.
accountKeyForGLAccount
- Key that identifies different types of G/L account.public void setAcctKeyForAccrualsGLAccount(@Nullable String acctKeyForAccrualsGLAccount)
Original property name from the Odata EDM: AcctKeyForAccrualsGLAccount
With the aid of the account key, the system can post amounts to certain types of accruals accounts. For example, rebate accruals which are calculated from pricing conditions can be posted to the corresponding account for rebate accruals.
acctKeyForAccrualsGLAccount
- Key which identifies various types of G/L accounts for accruals or provisions.public void setPricingProcedureItemPrintType(@Nullable String pricingProcedureItemPrintType)
Original property name from the Odata EDM: PricingProcedureItemPrintType
The following print types are available:' ' : Condition line is not printedThe other print types have the following settings and influence processing accordingly.'A' : in total: general'B' : in total: if value <> zero'C' : in total: if value <> value of predecessor'D' : in total: if value <> zero and value <> value of predecessor'a' : at item : general'b' : at item : if value <> zero'c' : at item : if value <> value of predecessor'd' : at item : if value <> zero and value <> value of predecessor
pricingProcedureItemPrintType
- Controls the output of condition lines when printing documents such as order confirmations or invoices.public void setConditionIsMandatory(@Nullable Boolean conditionIsMandatory)
Original property name from the Odata EDM: ConditionIsMandatory
If, for example, you always want to include a tax condition (VAT or sales tax) during pricing, you can set this indicator for the appropriate tax condition type.
conditionIsMandatory
- Indicates whether the condition is mandatory when the system carries out pricing using this pricing procedure.public void setCndnIsAcctDetnRelevant(@Nullable Boolean cndnIsAcctDetnRelevant)
Original property name from the Odata EDM: CndnIsAcctDetnRelevant
In the pricing procedure, the following settings for the price condition have been made:The price condition is used for statistics only, that is, you have selected the Statistics indicator.You have selected an Account key that defines two accounts.Note: The Accruals key is not taken into account.You use this indicator to define that the statistical price condition is posted to account-based Profitability Analysis (CO-PA) as journal entry to an extension ledger of Financial Accounting. You do this to increase and improve information relevant for management reporting:You can select the indicator in Customizing of a pricing procedure.You can display the indicator in a business document on the Condition Detail screen.You might want to post the following statistical price conditions to CO-PA:WarrantiesDelivery costsSurchargesDiscountCommissionRebateFor information about profitability and cost management, see http://help.sap.com/s4hana. Choose a release and then Product Assistance and choose your language. Then choose Finance -> Cost Management and Profitability Analysis -> Profitability and Cost Management.
cndnIsAcctDetnRelevant
- Defines whether a statistical price condition is relevant for account determination.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<SlsPricingProcedureItem>
protected Map<String,Object> getKey()
getKey
in class VdmObject<SlsPricingProcedureItem>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<SlsPricingProcedureItem>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<SlsPricingProcedureItem>
@Nonnull public static <T> SlsPricingProcedureItemField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
fieldName
- The name of the extension field as returned by the OData service.fieldType
- The Java type to use for the extension field when performing value comparisons.@Nonnull public static <T,DomainT> SlsPricingProcedureItemField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<SlsPricingProcedureItem>
protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<SlsPricingProcedureItem>
@Nullable public SlsPricingProcedure fetchSalesPricingProcedure() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.@Nullable public SlsPricingProcedure getSalesPricingProcedureOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_SalesPricingProcedure of a queried SlsPricingProcedureItem is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.@Nonnull public Optional<SlsPricingProcedure> getSalesPricingProcedureIfPresent()
If the navigation property for an entity SlsPricingProcedureItem has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setSalesPricingProcedure(SlsPricingProcedure value)
value
- New SlsPricingProcedure entity.@Nullable public SlsPricingConditionType fetchSlsPricingConditionType() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.@Nullable public SlsPricingConditionType getSlsPricingConditionTypeOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_SlsPricingConditionType of a queried SlsPricingProcedureItem is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.@Nonnull public Optional<SlsPricingConditionType> getSlsPricingConditionTypeIfPresent()
If the navigation property for an entity SlsPricingProcedureItem has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setSlsPricingConditionType(SlsPricingConditionType value)
value
- New SlsPricingConditionType entity.@Nonnull public List<SlsPrcgProcedItemText> fetchText() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.@Nonnull public List<SlsPrcgProcedItemText> getTextOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Text of a queried SlsPricingProcedureItem is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.@Nonnull public Optional<List<SlsPrcgProcedItemText>> getTextIfPresent()
If the navigation property for an entity SlsPricingProcedureItem has not been resolved yet, this method will not query further information. Instead its Optional
result state will be empty
.
Optional
with result state empty
is returned.public void setText(@Nonnull List<SlsPrcgProcedItemText> value)
If the navigation property to_Text of a queried SlsPricingProcedureItem is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
value
- List of SlsPrcgProcedItemText entities.public void addText(SlsPrcgProcedItemText... entity)
If the navigation property to_Text of a queried SlsPricingProcedureItem is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
entity
- Array of SlsPrcgProcedItemText entities.public static SlsPricingProcedureItem.SlsPricingProcedureItemBuilder builder()
@Nullable public String getConditionUsage()
Original property name from the Odata EDM: ConditionUsage
@Nullable public String getConditionApplication()
Original property name from the Odata EDM: ConditionApplication
@Nullable public String getPricingProcedure()
Original property name from the Odata EDM: PricingProcedure
Procedures are used, for example, in the following applications:Pricing in Sales and DistributionAccount determinationCalculating taxes on sales/purchases
@Nullable public String getPricingProcedureStep()
Original property name from the Odata EDM: PricingProcedureStep
@Nullable public String getPricingProcedureCounter()
Original property name from the Odata EDM: PricingProcedureCounter
During automatic pricing, the system takes into account the sequence specified by the counter.
@Nullable public String getConditionType()
Original property name from the Odata EDM: ConditionType
@Nullable public String getPrcgProcedItemFromRefStep()
Original property name from the Odata EDM: PrcgProcedItemFromRefStep
If you specify a to-reference step at the same time, the condition values of the two steps specified and the conditions values of the steps in between are totaled. In this case, percentage surcharges are calculated on the basis of the total.Example:| Step | Condition Type | Description | From-Step | To-Step | Account Key |10 A-B1 Wages 20 A-B2 Salaries 30 A-B3 Overtime/Wages 40 A-Z1 Vacation bonus 10 30 E11The surcharge for step 40 is added to the total of steps 10 to 30.
@Nullable public String getPrcgProcedItemToRefStep()
Original property name from the Odata EDM: PrcgProcedItemToRefStep
If you specify a from-reference step at the same time, the condition values of the two steps specified and the condition values of the steps in between are totaled.Example:| Step | Condition Type | Description | From-Step | To-Step | Account Key |10 A-B1 Wages 20 A-B2 Salaries 30 A-B3 Overtime/Wages 40 A-Z1 Vacation bonus 10 30 E11The surcharge for step 40 is added to the total of steps 10 to 30.
@Nullable public Boolean getConditionIsManuallyDtmnd()
Original property name from the Odata EDM: ConditionIsManuallyDtmnd
@Nullable public String getPrcgProcedItemSubtotal()
Original property name from the Odata EDM: PrcgProcedItemSubtotal
If the same fields are used to store different condition amounts, the system totals the individual amounts.These condition amounts or subtotals are used as a starting point for further calculations. You may, for example, want a subtotal of all the discounts included in the pricing of a sales order.
@Nullable public Boolean getConditionIsForStatistics()
Original property name from the Odata EDM: ConditionIsForStatistics
@Nullable public String getAccountKeyForGLAccount()
Original property name from the Odata EDM: AccountKeyForGLAccount
The account key enables the system to post amounts to certain types of revenue account. For example, the system can post freight charges (generated by the freight pricing condition) to the relevant freight revenue account.
@Nullable public String getAcctKeyForAccrualsGLAccount()
Original property name from the Odata EDM: AcctKeyForAccrualsGLAccount
With the aid of the account key, the system can post amounts to certain types of accruals accounts. For example, rebate accruals which are calculated from pricing conditions can be posted to the corresponding account for rebate accruals.
@Nullable public String getPricingProcedureItemPrintType()
Original property name from the Odata EDM: PricingProcedureItemPrintType
The following print types are available:' ' : Condition line is not printedThe other print types have the following settings and influence processing accordingly.'A' : in total: general'B' : in total: if value <> zero'C' : in total: if value <> value of predecessor'D' : in total: if value <> zero and value <> value of predecessor'a' : at item : general'b' : at item : if value <> zero'c' : at item : if value <> value of predecessor'd' : at item : if value <> zero and value <> value of predecessor
@Nullable public Boolean getConditionIsMandatory()
Original property name from the Odata EDM: ConditionIsMandatory
If, for example, you always want to include a tax condition (VAT or sales tax) during pricing, you can set this indicator for the appropriate tax condition type.
@Nullable public Boolean getCndnIsAcctDetnRelevant()
Original property name from the Odata EDM: CndnIsAcctDetnRelevant
In the pricing procedure, the following settings for the price condition have been made:The price condition is used for statistics only, that is, you have selected the Statistics indicator.You have selected an Account key that defines two accounts.Note: The Accruals key is not taken into account.You use this indicator to define that the statistical price condition is posted to account-based Profitability Analysis (CO-PA) as journal entry to an extension ledger of Financial Accounting. You do this to increase and improve information relevant for management reporting:You can select the indicator in Customizing of a pricing procedure.You can display the indicator in a business document on the Condition Detail screen.You might want to post the following statistical price conditions to CO-PA:WarrantiesDelivery costsSurchargesDiscountCommissionRebateFor information about profitability and cost management, see http://help.sap.com/s4hana. Choose a release and then Product Assistance and choose your language. Then choose Finance -> Cost Management and Profitability Analysis -> Profitability and Cost Management.
@Nullable public ErpConfigContext getErpConfigContext()
public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
setErpConfigContext
in class VdmEntity<SlsPricingProcedureItem>
erpConfigContext
- public String toString()
toString
in class VdmObject<SlsPricingProcedureItem>
public boolean equals(Object o)
equals
in class VdmObject<SlsPricingProcedureItem>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<SlsPricingProcedureItem>
public int hashCode()
hashCode
in class VdmObject<SlsPricingProcedureItem>
Copyright © 2018 SAP SE. All rights reserved.