Now the sales order process is completed. Let's take a closer look at it from the accounting perspective.
You find the document flow from the menu Environment in every phase of the sales order process. There also a button for it. The document flow looks slightly different depending on the phase, but if you open it from the sales order, you will see all the phases and sub phases.
The document flow ties together all the documents of the sales process. Put the cursor on the line and click on 'Display document' to open the document.
Accounting documents are created at the goods issue and billing. The text 'not cleared' beside accounting document means that the invoice is not paid.
The integration points are following:
Move from the document flow to the sales order. Place the cursor on the Standard Order and click the 'Display document'-button.
The sales order does not create any documents to accounting. However, some of the account assignments are decided at this point. There are accounting relevant fields on both header and item level. The item level fields are more relevant. The sales order items can be splitted into different deliveries and invoices and the accounting information follows the items. Generally you could say that the header level information is customer related and item level is product related.
Select the sales order line item and then menu Goto / Item / Account Assignment (or double click the item row and open tab Account Assignment).
The profit center is defined at sales order level. Depending on the system settings the profit center comes either from the material master (View: Sales:General/Plant) according to delivering plant (transaction MM03) or from the Sales order substitution rules defined in profit center accounting (transaction 0KEL). With these rules the profit center can be defined for example according to sales organisation, product or customer characterics.
If no profit center is found and COPA is active, the dummy profit center is used. If COPA is not active, the profit center is left empty and you will get an error situation in billing.
In the Document Flow place cursor on the GD goods issue: delvy document and click on 'Display document' -button. This takes you to the MM Material document.
The movement type for sales delivery is 601.
Click the accounting documents button.
A list of created accounting documents is shown. Click on the Accounting document.
In this example the goods issue posting looks like this.
The stock posting goes to a balance sheet account and the offsetting posting to inventory change (P&L account).
The posting is created automatically at goods issue and the system has to find somewhere all the necessary information for the posting. The accounts used are determined in MM automatic account determination. The account assignments of the offsetting posting depend on the settings.
If the account is not defined as a cost element the posting goes to the profit center from the material master.
If the account is a cost element, a cost object becomes mandatory. Usually the system looks for it in the CO automatic account assigment table OKB9. In this example the cost assignment is a profitability segmentand the posting rules are defined in COPA IMG.
Move from Document Flow to the billing document. Place cursor over Invoice and click on 'Display Document'.
In the invoice you can find accounting information from several places. There is a direct link to accounting documents. The Accounting button lists all the accountig documents created. From the Environment menu you find Account determination Analysis, which lets you analyze how the account determination is made. On both header and item level you will also find lots of accounting relevant data.
At goods issue the the owner of the goods changes and the stock change must be recorded. It is posted in the balance sheet to the inventory account and the offsetting posting (cost) goes to a profit an loss account Inventory changes.
The inventory account is a balance sheet account. In Profit center customizing you can define wether you transfer the material stock balance to Profit Center Accounting periodically or on-line. The profit center always comes from the material master according to the delivering plant (tr. MM03, Sales: General/Plant).
The account assigments of the offsetting posting depend on how the account is defined. If the inventory change account is not defined as a cost element, the posting goes to a profit center. Here the profit center is copied from the sales order. It can come from a substitution rule or from the material master.
If the account is defined as a cost element, it requires a cost assignment, which can be a cost center, order or profitability segment. As the good issue posting is an automatic posting, the system has to find the assignment automatically. It looks for the assignment in CO automatic account assignment table OKB9. You can also define Automatic assignment to a COPA profitability segment (COPA-IMG: PA transfer structures, tr. KEI2), which is the case here. .
The accounts are defined in MM customizing under Valuation and account assignment. MM account determination is not a 'straight forward -task. SAP has has made Wizard to assist in this. Here I will only show you how to find the configurations for our example.
Start the 'Configure automatic postings under 'Account determination without the Wizard'. If you get a pop up for missing account grouping code, press cancel. CLick the 'Simulation' button.
Enter the plant (1200), material number (R-1180) and movement type 601 Goods issue Delivery. Press enter and then click the Account Assignments button.
On the simulation screen the system combines all the relevant information and shows the accounts it has determined.
The MM account determination is based on transaction technique. In inventory postings there is alwaus the transaction Inventory Posting (BSX). It defines the inventory account, which here is 310000. The system finds this account according to the transaction and valuation class of the material.
The transaction for offsetting posting is GBB 'Offsetting entry for inventory'. This transaction has an extra specifications called Account Modification key, which has a different meaning depending on the procedure. The system finds this account according to the transaction, account modification key and valuations class.
If you are interested on how the account determination works, SAP Press has published a book about SAP Account determination. In book reviews you find my review of this book.
The accounting document created at SD billing contains typically following three lines:
The first row in the posting is the customer line. It shows the customer number and makes an open item posting to accounts receivable. At the same time it makes a posting in general ledger to a reconciliation account. Double click the customer line and you can see the reconciliation account.
The main rule is, that the reconliliation account comes from the paying customer's master data.
For special cases, it is possible to use an alternative reconciliation account. Settings for that can be found in FI and SD customizing.
The reconciliation account is a balance sheet account and has no other account assignments. However, you can transfer the posting to a profit center. This does not happen automatically. At period end you must first Calculate Balance Sheet Readjustment in FI closing (tr. F.5D9 and then transfer the postings in profit center accounting (tr. 1KEK).
The setting for revenue account are defined in SD customizing.
In spite of the title 'revenue account determination', this is where the settings for all other accounts are made as well.
Select option Assign G/L accounts.
SD account determination is based on condition techniques. The system reads the conditions sequentially searching for a match. In this IDES case it will find the match on the second level in condition CustomerAccountGroup/AccountKey.
Click on the second row.The table looks baffling, but is really is not that complicated.
In the first column you have the appilication. It is always V, which comes from the german word for sales. Next you have a condition type. There are two alternatives. You choose KOFI, if the posting goes to accounts that in CO are revenue elements (cost element types 11 and 12) and the account assighment is profitablity segment (COPA) or profit center. This is usually the case for revenues and discounts. KOFIK is used if you want to post to an account that is a cost element (type 01) and the account assignment is cost center. In the third column you give the name of your Chart of Accounts. In the fourth column enter the name of the Sales Organisation. In the fift column you give the Account assginment group of the paying customer. Next comes the Account assignment key. This is defined in SD customizing and is in SD pricing assigned to SD conditions like sales price.
You don't anywhere define the company code in whose accounting the entry is made. This is determined indirectly via the sales organisation, which is assigned to the company code.
The Account assignment groups for customers and materials are defined in SD IMG / Account assignment/costing customizing under 'Check masterdata relevant for account assignment'.The tax account determination is not done in SD. The account is taken from FI tax account definitions. The tax account is a balance sheet account and has no account assigments.