‎2009 May 15 12:12 PM
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.
‎2009 May 15 12:24 PM
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.
‎2009 May 15 12:18 PM
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.
‎2009 May 15 12:24 PM
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.
‎2009 May 15 12:27 PM
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