Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SAP ABAP : Logical Unit of Work(LUW) and function modules

15,647 views

Published on

Introduction to Logical Unit of Work(LUW) and Function Modules in SAP APAB.

Topics Covered:
Logical Unit of Work(LUW)
Normal Function Modules
Remote-enabled (RFC) Function Modules
Update Function Modules
Collective Run function Modules

Published in: Technology
  • Finally found a service provider which actually supplies an essay with an engaging introduction leading to the main body of the exposition Here is the site ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If u need a hand in making your writing assignments - visit ⇒ www.HelpWriting.net ⇐ for more detailed information.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • I like this service ⇒ www.HelpWriting.net ⇐ from Academic Writers. I don't have enough time write it by myself.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • You can ask here for a help. They helped me a lot an i`m highly satisfied with quality of work done. I can promise you 100% un-plagiarized text and good experts there. Use with pleasure! ⇒ www.HelpWriting.net ⇐
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

SAP ABAP : Logical Unit of Work(LUW) and function modules

  1. 1. Logical Unit of Work(LUW) and Function Modules in SAP APAB By: Shiva Saxena Developer Maventic Innovative Solutions Pvt. Ltd. Bangalore. Mail: shivasaxena@outlook.com Linkedin: https://www.linkedin.com/in/shivasaxena
  2. 2. Agenda • Logical Unit of Work(LUW) • Overview of Function Module • Types of Function Module • Update Function Module Details • Conclusion & Credits
  3. 3. Logical Unit of Work(LUW) From the point of view of database programming, a database LUW is an inseparable sequence of database operations that ends with a database commit.
  4. 4. • How does SAP mantain consistency in LUW ? The database changes that occur within a database LUW are not actually written to the database until after the database commit. • Can we explicitly Commit or Rollback and LUW ? To Commit call the FM DB_COMMIT or use APAP command COMMIT WORK to Rollback we can use the ROLLBACK WORK command in the
  5. 5. • When does a Database LUW Begins? • Each time a dialog step starts (when the dialog step is sent to the work process). • Whenever the previous database LUW ends in a database commit. • Whenever the previous database LUW ends in a database rollback. • When does a Database LUW Ends ? • Each time a database commit occurs. This writes all of the changes to the database. • Each time a database rollback occurs. This reverses all of the changes made during the LUW.
  6. 6. Overview of Function Module • Function modules are procedures that are defined in special ABAP programs only, so-called function groups. • Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. • Function Modules are of three types • Normal • Remote-enabled (RFC) • Update
  7. 7. Workings of a function module FM Memory Function Groups : Special ABAP programs with type F Function Modules Function Group Function Module Function Module Function Group Function Module
  8. 8. Types of Function Module Function Module Normal Function Module Remote Enabled Module : Can be called remotely from an SAP or non SAP System UpdateModule : Function modules are used to update the database tables.
  9. 9. Update Function Module • Using the function module in updating the database table helps in updating without any irregularities as its transaction based. Update Function Module Update with immediate start Update with immediate with no restart Update with delayed start Collective Run
  10. 10. • Update with immediate start : Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors. • Update with immediate start, no restart : Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task. • Update with delayed start : Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors. • Collective Run : In addition to V1 and V2 function modules, there are also function modules of the type collective run.These do not updated automatically contrary to the function modules mentioned first but only when a special report (report RSM13005) triggers the update (for example in background operation).Then all calls of the function module are collected, summarized (see example) and updated at once. They are treated like V2 update modules.
  11. 11. • References • Function Modules, retrived on 26-Aug-14 from SAP Online help URL http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db988735c111d1829f0000e829fbfe /content.htm • How many types of function modules are there, retrived on 26-Aug-14 from SCN, URL http://scn.sap.com/thread/760507 • Database Logical Unit of Work (LUW) ,reterived on 26-Aug-14, from SAP Help from SCN, URL https://help.sap.com/saphelp_nw04/helpdata/en/41/7af4bca79e11d1950f0000e82de14a /content.htm • Note 140357 - MCE_STATISTICS_UPD_V3, MCEX_UPDATE_02:COLL.RUN INIT, reterived on 26-Aug-14, from SAP Techno,URL http://www.stechno.net/sap-notes. html?view=sapnote&id=140357 • SAP Training videos by Peter Moxon, URL http://www.youtube.com/user/pcmoxon

×