Book description
Exploit one of the most powerful features of SAP Business One with this practical guide to mastering SQL Queries. With the skills to quickly acquire business intelligence, your enterprise can gain the competitive edge.
- Practical SAP query examples from an SAP Business One expert
- Detailed steps to create and troubleshoot SQL queries for Alerts, Approvals, Formatted Searches, and Crystal Reports
- Understand the importance and benefit of keeping SQL queries simple and easy to understand
- Benefit from special tips and tricks related directly to SQL queries within SAP Business One
In Detail
SAP Business One is an integrated Enterprise Resource Planning (ERP) software which offers an ideal solution for growing small to midsized businesses. For such companies, retrieving the most relevant information from their business data can be key to standing out from the competition. SAP Business One is a rapidly growing software package and this book is timely in giving those businesses an advantage in the area of Business Intelligence. Having SQL query skills in- house is the most important and cost-effective move you can make in this growing field.
This practical guide will provide you with the skills to gain more specific business information from SAP Business One by using SQL queries. It will provide you with solutions for solving complicated report related problems, covering basic tools like the Query Generator and Query Wizard. More advanced content like using queries with Crystal Reports will also be delved into.
SQL query is one of the advanced tools available in SAP Business One which is easily learned and quickly utilized. By referring back to and applying the many examples in this book, you will be able to create and run correct, and therefore effective, SQL queries to help your business.
The book begins by teaching a clear definition of the SQL query, and covers the data dictionary and table links. Coverage will then jump to a higher level of complex SQL queries, discussing features like FMS. Along the way more advanced SQL Query topics will be covered, such as extending the scope of basic SQL queries for more complicated cases. You will ultimately gain in depth query knowledge to bring more Business Intelligence into SAP Business One.
Gain the skills to provide much needed business information within your company with SQL queries for SAP Business One
Table of contents
-
Mastering SQL Queries for SAP Business One
- Table of Contents
- Mastering SQL Queries for SAP Business One
- Credits
- About the Author
- Acknowledgement
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. SQL Query Basic
- 1. SAP Business One Query Users and Query Basics
- 2. Query Generator and Query Wizard
-
3. Query Manager and Query Statements
- Query manager user interface
-
Commonly used statements
- SELECT—first statement to retrieve data
- DISTINCT—duplicated records can be removed
- TOP—number of lines returned by ranking
- FROM—data resource can be assigned
- JOIN—addition table or tables can be linked
- WHERE—query conditions to be defined
- BETWEEN—ranges to be defined from lower to higher end
- IN/EXISTS—the value list that may satisfy the condition
- LIKE—similar records can be found
- GROUP BY—summarizing the data according to the list
- HAVING—conditions to be defined in summary report
- ORDER BY—report result can be by your preferred order
- UNION/UNION ALL—to put two or more queries together
- Some important functions to return values
- Summary
-
2. SQL Query in Action
-
4. Query Examples
- Why three categories have been chosen
- Defining variables for queries
- Date function—where the most problems emerge
- Orange arrow—an excellent tool for drill down
- Getting a subtotal from the query
-
Query for marketing documents
- Case 4-M1: Overview of BP with selection of realized balance
- Case 4-M2: Top five items sold
- Case 4-M3: A filter by notes from OCRD
- Case 4-M4: Adding sales employees' names to a query
- Case 4-M5: A case for solution just from deduction
- Case 4-M6: Goods Receipt PO within 10 days
- Case 4-M7: Quantity purchased, received, and returned
- Case 4-M8: Customized sales analysis report
- Case 4-M9: Average sales per month
- Case 4-M10: Credit Memo user check
- Case 4-M11: Delivery date on sales order
- Case 4-M12: Reducing from two to one line for the sales summary
- Case 4-M13: Tax code summary
- Case 4-M14: Sales by states
- Case 4-M15: Many linked tables in one query
- Case 4-M16: Sales Order with PO
-
Query for inventory transactions
- Case 4-I1: Adding stock total to the query
- Case 4-I2: Adding a total to the query bottom
- Case 4-I3: Items not delivered within 15 days
- Case 4-I4: Active item list
- Case 4-I5: How to find stock taking details
- Case 4-I6: Query on price updates
- Case 4-I7: Planned quantity versus in stock
- Case 4-I8: Adding to the production orders list from a sales order
- Case 4-I9: Complete item list with or without transactions
- Query for financial transactions
- User query for alert
- Miscellaneous query examples
- Summary
- 5. Securities and Approvals
-
6. SQL Query for Formatted Search (FMS)
- Formatted Search and User-Defined Values
- How to work with User-Defined Values
- A typical FMS query application: auto code creation
-
General FMS query examples
- Case 1—Double quotes should be avoided
- Case 2—Price value validation on line level
- Case 3—Populating a UDF from OITM in a UDF on quotation
- Case 4—Difference between two UDFs into another UDF
- Case 5—Displaying warehouse name beside warehouse code
- Case 6—Showing purchase order due date on sales order
- Case 7—Auto populating the profit center code
- Case 8—Calculation by three user-defined fields
- Case 9—Open order reminder in new order
- Case 10—Commitment checks for warehouse in stock
- Case 11—Multiplying a field from OITM with a field on order line
- Case 12—Multiplying two UDF values from two tables
- Case 13—Last sales price for a customer
- Case 14—Calling a UDF value in the BOM to Production Order
- Case 15—Multiplying a UDF value with a system field value
- Case 16—Eliminating the duplicate lines returned by FMS query
- Case 17—Getting the sales rep code assigned to an activity form
- Case 18—FMS query for User-Defined Table (UDT)
- Summary
-
7. SQL Query for Reporting Tools
- Query Print Layout Designer (QPLD) and its usage
- Direct query for Crystal Reports (Command)
- Summary
-
8. SQL Query for a Stored Procedure
- Why Stored Procedure is included in this book
- SBO_SP_TransactionNotification overview
- How to work with SBO_SP_TransactionNotification
-
Some example queries for this SP
- Case 1—Blocking an outgoing payment for a specific BP
- Case 2—Restricting outgoing payments above 20,000
- Case 3—Blocking goods receipt entry
- Case 4—Blocking a sales quotation if no value in row level UDF
- Case 5—Blocking invoice based on GL account and project
- Case 6—Blocking GRPO if quantity is more than PO quantity
- Case 7—Blocking, adding, or updating an order for duplicated BP ref #
- Case 8—Blocking sales documents based on dates
- Case 9—Validation service type A/R credit memo
- Case 10—Blocking goods issue for none super user
- Case 11—Blocking Goods Receipt PO if no based PO
- Summary
- 9. More Complicated SQL Query Topics
- A. Appendix
-
4. Query Examples
- Index
Product information
- Title: Mastering SQL Queries for SAP Business One
- Author(s):
- Release date: May 2011
- Publisher(s): Packt Publishing
- ISBN: 9781849682367
You might also like
book
SAP Query Reporting
SAP Query Reporting is everything an SAP user needs to know to create your own reports …
book
SAP Data Services 4.x Cookbook
Delve into the SAP Data Services environment to efficiently prepare, implement, and develop ETL processes About …
book
Professional Microsoft SQL Server 2016 Reporting Services and Mobile Reports
Optimize reporting and BI with Microsoft SQL Server 2016 Professional Microsoft SQL Server 2016 Reporting Services …
book
SAP ABAP: Hands-On Test Projects with Business Scenarios
" SAP ABAP (Advanced Business Application Programming) elucidates the numerous features of the core programming platform, …