Error at Draft Invoice

Invoice rejected in oracle the reason for rejection is invoice line with the same invoice number have been separated by the grouping process, causing duplicate invoice number.

Hi,
We operate in Oracle 11i and the error message I get is in Project Accounting, Draft Invoice Review Page. The error is: Invoice rejected in oracle the reason for rejection is invoice line with the same invoice number have been separated by the grouping process, causing duplicate invoice number.

Similar Messages

  • Error in draft invoice for INV1.CogsAcct

    Hello everybody,
    I need you assistance for an error i recieve when I try to store an Invoice using SKD.
    In my system the "Manage Freight in Documents" is set on.
    When I try to store invoices using SDK i recieve the error
    "Error [INV1.CogsAcct][line1], 'Impossible to update the field (ODBC -1029)' (-1029)
    I using italian localization of 2007A PL48
    How can I solve this problem?
    Thanks in advance,
    Jonny Cortonicchi

    Hi
    I have the same problem but with SP1 PL10
    Dod you get the solution?
    Thanks !

  • Regarding marking of status for generate draft invoice for single projects

    Hi,
    1)
    I have read through the portion - "Automatic Invoice Approve/Release Extension" in the document - "Oracle® Projects APIs, Client Extensions, and Open Interfaces".
    Noticed the package - "pa_client_extn_inv_actions" and procedures - "approve_invoice, release_invoice".
    I understand that these procedure play role in the actually approving & release of the invoice but will this also play role in changing the status or some other code need to be written for changing the status.
    My requirement of customizing a workflow for approval also need to mark status as unapproved when not approved. Not sure if same procedure will help.I am completely new in Project accounting so not sure if I have put forward very basic questions.
    2) Second question is in regards to the way this procedure should be modified :
    This is the code for approve_invoice:
    /*----------------------------------------------------------------------+
    | Approve Customer Invoice Template |
    +----------------------------------------------------------------------*/
    Procedure Approve_Invoice ( P_Project_ID in number,
    P_Draft_Invoice_Num in number,
    P_Invoice_Class in varchar2,
    P_Project_Amount in number,
    P_Project_Currency_Code in varchar2,
    P_Inv_Currency_Code in varchar2,
    P_Invoice_Amount in number,
    X_Approve_Flag out NOCOPY varchar2, --File.Sql.39 bug 4440895
    X_Status out NOCOPY number ) is --File.Sql.39 bug 4440895
    BEGIN
    -- Reset the output parameters.
    X_Approve_Flag := NULL;
    X_status := 0;
    -- Add your Approve Invoice Logic here.
    -- If you want to Approve the Invoice set X_Approve_Flag to 'Y'.
    -- If it's null or set to 'N', Approval of Invoice will not be Done.
    -- Do not add 'commit' or 'rollback' in your code, since Oracle
    -- Projects controls the transaction for you.
    EXCEPTION
    when others then
    -- Add your exception handler here.
    -- To raise an application error, assign a positive number to X_Status.
    -- To raise an ORACLE error, assign SQLCODE to X_Status.
    RAISE;
    END Approve_Invoice;
    I have shown below what I understand on the modifications to be done on the same:
    Procedure Approve_Invoice ( P_Project_ID in number,
    P_Draft_Invoice_Num in number,
    P_Invoice_Class in varchar2,
    P_Project_Amount in number,
    P_Project_Currency_Code in varchar2,
    P_Inv_Currency_Code in varchar2,
    P_Invoice_Amount in number,
    X_Approve_Flag out NOCOPY varchar2,
    X_Status out NOCOPY number ) is
    BEGIN
    -- Reset the output parameters.
    X_Approve_Flag := NULL;
    X_status := 0;
    X_Approve_Flag := 'Y';
    -- If you want to Approve the Invoice set X_Approve_Flag to 'Y'.
    -- If it's null or set to 'N', Approval of Invoice will not be Done.
    EXCEPTION
    when others then
    X_Status = 1;
    -- To raise an application error, assign a positive number to X_Status.
    -- To raise an ORACLE error, assign SQLCODE to X_Status.
    RAISE;
    END Approve_Invoice;
    **Will this modification "X_Approve_Flag := 'Y';" result in the invoices to be approved if I put this after the APPROVE path and if I put "X_Approve_Flag := 'N';", does that mean that the invoice would be rejected/unapproved so that I can put it after the REJECT path ?
    3)
    Custom workflow launch procedure to be fired from billing extension screen. Presently what is done is in the project template screen, in the billing assignment, the billing extension is referred.
    That means for each and every project, billing extension name will be attached.
    Present flow is once the generate draft invoice runs, triggers the billing extension, which in turn invoke the custom workflow launch procedure. But my question is how my workflow launch procedure is going to identify the particular transaction which triggered the workflow procedure, because based upon some project number/id/invoice number, I will have a select fetch the data into variable and then setting those into workflow attributes between create process and start process.
    So question is how my procedure will identify the transaction which invoked the procedure to get the particular project number/invoice number may be.
    I am not getting much from my research so thought of sharing with you if someone can assist me on the same.
    Regards,
    Ad

    Hi Krishna,
    Yes. I am invoking my workflow from billing extension only. I have entered the procedure name in the billing extension. Now when the draft invoice runs , setup is such that billing extension gets invoked as a result of "draft invoice for a single project".
    Till now its fine because my workflow is actually getting launched from here.
    Now custom requirement is that the approve and release in invoice review screen will be disabled and the approval process will have to be custom.
    Till this also its fine.
    A scenario is when the custom notification reaches approver. He/she would either approved or reject. If he approves, then invoice should get approved and then released.
    For this we tried and it seems no API is available as mentioned by Oracle. So whats the way to update invoice statuses ?. Presently we are going with a not recommended way - insert into tables . But I feel something should be there on updating status as per custom logic.
    You can let me know what u did for changing statuses
    When we do release from invoice review screen, an RA invoice number gets generated. I also need to update the table with the RA invoice number while insertion in table. Now there is no d/b sequence for this number. I have tried to open the logic of Release button and could get on table name PA_IMPLEMENTATIONS which always have 1 row for per OU. and there is a field next ra invoice number which shows the RA invoice number to be used. This value will keep on incremented as long as RA number gets generated.
    I am stuck at this place , on how to get the RA invoice number with some proper recommended method.
    In short I need a way to update inoice statuses like approved, released other than direct insert in table
    and how to get RA invoice number to be utilised while the release logic
    Regards,
    Ad

  • Draft invoice Add ErrCode -10

    Hi!
    When i use the Documents.Add method for make a new draft invoice, the GetLastError sends me an error code -10 and error message "-" (simple minus sign, no detail text). Please, what means this code? I don't find it in the Helpcenter.
    Thanks
    Gabor

    Hi!
    It was a currency conflict (-10 error code). Probleme is solved.
    Gabor

  • Error while generating Invoice

    Hi All,
    We are getting an error while generating Invoice from VF03. The error is Form of address key is not defined
    What I had done is, I had assigned a new PRINT program in output type ZD00 by removing the old one & in quality we were getting the output but when it went to production, its giving the error "Form of address key is not defined.
    Please help as this help is coming in Production.
    Regards
    Abhii

    Hi,
    Check the address window in the form. Mostly the key combination used to fetch the address may not be  available in the production thats why it is rasie such error.
    Please close the thread,if solved
    Regards,
    Aditya

  • Account determination error while positng invoice

    Hello SAP Gurus,
    I am getting following error while posting Invoice.
    The Revenue account determination is : "access KOFI not carried out(initialise fields)" for Invoice xxxxxxxx ( invoice number)
    Thanks for your support and your help will be acknowledged by points.
    thanks you very much
    Jignesh

    check tranz
    VKOA
    V/10

  • Draft invoice and payment terms

    A customer has 30 day credit terms (for example), but when creating a DRAFT invoice the docuemnt date, posting date and due date defaults to todays date. 
    When converting the draft invoice to an INVOICE, the due date remains as today - not the payment terms of 30 days from posting date.
    How can the payment terms be activated to ensure correct aging of the invoice?
    2005A PL23

    The 'due date' appears as soon as the Customer is selected in Invoice not while saving as 'Draft'. The due date is based on the 'Payment Terms' set in the 'BP Master Data'.
    I request you to check if the 'Due Date' is set properly before saving the document as draft. It should be as per the payment Terms of the BP. If not check the Payment Terms of the BP.
    I have checked this feature with SAP B1 2005B PL: 38 and works properly.

  • Problem with PRC Generate Draft Invoice

    Hi
    PRC Generate Draft invoice does not generate an invoice for select customers. Receive the "No Eligible Expenditures or Events"
    message - however there is a valid manual billing event created. Validated
    that all prerequisite information has been completed - project setup, agreement
    funded, budget baselined, amount within customer credit limit, customer active,
    etc. This process works fine for some customers but not others - it does
    appear to be customer specific, not project specific.
    Performed the following steps:
    1) Created manual billing event - bill amount populated ONLY
    2) Ran PRC:Generate Revenue for a Single Project - no revenue since bill amount only
    on event
    3) Ran PRC: Generate Revenue Accounting Events - no revenue event since bill amount only
    4) Ran PRC:Create Accounting - no accounting transactions created since no revenue generated - bill event only
    5) Ran PRC:Generate Draft Invoice for a Single Project - ran this individually for
    each project.
    For the customer thats working we get the below in the log file :-
    ...Checking Number of Customers#1
    ... Checking for Number of Active Bill Customers #1
    ... Checking for Number of Active Ship to Customers#1
    ... Checking Number of Active Customers#1
    Going to check relation()
    Checking for active bill to address
    Checking for active ship to address
    ...Checking Billing Contact For Cust #11637
    ... For Bill Cust #11637
    ... For Ship Cust #11637
    ...Checking Relation - 1
    ...Validated bill to customer -
    ...Validated ship to customer - ...Customer #11637 is paying for 100% of this event.
    Entering paifai()Current system time is 03-MAY-2009 14:37:45
    For Customer for which it doesnt work it show the below in the log file :-
    Checking Number of Customers#1
    ... Checking for Number of Active Bill Customers #1
    ... Checking for Number of Active Ship to Customers#1
    ... Checking Number of Active Customers#1
    Going to check relation()
    Checking for active bill to address
    Checking for active ship to address
    ...Checking Billing Contact For Cust #11070
    ... For Bill Cust #11070
    ... For Ship Cust #11070
    ...Checking Relation - 1
    ...Validated bill to customer -
    ...Validated ship to customer -
    Leaving paigaa.Current system time is 03-MAY-2009 14:45:41
    paiend -No of events updated with billed flag is 0
    Can someone throw some light.

    Hello,
    You can check the things below :
    1. Check the Hard Limit. The hard limit setting may be preventing the invoice from
    being generated. To check this,
    1. Navigate to Billing -> Agreements.
    2. Query the agreement for the customer and project you are having
    difficulties with.
    3. If the HARD LIMIT box is checked this could prevent the invoice from
    generating. Uncheck the HARD LIMIT setting.
    4. Save your changes.
    5. Resubmit the PRC: Generate Draft Invoices process.
    2. If Customer on Top task, then check whether the 'Ready to Bill' for the specific Top Task in the Control Billing by Top Task window.
    Thanks,
    Sathish
    www.projectsaccounting.com

  • Not able to Interface Draft Invoice to AR

    Hi,
    We have one Draft Invoice which is Approved, Released, and AR Period also open and Remit-To-Address also defined but we are not able to Interface it to AR.. Could you please tell me what could be the reason.
    Thanks
    Bharath

    Hi Dina,
    Thanks for your reply, Project, Customer and Project Manager are Active not end dated & Log file also not showing any reasons.
    Could you please tell me anything else I have to check to resolve this case
    Regards
    Bharath
    Edited by: 983186 on Jan 23, 2013 9:44 PM

  • Create draft invoice document from a sales order

    When i create an invoice document from a draft invoice document from a sales order, this invoce is linked to the order sales.
    Sorry for my english, i hope you can understand

    It would be difficult to know what question do you have.  Try to ask question.  Your English is not bad at all.
    Thanks,
    Gordon

  • Delivery to Draft Invoice

    I would like to copy a Delivery to a Draft Invoice using the DI API.  I haven't found any "copy to/copy from" functionality in SAPbobsCom (like the GUI has).  After it is copied, I will be updating several fields in the Draft Invoice before I save it.
    The easiest way I could find right now, is to do a SaveXML on the Delivery, and GetAsXML on the Draft Invoice.
    Anyone have other ideas doing this?
    Thank you!

    Hi Paul,
    There are a couple of options for converting a delivery to a draft invoice:
    1) As described above you can export the delivery to XML, change the XML (eg by XLST) and then add it back. You may need to change some data in the delivery (eg document date, object type) before loading it back. The XML for a draft document is slightly different to a standard document so you'll need to add the DocObjectCodeEx node to the XML before you load it.
    The big benefit of the XML approach is that it can be used to copy all the standard fields and UDFs easily.
    2) You can do the same thing through code. Create an instance of the delivery object and retrieve your order using the GetByKey method. Create an instance of a draft document object and then set the properties of the draft object to the values from the delivery. You can step through the lines of the delivery, adding new rows to the draft document as you go. Although there are a large number of fields that make up a marketing document, a lot of them are either not relevant for a delivery or they will default through once you've set the BaseEntry, BaseLine and BaseType values on the row.
    The disadvantage with this approach is that it only copies across the fields you've coded and therefore will not automatically copy across UDF values if you add a new UDF field.
    Kind Regards,
    Owen

  • Open Draft Invoice

    Dear Experts,
    How to open a draft invoice using DIAPI? I tried to use Link Button but no response.
    oLink = oFormAPP.Items.Item("lkDocEnt").Specific
    oLink.LinkedObject = BoLinkedObject.lf_Drafts
    Edited by: Cherine Chen on Mar 23, 2011 7:30 AM

    Hello,
    You has to assing the DocEntry from the ODRF table.
    You may use the following query to determine the draft key. I also suggest to use the
    select DocEntry, ObjType, DocNum from ODRF
    oLink.LinkedObjectEx = "112"
    Regards
    János

  • Error in Viewing Draft Invoice for Service Item Type

    Hi
    I am facing an error in viewing draft service invoice.
    I am saving a document (PO/ Invoice)  as draft.
    When i am trying to view from document draft list by double-clicking it. the Visual Studio Just-in-Time debugger opens up stating SAP Business One.exe encounterd an problem and by clicking NO button the SAP closes.
    Note: The Invoice is created for Service Items, it is working perfect with Item.
    This is urgent - any help
    I am using 2005 B PL 05 with SQL 2005 on Win 2003 SP1
    Indrajit

    Do you have any Addon's.
    As you seek answers here please post a support message to SAP Support
    https://websmp205.sap-ag.de/sbo-message-old

  • Error Msg When Invoicing

    Hello,
    When we tried to add to invoice from an invoice draft we received the following error msg:
    "No matching records found 'G/L' Accounts (OACT) (ODBC-2028) [Message 131-183]
    Does anyone know how to correct this?  We've been invoicing from Draft many times now and this is the first msg like this we have received.
    Thanks,
    Mike

    Dear,
    This error message normaly indicates that there is an account definition
    Missing, before we proceed with the investigation, Please check that
    ALL accounts have been defined in the 'G/L Account Determination',
    for all the warehouse and tax codes and freight.
    1. G/L Account Determination
    'Administration > Definitions > Financials >G/L Account Determination'
    (Check the rounding account even if you are not using it.)
    2. Warehouse accounts
    'Administration > Definitions > Stock Management > Define Warehouses >
    Accounting'
    3. Tax Code accounts
    Administration  > Finance  >Tax
    4. Check if Rounding Tax Amount in Rows is ticked.
    (Check the rounding account in G/L account Determination is defined,
    even if you are not using it.)
    5. Administration  > Setup  >General  > Freight
    Please check if the GL account is defined (even if the Freight is Zero).
    6. Do you manage some items with drop ship warehouse? If so, please
    Check if the expense account was defined for drop ship warehouse.
    7. refer to note 874131 below
    Define a rounding account under:
    'Administration' > 'System Initialization' ->'G/L Account Determination'
    -> 'General' tab page under "RoundingAccount" field.
    8. refer to note  771489 below
    When the user chooses User Defined Chart of Accounts under
    Administration -> System Initialization -> Company details -> Basis
    Initialization tab , the default accounts remain in the "G/L Account
    Determination", "Define Tax", "Define Warehouse" windows under
    Administration -> Definitions -> Financials and Administration ->
    Definitions -> Inventory. User has to check and define all accounts.
    9. refer to note 871509 below
    Symptom
    If two posting periods are created in one database, after the user
    switches to another posting period and tries to create a marketing
    document the following error message will be received:
    "Linking of primary accounts not completed"
    The G/L account determination window will be opened for checking, and
    all Accounts in the GL Account Determination screen will have been
    removed.
    Other terms
    posting period, G/L account, determination, missing, error message,
    primary account, complete.
    Reason and Prerequisites
    Functionality description
    Solution
    This error can be due to the following scenarios:
    1. The user creates the database, the first posting periods are defined
    from Apr 2004 to Mar 2005 (Category 2004) with Sub-Periods 'Month'.
    2. When the second posting periods are defined i.e.(from Apr 2005 to Mar
    2006), there are no accounts chosen in the 'G/L Account Determination'
    window.
    3. Afterwards, the user defined G/L accounts in the first posting
    periods.
    In this case these G/L accounts will not be copied into the second
    period. However, if the accounts will be defined in one of the
    sub-periods, it will be defined for the full 12 sub-periods from the
    same category at the same time.
    The G/L accunts will be copied into all the posting periods which is
    created after defining the G/L Account in G/L Account Determination.
    I hope this will resolve the issue.
    Regards
    Apple

  • Getting error while posting invoice in T-code F-02

    Hello,
    When i try to post invoice in T-code F-02 gives me the error message"There is no item category assigned to account bank a/c/company"
    Can any one suggest me why this is error came up and how to resolve this.
    Thanks,
    Lavi

    Hi,
    I think u have activated doc splitting i.e. new gl acconting. Go to
    Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting  > Classify G/L Accounts for Document Splitting
    And make setting for u r account. Also see all the nodes there are configured, to avoid any other error.
    Regards

Maybe you are looking for