The sample code is located in the ERPConnect installation directory in the AbapPad directory.
The class ABAPCode offers nearly unlimited possibilities. You can execute ABAP code on the fly and retrieve the result in a string array.
The example below shows how to create a simple ABAP interpreter that executes a dynamic SQL statement.
Like other client classes, ABAPCode needs a valid R/3 connection. With the help of the method AddCodeLine, a new line of code will be added to the dynamic report. The report will be executed via Execute(). The result set (regarding the ABAP list) can be read by the method GetResultLine.
Click to open C# example.Click to open VB example.
The figure screenshot below shows ABAP Interpreter in action.