on 03-07-2013 3:08 PM
Hi guys! Struggling with the rather strange problem for the past 4 hours. I've created the routine BADI, pretty simple, pretty standard, all filters and classes are in place. The ENDROUTINE call bit in Transformation's Options area is set. The break point in CL_UJXD_PACKAGES_RES is also set and triggers every time I start the package.
But after that nothing, silence. It looks like the system doesn't even go to the Routine.
I've set breakpoints in the routine. They were ignored.
I've explicitly set the debugger break point to trigger in the Runroutine. Ignored.
I've changed the code of the routine for it to produce a shortdump. Nothing.
I'm really frustrated, because no matter what I do it's like the routine doesn't exist from BPC's point of view (even though in DM package log it claims that the routine was triggered) .
Any ideas are much appreciated!
Cheers.
Still experiencing the same problem on the same system. STARTROUTINE breaks like a charm, ENDROUTINE breakpoints just always ignored.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Thanks for your quick response.
I have written a piece of code in UJD_ROUTINE. As you very well know, we can trigger this code as Start Routine or End Routine. It triggers when I use it as a start routine but not end routine. My situation works well for End routine than a Start routine. I tried various combinations when executing the data manager package, but no use. EndRoutine never triggers, where as Start routine triggers.
Regards,
Surya Tamada.
Go to tn SE80 and find the CLASS/Interface CL_UJXD_PACKAGES_RES. In Method / Redefinitions, find the method DO_POST.
Create an external break-point (Ctrl_Shift+F9) on the line 179: lo_package->run_package (EXPORTING ...
Set a break-point on any line of your BADI implementation.
When running any king of package the debug screen will pop up. Replace the content of the variable LS_PACKAGE_RUN-if_debug to "X".
Hit F8 do go directly to the break-point on your implementation.
Hope it helps.
Well, guys, on other implementations I can debug DM routine through the breakpoint in CL_UJXD_PACKAGES_RES (then setting if_debug to X) and the following break point in the routine itself.
Firstly, I'm not sure that it's possible to test DM transformation routine in UJKT.
Secondly, as I wrote, in my routine I didn't assign any values to field symbol, but used it in the code.
That explicitly should trigger the GETWA_NOT_ASSIGNED short dump (it just should), but it doesn't, meaning that the system doesn't call the routine in the first place!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gersh,
The odd thing is that when I start DM package without endroutine in transformation, it successfully completes. Then I add endroutine to the transformation, start DM package and it still successfully completes (and the line "end routine was called in convert" is being added). But if I try to get to the routine's breakpoints - nothing happens and, as I wrote before, even if I create the shortdump situation, nothing happens...
Thanks!
Hi Vadim,
Like Nilanjan said DM package will not trigger the breakpoints.
But if you must want to trigger it, Simply create an infinite loop in top of the code so that you can catch your BAdi in SM50 transaction.
There you have option to debug the code.
Infinite loop :
DATA : LV_DEBUG TYPE C VALUE 0.
WHILE LV_DEBUG EQ 0.
ENDWHILE.
Don't forget to change the variable value before execute in debugging mode.
Hope it helps!!
Thanks,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
If you want to debug the code, then you must execute it through UJKT.
DM package will ignore the breakpoints.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.