GEN_BAD_TEXT_SOURCE is an ABAP runtime error which you may come across when using or developing within an SAP system. See below for the standard details explaining what it means and how you can avoid or fix this runtime error.
Short Dump Classification: I - Internal Kernel Error
You can view further information about a runtme error by using transaction code ST22 which will show you this and all runtime erros that have happen in your SAP system.
Also check out the Comments section below to view or add related contributions and example screen shots.
Check whether regenerating program <runtime parameter> eliminates this problem.
Please see search hints for more details about the possible cause of this runtime error and how it could be avoided.
Please see send to sap for more details about the possible cause of this runtime error and how it could be avoided.
The syntax check expected source code input from the internal text
buffer. The internal text buffer could not be opened however.
Internal error during generation: Text buffer cannot be opened.
Please see internal error for more details about the possible cause of this runtime error and how it could be avoided.
Internal error during generation.
Generation has resulted in a status that should not normally arise.
Please see internal error for more details about the possible cause of this runtime error and how it could be avoided.