Adding AR Reserve Invoice

hi,
Need help in adding AR Reserve Invoice. I tried setting ReserveInvoice = SAPbobsCOM.BoYesNoEnum.tYES but I'm having an error.
Thanks!

Hi,
Reserve invoice used in CEE . Reserve Invoices allow issuing invoices for warehouse items without deducting the items from the inventory (SAP Business One creates a journal entry without creating an inventory entry). This invoice   can be drawn to a delivery.
The numbering range is the same as Invoice numbering range.
You can use this code, is it working for me.
Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
        oDoc.CardCode = "C20007"
        oDoc.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
        oDoc.ReserveInvoice = BoYesNoEnum.tYES
        oDoc.DocDate = Today
        oDoc.DocDueDate = Today
       oDoc.Lines.ItemCode = "ITEMC"
        oDoc.Lines.Quantity = 1
        oDoc.Lines.UnitPrice = 580
        If oDoc.Add <> 0 Then
            MsgBox("Erreur " + oCompany.GetLastErrorDescription())
        Else
            MsgBox("Good")
            Dim newCode As String = oCompany.GetNewObjectKey()
            MsgBox(newCode)
        End If
Regards
János

Similar Messages

  • Open quantity in Sales Order did not update after cancelling Reserve Invoice

    Client created Credit Memo with reference to Reserve Invoice but this did not update the open quantity in Sales Order. Client is using SAP B1 8.82 PL9. I tested this in SAP 9.0 and still same behavior. Is there a work around other than creating another SO?
    I checked Document Settings and "Reopening Doc by creating credit memo based on Doc" is enabled.
    Thanks in advance.

    Thanks for the reply. How will the client be able to make new reserve invoices from the SO? They are trying to make partial reserve invoices from the sales order. I already suggested to just change the quantity in the reserve invoice before adding. But I have doubt because the SO might close prematurely before they complete the quantity in the SO because open quantity is much less then the quantity in SO.
    SO Quantity: 100
    Open Quantity: 40
    Reserve Invoice 1: 60
    Reserve Invoice 2: 40
    SO closes before they can make Reserve Invoice 2

  • AR Reserve Invoice - Posting date

    Hi,
    I have a customer who really would like to address the issue with the posting date on AR Reserve Invoices, because they think this field should be open for editing until the invoice has been paid.
    Is there a good reason for why the posting date field is closed after adding the document?
    And is there a possibility that this field can be opened for editing in a future version?
    Best regards,
    Lena-Marie D. Tørresvold

    Hi Lena.......
    The reason might be based on Posting Date the Payment is linked because Payment will be done as per the payment terms and payment terms ultimately linked with Document Date.
    And its preferable too as accounting is puerly done on the basis of date which is one of the most important factor from Financial Reports point of view.
    So if you think to edit the dates of docs when it si added then it is unncessary as it wont make any sense for finance reports........
    Hope you got the logic....
    Regards,
    Rahul

  • Error when addin an AR Reserve Invoice

    Hi all
    A client was adding an AR Reserve Invoice and got the following error:
    {SQL Native Client}{[SQL Server}Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=, >, >= or when the subquery is used as an expression. (CINF)

    Dear Jerusha,
    It seems AR Reserve invoice is calling a query that has to be modified.
    Please report ths issue to SAP Business One Support.
    Regards
    Preety Goel
    Business One Forums Team

  • Error on adding A/P Invoice

    Hi Experts,
    I have encountered some problem on adding A/P Invoice (copy from Goods Receipt-PO). The error is u201CInventory Account is not defined, u2018ITEM001u2019 [Message 173-77]. This item 'ITEM001' is Set by GL Account by ITEMGROUP (at ITEM Master). I have already checked the Item Group that attached on this item and we don't see anything wrong on our configuration. And this specific item only have problem on adding AP Invoice.
    The ItemGroup that attached on item ITEM001 have Inventory Account and Allocation Account entry already. Please help me guys how to solve this issue....
    Thank You So Much.
    Jon

    Hi Jon,
    Check also in
    1. Administration->Setup-> Financial->G/L Account Determination
    2. Administration->Setup-> Inventory->Warehouses-> Accounting Tab (your selected warehouse in transaction)
    3. Administration->Setup-> Inventory->Item Groups-> Accounting Tab
    Thanks
    Sachin

  • A/P Reserve Invoice closes Source PO - But A/P Credit Memo does not open it

    Hi Forum,
    1. Create a PO with say a single line item
    2. Create a target A/P Reserve Invoice from above PO
    Note: The PO of step 1 is closed.
    I want the PO to again go to OPEN STATUS.
    3.I perform A/P Credit Memo from base document  (A/P Reserve Invoice) from step 2 above.
    Question: The status of PO does not become open. Is there a setting that I am missing here which would make the status of PO go to open again?
    Thank you for your help.

    Hi Syed Aleem, 
    go to Administration -> System Initialisation -> Document Settings -> Per document -> Purchase Order
    Place a tick in the checkbox 'Reopen Doc. by creating returns/Goods Returns/Credit Notes Based in It' & update.
    All the best,
    Kerstin

  • Create Goods Receipt PO from  AP Reserve Invoice (bug?)

    Via the user interface of sap2005 pl7 you can create "Goods Receipt PO" from an "AP Reserve Invoice".
    In the "base type" field of goods receipt the value "18" is displayed. This seems not to be a "valid value" and it is as a consequence not possible to read the contents of this field with the UI-API, because <i>base type</i> is a combo box and only valid values can be returned.
    Is there a workaround to get a none valid value from a combobox?

    Hi Jurgen,
    It looks like it is a bug and that the same bug exists on the sales side of the DI API. Herewith a post that you can read about it.
    /thread/48329 [original link is broken]
    Hope it helps,
    Adele

  • Payment against Reserved Invoice

    Hi Experts,
    We are creating Reserved Invoices through the DI API.  The Reserved Invoice is received in just fine.  After the Invoice is processed through the DI API, we then process a payment for the Invoice.  We are getting an error that states "The Base Document Card does not match the Target Document Card".
    Orginally we were processing Sales Orders and then bringing in the payment.  Both were received into SAP with no errors.  We discovered that we could not link the Payment to the Order, so we changed to using Reserved Invoices.  Now we are getting the above mentioned error when processing the payments.
    Does anyone have any suggestions has to why we could be getting this error?  What would be considered the Target Document?
    here is the payment code:
    SAPbobsCOM.Payments vPays = default(SAPbobsCOM.Payments);
                        vPays = (SAPbobsCOM.Payments)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
    SAPbobsCOM.Documents SapInvoice = default(SAPbobsCOM.Documents);
                        SapInvoice = (SAPbobsCOM.Documents)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
    int SapOrder = GetSapInvoiceNumber(OrderNumber);
    SapInvoice.GetByKey(SapOrder);
    vPays.Address = SapInvoice.Address;
    vPays.CardCode = SapInvoice.CardCode;
    vPays.DocDate = PayDate;
    vPays.DocType = SAPbobsCOM.BoRcptTypes.rCustomer;
    vPays.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_IncomingPayments;
    vPays.CashAccount = "23500000";
    vPays.JournalRemarks = journal;
    vPays.Invoices.DocEntry = SapInvoice.DocEntry;
    vPays.Invoices.DocLine = 0;
    vPays.Invoices.SumApplied = SapInvoice.DocTotal;
    vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Receipt;
    lRetCode = vPays.Add();
    Thanks,
    Josh
    Edited by: Josh Mellette on Apr 28, 2009 5:09 PM

    Dear Josh Mellette,
    The invoice type should be invoice 13 but not Receipt
    vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;
    and you need to set cash sum if you pay the invoice by cash
    vPay.CashSum = SapInvoice.DocTotal;
    and please check if the DocEntry of the invoice is correct by check OINV table.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Report for AR reserve invoices

    I want to see all AR reserve invoices for a particular item. Is there a report for this in SBO or do I have to write a query?
    thanks

    Awesome, thanks.
    To check Committed quantity coming from AR reserve invocies
    AR Reserve invoices
    select oinv.docentry, oinv.docnum, oinv.canceled, oinv.isins, inv1.linenum, inv1.itemcode, inv1.linestatus, inv1.quantity, inv1.opencreqty
    from oinv
    inner join inv1 on oinv.docentry=inv1.docentry
    where itemcode = 'X' and isins = 'Y' and inv1.linestatus <> 'C'

  • Help with sql query the status of  A/P Reserve Invoice

    Hi,
    I am trying to write a query which lists all A/P Reserve Invoice info with OPEN status.
    I check the OPCH table and cannot find the rule to tell the status.
    The "DocStatus" field has two values only: 'O' for open and 'C' for closed.
    However, the status of A/P Reserve Invoice are OPEN, CLOSED, DELIVERED, PAID, etc.
    I try to use DocStatus field to filter, but the result does not match what I see in SAP.
    Could you please give me some hints about how to get the data I need? Thank you.
    Best regards,
    Sylvia
    Edited by: csylvia on Jun 23, 2011 5:54 AM

    Hi Darius,
    Thanks for your reply.
    However, I don't know what is the relationship between Purchase order and A/P Reserve Invoice.
    Do you mean using "SELECT T0.DocEntry FROM OPCH T0, OPOR T1 WHERE T0.DocNum = T1.DocNum AND T1.DocStatus = 'O';" to query the A/P Reserve Invoice data with OPEN status?
    But the result is not what I want.
    The result of "*SELECT * FROM OPOR WHERE DocStatus = 'O';*" is also not.
    I'd like to query A/P Reserve Invoice list with OPEN status, and I try the following sql query:
    SELECT DocEntry FROM OPCH WHERE DocStatus = 'O' AND InvntSttus = 'O';
    The result is close to what I need, but it's not exactly correct.
    Moreover, I don't think the sql query conditions is accurate.
    Please give me some advice. Thank you.
    Best regards,
    Sylvia

  • Reserve Invoice closes Source PO or SO - But Credit Memo does not open it

    Hi All,
    I try to reopen SO or PO in 8.82 using Reserve Invoice.
    If I use Delivery or GRPO after order - all it's ok.
    1. Create SO or PO.
    2. Create Delivery or GRPO
    3. Create Return or Goods Return - SO or PO opened
    If I use Reserve Invoice after orded - nothing pannened.
    1. Create SO or PO.
    2. Create Reserve Invoice
    3. Create Credit Memo - SO or PO doesn't opened
    At the Administration -> System Initialisation -> Document Settings -> Per document -> Purchase Order (and Sales Order)
    checkbox alredy ticked 'Reopen Doc. by creating returns/Goods Returns/Credit Notes Based in It'.
    Is it normal for reserve  invoice?
    Thank you for your help.
    P.S. Already see A/P Reserve Invoice closes Source PO - But A/P Credit Memo does not open it
    And there both variant  worked

    Hi
    I post to support about my problem.
    The problem is in the standard process. You must create a Delivery after Reserve Invoice. And only after that all it is working.
    Thank you for your replay. This post is closed.
    Regards
    Konstantin

  • Error while adding Incoming Excise Invoice

    Hi Experts,
    I am facing 1 problem while adding Incoming Excise Invoice & A/P invoice.
    The error msg is:-
    No matching records found  'G/L Accounts' (OACT) (ODBC -2028)  [Message 131-183]
    What might be reasons Vendor account is correctly defined.
    Regards-
    Mona

    Please check the following threads:
    GL Account missing in AR Credit Memo
    'No matching records found ' G/L account' (OACT) (ODBC - 2028) [Message 131
    Re: g/l account missing
    Re: G/L account is missing
    Thanks,
    Gordon

  • A/R Credit Memo for A/R Reserve Invoice

    Hi guyz,
    I have a question for A/R Credit Memo. Hope anyone can help.
    Steps:
    1. I created an Sales Order, let say "Item A" with quantity 100 pcs.
    2. I copied my Sales Order to A/R Reserve Invoice but i customized the quantity to 70 pcs (Sales Order still open for quantity 30).
    3. I created an A/R Credit Memo, copied from my last A/R Reserve Invoice (from step no. 2), because there is a revision in the unit price. My Credit Memo is exaclty same with my A/R Reserve Invoice.
    4. I created a new A/R Reserve Invoice, copied from my Sales Order (from step no. 1) with quantity 70 pcs again.
    After i do all my activities above, i found that my Sales Order's Status become CLOSED. Whereas, it should be still OPEN because there is outstanding quantity 30 pcs. Why it happened ? I don't find any reasons for this condition.
    Thank you.

    But A/R Credit Memo is to reverse A/R Reserve Invoice / A/R Invoice, right ? So the quantity should be back to 100 pcs.
    Or A/R Credit Memo is just to reverse the Journal ? If it so, i think it is not so helpful in ERP. Because we still need to create New Sales Order if we make a mistake in Invoice.
    Is there any chance that we do not need to make new Sales Order for this situation ?
    Thank you.
    Regards,
    Elsa

  • A/R reserve Invoice as Proforma Invoice

    Hi experts,
                  I have one doubt in A/R reserve invoice. My Client is using Proforma invoice. They will send this Proforma invoice to their customer to get get Confirmation about the Invoice. Once their Customer, confirms that proforma invoice, Our client will prepare the Original A/R Invoice. This flow is done manualy.
    when i map this flow in B1, i cant create  A/R invoice after posting the A/R reserve invoice having SO as base document. I can only create Delivery & A/R credit memo. More over when i was trying to  create A/R Invoice by selecting the that Specific SO as base document. I can find that SO.
    Can you help how to map this flow in SAP B1.
    With thanks
    Manickam

    The Reserve Invoice is mainly created when you do not want to reduce inventory but be able to create an Invoice so that you can receive money against it.
    It does not change inventory quantities.
    Let us say you have a Sales Order for Rs.1000 and you business policy is to take 50% advance..  You can create a Reserve Invoice for Rs.500 and then process an Incoming payment.
    When the order is completed..Copy the SO to Delivery..AR Invoice..and on the AR Invoice screen adjust for the advance by linking the Reserve Invoice..
    Suda

  • Fetch multiple A/P Reserve Invoices in Goods Receipt PO

    Hi Experts
    Can we fetch multiple A/P Reserve Invoices in one GRPO , or SDK can help to do this?

    Hi Zubair.......
    If based on PO you are doing more than one Advance Payment say first 30% of Total, second 20% of remaining total and third 10% or remaining total before GRPO then such Reserved invoices you can select at a time in one GRPO which is nothing but selection of Multiple AP Reserve Invoices if am not wrong.
    Is that your requirement?
    Regards,
    Rahul

Maybe you are looking for

  • Using Belkin Wireless and AX simultaneously?

    Greetings I've just connected up a new AX unit and found it painless to connect to the stereo using AirTunes. Brilliant so far. Now I'm not even sure if whether it is possible but I want to be able to do the following: 1. Receive Internet from Belkin

  • Export Terminated Unsuccessfully

    Dear Experts When I rune export utility on my oracle 9i database it ends with the following errors. EXP-00008: ORACLE error 3113 encountered ORA-03113: end-of-file on communication channel EXP-00008: ORACLE error 1041 encountered ORA-01041: internal

  • Regarding java.util.date / simple date format

    Hi Friends, I have a weired requirement where I am suppose to get time in millisecond for 3 scenarios. 1. next 07:00 time 2. next monday 07:00 3. on next 1st 07:00 Swing provides some jar where I can get next day - but not sure if I can play around t

  • How to upload photos from iPhone to Mac

    My iPad seems to have automatic update of photos from my iPhone but not from my phoen to my Mac. How do i do this please?

  • External hard drive adaptor

    The USB ports on my MacBook Pro (Early 2011) aren't working and I want to use this external hard drive to back up my things (Seagate Backup Plus 1 TB USB 3.0 Portable External Hard Drive for Mac (STBW1000900)). What's the least expensive adaptor I co