05-17-2007 9:19 AM
Hello everybody!
I am new to SAP and I need to develop ABAP program to create Debit and Credit Memos...
1. Debit/Credit memos created with header (Higher level) item and sub item/s
2. One Debit/Credit memo created per customer
3. A part of information for memos program will receive through XI (Excel file coming through XI)
maybe someone can help?
Helpfull answers will be awarded!
BR, M.
05-17-2007 9:52 AM
Hi,
I had done one object on Credit/Debit Memo.
target : Need to create Return Order for Customer based on Invoice and from Invoice, need to pick Sales Order from VBFA and from Sales Order corresponding Purchase Order and based on Purchase Order we need to generate Credit/Debit memo to Vendor. For Credit/Debit Memo, i had used BAPI "BAPI_INCOMINGINVOICE_CREATE".
If your requirement is similar, gimme ur email ID, I can send you the code.
Regards
Kannaiah
05-17-2007 9:34 AM
You dont need a custom prog to create a debit memo or credit memo.
You can raise a Credit Memo for a Vendor using the transction code FB65 (without reference to an invoice) or MIRO (if it is with reference to an invoice) and the system would pass the following accounting entry
Dr. Expenses A/c
Cr. Vendor A/c
This particular document would have a payment term and payment due date. While running Automatic Payment Process, depending on the payment method the system will pick up the document and create a cheque / electronic transfer etc for the vendor with the following entry
Dr. Vendor A/c
Cr. Bank Clearing A/c
In the case of Customer you can account the credit memo (without reference to invoice) using FB75 or VA01 (Order Type CR, if it is with reference to an invoice). While you create the billing document for the order type CR the system would raise the following accounting
Dr. Expenses A/c
Cr. Customer A/c
This particular document would have a payment term and payment due date. While running Automatic Payment Process, depending on the payment method the system will pick up the document and create a cheque / electronic transfer etc for the customer with the following entry
Dr. Customer A/c
Cr. Bank Clearing A/c
05-17-2007 9:44 AM
Thanks Alexander!
but I need to do it with ABAP... program should run periodically as Backgroud Job, as well there are more nuances like picking corresponding pricelist for the customer, etc...
But it is really helpfull what you wrote.
BR, M.
05-17-2007 9:52 AM
Hi,
I had done one object on Credit/Debit Memo.
target : Need to create Return Order for Customer based on Invoice and from Invoice, need to pick Sales Order from VBFA and from Sales Order corresponding Purchase Order and based on Purchase Order we need to generate Credit/Debit memo to Vendor. For Credit/Debit Memo, i had used BAPI "BAPI_INCOMINGINVOICE_CREATE".
If your requirement is similar, gimme ur email ID, I can send you the code.
Regards
Kannaiah
05-17-2007 10:03 AM
Hello Kannaiah!
my requirement is like this:
Customer is invoiced for materials received. An excell file is beeing generated with information like customer nr, material nr, invoiced price and so on...
After this:
1. excel file is sent to SAP via XI
2. ABAP program takes this information and regarding Pricelist it recalculates the Debit / Credit price for the customer by formula: price from pricelist - invoiced price = debit / credit value
3. ABAP program has to generate Credit / Debit invoices to customer and send them via EDI. As well list of invoices has to be generated and send the same way.
If you have something usefull, please send to my email: mindaugas.kazlauskas@gmail.com
Thanks in advance!
BR, M.
07-23-2007 10:51 AM
Good morning,
gentle clients of SAP.
Object: creation of debit and credit memo.
I'm Roberto from Italy.
I used a custom report RVAFSS00, which take in input the report RVAFSS01 to create an invoice, debit and credit memo.
The report works perfectly in the case of invoice but doesn't work in the case of debit and credit memo.
The error message for debit memo is: "the type of delivery ZNDX is not compatible with the type invoice FX".
The error message for credit memo is: "the type of delivery ZNCX is not compatible with the type invoice FX".
Thank you to everybody.