Invent location address by X++

Hi ,

How we can create Invent Location address using X++ code in 2012?

i want to import invent location data from ax4.0 to ax 2012.