Regarding same invoice reference

hi sirs,
This is my requirement
When invoices are interfaced from Doris/concorde/service web into SAP they are sometimes sent over twice. We want SAP to check if an invoice has already been interfaced (sales order exists with same invoice reference and booking reference) and if it has then we want the idoc to be made to fail and stop in BD87.
for this requirement i have maintain code like this in this include ZXVEDU03
IF segment-segnam = 'E1EDK02'.
Transfer E1EDK02 structure to work area..
  ls_e1edk02 = segment-sdata.
  IF ls_e1edk02-qualf = '001'.
    DATA:l_vbeln TYPE vbeln,
         l_zblnr TYPE xblnr,
         l_xblnr TYPE xblnr.
    CLEAR ls_xvbak1.
    MOVE dxvbak TO ls_xvbak1.
    SPLIT  ls_e1edk02-belnr AT '-' INTO l_xblnr l_zblnr.
    SELECT SINGLE vbeln
           FROM vbak INTO l_vbeln
           WHERE xblnr = l_xblnr
             AND zblnr = ls_xvbak1-zblnr.
    IF sy-subrc = 0.
      sy-msgid = '00'.
      sy-msgno = '001'.
      sy-msgv1 = 'Sales Order already exists for Invoice reference :'.
      sy-msgv2 = ls_e1edk02-belnr.
      sy-msgv3 = 'and Booking reference No : '.
      sy-msgv4 = ls_xvbak-zblnr.
      RAISE user_error.
    ENDIF.
    CLEAR ls_xvbak.
  ENDIF.
ENDIF.
while i am testing for some idoc it is showing correct statues and some it was not showing correct states
some time i am getting correct messag Sales Order already exists for Invoice reference :'. ,for some IDOC  in BD87 i am getting Status was  invalid date
Please give suggestions and what should i do?
venkee.

Hi,
For line items which are related to another line item, this field contains the number of the partner document.
In the standard system the field is used for:
o  Credit memos which refer to a particular invoice item
o  Subsequent invoices for an invoice item
o  Partial payments for an invoice item
o  Partial clearings of down payments.
In the first two cases mentioned, the terms of payment are copied from the cross-referenced invoice item into the item currently being processed. This ensures that items due on the same date are paid together by automatic payment.
A special rule applies to credit memos which have a "V" in this field. The due date is determined in the same way as for an invoice. If the field is empty (containing neither a document number nor a "V") the due date is the baseline date for payment.
Reward if useful.

Similar Messages

  • Billing Document to be shift to other customer accounts with same invoice number

    Hi,
    For a long period of time we were maintaining different projects and site of a customer in a single account.
    Now there is a requirement to distribute individual invoices to respective individual customer accounts for that site or project.
    But doing that we also want to shift the invoices with following:
    1) invoice numbers should be same (as it was generate originally)
    2) Keep the same purchase order number
    3) keep the same date of the invoice (as it was raise in the main accounts)
    4) Keep the same salesperson
    5) after doing step 1 to 4, we also want to close the main account by offsetting entries to avoid duplications.
    After practicing above, we want the following result:
    1) individual statement of accounts with the same invoice dates, Purchase Order Number and saleman reference.
    best regards,
    adnan abbasi

    Hi,
    We knew by their PURCHASE ORDER NUMBERS and to separate them from each other,
    we will make a manual list in EXCEL to upload in the SYSTEM.
    customer code: 55555 (merge account for all projects and sites):
    invoice     date           assignment/LPO    value
    1111     12.12.2012   proj1/00001            4000.00
    1112     13.12.2012   proj2/00002            3500.00
    1113      14.12.2012  proj1/00002            2300.00
    1114      14.12.2012  proj3/00001            1500.00
    1115      15.12.2012  proj2/00003            1300.00
    from above we know with reference to LPO that there are 3 projects, so we will make excel sheet for 3 projects as:
    excel sheet1:
    1111   12.12.2012 proj1/00001     4000.00
    1113    14.12.2012 proj1/00002    2300.00
    excel sheet2:
    1112   13.12.2012   proj2/00002    3500.00
    1115    15.12.2012  proj2/00003    1300.00
    excel sheet3:
    1114  14.12.2012  proj3/00001     1500.00
    now to upload in the system I want to make 3 new accounts:
    55556 (for project1)
    55557 (for project2)
    55558 (for project3)
    but problem it that we want to keep date and invoice number exactly the same as originally booked in customer account no. 55555.
    regards,
    adnan

  • Invoice Reference Number "V" + Blank Payment Terms field

    Hi Experts
    Need your validation on one point. I have credit memos with invoice reference number field filled with "V" but payment terms in document is blank.
    Payment terms in Vendor Master Data is XXXX (Net due 30 days). But when I run the Payment Program within 30 days for this vendor, the credit memo is picked up and adjusted.
    Is my understanding correct that it is because of the following reasons -
    By putting V in invoice reference number, the system will overlook the payment terms mentioned in Vendor Master Data and follows whatever is mentioned in the document.
    And because the payment term field is empty in the document, it is taking baseline date as payment due date and thus picks the document in F110 program.
    Points will be rewarded to replies with explanations.
    Regards
    Arjun

    Arjun,
    please check my comments:
    By putting V in invoice reference number, the system will overlook the payment terms mentioned in Vendor Master Data and follows whatever is mentioned in the document.
    In all cases the document entry overlook the master data entry. The vendor works as default values during document entry.
    And because the payment term field is empty in the document, it is taking baseline date as payment due date and thus picks the document in F110 program.
    Don't change the document defaul entry if you want the vendor assignment. If it's blank you have to assign same Payment terms from you vendor otherwise you will have only the baseline date.
    Best Regards

  • Invoice reference : partial and full payment

    Hi experts, i'm a newbie in FIAP but i need an suggest :
    So , i find that the field "Invoice Reference " in BSAK table is not filled for a residual payment when there is a partial payment and when there is a full payment.
    So , if i would determinate the invoice from a record on bsak table that rappresent a residual payment or a full payment, i should use this parameter: clearing doc , company code and vendor?
    Thank you very much.
    Regards.
    Andrea

    Ok.
    But on BSAK table when clear more than one invoice , i find different record with same clear document:
    Suppose that the doc: 499 clear the invoices: F1 , F2 , F3 .
    F1 -value 30
    F2 -value 35
    F3 -value 40
    In the bsak table, i find this:
    doc  pos    cleardoc         value
    499   1         499        30                    rec1
    499   2         499        35                   rec2     
    499   3         499        40                   rec3     
    f1     1          499
    f2     1          499
    f3     1          499
    So, from the record rec1 or rec2 or rec3, how can i determinate the relative invoice cleared??
    Thanks .
    Andrea

  • MIRO: Multiple plants exist in the same invoice

    Hi,
    We are posting the MIRO against a Purchase Order.
    There are two line items in a PO.
    Both line items have different plants.
    We have posted separate Goods Receipts for both the line items.
    Now, at the time of posting MIRO system is giving an error message as 'Multiple plants exist in the same invoice (Message no. 8I820).
    Please guide, what can be done?
    Regards,

    Hello
    Seems to be Message 8I 820 configured with reference to the Excise postings.
    Since both the Plants having different Excise registration, Requesting you to post two separate invoices.
    warm regards
    Ramakrishna

  • Capturing Excise Invoice Reference at Depot

    Hi,
    We are doing an implementation where the customer is currently working in a home grown software.
    During Go-Live, we need to capture/upload the Excise Invoice reference of the existing Excisable Stock lying at the Depot.
    We are uploading cutover stock of all materials programmatically using MB1C transaction. But while uploading Depot Stock, we also need to capture the receiving Excise Invoice number (through which the goods had arrived at the Depot from the Mother Manufacturing Plant), so that during sales from Depot we can pass the excise using J1IJ.
    We have tried the following steps and failed:
    1. Upload inventory for the materials at the depot plant using MB1C.
    2. Using the material document created above, we tried to perform J1IG. (We got stuck here).
    Please suggest the correct process to upload the cutover stock at Depot along with it's excise invoice reference.
    Regards,
    Debarshi

    Hi Ashok,
    After MB1C, when we are trying to execute J1IG with the material document number and then click "Details" button, the new screen asks for internal document number. We click on "More Documents" and manually enter the excise values along with excise invoice details and save.
    This reflects the values in the RG23D and displays in J1IDEPOTSTOCK1 report also.
    But when we try to sell from the Depot and create J1IJ, the uploaded invoice is not getting displayed when we are trying to select it to pass excise value.
    How can this invoice be selected in J1IJ, if we follow this route.
    Is this the correct process or I am making some mistake in the J1IG step.
    Regards,
    Debarshi

  • Invoice Reference Number in Line item of Credit Memo

    Hi Experts
    I tried getting a specific and relevant answer to why we enter "V" in invoice reference field of a Credit Memo?
    On going through the SAP Help text - A special rule applies to credit memos which have a "V" in this field. The due date is determined in the same way as for an invoice. If the field is empty (containing neither a document number nor a "V") the due date is the baseline date for payment.
    I understand this relates the credit memo to an invoice but how SAP determines the invoice from which it will pull the payment terms for this credit memo?
    Is this V concept applicable only in case of MIRO Invoices or otherwise too?
    Thanks in advance.
    Arjun

    Arjun,
    We have 3 ways of credit memo use for REBZG field:
    1 - REBZG = Invoice -> You credit document will fetch payment term, payment method and due date from invoice.
    2 - REBZG = "V" -> The credit document works as individual invoice. The due date is calculated by Bseline date + Payment terms.
    3 - REBZG = " " -> The credit memo is opened to be used in any other invoice as discount. Baseline date is the due date as default.
    Your questions:
    * There are no reference for invoices in cases number 2 and 3.
    * This is apliccable for invoices from all transactions.
    Best Regards

  • Payment to one vendor and charge TDS for other no.of vendors against same invoice

    Is it possible to book invoice and payment to one vendor and charge TDS for other 3-4 vendors against same invoice.
    Is there any config require and any such process exist?

    Hi,
    Please go through the following process and see whether it suffice your requirement
    1. Create Vendor Invoice.
    2. Go to transaction code F-53
    Click on
    Click on
    Click on
    Click on Document - Simulate
    If entry is found O.K. Click on
    Hope, this solves your issue else revert.
    Regards,
    Tejas

  • How to get vendor name and invoice reference details in asset register

    Hi Experts,
    My client requirement is he want to see Vendor name and invoice reference filed in asset register.
    Is there any standard reports relating this requirement.
    Kindly Provide valuable information relating to this issue.
    Regards
    Madhan

    Hi Madhan,
    Let me know the t.code which you are getting asset data.
    Thanks

  • Partial Payment (with invoice reference) for Invoice-based items

    Hi Gurus,
    I'd like to make partial payments to credit memos while "Include partial payment" is activated.  However, if i activate "Include partial payment, partial payments for invoice-based items are no longer possible (partial payment amount is displayed only, and full amount is automatically applied).
    My credit memos were posted via BAPI_ACC_DOCUMENT_POST.  I've read that when using BAPI, invoice reference field is automatically populated with "V".   
    Can you please enlighten me what is SAP's logic behind this.  How does SAP determine invoice-based items?  And is there a workaround so I could still make partial payment while it is activated?  Thank you.
    Regards,

    Hai Dianne,
    Check it once OBA4 & OBA4 t.codes both are Tolerance Group
    Regards
    Madhu I

  • Partial Payment of CM with "V" in invoice reference

    Hi Experts,
    Can you please share your insights as to why SAP doesn't allow partial payment/clearing of CMs with "V" in invoice reference when "Include invoice reference" is activated in the editing options of processing open items.  I've read that this is such for invoice-based items.  What does that mean? 
    Thanks and regards,

    Hi Vikas,
    My scenario goes like this, the CM is greater than my invoice, so I'd like to partially apply the CM to clear the invoice.  But F-51 (F-53 or F-58 may also apply), won't let me use partial payment (payment amount column is displayed only and full application is automatic).  I've read that when "include invoice reference" is activated, partial payments for invoice-based items are no longer possible.  Btw, the CM is not related to any invoices, and only contains "V" in invoice reference.
    My question is what's the reason that SAP determines that my CM is "invoice-based" when the CM has "V" in its invoice reference?
    Thanks.
    Edited by: P. Reiko on Jan 18, 2012 5:48 PM

  • Invoice reference field on Customer line item

    Hi All,
    When a billing document is released to accounting, on the customer line item display (FBL5N), the invoice reference field has the FI document number in it.
    But if we actually look at the Customer line item on the FI document (FB03), the invoice reference field is blank.
    Not sure what is happening over here.
    Any inputs on this..
    Thanks,
    Venkat

    OK, i would suggest check OSS on this field, because if this happens for the same document number, than it is a program error (I guess), if it was working fine earlier, and not working fine now, than could be chnage in customizing (if the fill of this field is customizable at all), or a change in the functionality (either standard, or user-exit)

  • How do we know tat a customer paid an invoice through the same Invoice no.

    Hi gurus,
    How do we know that a customer has paid an invoice through the same Invoice no.
    If it is in accounting document no, can u say where it can be seen.
    Moreover I want to generate a mail to customers who didn't pay their Invoice.
    So wat field will be appropriate in an invoice to trigger an mail?
    Regards,
    vimal

    Dear Vimal
    In <b>FBL5N</b>, you have the options to choose <i>"Open Items", "Cleared Items" and "All Items".</i>
    If you choose "<i>Cleared Items</i>", you can see a list of billing documents and on the left side, there will be a green circle which means, those invoices were paid by the customer.
    Thanks
    G. Lakshmipathi

  • Partial Payment - Invoice Reference Problem

    Dear All Experts,
    Iam working on a Cash flow Report wherein I need to display Cashinflows and Outflows period wise.I have a small problem in Invoice Refrence(REBZG) when partial payments done. My problem is whenever partial payment is made for an invoice, for the last payment invoice reference is not coming, have a look at the following example :
    Invoice No = INV1  Invoice Amount = 50,000.
    Partial Payment 1 : 30,000.
    Partial Payment 2 : 15,000.
    Partial Payment 3 : 5,000.
    Now in BSAK tabel entries are as follows :
    BELNR             GJAHR     WRBTR      REBZG       REBZJ
    1200000          2009         30,000       INV1           2010
    1200001          2010         15,000       INV1           2010
    1200002          2010           5,000      
    Can anyone explain why it is coming like this? any config issue?
    Thanks & Regards,
    Rock.

    no one is there to answer? any one?

  • Issue Related to Billing Document F2 with same Invoice Number.

    Hi All,
    I have 3 Sales Order with 2 Sales Order belonging to Sales Org A and one belonging to Sales Org B. The Invoice generated for all the deliveries for Sales Order has the same Invoice Number. As per the standard functinality it is not possible to generate same Invoice Number for Sales Order belonging to different Sales Organisation. I have chekced the Table VBFA the preceding document for the Invoice Number I am getting 3 entries. Please could you help me out in analysing his issue. Where the possible error could be ?.
    Thanks & Regards,
    Sam.

    Kindly check as it could be due to the Single Invoice generated for collective three Deliveries.
    As per the standard functinality it is not possible to generate same Invoice Number for Sales Order belonging to different Sales Organisation
    This is not a standard Functionality.But if you have made a Logic in the Copy Control Routine then it could be possible.
    Single Invoice Number can be generated for one or more Deliveries if you process it through VF04.
    Best Regards,
    Ankur

Maybe you are looking for

  • How to insert row in the middle of a table so that the below content will move to another page?

    I'm making a huge form in LiveCycle Designer. I want to be able to add rows in the middle o the table but in a way that the content below will move down automatically in a way it doe's in Word for example. Sometimes I am adding a very high new row in

  • Configuration of AirPort Extreme Using Third Party LAN Ethernet Adapter?

    Hello; I am trying to set up my own wireless connection, not without great consternation. Any help would be greatly appreciated. Here is my current situation: Subscribed to DSL service - installation went well, and it works fine on two other computer

  • Can i use my dads upgrade in december??

    my dads phone is eligible for a upgrade in december...his phone is not a smart phine its a samsung slide phone and he just uses it it to make calls and text....i have a smart phone and i am wondering if i can use that upgrade to get me a new smart ph

  • Linux installation in vmware

    I have created 2 virtual machines vmware. I have installed linux in one virtual machine.Now making the first virtual machine as server can we install linux in another vmware by any of the following network installation methods: FTP,NFS, Kickstart Can

  • LSMW - excel file Upload

    Hi, I want to upload the excel file through LSMW, pls let me know how to do this. I have converted the excel file to .csv and .txt file and can upload the fiel, but not able to upload when trying to do with .xls file. Pls let me know. Thanks, Raju Mo