Ansicht
Dokumentation
/NAM/CONVERT_BASE62_TO_BASE10 - Get Number with Base10
ABAP Short Reference General Material DataThis documentation is copyright by SAP AG.
Functionality
The function module will take two alphanumeric values as import parameters.
These two values will then be converted to their respective decimals.
Finally, the export parameters will consist of the converted numbers.
Example
The offset is fixed = A00000
Suppose the first input value is BLY7VK
Now the output value will be,
OUTPUT_NUM = BLY7VK - OFFSET_NUM
,, = BLY7VK - A00000
,, ,, = ( 11*62^5 + 21*62^4 + 34*62^3 + 7*62^2 + 31*62^1 + 20*62^0) - ( 10*62^5)
,, = ( 10077461152 + 310303056 + 8103152 + 26908 + 1922 + 20 ) - ( 9161328320 )
= 10395896210 - 9161328320
,, = 1234567890
Similar logic can be applied to the second input value.
Notes
Further information
Parameters
PV_INPUT_NUMBERPV_OUTPUT_NUM
Exceptions
NO_CONVERSIONFunction Group
/SAPLBASE_CONVERSIONFill RESBD Structure from EBP Component Structure General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 1196 Date: 20240523 Time: 080253 sap01-206 ( 19 ms )