Hi Johannes
Apparently it is becoming commonplace now for SAP internals to ask questions here in SCN instead of the internal communities. Not a clever choice!
Anyhow, there is no error line variable available to for the signal/re-signal approach.
Typically you could find the line number of the exception in the indexserver trace file - so, if you need it for debugging, you should find it there.
Seen from the SQL client side, I personally don't think that providing the source code line number in the error message to the caller is such a great idea. You don't necessarily want to expose this kind implementation details to the caller of your procedure.
- Lars