Ansicht
Dokumentation
RP_25_CONVERT_CPF_AC - HR-SG: Convert CPF account number
RFUMSV00 - Advance Return for Tax on Sales/Purchases Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
This function is used to convert employee's CPF account number based on
the following rule:
- First character must begin with S or T, whereby S denotes for those
born before the year 2000 and T denotes for those born on the year
2000 onwards. As for foreigner, the S or T will depend on the date
of application of CPF account number to CPF board.
- Second character can be numeric for local or alphabet A, B, C, D, or F
for foreigner.
- Third character till eighth character must be numeric.
- Ninth character will be the check-digit which will be in
alphanumeric.
The conversion of alpha to numeric check digit is shown below:
If second character is A , B, C or 0 to 9, then
Alpha CD : A B C D E F G H I J Z
Numeric CD: 1 2 3 4 5 6 7 8 9 0 -
If second character is D or F, then
Alpha CD : A B C E J K L N P X V
Numeric CD: 0 1 2 3 4 5 6 7 8 9 -
- There shoud not be any decimal places to separate the check digit.
Example
Input A/C No. Output Result Remarks
S1234567A S1234567A Standard format (local)
S1234567.1 S1234567A Convert check-digit
T12345671 T1234567A Convert check-digit
SA123456C SA123456C Standard format (foreigner)
A123456C SA123456C Append prefix 'S'
C123456C TC123456C Append prefix 'T' (foreigner)
SD1234568 SD123456P Convert check-digit
P123456A initial Invalid a/c number prefix
Notes
Further information
Parameters
IN_CPFACOUT_CPFAC
Exceptions
NO_ENTRYFunction Group
0PR2TXBHW - Original Tax Base Amount in Local Currency CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 2243 Date: 20240523 Time: 143624 sap01-206 ( 22 ms )