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

How to Create an Update Method ?

former_member207873
Participant
0 Likes
786

Hi Experts,

I would like to create an update method which is similar to update function module. I could think of creating a custom function module. But as SAP itself appreciate the usage of OOPS over procedural, I would like to create a method which does the same thing as an update function module will do. If we create update function module we can flag it as 'update module'  in the function builder. Then if we call the update function module, everything will be in a single LUW.( All Change or no change) Is there any similar way by which we can indicate the method as update or do we have to rely upon the locking mechanism before and after method call.?

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
699

You cannot define a method as "update" as-of-now.

But SAP has provided a nice Transaction Service model which you can use to build OO transactions.

Hi Experts,

I would like to create an update method which is similar to update function module. I could think of creating a custom function module. But as SAP itself appreciate the usage of OOPS over procedural, I would like to create a method which does the same thing as an update function module will do. If we create update function module we can flag it as 'update module'  in the function builder. Then if we call the update function module, everything will be in a single LUW.( All Change or no change) Is there any similar way by which we can indicate the method as update or do we have to rely upon the locking mechanism before and after method call.?

1 REPLY 1
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
700

You cannot define a method as "update" as-of-now.

But SAP has provided a nice Transaction Service model which you can use to build OO transactions.