Functionality This function maps a long input string to a format required bySingapore's legal authority. It parses the long string input by eachcharacter. The key characters which are used for correct parsing and mappingoperations are as follows: hash (#) : ,,required for identifying story number hyphen (-): ,,required for identifying unit number comma (,): ,,used as new field indicator except in street name Block or house number must always precede the street name, otherwise itwill be considered as a part of street name. Block or house number maybe preceded by "BLOCK" or "BLK". If there is character string "BLOCK"or "BLK" followed by the block/house number it will be considered aspart of street name. For example, 123 BLOCK ABC STILL ROAD #02-344 will be considered asBlock Number = 123, Street Name = BLOCK ABC STILL ROAD, and so on. Building name would always come after unit number. The Building fieldis updated only if street name contains some value. If the street namedoes not contain any value, then any value after the unit number is putinto street name. 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 You can make enhancements to this function module by using the customerexit provided. Limitations Block number should always be preceded by Blk, Block or nothing. Unitnumber should be preceded by a hyphen(-). Storey number must be preceded by a hash(#) In all other cases the value is included in the street name, with anappropriate return code. Example For the long string: 750A Chai Chee Road #07-00 The output will be: BlockNumber: 750A StoryNumber : 07 UnitNumber: 00 Building : StreetName: Chai Chee Road ReturnCode : 0 |