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

Update task FM

Former Member
0 Likes
480

Hello experts,

I have a sub routine in my class.

I have to make this sub routine as an update task inside a function module.

How do i proceed ?

Thanks in advance.

Regards,

Chithra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

Hi.

Only function modules can be processed by update processes.

In the case of subroutines, system can gather and launch them at the point

when commit work statement is executed, but they work in the same dialog work process.

If you want to execute your code in update task, you should insert it into function module.

3 REPLIES 3
Read only

Former Member
0 Likes
455

you can call that function module by

CALL FUNCTION 'FUNCTMOD' IN UPDATE TASK EXPORTING...

or u change the process type attribute as UPDATE.

in an update fn module all the parameters should be a reference parameter.

i think ur problem will be solved by first method.

Read only

Former Member
0 Likes
456

Hi.

Only function modules can be processed by update processes.

In the case of subroutines, system can gather and launch them at the point

when commit work statement is executed, but they work in the same dialog work process.

If you want to execute your code in update task, you should insert it into function module.

Read only

tarangini_katta
Active Contributor
0 Likes
455

HI Jaya,

If u are in ECC check for the enhancement of u r subroutine inside function module then u xan write u r code.

Thanks