Technical Articles
Setting to connect to debugger in BW4 HANA
Dear All,
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.
Regards,
Ruma Ghosh
Or, and this is what I do, put all your coding into a global class, and call it from the transformation.
The signature for the method routine is as follows
You can access the contents of the table using a structure that has just the fields you are interested in.
The advantages to this approach are:
In the BW project I'm on, we adopted this approach years ago and it has many times paid dividends.