SAP Function RP_25_CON_MAP_EE_ADDRESS - Mapping EE address from IT 6 to the format prescribed

Parameter Reference Type Length Default Optional Text
SUBTYPE P0006-SUBTY C 4 Subtype

Parameter Reference Type Length Text
BLOCKNUMBER P0006-BLDNG C 10 House Number
BUILDING T512G-GTEXT C 255 Line in Form
POSTALCODE P0006-PSTLZ C 10 Postal Code
RETURNCODE I I 4 Return value, return value after ABAP statements
STORYNUMBER P0006-FLOOR C 10 Floor in building
STREETNAME T512G-GTEXT C 255 Line in Form
UNITNUMBER P0006-HSNMR C 10 Identification of an apartment in a building

Parameter Reference Length Optional Text
PP0006 P0006 738 HR Master Record: Infotype 0006 (Addresses)

Functionality
This function maps employee's permanent address in the Address
infotype (0006) to the format specified by Government ofSingapore. This function calls another related function, that isRP_25_CON_MAP_ADDRESS, which will perform the actual parsing andmapping operations.
The return code for this function will be one of the following:
0: successful
1: Block number is empty
2: Story number is empty
3: Block and Story number are empty
4: Unit number is empty
5: Block and Unit number are empty
6: Story and Unit number are empty
7: Block, Story and Unit number are empty

Example
In the Address infotype (0006), following is the datastored currently:
Street/house no (P0006-STRAS) : Block 750A
Street address 2 (P0006-LOCAT): Chai Chee Road
(P0006-ADR03): #07-00
(P0006-ADR04): (blank)
Postal Code (P0006-PSTLZ): 469001
After the function is executed, following will be the output.
BlockNumber:,,750A
StoryNumber: ,,07
UnitNumber : ,,00
StreetName : ,,Chai Chee Road
PostalCode : ,,469001
ReturnCode : ,,0

Notes
To get the correct storey number and unit number, a hash (#) must beused. This must precede the storey number. Similarly a hyphen (-) mustprecede the unit number.
You can obtain the correct block or house number by putting block/housenumber before the street name. Characters 'BLOCK' or 'BLK' may be usedto precede the block number, but they are not mandatory.
The Building name always comes after Unit number and is considered asbuilding name only if there is an input in the street name.
The fields P0006-ADR03 and P0006-ADR04 are available from release 4.0Bonwards.

Further information
For further details, refer to the documentation of function moduleRP_25_CON_MAP_ADDRESS.