How to extract invoice and credit memo total by BP refernce number
I am very new to the system and need to extract a report that lists all invoices and credit memos from my company for a specific client based on date and/or client po number(BP reference number) I want to view all the line items by sku for each invoice and cm in one report for qty, dollar amount, issue date and remarks. I also need the cm to be listed as negative for qty and dollars. I tried to go through the query wizard but am unsure as to the data tables I need to pull this info from. Any help would be much appreciated.
~Cheers
Elizabeth
Hi Elizabeth.......
Try this..........
Select T0.DocNum, T0.DocDate, T0.CardName, T1.Dscription, T1.Quantity, T0.DocTotal,
T1.LineTotal From OINV T0 Inner Join INV1 t1 On T0.DocEntry=T1.DocEntry
Where T0.DocDate>='[%0]' And T0.DocDate<='[%1]'
Union All
Select T0.DocNum, T0.DocDate, T0.CardName, T1.Dscription, T1.Quantity, T0.DocTotal,
T1.LineTotal From ORIN T0 Inner Join RIN1 t1 On T0.DocEntry=T1.DocEntry
Where T0.DocDate>='[%0]' And T0.DocDate<='[%1]'
Regards,
Rahul
Edited by: RAHUL MOUNDEKAR on Aug 1, 2011 11:42 PM
Similar Messages
-
Netting Invoices and Credit Memos in Business One
I found one thread related to invoices and credit memos, but the database was MAS not SAP. In creating and calculating sales commissions, the report must contain both invoices and credit memos. How do I get common and similar fields (e.g., doc#, document total) from the two tables (OINV, ORIN) to display in the same column?
I am new to Crystal Reports and am self-taught at the moment (training TBD).make sure you join the tables with outter join to get both docs
you can create a formula that will retreive either field based upon specific criteria,
are the fields the same in the tables or are they different
one table has doc# the other has docid?
i gather they are different(if they are) by type of doc?\
if so you can create a formula
if doctype ='a' then else if doctype='B' the docid
etc. -
Payment document having invoices and credit memos
How to identify when a payment document has both invoices and credit memos in it?Is there any criteria?
Hi Savitha,
This can be identified by document type.
Ashven -
BAPI for Vendor Invoice and Credit memo - FB60
Hi
Iam using BAPI_ACC_DOCUMENT_POST for creating Vendor invoice and Credit memo ..Could you please tell me which fields to be populated on the below structures?
what will be the value i should use for BAPIACHE09-BUS_ACT...RFBU or RMRP?
ACCOUNTPAYABLE ( BAPIACAP09)
ACCOUNTGL(BAPIACGL09)
CURRENCYAMOUNT( BAPIACCR09)
Only the fields which needs to be populated on these structures when we do FB60 invoice and credit memo using bapi..
Thanks in advance
GoviHi,
Populate in Document_header : (User name, Comp code, Doc DAte, Doc type, Ref Doc No)
Account GL : ItemNo_Acc, GL Accuont, REf Key1, Refkey2, Refkey3, Account Type = 'A', Doc Type, Comp code
Account_number, Cost_center
Account Payable: ItemNo_Acc, Vendor_No, Rey_key1, Ref_key2, Ref_key3
Currency Amount: Item No_Acc = 2, 1
Curr = USD, USD
Amt_Doccur
At last use commit bapi.
Thanks,
Krishna -
STANDARD SMARTFORM FOR CUSTOMER INVOICE AND CREDIT MEMO
GUD MORNING ,
I WANT THE STANDARD SMART FORM FOR THE CUSTOMER INVOICE AND CREDIT MEMO RELATED TO FI FOR SALES.
ARUN REDDY IHi,
Search For Standard or Customise Smartform
*& Report : ZTEST_SEARCH_FORMNAME
*& This program will help you to search the SMARTFORM either Standard
Or Customer created in your compatiable language.
REPORT ZTEST_SEARCH_FORMNAME .
TYPE-POOLS: SLIS.
TABLES: STXFADM, STXFADMT.
DATA: BEGIN OF ITAB OCCURS 0,
FORMNAME LIKE STXFADM-FORMNAME,
MASTERLANG LIKE STXFADM-MASTERLANG,
DEVCLASS LIKE STXFADM-DEVCLASS,
VERSION LIKE STXFADM-VERSION,
FIRSTUSER LIKE STXFADM-FIRSTUSER,
FIRSTDATE LIKE STXFADM-FIRSTDATE,
FIRSTTIME LIKE STXFADM-FIRSTTIME,
LASTUSER LIKE STXFADM-LASTUSER,
LASTDATE LIKE STXFADM-LASTDATE,
FORMTYPE LIKE STXFADM-FORMTYPE,
CAPTION LIKE STXFADMT-CAPTION,
END OF ITAB.
DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_DEV FOR STXFADM-DEVCLASS NO INTERVALS.
SELECT-OPTIONS: S_FORM FOR STXFADM-FORMNAME NO INTERVALS.
SELECTION-SCREEN SKIP 1.
PARAMETERS: P_LANG LIKE T002-SPRAS DEFAULT 'EN'.
SELECTION-SCREEN END OF BLOCK B1.
PERFORM F_SELECT_DATA.
PERFORM F_LAYOUT.
PERFORM F_FIELDCAT.
PERFORM DISPLAY.
*& Form f_select_data
text
--> p1 text
<-- p2 text
FORM F_SELECT_DATA .
SELECT
A~FORMNAME
A~MASTERLANG
A~DEVCLASS
A~VERSION
A~FIRSTUSER
A~FIRSTDATE
A~FIRSTTIME
A~LASTUSER
A~LASTDATE
A~FORMTYPE
B~CAPTION
FROM STXFADM AS A INNER JOIN STXFADMT AS B ON
AFORMNAME = BFORMNAME INTO TABLE ITAB WHERE
A~DEVCLASS IN S_DEV AND
A~FORMNAME IN S_FORM AND
B~LANGU = P_LANG.
IF SY-SUBRC = 0.
SORT ITAB BY FORMNAME.
ELSE.
MESSAGE I398(00) WITH 'No Form Exits for this selection criteria'.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " f_select_data
*& Form display
text
--> p1 text
<-- p2 text
FORM DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SYST-CPROG
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
TABLES
T_OUTTAB = ITAB.
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " display
*& Form f_fieldcat
text
--> p1 text
<-- p2 text
FORM F_FIELDCAT .
DATA: WA_COL TYPE I VALUE 1.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-003. " Form Name
WA_FIELDCAT-FIELDNAME = 'FORMNAME'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-004. " Smart form Text
WA_FIELDCAT-FIELDNAME = 'CAPTION'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-005. "Package
WA_FIELDCAT-FIELDNAME = 'DEVCLASS'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-006. "First User
WA_FIELDCAT-FIELDNAME = 'FIRSTUSER'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-007. "First Date
WA_FIELDCAT-FIELDNAME = 'FIRSTDATE'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-008. "Version
WA_FIELDCAT-FIELDNAME = 'VERSION'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-009. "Master Language
WA_FIELDCAT-FIELDNAME = 'MASTERLANG'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = WA_COL + 1.
WA_FIELDCAT-SELTEXT_L = TEXT-010. "Last User
WA_FIELDCAT-FIELDNAME = 'LASTUSER'.
WA_FIELDCAT-TABNAME = 'ITAB'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " f_fieldcat
*& Form f_layout
text
--> p1 text
<-- p2 text
FORM F_LAYOUT .
WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
ENDFORM. " f_layout
Regards,
Jagadish -
Regarding invoice and credit memo of sales order
Hi,
I have invoice for sales order and also have credit memo for the same sales order. I can see invoice and credit memo differently through transaction VF03. I want to append credit memo details to the invoice ...is it possible ?..if yes then please tell me the procedure.
Thanks.check in the documnet flow if you can see the invoice and the credit memo. Then you can see them both in the document flow of any of the document.
When you say append, what does it mean? Please explain.
Regards
Sai -
Reg: A/R Invoice and Credit Memo
Hi Experts,
While I'm trying to copy an A/R Invoice to credit memo, which status is open-printed, the 'Copy To' field of A/R Invoice is unavailable. Also it was possible for me to create A/R credit memo for that same A/R Invoice, using 'Copy From' option of Credit Memo....! What may be the reason? I'm using SAP BOne 2005B Version.If the Copy from worked and the Copy to did not, it seems like a product issue.
Check to see if this is the case with all the Invoices and the frequency of its occurance.
You might perhaps need to check if you are on the latest patch and if not has this issue been reporteed and fixed in any later pataches
Suda -
AR Invoice and Credit memo re-printing?
Hi Gurus
is there a way or indicator you can use when a user is re-printing and invoice or credit memo?
we want the system to print the invoice or credit meme as a " copy" if its a re-print.
is there a transaction code where you can indicate that the form is a reprint and not the original?
Thanks for your answers in advance
AdmireHi,
There is a counter in the billing print program (RVADIN01) for Invoice Outputs (DNAST-KSCHL).
You need to take the help of an ABAPer and make some code changes to achieve this.
Regards,
Kiron Kumar T. -
Amount posted different for Invoice and Credit memo
Hi Experts,
The user has reversed only one line item of an invoice entry (RE), which was processed back in 2009. The invoice entry was processed with two Gl Accounts( Transit Comm.match and Com.Inv.GIT d.d) with amount allocated as 576.35 (5399.2 and -4822.85)with an input tax of 22%.But in the reversal entry the amount allocated to these account are different(-5851.62 and 5275.27), thought the total match to -576.35. Interesting thing is this entry was posted in a foreign currency (EUR) wherein the Local Currency values which is in PLN is same for both invoice and reversal entries. Exchange rate for both the entries are 4.20430.
Please let me know your thoughts..Hi Ravi,
Here by reversal I meant the credit memo processed against invoice. -
Hi Gurus,
We get 1 invoice with more than 1 line relating to a PO. Line one on invoice and PO is correct, but line 2 on the invoice is goods that we have returned and will never receive it and therefore the supplier has given us a credit note. The PO has the second line but will never be goods receipted.
How do we capture the 2nd line on the invoice with the credit note to pay the invoice less the credit note.
Your help in this regard will much appreciated.
Thanks,
ThembaHi
How a vendor sends an invoice/credit memo on goods which were not delivered to customer?
If there is no GR, straightaway you can delete the line item. What ever is the credit amount, should be pertaining to the goods delivered line item. Post it as a subsequent credit/ credit memo.
Thanks -
Hi Gurus,
We get 1 invoice with more than 1 line relating to a PO. Line one on invoice and PO is correct, but line 2 on the invoice is goods that we have returned and will never receive it and therefore the supplier has given us a credit note. The PO has the second line but will never be goods receipted.
How do we capture the 2nd line on the invoice with the credit note to pay the invoice less the credit note.
Your help in this regard will much appreciated.
Thanks,
ThembaHi,
Make a zero payment, combining both the invoice and the credit memo. So that they won't appear in the AP Trial balance.
Thanks and Regards,
MPH -
A/R and A/P invoices and credit memo realized currency gain/loss report
Hi,
We need some help in getting a report from SBO.
We would like to analyze their realized currency gain and loss account. We are lookiing into a report that shows the individual invoice/ credit memo foreign and local currency amount against the incoming / outgoing payment foreign and local currency amount.
Sometimes we would do direct offset invoices in the incoming / outgoing payment, and sometimes it would be thru internal reconciliation. We have look thru the tables for the past 2 days but could not find any link between the invoices and payments especially so when reconciliation is performed.
Can this report be done either in XL Reporter or in SQL? If yes, which tables are these information store?
Thanks.
Regards,
Whay PengHi Jimmy,
There is no need to run the exchange rate differences, when invoices that was offset during the incoming and outgoing payment. The realized currency gain/ loss account will be generated when the incoming and outgoing payment is made.
During reconcilation, yes we did run the exhange rate differences to get the realized currency gain / loss.
Could it be the two tables that you mentioned are storing information on the unrealised currency rate differences? We did not run exchange rates differences to provide for any unrealized gain/loss for the period, therefore the tables on our end is empty.
Regards,
Whay Peng -
Automatic invoice and credit memo delivery
Good day:
As some of you know it is now required by law to generate and send electronic invoices, credir memos and debit memos to the customer.
Currently in Mexico there are two standards, which I will explain very briefly:
- CFD: SAP generates locally an XML and PDF file to send to the customer
- CFDI: The XML file is generated by a service provider
My problem right now is with CFD, is there a manual or tutorial to setup the automatic delivery via email these files? is it even possible?Hi,
You may check:
http://forums.sdn.sap.com/thread.jspa?messageID=9974561#9974561
http://forums.sdn.sap.com/thread.jspa?messageID=9927331#9927331
Thanks,
Gordon -
Differences in Pricing of Credit memo invoice and Credit memo.
We have difference in prices when we create a return credit memo.
We have scale price and for 500 product the scale price is 92 rs. the basic price is 112.
We have created an order for 500 items where 92 rs has piced and in the invoce for 500 92 rs has picked, even in the return sale sorder for 4 items 92 has picked but
but when we checked the return credit invoice the price has taken as 112. which is the basic price.
Please help me , you can see the document flow of the above.
Document flow..Sales orderDeliveryInvoiceAccountingReturn Sales order( ref of invoice)return deliveryReturn Credit memo.Hi Deepak and Akasha apte,
thanks for your replys
I have checked the copy controls
Invoice to return sales order --- D is maintained.
Return Delivery to return invoice --- G is maintained
So may i know what should i change.
can you please explain me the difference between D AND G
The return sales order has been created with refrence to the invoice, the return sales order has taken the price from scale which is correct but only the return invoice has taken the basic price instead of scales
please answer me as soon as possible -
Reg: Invoices and Credit Memos
Hi Experts,
the sales/purchase report should also adjust the credit memos and show as a report.Is it possible through query or is there any sap b1 standard report.
pls help....Hi Gordon....
I will try to explain in detail.
I have raised an A/R Invoice.And against the same A/R Invoice i am raising a Credit Memo.
Now when I go into the sales analysis report,i am getting two rows displayed,one for A/R Invoice and the other for A/R Credit memo.
Now my requirement is to have only one row where the invoice gets adjusted to the credit memo and shows the actual and correct value.
hope i am clear.
Thanks
Deepak
Maybe you are looking for
-
Issue with Output designer and Konica bizhub Pro 920 Driver:
Hi, i would appreciate if someone could help me with the following issue: I have designed a document using Adobe Output Designer and need to print it on Konica printer which uses above driver. Konica is not included in Adobe Presentment Target List s
-
DVD Playback - Image Quality Issues...
I'm curious to know if others are experience sub-par image quality when playing standard DVDs in the iMac with a 24" screen. The picture of the DVDs is sub-par compared to playback of the same DVD on a regular TV monitor. Also, playback is jumpy and
-
T61 - Help needed to re-attach the "Shift" key
I accidentally popped off the shift key when cleaning my keyboard. Unlike most other keys on the keyboard, underneath the actual "shift" key cover is a raised point made of a blue rubber-like material. I cannot figure out to re-attach the cover to
-
Hi, I have a data stored in table in XML format in a clob column. When I query the table containing the XML data only part of the XML is shown in SQL*Plus. Is there anyway that I can view the full XML data in SQL* Plus prompt? Thanks, Milton.
-
MIRO - deactivate direct posting to GL / material acct for selected company codes
Hi All, I have a requirement to deactive direct posting to G/L and material accounts in MIRO, however, only for selected company codes (this cannot be done for all of them on client level in SPRO->Material Management->Logistic Invoice verification->I