1

I'd like to check hardcoded values in (a lot of) Smartforms and SAPScript forms.

I have found a way to read the source code of both of these, but it seems that i will have to go through a lot of parsing before I get anything reliable.

I've come across function module GET_LITERAL but that doesn't seem to help me much since i have to specify the offset of the value, if i got right what the function is doing in the first place.

I also found RS_LITERAL_LIST but that also doesn't do what i expect.

I also tried searching for reports and methods, but haven't found anything that seemed to help.

A backup plan would be to get some good parsing tool, so do you know of anything like that.

Anyway, any hints would be helpful and appreciated.

[EDIT] Forgot to mention, the version of my system is 4.6C

4

1 回答 1

1

如果您有相当新的 ABAP 版本,则可以使用正则表达式。

遵循此示例的模式,但使用您的源作为文本并创建您自己的正则表达式。让它查找以空格分隔的单词末尾的任何单引号或任何两边都有空格的整数。这只是一个开始,您可能需要研究更好的模式。

字符串函数计数、查找和匹配

于 2013-09-05T02:34:56.043 回答