Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

starting new task

Former Member
0 Likes
1,196

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,130

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?

Read only

0 Likes
1,130

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.

Read only

0 Likes
1,130

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.

Read only

0 Likes
1,130

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.

Read only

0 Likes
1,130

The issue is that we can't use "call transaction" insode the update function.

Read only

0 Likes
1,130

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?

Read only

0 Likes
1,130

Some of the badis available are not released yet.. others doesn't satisfty my requirement

Read only

VXLozano
Active Contributor
0 Likes
1,130

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).