I tried adding this as a comment to Suncatcher answer but the "Add a comment" input area doesn't work for me:
That class (cl_reca_rs_services) doesn't exist in some CRM system. However, copying the code from a S/4 system, replacing re_t_string with stringtab and also copying the content of the include with macros, is quickly done.
There is also REPS SEO_CLASS_OUTPUT which produces a WRITE list which can be processed as described in How to extract the output of called program RAZUGA01 (FUNC LIST_FROM_MEMORY)