You could check the below FM to know about the text DB table.
FM: SVRS_GET_VERSION_REPT_40 : It retrieves the text element maintained on class/ FG/ reports...
Pass the class name to the input parameter OBJECT_NAME (program name which you could find on the text element screen)
Output parameter: REPOT_TAB - it will give you the text element ID and text maintained.
You can keep this as reference and debug to find what you need