!--a11y-->
Data Model for the Bookshop Tutorials 
The data model described here in the basis of the bookshop tutorials.
In the package
SBOOKSHOP in your system, you will find the following database tables and other objects used in the tutorials. Only the most important objects are listed here. For a complete list, see the Object Navigator in your system.Database Tables
SBOOKSHOP
contains the following database tables:|
Table Name |
Key Fields |
Other Fields |
Meaning |
|
BSAUTHORS |
MANDT ISBN AUTHFNAME AUTHLNAME |
AUTHFNAM AUTHLNAM |
In addition to the client for each book, this table also contains the ISBN and the first and last names of the author, written once in standard case and once in upper case. |
|
BSBOOK |
MANDT ISBN |
TITLE SUBTITLE SERIES PUBLISHER PUBLYEAR BOOKPAGES PRICE_RAW CURRENCY COUNTRY |
This table contains the titles of the books available in the bookshop. |
|
BSCATALOG |
MANDT CATA_ID ISBN |
CURRENCY OUR_PRICE DELIVERY COVER_URL |
This table represents the book catalog. The other fields are currency (euro), price in our shop, expected delivery time, and the URL of a picture of the book cover. |
|
BSCUSTOMER |
MANDT CUSTOMERID |
TITLE SURNAME FIRSTNAME COMPANY STREET ZIP CITY COUNTRY DISCOUNT USRPWD |
This is the customer table. All customer data is stored here. |
|
BSKEYWORD |
MANDT ISBN KEYWORD |
In addition to the client this table contains a keyword for an ISBN. |
|
|
BSORDER |
MANDT CUSTOMER ORDER_ID ISBN |
ORDERDATE AMOUNT STATUS |
This table contains all the orders. |
|
BSTEXTS |
MANDT RELID SRTFD SRTF2 |
ISBN TEXT_TYPE REVIEW_NO INPUTDATE CLUSTR CLUSTD |
This is the table for long texts in the bookshop. The other fields are ISBN, the type of a long text in the bookshop, an internal field, the date, a field length for user data, and a database field for the IMPORT/EXPORT tables. |
Classes and Methods
The bookshop has the class
CL_BOOK_SHOP. This class includes the following methods:|
Method |
Parameter |
Description |
|
SEARCH_BOOK |
Book search |
|
|
TITLE |
|
|
|
AUTHOR |
|
|
|
PUBLISHER |
|
|
|
KEYWORD |
|
|
|
ISBN |
|
|
|
ISBN_TAB |
|
|
|
GET_BOOK_DATA |
Reading the book table |
|
|
ISBN_TAB |
|
|
|
BOOKCAT_TAB |
|
|
|
MAINTENANCE_SCREEN |
Input and output of book data on the screen |
|
|
NEW_ENTRY |
|
|
|
ISBN |
|
|
|
GET_ITEM |
Reading a catalog entry |
|
|
CAT_ID |
|
|
|
BOOK_DATA |
|
|
|
CHECK_ISBN |
ISBN check |
|
|
ISBN |
|
|
|
Flag |
|
|
|
Symbol |
Meaning |
|
|
Import parameter |
|
|
Export parameter |
|
|
Return parameter |