Application Development 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: 

update type function module

Former Member
0 Kudos

Hi Everybody,

While creating function modules we get 3 processing types in attributes tab.

1.normal function module.

2.remote function module.

3.Update module.

My question is what the update module?

What r the scenarios where we use this type of FMs?

Thanks and Regards

Nazmul Azad

5 REPLIES 5

Former Member

Former Member
0 Kudos

This message was moderated.

former_member705122
Active Contributor

vinod_vemuru2
Active Contributor
0 Kudos

HI,

Update FM option is used when u r calling this FM in UPDATE TASK mode.

If u call the FM in UPDATE TASK mode then this FM is executed in seperate work process called UPDATE work process.

eg: If u r calling any FM in an user exit and that FM has COMMIT WORK statement then u must call it in UPDATE TASK. Other wise u may get unexpected results. Because u r commiting the transaction in the middle it self. So when u call this FM in update task, All results of this FM will be stored in some memory area and later they will be executed.

CHANGING parameters and EXCEPTIONS are ignored in UPDATE FM.

Check F1 documentation for CALL FUNCTION IN UPDATE TASK.

Also u can't directly debug the UPDATE FM. Before calling this FM In debug mode goto MEnu>SettingsUpdate debugging.

Now even if u press F5 at this FM it will come out first. After executing every thing it will open one more window and goes to this FM. Make sure that u have max of 5 sessions opened as we can have MAX of 6 sessions in a log on(Since UPDATE debugging will open new window).

Thanks,

Vinod.

Edited by: Vinod Reddy Vemuru on Jul 23, 2008 4:03 PM

Former Member
0 Kudos

Hi,

check this link it would be helpful to you

http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/content.htm

cheers,

sowjanya.