public class ConverterImpl extends BusinessObjectBase implements Converter
ConverterbackendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKeyBO_TYPEINVALID, VALID| Constructor and Description |
|---|
ConverterImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertUnitID2UnitKey(java.lang.String unitID)
Converts the unit ID (example
PC for en_US) into the unit key (example ST ) |
java.lang.String |
convertUnitKey2UnitID(java.lang.String unitKey)
Converts the unit key (example
ST ) into the language dependent ID (example PC for
en_US) |
ConverterBackend |
getBackendService() |
java.lang.Integer |
getCurrencyScale(java.lang.String sapCurrencyCode)
Retrieves the number of decimal places for a currency (which might be an ISO currency but doesn't need to be).
|
protected java.math.BigDecimal |
getMinimumScaleValue(int scale) |
java.math.BigDecimal |
getMinimumScaleValue(java.lang.String unitKey) |
int |
getUnitScale(java.lang.String unitKey)
Retrieves the number of decimal places for units according to ERP/CRM customizing.
|
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, clone, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, setValid, toStringpublic ConverterBackend getBackendService() throws BackendException
BackendExceptionpublic java.lang.String convertUnitID2UnitKey(java.lang.String unitID)
throws BusinessObjectException
Converter PC for en_US) into the unit key (example ST )convertUnitID2UnitKey in interface ConverterunitID - language dependent unit IDBusinessObjectExceptionpublic java.lang.String convertUnitKey2UnitID(java.lang.String unitKey)
throws BusinessObjectException
Converter ST ) into the language dependent ID (example PC for
en_US)convertUnitKey2UnitID in interface ConverterunitKey - language independent unit keyBusinessObjectExceptionpublic java.lang.Integer getCurrencyScale(java.lang.String sapCurrencyCode)
throws BusinessObjectException
ConvertergetCurrencyScale in interface ConvertersapCurrencyCode - currency code. Must be available in customizing tabke TCURCBusinessObjectExceptionpublic int getUnitScale(java.lang.String unitKey)
throws BusinessObjectException
ConvertergetUnitScale in interface ConverterunitKey - the language independet unit key. Must be available in customizing table T006BusinessObjectExceptionpublic java.math.BigDecimal getMinimumScaleValue(java.lang.String unitKey)
throws BusinessObjectException
getMinimumScaleValue in interface ConverterunitKey - the language independet unit key. Must be available in customizing table T006BusinessObjectExceptionprotected java.math.BigDecimal getMinimumScaleValue(int scale)
Copyright © 2018 SAP SE. All Rights Reserved.