Design of gap-free invoice number or check number

Hi, i have this "old question" that i can't seems to find the answer that satisfy the following requirment
- An audit requirement to have a gap free in the invoice number/check number
- this is a high concurrent oltp in generating invoices/checks
- the design should be able to scale well without serialization issue
- the design should be working well in RAC environment.
Since sequence will not guarantee gap-free, or nocache suffer will have issue in RAC, thus i wondering what design approach i should use.
A note i saw was saying using a seq for the primary key and subsequent using a batch process to generate a gap-free number.
rgds
Ung
Edited by: Kok Aik on Jan 7, 2009 10:17 PM

Kok Aik wrote:
Hi, i have this "old question" that i can't seems to find the answer that satisfy the following requirment
- An audit requirement to have a gap free in the invoice number/check number
- this is a high concurrent oltp in generating invoices/checks
- the design should be able to scale well without serialization issue
- the design should be working well in RAC environment.
If you absolutely have to have something like, then it's going to have a serialising effect - although you can take steps to do damage limitations. I discussed one strategy in Practical Oracle 8i many years ago, which pointed out that basically you have to do your audit by looking at numbers which have been used, but also have a permanent record of numbers that have not been used.
There are several ways to do this, but here's an outline of one:
Populate a table with "the next 1000 available values".
A process that needs an Id updates and commits on the lowest available number.
Once a number has been marked as allocated, the process creates an invoice, which includes a step either to mark the id as used, or to delete it. (I prefer the latter, as this means on commit the value disappears from the source table and reappears as a value in the invoice table).
You end up with three possible states for an id:
Available
Allocated but not used
Used
The audit has to check that the union of all three lists contains no gaps.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"Science is more than a body of knowledge; it is a way of thinking" Carl Sagan

Similar Messages

  • Invoice number and Check number for FI

    Hi Friends,
                    What does the above for FI mean? I need to pull the invoice number and the check numbers from AP and report . My question how do I recognize
    which field from 0FI_GL_4 stores this information? Any advice would be greatly appreciated,
    Assumption : Are the check numbers in FI nothing but the document numbers for a particular document type?
    Thank you,

    FI means Financial accounting.  0FI_GL_4 does not contain the check number as a standard field in the extractor. You would have to modify the extractor. the check number is in the table PAYR field CHECT linked to the clearing document  number VBLNR . The clearing doc is in 0FI_GL_4 so that is your connection. You probably would be futher ahead to create an extracotr for PAYR then connect to your data from 0FI_GL_4 in an MP or info set.  By the way 0FI_AP_4 is the extractor for accounts payable so you may want to use this instead. Depends if  like they are requsting accounts payable information. The invoice number will be in the reference field which is XBLNR.
    pls assign points to say thanks.

  • Check Number in Rem Statement

    Hi Gurus,
    I have copied a UF01 form (PE51) into ZF01.
    Check has been created for this Rem Statement using RFFOUS_C program, before that we ran the transaction PC00_M10_CDTC to upload the rem statement into cluster table.
    When we exectue the program RFFOUS_C it should show with check number created in Rem Statement produced by PE51 form, which is not happening.
    In the place of that <not assigned> printing.
    Can somebody please help me how to resolve this issue.
    Thanks,
    Suneel Babu

    Suneel:
    Try to see if the problem comes from custom HR form 'ZF01' by running remunaration (RPCEDTU0) for an employee (with RFFOUS_C is already run) using your custom fom 'ZF01'. Check to see if check number is populated in the form.
    Also check in off-cycle wbench for the employee (again, with RFFOUS_C is already run) to see if payment number has check number populated. If it doesn't get populated here, it could be config issue.
    Rgds.

  • Invoice and Invoice amount in FI/CO When enter check number

    Hi  All,
       I have a requirement like this. We have custom t-code ZF04 ( FAST CASH ) to post payments to customer accounts. In this t-code, we have one field for Check#.  When they enter Check# number and click on 'SEARCH' icon i need to display list of invoices and amounts with in a check.
    I have no idea about tables,. Where to look? What tables do i need to look when enter check number, which returns invoice details.
    Please let me know ASAP....
    I appreciate your help!
    Thanks,
    Suneetha

    Hi,
    One question - Are you getting customer payment trrough <b>LOCKBOX</b>? If yes, then following are the tables
    Check tables <b>FEBKO</b> and <b>FEBEP.</b> The field is <b>FEBEP-CHECT</b> for check number. For this check number take <b>FEBEP-KUKEY</b>. With this KUKEY read table FEBRE. <b>FEBRE-VWEZW is the invoice number</b>.
    So, sequence is
    1. Put Check# --> FEBEP-CHECT  and get FEBEP-KUKEY
    2. Put FEBEP-KUKEY into --> FEBRE-KUKEY
    3. FEBRE-VWEZW is invoice no.
    If you are not using LOCKBOX, How are you getting customer payment? Let me know so i can give you exact answer.
    Regards,
    RS

  • AP Invoice Date_Paid & Payment reference Number (Check Number or DM Number)

    Hi,
    I need to add 2 columns for AP Trial Balance report in R12.
    1.Invoice Date_Paid
    2.Payment reference Number (Check Number or DM Number)
    Could you let me from which table i can get this information.
    Thanks
    pravin

    You can get all the payment related details in the below tables.
    1. AP_INVOICE_PAYMENTS_ALL
    2. AP_CHECKS_ALL
    3. AP_PAYMENT_HISTORY_ALL
    Thanks
    Tarun

  • Inbound processing of INVOIC IDOC without PO number and item check

    Hi All,
    I'm processing an Inbound INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order but wish to do process this based on the delivery note number rather than the PO number. The INVOIC IDOC will not contain a reference to the Purchase order and thus the need to process it based on the delivery note number which will be referenced in the Purchase order Goods receipt.
    However, when processing the Inbound INVOIC IDOC it is validating that the number in IDOC segment E1EDP02 with QUALF 001 is the purchase order number. In this scenario it won't be and therefore it errors. The delivery note number is in IDOC segment E1EDP02 with QUALF 016.
    Could someone please tell me if there is a standard way that we can have this Inbound INVOIC IDOC processing using only the delivery note?. If I manual process in the MIRO transaction I can process an Invoice based on the dleivery note in the Goods receipt so would expect I should be able to do so also with the IDOC processing.
    I have noticed that IDOC segment E1EDP19 with QUALF 003 is not being populated and therefore according to the SAP help the IDOC segment E1EDP19 with QUALF 002 holding the Vendor material number is checked. Could this have something to do with it not being able to process the Invoice using only the delivery note number reference?.
    Thanks in advance,
    Michael

    Hi Karen,
    According to Note 103051 - EDI: Multiple reference to same purchase order item.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active. Please check the note.
    Thank you,
    Shyam

  • Check number display in SUS-Invoice

    Hi,
      I am working on MM-SUS scenario with ECC 5.0 and SRM 5.0. I am transferring ECC invoice to SUS to enable vendor to display the invoice. Once payment is made, amount paid and date also can be seen by the vendor by pressing "Check payment status". But is there any way to display check number given in the ECC to flow to SUS?.
    PLease suggest.
    Regards,
    Prasanna

    Hi Iqtidar,
    I don't have a straight forward answer for your query.
    You can think of using Substitution, with an User Exit, that can be used to populate the check number in one of the unused BSEG fields
    But, there is a simple workaround.
    You can create an query (SQ01) with Info set built on PAYR table.
    In the selection screen user
    PAYR-UBHKT ( GL a/c No for our bank a/c / bank sub-a/c)
    along with other selection parameters like
    PAYR-ZBUKR (Paying company code)
    PAYR-HBKID (House Bank)..........
    Let me know if this is helpful.
    Thanks
    Kalyan

  • Need to Concat Invoice Numbers for a partucular Check Number

    Hi,
    There is a requirement where for a Check Number for example 2345 and there are 4 invoice numbers ABC 1013280,CBD 1013456,DEF 5101234 and XYZ 6101234.
    I joineds ap_checks_all,ap_invoice_payments_all and ap_invoices_all.I want the data to appear as in CONCAT Invoice Numbers for partilcular Check Number
    For example the Check Number 2345 the data should appear as
    CHECK_NUM INVOICE_NUM
    2345 ABC 1013280,CBD 1013456,DEF 5101234,XYZ 6101234
    Any help will be needful for me

    Hi 918308,
    Try:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2196162600402#18313422264397
    Regards,
    Gareth
    http://garethroberts.blogspot.com

  • Report with Invoice and Accounting Document Number

    Dear Experts,
    Here i have a requirement.
    I wanna a report which gives a Invoice (MIRO) and its accounting documents (Follow on document) in one page. Because If I view a MIRO document, for checking the accounting document, I need to click on Follow on doc, then I'll get.
    But If wanna see for 1000 MIRO documents with accounting document number, then I don't want to click 1000 times to see the account doc for respective Invoice number.
    The approximate format is,
    Column 1                              Column 2     Column 3        .......................              Column n
    MIRO  (Invoice number)                             Accountting Doc Number
    5100000099                                              5100000011
    Which tcode will give the both in one screen?
    Thanks in advance
    Regards,
    navahsek

    Hi,
    Enter Sork Key 002 for Vendor Master Record.
    and also you can check the Report in ECC 6.0
    MIR5 - Display List of Invoice Documents
    There you select Export Mode --> Display Accounting Document Number.
    You can get Report FI and MM Document Numbers.
    Hope It will Clear.
    Regards,
    Kishore

  • Invoice number and document number not printed in payment advice

    Hello Gurus,
           I am executing reprint check through transaction fch7, In that Invoice number and document number not printed in payment advice. I have created zscript for that and also assinged regup-belnr and regup-xblnr and used standard program RFFOUS_C.
    other fields from regup table are displayed but above two mentioned fields are not displayed.
          I even tried debugging standard RFFOUS_C prog, in that regup-belnr and regup-xblnr are coming but it is not printed on form.
    With regards,
    Vikram

    Hi,
    Debug you Zscript and check the invoice no and document no. Have assigned that script in FBZP..? check the which form is calling FCH7 in debugger mode..?
    Rgds
    Aeda.

  • Sending PI message in case of Payment Cancellation and Check Number Voided

    Hi ..
    I've a requirement to send a message to PI wth the required invoice header fields whenver any payment document number is cancelled or check number is voided. I know we can cancel the payment or check payment through tcode FCH8 and the module program for this is SAPMFCHK.
    I have no idea where would i put my custom code in the check payment cancellation wherein i can put my invoice fields and the proxy code so that I can send a message whenever any check payment or payment is cancelled.
    Please help me if you have come with the similar requirement. I think i need to create an enhancement and put my codes inside that but not sure how do to this.
    Thanks,
    Shamim

    Hi
    I guess You need to create substitution for this purpose. In your case reversal document get created for your original FI document.
    Go through http://wiki.sdn.sap.com/wiki/display/ERPFI/Creatinguserexitsforsubstitutions
    First check GCX2 transaction if there is already any Z Program attached for your application area. If yes check if it is active in SPRO
    Special Purpose LedgerTools-Maintain Validation/Substitution/Rules---Maintain Substitution
    You can create substitution ZTEST under
    Financial Accounting----Document header for field "reversal Indicator" and if you do F4 in field "Exit" you will see the exit created by you as per wiki.
    I think you can create substitution on field "reversal Indicator" but its your choice. Check if your exit gets trigger.
    Try creating a event to trigger proxy or submit program etc...
    Hope this helps.
    Regards
    Vinit
    Edited by: Vinit Joshi on Mar 9, 2012 8:20 PM

  • Check number in accounts payable - urgent

    Hi all,
    This is regarding the check number not appearing in the invoice document line item in the report.
    The following is the scenario:
    1. Invoice document is entered - KR document type( expense a/c to vendor)
    2. Automatic payment program - ZP document type ( vendor a/c to bank)
    3. check is created for that document.
    4. The user voided the check and reset the payment document.
    5. Now it is lying as an open item in the vendor account.
    6. when vendor line item display report FBL1N is run, it is seen as an open item and the check number is not appearing in the invoice line item alone.
    I think because of the resetting, the line items are split and the check number is not appearing in the report.
    Can somebody guide me as to how to map the 2 document numbers ( invoice and the payment ) and assign the check number to the invoice document accordingly?
    Thanks and Regards
    Karpagam.

    Hi,
    Thanks for the reply.
    The check is already issued to the vendor.
    In SAP it is lying as an open item without the check number in invoice line item.
    it can be cleared. still the check number willnot appear in the invoice line item.
    can u tell me a way to bring the check number in the invoice line item?
    i tried assigning manually check number to the invoice document, system is not allowing and says check number is already assigned..
    please help me on this.
    Thanks and regards
    Karpagam.

  • Re-issue voided checks with same check number

    Hi All,
    We accidentally voided a check which has already been received by the vendor. We want to re-issue the check in our system, but it wont reconcile as the check numbers are different. Is it possible to change the check number?
    Regards,
    Pooja

    Hi Pooja
    Lets assume that the cheque numbers that were voided were from 10001 to 10521. So create a payment document against the same bank account which was used earlier and assign the document numbers 10001 to 10521. Now again create a new payment batch with the same set of parameters as provided previously. Ensure that the same invoices are selected by the batch (no less or more). Now submit the batch. This way the system should assign the same cheque number to the supplier sites which were issued previously. So if a supplier was issued 10002 cheque number with an amount of $1000 previosuly, then this batch should also issue the same cheque number for the same amount against that supplier. Please ensure that the system is bahving in the same way as thought. Else you might have to generate manual payments for each of these 521 payments :(.
    In this way, you will not be required to do any swapping or run any custom script. While reconciling, you will match the bank payments with this new payments.
    Hope this clarifies.
    Vinit

  • The check number does not appear on the top right hand corner of check

    Hi
    Friends,
    I posted an Invoice (FB60) and did payment through F110, But cheque no. is not displayed, when i have given print preview/print. or T.code SP01.
    My configuration is correct in FBZP say....
    1. Payment methods in company code ZLF_PRENUM_CHEC1
    2. Payment method in country ZF110_US_AVIS
    (Q) How to get the cheque no. When I do invoice and payment?
    (Q) The check number does not appear on the top right hand corner of check as it should in the print check layout and does not appear in the check number box?
    Anil

    Go to this address: http://mycroft.mozdev.org/search-engines.html?country=AU
    Item 24 lists 3 installable major search engines for Australia.
    You can also restrict your search in Google by including ''country:au'' or ''location:au'' or ''city:perth'' (for example) in your search terms. Example: ''city:sydney plumbers'' in the Google search box will list plumbers in cities named sydney.

  • Check Number not being generated

    We do not have SAP Check printing functionality activated right now. So the checks will be handwritten. When i created the Payment Method for check, I assigned RFFOEDI1 in the payment medium program. I also created the check lot for that House bank and Company code in FCHI. I created a variant for RFFOEDI1 although i dont really need anything printed. Now when I am executing payment run, the payments are being posted fine. The check number is not being populated. I checked the Register (FCHN) and there are no entries. The Vendor has CHeck payment method in the master record and the payment method is also assigned as "Checks" in the Invoice.
    Not sure what is wrong. Help is highly appreciated.

    Hi,
    In case you use the check printing program from SAP, it will generate the check information and will assign to the documents automatically. However it is upto you whether you need to print the checks or not? But the check numbers have been generated by SAP. You can manually create the check for the payment documents matching those check numbers.
    The only thing is that the manual control should be there so that the check is manually created with same number as system generated in payment run. (Otherwise, do not generate check in F110, rather create check manually and assign to payment document in FCH5.)
    Regards,
    Gaurav

Maybe you are looking for

  • How can I completely delete the music on my iPhone 5s?

    For some reason I have not been able to manage the music on my iPhone 5s (running iOS 8.3). Even when I turn off iTunes Match and turn it back on, songs (and more importantly artists) that I have deleted from my desktop (iMac running OS X 10.10.3) an

  • How do I print labels from a pdf

    How do I

  • Check-in of required SC's in NW2004s

    Hello, please, can somebody help me ? To change the ESS sources, i must check-in the required SC in the Track (CMS), in order to do the ".sca" files must be copied to folder "cms/inbox" . But where can i find the ".sca" files in NW 2004s? The Folder

  • How do i get the contact name to show in my messages

    I updated to the new Iphone 4 IOS 5 software and now when i get a message from anyone with iMessage it shows their number rather than their name and I want to know how to change it so I see their name and not their number.

  • Business Rule Repository has not been configured?

    Hi, In EAS trying to open Business Rules, I get "Repository has not been configured or you are not authorized to use Business Rules" (I get this with the admin creds) In details, "Error loading objects from Data Source", "SQLSyntaxExceptionError: ORA