‎2007 Aug 02 8:08 AM
In one of the exits of a functionmodule ( which is an update task FM), I am call ing an RFC function module using<b> "strating new task".</b> I had to use starting new task, as the function module has call transaction statement.
now my requirement is this .
My new task should be executed only after the parent task (first task) is finished.
‎2007 Aug 02 8:44 AM
Can you clarify exactly the sequence and the RFC desitinations you are trying to work with... e.g. you have a function module which is an update task on system "A", but are you trying to send data to system "B" with the RFC or just call a function module in system "A" that just happens to be RFC-enabled? If you want serialisation of RFC function modules, then qFRC is possibly a good bet, but can you explain the full scenario a bit better, perhaps with FM names if they are SAP standard?
‎2007 Aug 02 9:54 AM
am trying to write the BDC code for LT09 inside the code of LT04.
The exit I found is in sode the function module L_TA_HINZUFUEGEN, which is an update FM.
LT04- creating storage units.
LT09- Creating TOs for these Storage units.
I kept all my BDC code inside a ZFM and made it RFC enabled.
Now inside the exit I've call this ZFM with addition STARTING NEW TASK.
But the issue here is in when its trying to create TOs for storage units(LT09 functionality), the Lock on storage bin is still not being released resulting the failure of BDC.
So now, what I want is the new task should be executed after L_TA_HINZUFUEGEN execution is completed.
‎2007 Aug 02 9:55 AM
am trying to write the BDC code for LT09 inside the code of LT04.
The exit I found is in sode the function module L_TA_HINZUFUEGEN, which is an update FM.
LT04- creating storage units.
LT09- Creating TOs for these Storage units.
I kept all my BDC code inside a ZFM and made it RFC enabled.
Now inside the exit I've call this ZFM with addition STARTING NEW TASK.
But the issue here is in when its trying to create TOs for storage units(LT09 functionality), the Lock on storage bin is still not being released resulting the failure of BDC.
So now, what I want is the new task should be executed after L_TA_HINZUFUEGEN execution is completed.
‎2007 Aug 02 11:41 AM
Then you'll have to call the function (as I said) IN UPDATE TASK, and not STARTING NEW TASK.
It's sad, it's weird, but if you can tune enough your FM, it works pretty well.
‎2007 Aug 02 11:47 AM
The issue is that we can't use "call transaction" insode the update function.
‎2007 Aug 03 4:15 AM
The function module L_TA_HINZUFUEGEN is called in LL03AF8C... and just afterwards there is mention of two BADIs i.e. WM_ENHANCMENT & WM_DSD_ENHANCEMENT... have you looked to see whether these can give you the result you want?
‎2007 Aug 03 7:14 AM
Some of the badis available are not released yet.. others doesn't satisfty my requirement
‎2007 Aug 02 9:24 AM
Try to call the function using IN UPDATE TASK. It will trigger the function module just after the first COMMIT action (anyways, if it's a manual coded COMMIT or a "natural" commit provided by the system).