SAP Function RP_25_MAP_EE_ADDRESS - Mapping EE address from IT 6 to the format required by tax authority

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

Parameter Reference Type Length Text
BLOCKNUMBER P0006-HSNMR C 10 House Number
POSTALCODE P0006-PSTLZ C 10 Postal Code
RETURNCODE SYST-SUBRC 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-POSTA 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 IT 6 to a formatrequired by Singapore's tax authority in IR21 report. It calls anotherfunction, i.e. RP_25_MAP_ADDRESS, which will perform the parsing andmapping operation.
Return code would be one of the following:
'0' succesful
'4' warning (all fields would be returned in StreetName)
'8' unsuccesful (most likely due to data unavailability)

Example
In IT 6:
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
Output:
BlockNumber : 750A
StoryNumber : 07
UnitNumber : 00
StreetName : Chai Chee Road
PostalCode : 469001
ReturnCode : 0

Notes
In order to get correct storey number and unit number, a hash sign('#') must be used exclusively to precede the storey number and ahyphen sign ('-') must be used exclusively to precede the unit number.
A correct block/house number can be obtained by putting block/housenumber before the street name. Characters 'BLOCK' or 'BLK' can be usedto precede the block number, but they are not required.
Fields P0006-ADR03 and P0006-ADR04 are only available on release 40Bonwards.
Field C/O (P0006-NAME2) is not taken into consideration.

Further information
Documentation of function module RP_25_MAP_ADDRESS.