Tuesday, March 6, 2012

Change Transport Package

In many occasions i found it necessary to make copies of programs before i begin making changes just so that of you get lost you can reference the original code and revert back...not really necessary if you have the mastered the art of feja feja...now you might be thinking "what tha #$%?? theres version management!!" Yes there is so what!? Business still has to operate...anyway so lets say you created a copy program and now you actually want to change the package $TMP(non-transportable) to a transportable one.


In SE38 choose Goto-Object Directory Entry Change and maintain.


Friday, February 17, 2012

Currency Decimal Points

Having been exposed to multi-national organisations whose business interests span across borders i have come across the requirement to report for different currencies in the correct format as required by the customers. SAP stores the extra-ordinary currencies in table TCURX ie currencies with no decimal points allowed according to the configuration. In most cases currencies are either correct to 2dp(Accounting Standards) or Non because of the value of the currency. Function module G_DECIMAL_PLACES_GET can be used to retrieve the settings allowed for the currency.

Example
*...assuming the ZWD is maintained as no decimal places on amount SAP will store the value correct to 2dp thus you must multiply by 100 before truncating the value, but do that dynamically its more fun :-)