Skip to Content
0
Former Member
Jul 21, 2009 at 12:10 PM

Maintain Constant length at target field

25 Views

Hi,

I have one requirement in mapping.

One of my input field length is 8 and i need to maintain some conditions here.

If the incoming field comes 4 digits then i need to add 4 zeroes before to that field and send to target.

for eg., inut field : 1234 then target should be : 00001234

If the field is coming morethan 8 digits then it should read last 8 digits

for eg., inut field : 123456789 then target should be : 23456789

Please help me how can i maintain this.

Kind Regards,

Y.Raj.