Adding Credit Notes with reference to Invoice

Hi Experts,
B1 Version: 2007
PL: 41
Im having a difficulty posting a CreditNote with reference to an Invoice. For example I have an Invoice with 3 line items, and this customer returned 1 material. How do I post this Credit Note with only 1 material with reference to this Invoice thru DI API?
Thanks

Hi
Try this
                Dim oCreditNotes As SAPbobsCOM.Documents
                Dim RetVal As Integer
                Dim ErrCode As Long
                Dim ErrMsg As String = String.Empty
                Try
                    oInvoices = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    oCreditNotes = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCreditNotes)
                    'Set the document header fields properties
                    oCreditNotes.HandWritten = BoYesNoEnum.tNO
                    oCreditNotes.CardCode = "cardcode"
                    oCreditNotes.CardName = "cardname"
                    oCreditNotes.DocDate = "date"
                    oCreditNotes.Lines.BaseEntry = "oInvoice DocEntry"
                    oCreditNotes.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oInvoices
                    oCreditNotes.Lines.BaseLine = 0 'first line
                    oCreditNotes.Lines.Add()
                    oCreditNotes.Lines.BaseEntry = "oInvoice DocEntry"
                    oCreditNotes.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oInvoices
                    oCreditNotes.Lines.BaseLine = 1 'Second line
                    RetVal = oCreditNotes.Add()
                    If RetVal = 0 Then
                        MsgBox("Credit memo created")
                    Else
                        B1Connections.diCompany.GetLastError(ErrCode, ErrMsg)
                        MsgBox(ErrCode.ToString + ErrMsg)
                    End If
Hope this helps
Regards
Arun

Similar Messages

  • Error while creating a credit memo with reference to invoice

    HI aLL,
    I am facing one issue while creating a credit memo request in VA01 with reference to invoice.
    Our project stock is valuated stock.
    When we try top copy the error pops up" Valuated project stock not allowed with customer stock." and the line item is not copied in the credit memo.
    Diagnosis:The entered wbs manages a valuated project stock,at the same time sales order stock is maintained on sales order line item.this combo is not allowed as different valuation methods within a project is not allowed.
    Tarun Kapur

    Dear Tarun!
    1.Within a project we can get stock only in PROJECT or in SALES ORDER STOCK.....a single material can not be a both place at particular time ..so keep only one
    Project Stock or Sales Order Stock..
    2.Check DIP PRofile (ODP1) in usage BILLING AND RESULT ANALYSIS -Charectiristic -SDOC TYPE CMR.....are you selecting right document to which you want to copy .....
    Rewards Points if usefull
    Regards
    SMITH

  • One  credit  note  with reference to several invoices??

    Hello,
    my  customer  came  up  with  specia  requirement ,
    Is  it  possible  to  have  One  credit  note request  with reference to several invoices??
    I  never  seen  but  your  input  would  be  helpful.
    Points  will  be  added  for  helpful  answer.
    Thanks  and  best  regards
    L

    yes its possible. go like thru va01 with return order type then go to menu-> sales document->create with reference
    you can copy more than one invoices for raise credit request.
    Reg
    NAr

  • How can we create credit memo with reference to INV

    Hi,
    Pls tell how can we post credit memo with reference to Invoice which is posted through SD.
    Is there any use with reference to field in T.Code FB75.
    Thanks in advance,
    Padmaja

    Hi Vijay,
    I could not found any field for Inv. reference in the Payment Tab of T.Code FB75.
    Is there any facility in SAP to create Credit Memo for a particular customer with reference to Invoice. All the details of that Invoice should get updated in the credit memo automatically.
    Thanks in advance,
    Padmaja

  • BAPI for creation of Credit Note with custom pricing condition

    I need to create a Credit Note with reference Invoice via program.  So, I am planning to use BAPI. Could you please suggest appropriate BAPI?  I need to send a pricing condition that is set manually in the credit note as well.  So, I will needto pass pricing condition and value.  Thanks.

    Hello,
    Why you have to create the credit note using BAPI w.r.t. invoice ? Can you brief the senario .
    The simple way is create a credit memo request in VA01 w.r.t. invoice number. It will have the block . Remove the block and Create credit memo in VF01 .
    Thanks
    RK

  • Credit note with invoice reference are not concatenate in F110

    When I create a credit note with invoice reference by VA01, the fields payment term,  Baseline date for due date calculation, Assignment and Payment method are copied correctly from invoice to credit note, but in FI document the field invoice ref.  'BSEG-REBZG' is not filled. So when I run the transaction F110 Automathic Payment (for Italy) the invoice is rigthly payed but the credit not is included into Exceptions with the note 'No pymt possible because items with a credit bal.still exist'. If I put in the field 'BSEG-REBZG'  the reference to  the invoice, the one and credit note are concatenated and I have a rigth parzial payment.
    There is a way to have this link when I post the Fi document by vf01-vf02 without putting it manually using FB03?
    Thank you in advance
    Gianluca.

    hiii
    please refer thi link reconciliation in 2005
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000789632007E
    i would suggest you to upgrade your version, as reconciliation is very easy in higher versions
    please refer sap note no 1051038.
    Thanks
    Rizz
    Edited by: Mohammed Riyaz on Apr 24, 2009 4:01 PM

  • NOT with reference to PO for credit memo/invoice after invoice is posted

    hi,
    invoice is posted then vendor come back with correction.
    1) if i create credit memo NOT with reference to PO then the treatment is not similar to subsequent credit?
    2) if i create invoice NOT with reference to PO then the treatment is not similar to subsequent debit?
    thanks
    rgds

    Hello Eliana,
    Its unclear in your thread, how you are going to do it.
    For creating an invoice / credit memo, you have to refer either a PO/schduling agreement / delivery note (migo).
    In all the cases, it will get linked with the PO - MIGO.
    What you have to understand is the functionality and the posting that will happen.
    If you select
    Invoice / credit memo - GR/IR clearing account and vendor account
    Subsequent credit/debit - Stock account and vendor account
    The difference in posting has its own significance. It will affect the MAP if your material price control is V.
    If qty and value variance is there, use the functionality invoice/credit memo.
    If only price variation - use subsequent credit/debit.
    Regards
    Gregory Mathews

  • Posting a Credit Memo with Reference to the Invoice

    Dear all,
    I'd like to post a Credit Memo with Reference to the Invoice but in transaction FB65 or I can't find field to input Reference to the Invoice
    Please tell me where I can Reference to the Invoice
    Thank in advance
    Minh

    Dear all,
    When I create a a Credit Memo (Transaction FB65),
    On the Payment tab page in the Enter Vendor Credit Memo,the system doesn't display field Invoice Reference to input Invoice document number of an invoice reference exists.
    Please tell me how to configure to display field Invoice Reference
    Thank in advance
    Minh

  • Error while creating creditmemo request with reference to invoice

    HI aLL,
    I am facing one issue while creating a credit memo request in VA01 with reference to invoice.
    Our project stock is valuated stock.In projects we always use valuated stock so i cannot change the valuated into non valuated.
    When we try top copy the error pops up" Valuated project stock not allowed with customer stock." and the line item is not copied in the credit memo.
    Diagnosis:The entered wbs manages a valuated project stock,at the same time sales order stock is maintained on sales order line item.this combo is not allowed as different valuation methods within a project is not allowed.
    Tarun Kapur

    Hi Arun,
    Have you check & maintained middleware setting for  document transfer
    (tcode R3AC1). Check object SALESDOCUMENT and try maintain transaction
    type there. Don't forget to activate use tcode R3AS.
    hope this helps.
    Gun

  • Issue in creating Credit Note for road carrier invoice from SAP TM system

    Dear All,
    I am facing issue in creating Credit Note for road carrier invoice from SAP TM system.
    The following steps I have performed:
    1)  
    1)    1) Create Freight order with Amount 20,100
    2)     2) Create Freight Settlement Doc and send it to ECC. Hence PO and SES will be created in ECC with Amount 20,100
    3)     3) Invoice verification (MIRO) done w.r.t. FO in ECC with Amount 20,100 and following entries posted :
    Carrier A/c - 20,100Cr
    GR/IR A/c – 20,100 Dr
    4)    4) Created Credit Note in SAP TM against freight order with Amount 1,010 and transfer it to SAP ECC.
    5)    5)  By this a new PO and SES was created with negative values (with amount 1,010) in SAP ECC
    6)    6)  In transaction MIRO, Credit Memo was created against the freight order.
    7)    7)  By this it is showing value 21,110 by adding the line items of Original Purchase Order and Credit Note Purchase Order as 20,100 and 1,010 respectively.
    8)    8)  By posting this following are the accounting entries which is not correct:
    Carrier A/c – 21,110 Dr
    GR/IR – 20,100 Cr
    GR/IR – 1,010 Cr
    9)    9)  In report FBL1N which is showing the remaining liability of value 1,010(21,100 – 20,100) instead of 19,090 (20,100-1,010=19,090) for the carrier.
    Please suggest how to resolve the issue and get the correct accounting for credit memo?
    Regards,
    Vibhu Gupta

    Hello,
    Like my reply in Linkedin group, I got the same issue and solved with BADI in TM side(REQREQ...).
    Regards, Marcelo Lauria

  • Create Credit memo with reference to billing in VF01

    Hi all:
    I want to create a credit memo with direct reference to the original billing. Thus the creation of CMR is not required. This is the new feature as of release 4.5a. In SAP system, I've done the configuration for copying control from billing document to billing document, source (F2) target (G2). Copying requirement 027. Pos/neg qty = + and Pricing type = D. I can create a credit memo with reference to a billing now. However, the system allow multiple credit memos. Duplicate credit memo are unwanted in the system.
    How to control the system to avoid duplicate credit memo?
    Thanks and regards,
    Sim

    Hi Mei,
       In t-code "VTFF" under your item category,the field VBRK/VBRP skuldn't be 001.
       Keep them as zero.
       Reward points if it helps.
    Regards
    Karan

  • Credit Memo with reference to Sales Order

    Dear Friends,
    I am trying to configure customization for the new billing document type (Credit Memo) with reference to an existing sales order, and i want the new billing type also to be listed in the billing due list when we create the invoices with transaction VF04.  Can you pl. advise me the parameters that need to be considered importantly in customization.  Or even a document link would be much appreciated.
    Thanks in advance.
    BR,
    KP

    Hi,
    In VF04 you can give different billing type.
    So in that you can also add your newly created billing type to show in the billing due list.
    If you want your sales order should consider your billing document only then do the setting in VOV8.
    If you want to some thing else then please let us know clearly.
    Regards
    Raj.

  • Credit memo with reference to a sales order with reference to a contract?

    Hello All
    Now I created a quantity contract and the customer paid the Amount that means the billing is done then I started creating sales orders with reference to the contract, can I create credit memos with reference to these sales orders?
    Regards
    Jacopo Francois

    Hi,
    You can create a contract for a longer duartion say 1 year, andyou can create sales order in reference to your contract. This would be an ideal scenario in case of service materials.
    You can now surely create credit memo's in reference to this sales order.
    You will invoice the sales order first and create a credit memo request in reference to your sales invoice and then invoice the credit memo request to raise your credit memo for the customer.
    Reward if helpful.
    Regards
    Ravi

  • In SD module is it possible to raise a credit note without reference to QUA

    what is the tcode to create a crdit note in SD module? Is it VA01?
    In SD module is it possible to raise a credit note without reference to QUANTITY?

    Hi,
    In standard Crdit note is with reference to credit memo request.This request is created via VA01.It's subsequent document is Credit note in VF01.
    Reward points if useful
    Regards,
    Amrish Purohit

  • Delivery note with reference to sales order - 0 quantity items

    Hi all,
    our system allows items with quantity 0 to be created in delivery notes with reference to sales orders.
    This happens when some items in a sales order are out of stock while others are availiable. The unavailable items are included in the delivery note, but have quantity 0.
    The requirement is to eliminate this behavior and to create delivery notes with availiable items only.
    I would be grateful for any advice how to realise this.
    Best regards, Andreas

    Make the necessary configuration i.e. Check quantity 0 field value should be maintained as B in the respective delivery item category using transaction 0VLP.
    Regards,
    GSL.

Maybe you are looking for

  • Getting Wireless Users onto LAN

    Hello All, We currently purchased 2 AP's and a 2106 WLC and I am having some trouble getting the wireless users to communicate to the network on the other side of the WLC. Here is a very simple diagram on how this is all connected. 3750X L3 Switch --

  • Server Startup - log4j:WARN Failure in post-close rollover action

    Hi, Could anyone kindly help me to fix this issue?? We are Migrating Weblogic from 11g 10.3.2 to 10.3.6 After starting the server and checking the log, it keeps on prints "log4j:WARN Failure in post-close rollover action" in the log for several time.

  • Phantom emails in 10.6.8

    I'm showing an email exists were it doesn't. I want to get rid of the indicator. What can I do?

  • IPhoto: large black exclamation point obscuring

    Why does a large black exclamation point flash onto my screen instead of the photo I clicked on?

  • Giveing 3rd parties access to message tracking for their messages?

    Hello, Before I go looking at documentation to see how I would like to find out if it is possible, with Oracle SOA Suiet 11g R1 PS2/3 B2B, to configure the B2B Web Console in such a way that a 3rd party can be given view access to message tracking an