459 is the standard burglary statute, from the description of the events it sounds like a burglary of the 2nd degree. Burglary is simply the entry into some place, where prior to entry the person had criminal
intent to commit a crime, like theft
, ect. It also can apply if someone forms the criminal thought while inside and his right to be there is revoked, his failure to leave can constitute a burglary. Such as if your a guys in a house and you assault someone inside, it is assumed that once the assault took place, your permission to remain is revoked and failure to leave can be a burglary.
The 459 would be that you entered an area which you did not have a right to enter, and it was not open to the public, private property, and you took something, the pipe. Lots of construction sites and just industrial contractors have a major problem with the theft of raw materials, which is usually sold as scrap metal, they may just not believe you about where you got the pipe from. Either way since this is a first offense, you most likely wont get off too hard, unless they do an investigation
that could like you to other thefts of this nature, most people who do this with true criminal intent do it a lot, and there would be evidence in the form of additional stolen goods or scrap recipes, they may attempt to determine where it came from and if it was really abandoned or if it was taken from a live site, if it was abandoned i would consider this an error of judgment as opposed to a true crime, but the courts
will ultimately determine what happened.