ABAP Development for Sales and Distribution in SAP
eBook - ePub

ABAP Development for Sales and Distribution in SAP

Exits, BAdIs, and Enhancements

  1. 260 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

ABAP Development for Sales and Distribution in SAP

Exits, BAdIs, and Enhancements

About this book

This book explains solutions to the most common enhancement scenarios in SD, and provides insight on how to implement light and flexible enhancements. You'll follow along with specific examples of when the standard SD system doesn't meet business requirements, including sales orders and billing, and understand how to find the right enhancement and implement the solution. Learning about ABAP development for Sales and Distribution in SAP has never been so practical—jump in with a book that explains the whys and hows! 1. No-Nonsense Enhancement Advice Understand when enhancements should be used, and what impacts they'll have on your SAP system in the short and long term. 2. What Enhancement Will Work? There is no "best" enhancement—learn how to compare the pros and cons of different enhancement methods and understand how they can tailor your standard SD functionality. 3. Detailed Scenarios See specific examples that illustrate where enhancements are necessary, then how to find and implement custom enhancements to meet a company's specific SD needs. 4. Practical SD Topics Sales order processing, delivery processing, and billing: Find enhancement scenarios and solutions in the book by these common topics. 5. Comprehensive Appendices Find detailed listings of BAdIs and exits for sales orders, delivery, invoicing, transport documents, and more, as well as complete coding examples.

Highlights:

  • Explicit and implicit enhancements
  • Persistent objects and classes
  • Enhancement and Switch Framework
  • Enterprise services
  • VOFM routines
  • Repository Infosystem
  • Validations
  • Remote function calls (RFC)
  • Customer-defined routines
  • KPI reporting

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access ABAP Development for Sales and Distribution in SAP by Michael Koch in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Information

The Enhancement and Switch Framework, along with exits and routines, are used to enhance SAP Sales and Distribution systems. In this chapter, you’ll learn the differences between each of the enhancement techniques and where to find them.

1 Introduction to Enhancements in Sales and Distribution

Before introducing the different ways you can enhance the existing Sales and Distribution (SD) functionality with ABAP code, you need to understand that any customization applied to the SAP standard code should always be the last resort and the end result of vigorous contemplation. Why?
SD is standard software, like many enterprise resource planning (ERP) solutions. Most businesses introduced SD to reap the benefits of standard software. Here is a non-exhaustive list of the typical benefits a business can gain from using SD:
  • Stability
  • Cost efficiency
  • Upgradability
  • Leveraging best practices
In other words, by creating custom code enhancements to your SD component, you are introducing new software objects that might have a detrimental effect on some or all of the benefits just listed. Therefore, it’s important to analyze, understand, and communicate the potential impact of any code customization.
Before undertaking any custom enhancements using ABAP code, developers need to consider the following five important questions:
  1. Could SAP standard functionality solve your problem?
  2. Have you searched SAP Marketplace (http://service.sap.com) for SAP Notes, which might help you with your problem?
  3. Can the same be achieved using Customizing?
  4. Is there already an existing customization object, in which the envisaged change could be incorporated?
  5. Have you discussed the problem with functional consultants and other team members?
Important
You should only implement code customizations if you’re satisfied that the answers to these questions do not suggest an alternative solution.
Routines, user exits, and customer exits (in some parts) leave a fair amount of responsibility with the customer. User exits, for example, have no defined interfaces, meaning all fields and tables are available to the developer. Therefore, any incorrect use of the available fields and tables can lead to undesired results.
It’s important for developers to explore alternatives before embarking on the implementation of any customer-defined routine or user exit. Developers must keep the checkpoints in mind that were laid out in the introduction of this chapter before proceeding with implementing an enhancement.
Tips & Tricks
For further information, refer to SAP Note 381348, “Using User Exit, Customer Exit, VOFM in SD.”

1.1 Enhancing Standard SD Functionality

SAP offers more than one method or technology to customize and enhance its off-the-shelf SD functionality. To give you an overview, Figure 1.1 shows a mind map of these methods and technologies. A flag indicates that the particular method is covered in this book.
As shown in the mind map, the main emphasis of this book is on exits, the Enhancement Framework, and customer-defined routines. This is not to say that all other techniques shown (Customizing, personalization, and business transaction events) are of no importance. However, in terms of custom code enhancements, these methods are not as relevant as exits, BAdIs, and customer-defined routines. Also, there are situations where modifications cannot be avoided (see Chapter 2 and Chapter 13 for details).
Figure 1.1 SD Enhancements Mind Map

Figure 1.1 SD Enhancements Mind Map
In the following sections, we introduce exits, the Enhancement Framework, and customer-defined routines in more detail. This chapter will conclude with a comparison of enhancement techniques, which should help you make the right enhancement choice in your own projects.

1.1.1 Exits

Up to SAP release 4.6, exits were the only way to truly enhance SAP standard coding. (From release 4.6A onward, business add-ins (BAdIs) were introduced, which are discussed in Chapter 2, Section 2.3.)
SAP created exits when it developed the standard code and put these into places where customers need more flexibility. Exits are empty or inactive when delivered and can be completed by customers as needed. Exits provide the following advantages, especially when compared to modifications:
  • Developed objects do not affect standard coding and are held separately, in their own customer namespace.
  • During an upgrade project, most exits remain and do not affect the upgraded system (there are some exceptions, see the comparison tables in Section 1.4 of this chapter for details).
In the following sections, we’ll discuss the different types of exits and distinguish them by explaining their implementation and features.
More often than not, user exits and customer exits are mixed up or even regarded as the s...

Table of contents

  1. Notes on Usage and on the Screen Presentation
  2. Table of Contents
  3. Dear Reader
  4. Preface
  5. 1 Introduction to Enhancements in Sales and Distribution
  6. PART I Enhancements in Sales Order Processing
  7. 2 Validating Sales Order Data
  8. 3 Capturing and Saving Additional Data Fields in Sales Order Processing
  9. 4 Creating an SAP CRM Activity after SD Order Billing
  10. 5 Filtering Pricing Data within a Web Service
  11. 6 Using a Custom Field in SD Pricing
  12. PART II Enhancements in Delivery Processing
  13. 7 Setting a Delivery Block on the Header Level
  14. 8 Using a BAdI to Keep Track of Delivery KPIs
  15. 9 Using a Customer Exit to Enhance the Outbound Delivery Monitor
  16. PART III Enhancements in Billing
  17. 10 Invoice Splitting Using a VOFM Routine
  18. 11 Changing Invoice Reference and Numbering Range during Document Creation
  19. PART IV Conclusion
  20. 12 Finding the Right Enhancement Technique
  21. 13 Future Outlook
  22. A Exits and BAdIs in Sales and Distribution
  23. B Code Listing for Class ZCL_SURVEY
  24. C The Author
  25. Index
  26. Service Pages
  27. Legal Notes