You are on page 1of 4
annaore Presoting Overviow Pre sorting Overview 2Votes Presorting key 0002 has been used by most of us while defining our schema in the Billing master data. Most of us do know what a presorting key does but still we continue to use 0002 most of the times. The idea of this post is to show how a different presorting key can affect the display of the line items in an invoice, in other words the use of the appropriate presorting key should depend on the business requirements. More on this can be found here. First what a presorting key does? It groups together line items that are written by variants with the same presorting key into one block. The blocks are then sorted based on the presorting key and processed for invoicing, So presorting keys are used for sorting the billing items before printing. We can have a tax line items also generated and also have a subtotal as output (based on the configuration) and we use them in billing schema. At least one block (generated by the presorting key) should have subtotal as output because this is essential for bill print. If you do not want to output the subtotals, you must deactivate the posting-relevant in the billing schema for the basic billing lines. The billing simply generates the comparison or information bill lines. If the subtotal is suppressed for posting-relevant billing lines, an invoicing error would occur Difference for tax clearing too large. This is because the suppressed VAT does not match the tax that was posted. You can calculate a subtotal for information lines to output the tax too. ‘The configuration settings can be found here. Figg Uanetcomy +18 __Imocng ” TS —sase Sotings + [2 Invoice Processing 7 IB baprntout * B® bere Search Help for int Documents + BS @ [petne sore Gere fora pmeour 3 @ defnesi-om bc Gairass ieee Customizing Path tpsiapiurds wordpress com/20180822re-sorting-overviou! “ sszoza%8 Pre sorng Overviw ‘The standard settings given by SAP are below. Display Views "Sorting For Bill Printout": Overview PRE | Soin frat Pras. Function Module NS TCSOL [Short text | foes ions, ene enmmict [J L NTERIAL:BI Gtegoy Gory cob. fooca isu amin Tee commct [) [- INTERNAL: Bit Category (Sort by Contra: [D INteRNaL: at category (Sort by Dwsion 5 INTERNAL: Bll Category (Sort by Duision t | ooos svn, ree prvaston | Jooce. tsv_ana.rree_prvisicn esos 1ou_pruy avee_poormen? — )__. [_ INTERNAL: Bil Category (Sort by Device, |_foocs teu ena ree rma [) [> INTERNAL: Bit Category (Sort by Device | Jooer rsu_sriimsc cxeck (> 5 - D wvrerwa: aig check for eting Standard SAP entries So in my example rate | am using Presorting key © 0002 Sort by Contract for Energy Price 000001 line item © 0005 Sort by Device for IQUANT line item. Below is the screenshot of the schema step showing the same! 3DLTL [Pre |e [Prea | 1 990c01 0002 TgUAN? a0es ¢ Presorting key assigned in Schema Now my example has 2 contracts having 2 devices. Rate is simple having just the QUANTIOI variant. Idea is to check how the line item of 000001 and IQUANT get stacked up in the billing line items. Meter Reading Results a) [eon SF EERE.) Se.6) Contract|Device MR date (RR |MT/RS| MR rec. (909 10004201 02/01/2012 01 ot 7 40 910 1000200 02/01/2012 O1 a1 7 32 2 Contracts and 2 Devices tpsiapisurds wordpress com/20130822re-sorting-overviou! 2 sszoza%8 Pre song Overviw ‘As we can see below for line item 00001 having presorting key 0002 we have the sorted lines based on contracts. We see additional line of ‘SUBT’ cause of the unchecked checkbox for NS’, (Check the customizing screenshot). For IQUANT line item with presorting key 0005 we can see that the sorting has been done based on the devices. No subtotal in this case has the checkbox had been checked. Point to note is that the sorting happens 1. Based on the presorting key ie. 0002 sorting happens before 0005. Groups are created with the same presort key. These groups are listed alphabetically in the print document. 2. The sorting also takes care of the order in which the object is coming i 910.Device 10004200 is before 10004201. Groups are created within a presort key, according to VAT code. The VAT codes are listed alphabetically in the print document. Billing lines without a VAT code are listed at the start of a bill group. After each bill group, the VAT is calculated for the whole group and listed at the end. 1G & [Simatte ot) GO A B (boc thes (Hae Decuerts | GePostng Decurants (EFL) Eel) Sle 1S fea) (Oa) ET) nek. une ramtype contact pres. Devca ating cuantey Tt foeo01 909 1002 49.000000020¢0000 P suer 909 002 £oce00s000<0000 3 00001 910 002 32.0c0003000<0006 4 5usT 10 002 0806000060000 5 tquaiT 910 005 #0004205 +2.a00000000¢0000 6 tquanT 909 005 20004201 49.00000000060000 Presorting Key in Action Hope I could make my point clear. Anyways there are additional checks which can be done in this customizing, probably subject for my next post on this topic. @ If you need your own custom sorting technique check out function group E21), Cheers !! & billing and invoicing isu bill print isu bilfiiig"“°"WSliinvoicing presortingkey sap isu ‘Posted on September 22, 2013February 9, 2016 by Rakesh Dasgupta (RDG) in Billing & Invoicing, ISU 0 Create a free website or blog at WordPress.com, tpsiapisurds wordpress com/20130822re-sorting-overviou! a tpsiapisurds wordpress com/20130822re-sorting-overviou! Pre sotng Overview 4

You might also like