Credit memos vs Invoices

<b>Question</b> from a SDK developer:
"We have identified that that VPM2 table contains most of the information we need in order to print remittance information on the vendor check stubs. However, on occasion we will need to go back to the OPCH or ORPC tables to pull additional data fields not available in VPM2.  We believe that the DOCENTRY field from the VPM2 table would be used to key into either OPCH or ORPC as a 1 to 1 mapping.
What isn’t clear is how to know which of those tables to pick? i.e. how can we determine if a particular row in VPM2 represents an invoice or a credit memo?"

<b>Answer</b>:
In the DB helpfile go to the table VPM2.
You'll find two fields listed that contain the answer to your question:
- <b>DocEntry</b> contains the key (DocEntry) of the header table of the object referenced; just disregard that the description of the field is just "Invoice Key"
- <b>InvType</b> contains the type of the document (see list in DB help)
Please note:
The DB helpfile is e.g. available in the "Documentation" folder on a product CD - or in the downloads for the SAP Business One SDK on Service Marketplace - or download the SDK helpcenter from the developer area for SAP Business One here in SDN:https://media.sdn.sap.com/html/submitted_docs/BusinessOne/B1_sdk.zip
Regards,
Frank

Similar Messages

  • Apply credit memo to invoice using API

    Dear All ,
    my question is how to apply a credit memo to invoice .
    I want to make a credit memo then apply invoice to this credit memo , you can check this in the transaction form by creating a credit memo then check application from action menu then apply the invoice.
    So i want to simulate this process using API.
    i searche and f ound there is API called Ar_cm_application_pub.activity_application but it is not clear to me .
    So if anyone know this API and how to use it and any example for it .
    thanx in advance .

    No Answer??!!!!

  • The Credit Memo & Original Invoice do not have the same net due date.

    The issue is that for returns of goods from the customer, the credit memo that gets created does not have the same net due date as the original invoice.  To accomplish this, in the credit memo, the indicator "V" must be entered in the credit memo field BSEG-REBZG "Invoice Ref".  This will make the credit memo due based on the payment terms. In the OSS message 50388, SAP identifies a user exit in SDVFX008 which will fill field BSEG-REBZG with the value "V".  Doing this should automatically make the credit memo for returns due the same date as the original invoice.SAP says to do the following:
    The function module called by SDVFX008 is EXIT_SAPLV60B_008
    Make the ABAP coding in include program ZXVVFU08.
    Populate field ACCIT-REBZG with "V"
    Despite doing this , we couldnt get the same net due date as the credit memo & Original invoice.
    Can anyone help? POINTS WILL BE GIVEN.
    Thanks
    Anita

    Hi Anitha,
    Does the value 'V' gets paopulated?.
    I mean to ask whether the program goes into the user exit logic?.
    Please let me know.
    Thank you.
    Regards,
    Karun M

  • Subtracting a Credit Memo from Invoice

    I have looked all over the forum for the right answer and cant locate what I need.
    I am witting a Royalty Report and need to find the best way to subtract credit memo's from invoices.
    I know that the OINV.DocEntry = RIN1.BaseEntry but the numbers are not correct.
    If anyone can help on a query or more info on the best way to do this I award points..
    Thanks,
    Craig

    hi,
    Check this links
    LINKING CREDIT MEMO TO INVOICE
    Credit Memo and A/R Invoice linking
    Jeyakanthan

  • What is the difference between credit memo in invoice year and in next year

    Hi!
    I'm new here.I'm study SAP ERP.I don't know what is the difference between credit memo in invoice year and credit memo in next year (asset accounting).Can you show and give me an example, please!
    Thanks and best regards!
    Edited by: dinhtuan on Jun 28, 2010 3:10 PM

    Hi,
    Maybe have a look at the SAP Help for further information (http://help.sap.com) : e.g. 'Posting Credit Memos Integrated with Vendor'  or 'Posting a Credit Memo Offset Against a Clearing Account' 
    Transaction type 105 for credit memo on current acquisition made in the current year, posting key 75. Or transaction type 160 for credit memo on acquisitions from prior years. posting key 75.
    Note: determine if the asset was acquired in the current fiscal year or in a closed fiscal year (Display asset values).
    If the asset was acquired in a fiscal year that is now closed, correct the past depreciation using a write-up (in that case check out and refer to Posting Write-Ups).
    I hope this helps.
    Kind regards,
    Brigitte

  • Why need to link credit memo with invoice

    Hi, gurus,
    I received an AP invoice valued $2222 and then received a credit memo valued $222 about 1 week later.
    Now I need to make payment.
    I was told it's good to link credit memo with invoice by entering invoice number in the field "invoice reference" when creating credit memo. But I'm not sure why it's better because system will pick up both items anyway when i entered $ 2000 using f-53 to make outgoing payment.
    The only reason i can think of is this link will guarantee that credit memo has the same terms of payment with invoice.
    Is there any other good reasons? Any help will be appreciated.

    Dear,
    We need to link credit memo with invoice against for two obvious reasons
    1.. Future tracking of all credit memo i-e if we gave excess credits to vendor then it was against which invoice. This will create linkage and tracking of credit memo with invoice that will be shown in FBL1N .
    2..At the end of specific time period ,month or quarter ,its a normal practise to reconcile vendor balance as per SAP ledger to that of vendor's own book. At that time you will need credit memo track also that against which invoice was the credit given.
    This all can be achived after posting credit memo with refrence to invoice number. Audit perpective should also be kept in mind. Hope this will help you
    Regards

  • How to determine the credit memo and invoice in table RBKP?

    Hi all,
    I want to specific the credit Memo and invoice in the table RBKP using MIRO.
    Does any body know that any field can be specific that ?
    Regards,
    Luke

    Hello
    The Field  XRECH - Invoice will be populated with an "x" if it is an invoice else will be blank if it is a credit memo in the  table RBKP.
    Regards
    Anis

  • I need to append details of credit memo to invoice

    Hi,
    I have invoice  and credit memo for the same sales order.  I can be able to see invoice and credit memo with the help of tcode VF03. I want to append some details of main window of credit memo to invoice. Is it possible and if yes then please tell me how to do that  ?...I am using same smartform and print program for both invoice and credit memo.
    Thanks.

    Hi,
    I want to place 3-4 fields like quantity, unit rate, amount etc.,which displays on main window of CM to main window of invoice. Can you tell me how to do this ??.
    When i debug function module of the smartform i got bill type of CM as 'RE' and bill type of invoice as 'F2'.
    Thanks.

  • Create a Credit Memo from invoice  (Sales)

    Hi
    How Can I Create a Credit Memo from invoice (Sales)?
    Thanks

    Hi Joe,
    Check our SDK sample C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\05.OrderAndInvoice to understand the procedure. You will have to create your own sample by using Invoice and Creditmemo you just have to instantiate your document object as oCreditNotes.
    Check the documentation as well of the Document Object.
    Regards,
    Felipe

  • Create a Credit Memo from invoice

    Hi,
    When I Create a Credit Memo from invoice, I get the next error : -5002 , "-"
    What is that?
    regards

    Hi Joe,
    I have tested your code and it seems to me that it is working fine. Make sure that the numbers of the document that you are using is correct and that you are doing it for the same business partner. Try doing the exact same thing in SBO. Please remember that you can have different document numbers and document entries for every document. The BaseEntry refers to the DocEntry field in the OINV table and not the DocNum field. The DocNum field is the one you see on screen in top right corner of AR Invoice screen.
    Hope it helps,
    Adele
    PS: Sorry for previous text that was in this message. I had it all wrong
    Message was edited by: Adele le Roux

  • R12: Create on-account Credit Memo with invoicing and accounting rules

    In R12.1.2: when using the AR_INVOICE_API_PUB it seems to be impossible to create a on-account Credit Memo with invoicing and accounting rules. The next errors are returned by the API:
    - AR_INAPI_INV_RULE_NOT_REQUIRED
    Do not include an invoicing rule if the transaction type's class is Debit Memo or Credit Memo.
    - AR_INAPI_RULE_NOT_ALLOWED
    Do not enter an invoicing or accounting rule for on-account credit memos
    Please advice how to create on-account Credit Memo with invoicing and accounting rules using an API.
    Edited by: nl05517 on Jan 17, 2011 10:43 PM

    We will use the AR_CREDIT_MEMO_API_PUB api.

  • MIR4 - how to know  a transaction type is credit memo or invoice ?

    hi gurus.
    In transaction MIR4 ( display invoice), How can we know that an invoice is "credit memo" or invoice. Supposing that we know the fied RBKP-VGART.
    I see that with RBKP-VGART = 'RS' this will be Credit memo in tcode MIR4
    and if RBKP-VGART = 'RD' this will be an invoice.
    how about the other types such as : RP, KP....etc
    I am processing for the purchase order.
    Thanks in advance

    The transcation type are as follows
    RP     Invoice receipt
    KP     Account maintenance
    KS     Account maintenance reversal
    PR     Price change
    BL     Material debit
    PF     Std cost estim. release
    RD     Logistics invoice
    ML     Material ledger settlement
    MI     Material ledger initialization
    RS     Logistics invoice, cancel

  • Credit Memo Without Invoice

    Hi friends.
    Is their Any BAPI OR FM To Create Credit Memo Without Invoice.
    Or if We can do it By Any Other Method Then Please Tell Me.
    Thanks.

    Hi swapnil,
    for that u wud 1st need to create a settlement order i.e SO & in reference to that u wud be able to create a credit memo.
    try FM BAPI_SALESORDER_CREATEFROMDATA, BAPI_SALESORDER_CHANGE.
    Going further u can use BAPI_BILLINGDOC_CREATEFROMDATA or BAPI_BILLINGDOC_CREATEMULTIPLE.
    This is what i'd done for my requirement, not sure if this helps u.
    but from what i understand credit memo is a billing doc/invoice itself.
    Regards,
    Amit

  • Free goods are not copying in credit memo from invoice

    Dear Gurus,
    I have made a invoice having two line items 1.normal goods with sale price and 2.free sample goods(part of promotional scheme) without any sale price.
    but while making credit memo for receiving goods back in cancellation of invoice , i am facing problem for free goods. system is not copying the free goods in credit memo and copying only normal goods.
    what can be problem for not copying? whether i am following some wrong procedure or some configuration is missing.
    please advise me with your valuable suggestions.
    Thanks in advance
    Parag

    hello, friend.
    first of all, the free goods are not relevant for credit memo since the customers never paid for these in the first place.
    however, i observed that after cancelling the invoice, you still issued a credit memo?  this may not be the proper process.  when you cancel the invoice, entries into the customers Accounts Receivables are reversed as well (we are assuming no payments are posted yet).  so there is no need to issue credit memos. 
    if you are referring to another process, please clarify the same.
    regards.

  • Need help with Query to determine Credit Memos and Invoices

    Hi All
    Thanks for all the help here.
    I need a query to determine any credits or invoices issued within a given period.
    OINV and ORIN with UNION ALL?
    Please advise any help.
    Thank you!

    Hi Daniel,
    Please check below Query.
    SELECT T0.[DocNum] as 'Invice No', T0.[DocDate] as 'Invoice Date', T0.[CardName] as 'Invoiced Customer', T3.[DocNum] as 'Credit Memo No', T3.[DocDate] as 'Credit Mamo Date', T3.[CardName] as 'Credit Memo Customer' FROM OINV T0  LEFT JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry] LEFT JOIN RIN1 T2 ON T2.[BaseEntry] = T1.[DocEntry] AND T2.[BaseLine] =  T1.[LineNum] LEFT JOIN ORIN T3 ON T2.[DocEntry] = T3.[DocEntry] WHERE T0.[DocDate]  >=[%3]  AND   T0.[DocDate] <=[%4]
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Invoicing: monitor Credit Memo and Invoicing posts

    Hello,
    Looking for an Invoice Management System expert. I would like to know the following two things.
    1. On posting an 'incomming invoice' (with reference to a PO) in SRM this Invoice will be replicated to the R/3 back-end system. The back-end will and should use this invoice to follow-up the financial administrative process, how do they go about on this. The purchase order and Invoice will be posted to f.e. G/L 'Sources, with tax 19%'. What transaction do financial administrators use to book/post bank/liquid asset changes against these invoices?
    2. Up on creating a credit memo, for example for 1 of the 2 line items that wern't delivered but where initially invoiced, do we need to create a Credit Memo in SRM with negative amounts or does the Credit Memo with positive amounts suffice (it will always be used as credit, positive doesn't mean it's debit)?
    Kind regards,
    Tim

    Hello,
    Subsequent Debit and Credits
    After an Invoice is successfully posted and the transaction is completed, Vendor approaches with additional amount invoice or correction in Invoice.You would like to post this additional invoice with reference to the original PO and item. Subsequent Debit / Credit functionality allows you to capture this difference without canceling original invoice.
    Please check this link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a8/b99890452b11d189430000e829fbbd/frameset.htm
    Regards,
    Shailesh

Maybe you are looking for

  • Attempting to work with documents and sandbox

    I am working on a document organizer and I am trying to integrate such features into the sandbox model. However I have run into a snag - the app cannot access ~/Documents or if a user has dropbox ~/Dropbox. From the list of entitlements it does not a

  • Where can I get a downloan link for Acrobat 9 to put on my home computer?

    Where can I get a download link for Acrobat 9 to put on my home computer?

  • Sapkprotp location on content server?

    Experts, I'm trying to connect via RFC from my KW system to my content server using program sapkprotp.  I need to install the sapkprotp on my Unix content server so the RFC will work.  I have a copy of this file on my KW system and am planning on cop

  • Function keys are not working?

    hi all i am using dv-10G(10-1...) can anyone guide me how we can use our desire keys in forms. example For commit form my function keys should be look like this. commit form-----F10 Execute Query...........F11 etc plz help me sarah

  • Links text includes Ctrl + Click, why? And how to use these links?

    Links in my e-mails (Yahoo and Windstream) somehow get CTRL + Click added to them. The links then will not function - the normal click on a link does nothing. Also pressing Ctrl and clicking will not cause the link to function. Since this has affecte