About refresh of unit please check the page below :
Unit of measure / Quantity unit / UOM -> RSIMPCUST
The recursive transformation TSRF : UOMCMAT2 -> UOMCMAT2 (recursive) add conversion factors to missing units : KG / LB / TO / VKG / VTN
Program Steps
Generate a matrix of unit per LogSys/Material/BuoM
| KG Unit | KG Nom | KG Dén | TO Unit | TO Nom | TO Dén | 1KG Unit | 1KG Nom | 1KG Dén | ... | |
|---|---|---|---|---|---|---|---|---|---|---|
| WP1/Material 1/KG | KG | 1.000 | 1.000 | TO | 1.000.000 | 1.000 | ... | |||
| WP1/Material 2/KG | KG | 1.000 | 1.000 | 1KG | 1.000 | 277 | ... |
A Unit has only one internal code and is corresponding to one or more external code (country specific display and other reasons ...) For example :
Only the Internal code need to be check during the process. |
Example of conversion bloc.
Legend:
- GREEN : Current unit to add, don't change in a global IF.
- RED : Unit to check if available, change at each IF/ELSEIF
**** Add VTN
IF <FS_MAT_UNT>-unit_VTN IS INITIAL.
l_SOURCE_PACKAGE-UNIT = 'VTN'. → Initialize the unit to add
l_SOURCE_PACKAGE-record = lv_tabix + 1. → Change the record number
IF <FS_MAT_UNT>-unit_VKG IS NOT INITIAL. → Check if the corresponding Unit is filled in the matrix
l_SOURCE_PACKAGE-uomz1d = <FS_MAT_UNT>-uomz1d_VKG * 1000. → Nominator (* factor if necessary)
l_SOURCE_PACKAGE-uomn1d = <FS_MAT_UNT>-uomn1d_VKG. → Denominator (* factor if necessary)
APPEND l_SOURCE_PACKAGE TO SOURCE_PACKAGE. → Append in Result Package
<FS_MAT_UNT>-UNIT_VTN = l_SOURCE_PACKAGE-UNIT. → Update the matrix
<FS_MAT_UNT>-uomz1d_VTN = l_SOURCE_PACKAGE-uomz1d. → Update the matrix
<FS_MAT_UNT>-uomn1d_VTN = l_SOURCE_PACKAGE-uomn1d. → Update the matrix
ELSE/ENDIF. → Next unit in the priority list or end of process
SKU = Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased / sales in business. It bases on material master


