We are writing a tool in Java that parses and transforms ABAP code. We therefore have no intention to write new ABAP code but our tool has to handle all of ABAP, even obsolete statements. Furthermore, I'm not an ABAP expert.
We have an ABAP tool that extracts a system and writes it to XML. This program does not hold logic, so that I believe that the XML actually corresponds to the system.
I'm looking at the data generated by reading the text pool. The latter is read by READ TEXTPOOL; if existing, the attributes LANGU, ID, KEY, ENTRY, and LENGTH are written to the XML.
Now, I'm seeing text element entries in the XML that seem to violate the format as explained in the ABAP keyword documentation.
id=I, key is not of length 3. In particular, keys are like 01100001, SH010001, SF010001
id=R, key is present. Example: key="027". I even see an example where all attributes are the same but the key.
id=S, text element does neither start with
" "(eight blanks) nor"D "(a 'D' followed by seven blanks)text element length exceeds the maximum. We use the upper limits H=255, I=132, S=38, R=70, T=70. (Here, I'm not sure where our numbers come from)
As we transform text entries, we validate existing ones and cannot use existing ones that are too long. Can someone clarify?