I created a BDC function module to create WE20 partner profiles when remotely called from a web order system. When running the BDC in SE37 (not in debug) it works fine. When running in debug, the CALL TRANSACTION fails but I don't see an error dump. When the web system makes the call, I get an OBJECTS_OBJREF_NOT_ASSIGNED ABAP dump and the details mention termination in "CREATE_TREE_CONTROL".
I came out to SDN and found thread "handling of tree control in BDC" which mentions it cannot be done. Since I find no BAPI for this, what other options do I have?