Escolar Documentos
Profissional Documentos
Cultura Documentos
Sort Keys:
Sort Keys are used to populate the Assignment number field in the line items of
customers or vendors or general ledgers.
The content of this Assignment number field can be populated in a customer or
vendor or general ledger document when the document is created:
either manually
Description
Transaction
Code
SPRO
The standard sort keys provided by SAP can be used to automatically populate
the Assignment number field.
But custom sort keys can also be defined if the requirements of the client
cannot be met with the standard sort keys available.
For example, if the standard sort key 002 is assigned to the customer or
vendor or general ledger master record, it would populate the Assignment
number field of the document with the document number (BELNR) followed by
the fiscal year (GJAHR).
Similarly, the standard sort key 001, would populate the Assignment number
field of the document with the posting date.
Transaction Code
Create/change Customer
master
FD01/FD02/XD01/XD02
In the example, the standard sort key 001 has been assigned to the
customer master.
Transaction Code
Enter Customer
Invoice
FB70/VF01
In the example below, the sort key assigned in the customer master record is
001 - Posting Date.
Since the posting date of the customer invoice - 7500205569, is 07/20/2012,
the Assignment number field in the document is automatically populated with
the posting date in the format YYYYMMDD (20120720).
Transaction Code
FBL5N
When the transaction code is executed to display the customer line items, it
can be observed that the line items are displayed sorted on the basis of the
content of the Assignment number field.
Description
Transaction Code
FB02
Description
Transaction Code
FBL5N
When the transaction code is re-executed to display the customer line items, it
can be observed that the line items are displayed sorted on the basis of the
content of the modified Assignment number fields.
The customer invoice - 7500205569 which was previously displayed as the
first invoice in the report is currently being displayed as the third invoice,
because the content of the Assignment number field has been modified.
The content that will be populated in the Assignment number field will be derived
from the database tables BKPF or BSEG or BSEC or BSED.
The customer line items are displayed in standard SAP reports after being sorted on
the basis of the content of the Assignment number field.