Using the LC LSX for debugging

You can debug the SAPGUI from a LC LSX script if you set your SAP® connection properties correctly.

To launch the SAPGUI ABAP debugger, set the following two connection properties as indicated:
  • sapconn.Debuglevel = 69
  • sapconn.EnableSAPGUI = True
You must encounter various calls that are required to obtain the interface of the RFC or BAPI being called, so set a break point in the RFC or BAPI that you are calling.
Note: The RFC API generates trace files with the name rfcxxxxx_xxxx.trc. These contain trace information when calling RFC functions. You should not leave debug mode enabled in a production environment, unless you are troubleshooting; it will create these trace files and run much more slowly.