Object Services in ABAP
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Business applications > Enterprise software > SAP (Systems, applications and products in databases) > Object Services in ABAP
Object Services in ABAP

Object Services in ABAP


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Object Services provide ABAP applications with various central services that are not directly covered by ABAP objects, and this practical book introduces proven solutions for the use of these standard services. It also teaches you how to easily link Object Services with user interface elements, or enhance them elsewhere with useful functions. Functional Scope in Detail Get essential details on the standard functions of Object Services (Persistence Service, Transaction Service, Query Service) as well as the technological basic principles of their implementation and their internal functioning. Enhancement Options Understand suggested enhancements for the functional scope of Object Services, such as options for reloading and releasing objects, the integration of plausibility checks, the automated processing of the SAP Lock Concept, and much more. Direct Benefits Learn to implement applications and entire systems on a completely object-oriented basis, allowing you to take full advantage of the benefits of Object Services. Your ABAP programs become more stable, re-usable, faster, and easier to maintain. Cross-Release Descriptions Increase your knowledge of further developments of Object Services, up to and including SAP NetWeaver AS ABAP Release 7.0 EhP2.

Table of Contents:
... Preface ... 9 1 ... Introduction ... 11 2 ... Reading Persistent Objects ... 19 2.1 ... Creating a Persistent Class ... 20 2.1.1 ... Selecting a Database Table for Persistence Representation ... 21 2.1.2 ... Assigning the Individual Fields to the Attributes of the Class ... 22 2.1.3 ... Completeness of the Persistence Representation ... 26 2.1.4 ... Instance GUIDs and Business Keys ... 26 2.1.5 ... Multiple-Table Mapping ... 28 2.1.6 ... Transient Attributes ... 29 2.1.7 ... Activating the Persistent Class ... 30 2.2 ... Instantiating Persistent Objects ... 30 2.2.1 ... IF_OS_CA_PERSISTENCY~GET_PERSISTENT_BY_OID ... 31 2.2.2 ... IF_OS_CA_PERSISTENCY~GET_PERSISTENT_BY_KEY ... 33 2.2.3 ... GET_PERSISTENT ... 34 2.2.4 ... Exception Handling ... 35 2.2.5 ... Behavior for Already-Loaded Objects ... 36 2.3 ... Reading Attribute Values ... 37 2.4 ... Persistent References ... 38 2.4.1 ... Definition of a Persistent Reference in the Persistence Representation ... 40 2.4.2 ... Runtime Behavior ... 41 2.4.3 ... Exception Handling ... 42 2.4.4 ... Limitations for the Use of Persistent References ... 43 2.5 ... Inheritance ... 43 2.5.1 ... Vertical Mapping ... 44 2.5.2 ... Horizontal Mapping ... 45 2.5.3 ... Comparing the Two Mapping Variants ... 47 2.5.4 ... Type Identifier ... 47 2.5.5 ... Where-Used List for Inheritance Relationships ... 48 2.6 ... Summary ... 49 3 ... Creating and Changing Persistent Objects ... 51 3.1 ... Creating Persistent Objects ... 51 3.1.1 ... IF_OS_FACTORY~CREATE_PERSISTENT ... 52 3.1.2 ... IF_OS_FACTORY~CREATE_PERSISTENT_BY_KEY ... 53 3.1.3 ... CREATE_PERSISTENT ... 54 3.1.4 ... Exception Handling ... 55 3.1.5 ... Creating Transient Objects ... 55 3.2 ... Changing Attribute Values ... 56 3.3 ... Transaction Service ... 58 3.3.1 ... Transactions in SAP Systems ... 58 3.3.2 ... Object-Oriented Transactions ... 60 3.3.3 ... Concatenating Transactions ... 61 3.3.4 ... Subtransactions ... 63 3.3.5 ... Transaction Modes ... 64 3.3.6 ... Update Modes ... 70 3.3.7 ... Check Agents ... 74 3.3.8 ... Undo Mechanism for Persistent Objects ... 77 3.3.9 ... Transaction Statuses ... 78 3.4 ... Management States of Persistent Objects ... 80 3.4.1 ... State Transitions for Persistent Objects That Don't Exist in the Database Yet ... 81 3.4.2 ... State Transitions for Persistent Objects That Already Exist in the Database ... 82 3.4.3 ... State Transitions When Finishing Transactions and SAP Logical Units of Work ... 86 3.5 ... Summary ... 88 4 ... Selecting Persistent Objects ... 89 4.1 ... Determining Keys of Persistent Objects with Open SQL ... 89 4.2 ... Mass Instantiation ... 91 4.3 ... Simple Selections Using the Query Service ... 93 4.4 ... More Complex Selections Using the Query Service ... 96 4.4.1 ... Defining Query Parameters ... 97 4.4.2 ... Defining the Filter Condition ... 99 4.4.3 ... Defining the Sort Condition ... 106 4.4.4 ... Passing Concrete Values for Query Parameters ... 109 4.5 ... Comparing the Query Service and Open SQL ... 112 4.6 ... Handling Newly Created and Changed Objects ... 113 4.7 ... Summary ... 116 5 ... Internal Structure and Functioning of Object Services ... 117 5.1 ... Persistence Service ... 117 5.1.1 ... Class Agent and Base Agent ... 117 5.1.2 ... Instance Manager and Persistency Manager ... 121 5.1.3 ... Database Tables with Information on the Persistence Representation ... 124 5.1.4 ... Automatic Source Code Generation ... 124 5.1.5 ... Garbage Collection in ABAP Objects ... 127 5.2 ... Transaction Service ... 129 5.2.1 ... Implementation of the Transaction Manager and the Transactions ... 129 5.2.2 ... Undo Management ... 131 5.3 ... CL_OS_SYSTEM ... 134 5.4 ... Summary ... 136 6 ... Useful Enhancements for Practical Use ... 137 6.1 ... Reloading Objects from the Database ... 137 6.2 ... Release of Objects No Longer Required ... 140 6.3 ... Conversion Between Object and Structure ... 141 6.3.1 ... Reading Attribute Values from a Persistent Object ... 142 6.3.2 ... Writing Attribute Values to a Persistent Object ... 144 6.3.3 ... Structures in Connection with Persistent Classes ... 146 6.4 ... Use of Persistent Objects in User Interfaces ... 150 6.4.1 ... SAP Control Framework ... 150 6.4.2 ... Using Persistent Objects in Web Dynpro Contexts ... 154 6.4.3 ... Setting the Transaction Mode in a Web Dynpro Application ... 158 6.5 ... Summary ... 159 7 ... Intelligent Persistent Objects ... 161 7.1 ... Plausibility Checks ... 161 7.1.1 ... Variant 1: Custom Access Methods with Different Names in the Persistent Class ... 163 7.1.2 ... Variant 2: Delegation with Access Methods in a Usual Class ... 165 7.1.3 ... Variant 3: Persistent Subclass ... 167 7.1.4 ... Variant 4: Enhancement Framework ... 169 7.1.5 ... Comparing the Various Variants ... 174 7.2 ... Lazy Loading ... 176 7.3 ... Summary ... 180 8 ... Integration of the SAP Lock Concept and Object Services ... 181 8.1 ... The SAP Lock Concept ... 182 8.2 ... Pessimistic and Optimistic Locking ... 186 8.2.1 ... Lock Mode ... 186 8.2.2 ... Pessimistic Locking ... 187 8.2.3 ... Optimistic Locking ... 189 8.2.4 ... Using the Two Locking Strategies in an SAP System ... 191 8.3 ... Integration of Optimistic Locking ... 192 8.3.1 ... Setting Optimistic Locks ... 193 8.3.2 ... Registering the Check Agent ... 197 8.3.3 ... Converting Optimistic Locks Into Exclusive Locks ... 199 8.4 ... Integration of Pessimistic Locking ... 204 8.5 ... Integration of Both Locking Strategies ... 205 8.6 ... Summary ... 207 9 ... Conclusion ... 209 ... The Authors ... 211 ... Index ... 213

About the Author :
Christian Assig is a software developer at IOT GmbH (the Institute for Organizational and Technological Design), which specializes in the development and implementation of complex IT solutions. He has many years of experience in object-oriented software development in ABAP, and has implemented Object Services on a large scale in different projects. Aldo Hermann Fobbe is a departmental manager (product development and technology) at IOT GmbH (the Institute for Organizational and Technological Design), which specializes in the development and implementation of complex IT solutions. He has many years of experience in object-oriented software development in ABAP, and has implemented Object Services on a large scale in different projects. Arno Niemietz is the CEO of IOT GmbH (the Institute for Organizational and Technological Design), and a professor at the University of Applied Sciences of Gelsenkirchen, Germany. He has many years of experience in object-oriented software development in ABAP, and has implemented Object Services on a large scale in different projects.


Best Sellers


Product Details
  • ISBN-13: 9781592293391
  • Publisher: SAP Press
  • Publisher Imprint: SAP Press
  • Height: 228 mm
  • No of Pages: 218
  • Spine Width: 21 mm
  • ISBN-10: 1592293395
  • Publisher Date: 28 Jan 2010
  • Binding: Hardback
  • Language: English
  • Returnable: N
  • Width: 175 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Object Services in ABAP
SAP Press -
Object Services in ABAP
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Object Services in ABAP

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!