Feature Codes - Linestring to Polygon

Is there a way to convert a linestring to polygon? I am trying to use a polygon feature definition but this will not support closed linestring ( kind of silly). I can trace this time but wondering if there are tricks for future use.