This is one of the few most elementary things that we often get stuck while testing routines in BW4 for greenfield implementations – To set breakpoints and debug transformation code in eclipse or HANA studio based BW4 version. Till BW 7.4, it connects directly to the debugger if we set breakpoints in ‘Display Generated Program’ and execute DTP in simulate mode.
While putting breakpoint in TRFN routine in SAP GUI(new window inside Eclipse), we may get error as
Breakpoints cannot be set because of external context (–> long text)
We can use below setting to connect to debugger :
Windows -> Preference -> ABAP Development -> Debug -> Configure Project Specific Settings -> Project D41 -> ‘Enable Debugger’ checkbox would be enabled, please disable it -> Apply and Close
Then open the routine with SAP GUI and put breakpoints where required and run DTP in simulate mode.
Alternatively, you can also configure DTP simulate in Expert Mode :
When the Debugger connects, search for your routines through keywords like LOOP AT RESULT_PACKAGE for end routines, put breakpoint and F8 to pull pointer on the required statements.