Sie sind auf Seite 1von 4

Quick Tip

SAP GL Data Sources: Which Tables


Should You Use?
Rohana Gunawardena, SAP Practice Director, Quality Systems & Software

This document is for your personal use only. Reproduction or distribution in any form is strictly prohibited without the permission of the
publisher, Wellesley Information Services. For information about the SAPexperts and other WIS publications, visit www.SAPexperts.com.

This article is found at SAPexperts.com, where new articles are added every week.
SAPexperts helps you master your SAP financials activities. They’re packed with detailed instruction, best practices, and comprehensive guidance
not found anywhere else. Your 12-month subscription gives your entire team access to the most sought-after expertise from the world’s top experts in
SAP financials technology. It’s like adding additional experts to your SAP team who have all the answers - without the cost of hiring them. Subscribe at
www.SAPexperts.com.

When upgrading, users may take reports from the classic General Ledger (GL) and assume they will work in the SAP GL (formerly called the new
GL). This isn’t always the case. See the differences between key tables containing SAP GL data and identify where you need to look for data.

You’ve moved from the classic General which shows the profit center for each The two different views of the AR posting
Ledger (GL) to SAP General Ledger (SAP item. In the SAP GL environment, profit are supported by two different tables: the
GL, formerly called the new GL). It has center is a document splitting field. In the entry view by classic GL table BSEG
custom reports that use classic GL tables (e.g., example, I use profit center as the SAP (Figure 3) and the GL view by SAP GL
BSIS, BSID, and BSIK). At first, the classic GL split characteristic, but this scenario table FAGLFLEXA (Figure 4). Note that
GL reports seem to run as expected after acti- applies equally to other SAP GL splitting in the GL view the customer account
vating SAP GL. On closer examination, not characteristics (e.g., segment, functional number 10057528 is replaced by the AR
area, or business area). I chose the reconciliation account number 120000.
all data is available. This missing data occurs
for document splitting fields. What changes example of an AR aging report because In this case, keeping an AR aging report
do you need to make to these reports? the SAP standard report is not very com- logic using tables BSEG, BSID, and
prehensive, so custom ones are common. BSAD provides most of the required data.
Let’s take the example of a custom AR (The table logic being discussed applies to However, if the user wants to see the
aging report written for the classic GL, other modules, such as AP, as well.) profit center value that is not visible in the
>> Note Let’s start with a look at the table entries report, this data is only available by
reading FAGLFLEXA.
To see full details of the key classic made for an AR document posting using
GL tables and their uses, see my SAP GL. The posting debits the customer In the classic GL, GLT0 was the table
article, “Speed Up Your Report Per- and credits two revenue lines with differ- that contained periodic balances grouped
formance by Knowing Where Your FI ent profit centers. You can see this in the by GL account, allowing rapid display of
Data Is Hiding,” which was posted to entry view of the document (Figure 1). In monthly balances for transactions such
the Financials Expert knowledge- the GL view of the document, you can see as FS10. After you activate SAP GL,
base in April 2003. the customer line being split by profit GLT0 is no longer populated and you
center (Figure 2). use transaction FAGLB03 instead of

©2012 SAPexperts • Reprinted with permission from SAPexperts •


Reproduction or distribution in any form is strictly prohibited without the permission of the publisher, Wellesley Information Services.
FS10. Any custom reports that read this The key fields of FAGLFLEXT may seem more familiar search criteria, to help
table need to be redirected to FAGL- unfamiliar to someone converting from support rapid data selection (Figure 6).
FLEXT, and a programmer needs to the classic GL. SAP provides additional Other methods of reporting (e.g., Report
update them (Figure 5). indices 1, 2, 3, and 4, which are based on Writer, SAP Query, and Quick Viewer)

Figure 1 Customer posting in entry view

Figure 2 Customer posting in GL view

Figure 3 Document lines in BSEG table (classic GL) with the profit center not populated for the AR line

©2012 SAPexperts • Reprinted with permission from SAPexperts •


Reproduction or distribution in any form is strictly prohibited without the permission of the publisher, Wellesley Information Services.
www.SAPexperts.com

must take account of the change of tables SAP GL data from SAP ECC to SAP report), you can still use the classic GL
that occurs with the implementation of NetWeaver BW logical databases (e.g., SDF).
SAP GL.
If you are writing an SAP Query, use one Commonly used SAP standard reports
In Report Painter and Report Writer, a of the appropriate SAP GL tables (FAGL- (e.g., RFSSLD00) work correctly for both
new report library 0FL is provided for the FLEXA, FAGLFLEXP, or FAGLFLEXT). classic GL and SAP GL because SAP has
SAP GL data with base table Note that the classic GL tables are still modified the underlying code to check if
FAGLFLEXT available and may meet your reporting SAP GL is active. The system then
requirements. When defining the InfoSet extracts balances from GLT0 or FAGL-
In SAP NetWeaver BW, SAP GL provides (i.e., an SAP Query term for a limited set FLEXT as appropriate. You can also use
data source 0FI_GL_10 for sending the of tables and table fields used to write a function module FAGL_GET_GLT0 to

Figure 4 Document lines in FAGLFLEXA table (SAP GL) with the profit center split of the customer line visible

Figure 5 Summary balances in table FAGLFLEXT (SAP GL)

Figure 5 SAP standard indices for table FAGLFLEXT

©2012 SAPexperts • Reprinted with permission from SAPexperts •


Reproduction or distribution in any form is strictly prohibited without the permission of the publisher, Wellesley Information Services.
Table Classic GL SAP GL Description Use

BKPF X X Accounting document header Document header data by document number

BSAD X X Accounting: Secondary index for cus- AR cleared items by account number
tomers (cleared items)

BSAK X X Accounting: Secondary index for AP cleared items by account number


vendors (cleared items)

BSAS X X Accounting: Secondary index for GL GL cleared items by account number


accounts (cleared items)

BSEG X X Accounting document segment GL, AR, and AP line items by document number

BSID X X Accounting: Secondary index for cus- AR open items by account number
tomers

BSIK X X Accounting: Secondary index for AP open items by account number


vendors

BSIS X X Accounting: Secondary index for GL GL open items by account number


accounts

FAGLFLEXA X GL: Actual line items SAP GL actual line items by GL view document number, also has
index by entry-view (BSEG) document number

FAGLFLEXP X GL: Plan line items SAP GL plan line items by GL view document number

FAGLFLEXT X GL: Totals Summary totals for GL accounts by object number, also has index
by GL account

GLT0 X GL account master record transaction Summary totals for GL accounts by GL account
figures
Table 1 Summary of key classic GL and SAP GL data tables

replace GLT0 and simplify your code custom reports take the approach of using means that they cannot be considered on
changes. logical databases, no change is required. their own. Programmatically there is no
quick way to look up open and closed
Many standard SAP FI reports use logical Table 1 shows a summary of classic GL
items in the SAP GL tables (i.e., database
databases (e.g., DDF, KDF, and SDF), tables and SAP GL tables
which you can view with transaction lookup supported by an index). You still
SE36. SAP has updated the coding for the Strictly speaking, the AP and AR tables have to use the classic GL tables BSIS and
FI logical databases to automatically read are not part of SAP GL, but the tight inte- BSAS to quickly retrieve open and closed
the SAP GL tables where required. If your gration between FI-GL, FI-AP, and FI-AR item statuses for a GL account.

Rohana Gunawardena is the SAP practice director at Quality Systems & Software, a specialist SAP consulting firm. Rohana has
been working with SAP since 1992, focusing on the order-to-cash process with emphasis on global rollouts, business segment
reporting, cross-module integration, and the financial impact of supply chain management transactions. He also has helped many
clients on detailed system correction projects (e.g., correcting inventory balances, retrospectively activating group currency, and
cleaning intercompany accounting transactions). Rohana has spoken at many SAP conferences and has published more than 20
magazine articles on various aspects of SAP. He is a fellow of the Institute of Chartered Accountants in England & Wales. You
may contact Rohana at Rohana at Rohana@QSandS.com or editor@financialsexpertonline.com.

©2012 SAPexperts • Reprinted with permission from SAPexperts •


Reproduction or distribution in any form is strictly prohibited without the permission of the publisher, Wellesley Information Services.