- Query to Join AR Invoice & AR Credit Memo table -

Dear All,
I've a query which shows the sales figure monthly in a year (eg: from Jan - Dec). And my issue is how can i join the RIN1 (credit memo table) with the INV1 (invoice table) so the sales figure will be more accurate. Please advise.
Cheers,
serene

Dear Serene,
Yes, the first line is the sum of invoices and
next line is the sum of Credit memos.
Here is the modified query for month wise
SELECT DISTINCT T0.CardCode [Customer],
T1.CARDNAME [NAME], (SELECT ISNULL(SUM(I.DocTotal),0)
FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Day(I.DocDate) = Day(GetDate())
AND Month(I1.DocDate) = Month(GetDate()) AND
Year(I1.DocDate) = Year(GetDate())) [Daily - Today],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1
INNER JOIN OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 1
AND Year(I1.DocDate) = Year(GetDate())) [Jan],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND
Month(I.DocDate) =2 AND Year(I1.DocDate) = Year(GetDate())) [Feb],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 3 AND
Year(I1.DocDate) = Year(GetDate())) [Mar],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) =4
AND Year(I1.DocDate) = Year(GetDate())) [Apr],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 5
AND Year(I1.DocDate) = Year(GetDate())) [May],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 6
AND Year(I1.DocDate) = Year(GetDate())) [Jun],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) =7
AND Year(I1.DocDate) = Year(GetDate())) [Jul],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 8
AND Year(I1.DocDate) = Year(GetDate())) [Aug],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 9
AND Year(I1.DocDate) = Year(GetDate())) [Sep],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 10
AND Year(I1.DocDate) = Year(GetDate())) [Oct],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 11
AND Year(I1.DocDate) = Year(GetDate())) [Nov],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry
WHERE I.CardCode = T0.CardCode AND Month(I.DocDate) = 12
AND Year(I1.DocDate) = Year(GetDate())) [Dec],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM INV1 I1 INNER JOIN
OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND (Month(I.DocDate) >=4) AND
Year(I.DocDate) = Year(GetDate())) [Yearly - Current Year]
FROM dbo.OINV T0 LEFT OUTER JOIN OCRD T1
ON T1.CARDCODE=T0.CARDCODE GROUP By T0.CardCode,
T1.CARDNAME
union SELECT DISTINCT T0.CardCode [Customer],
T1.CARDNAME [NAME],
(SELECT ISNULL(SUM(I.DocTotal),0) FROM rin1 I1 INNER JOIN
orin I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Day(I.DocDate) = Day(GetDate()) AND
Month(I1.DocDate) = Month(GetDate()) AND
Year(I1.DocDate) = Year(GetDate())) [Daily - Today],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =1 AND Year(I1.DocDate) = Year(GetDate())) [Jan],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN OrIN I ON
I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =2 AND Year(I1.DocDate) = Year(GetDate())) [Feb],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =3 AND Year(I1.DocDate) = Year(GetDate())) [Mar],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =4 AND Year(I1.DocDate) = Year(GetDate())) [Apr],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =5 AND Year(I1.DocDate) = Year(GetDate())) [May],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =6 AND Year(I1.DocDate) = Year(GetDate())) [Jun],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =7 AND Year(I1.DocDate) = Year(GetDate())) [Jul],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =8 AND Year(I1.DocDate) = Year(GetDate())) [Aug],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =9 AND Year(I1.DocDate) = Year(GetDate())) [Sep],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =10 AND Year(I1.DocDate) = Year(GetDate())) [Oct],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =11 AND Year(I1.DocDate) = Year(GetDate())) [Nov],
(SELECT ISNULL(SUM(I.DocTotal *-1),0) FROM rin1 I1 INNER JOIN
OrIN I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND Month(I.DocDate) =12 AND Year(I1.DocDate) = Year(GetDate())) [Dec],
(SELECT ISNULL(SUM(I.DocTotal * -1),0) FROM INV1 I1 INNER JOIN
orin I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode
AND (Month(I.DocDate) >=4) and Year(I.DocDate) = Year(GetDate())) [Yearly - Current Year]
FROM dbo.Orin T0 LEFT OUTER JOIN OCRD T1 ON
T1.CARDCODE=T0.CARDCODE GROUP By T0.CardCode, T1.CARDNAME
Regards,
Bala
Edited by: Balakumar Viswa on Apr 28, 2009 3:17 PM

Similar Messages

  • Problem linking A/R invoice table INV1 and Credit memo table RIN1

    Hi Experts,
    I have developed a sales report by picking data from the A/R invoice table INV1, BP partner table OCRD and Charts of accounts table OACT and the report is working fine. The only problem is I am having a challenge linking the above tables with the A/R Credit memo table RIN1. I want the linkage that is in case an A/R invoice is cancelled by raising an A/R credit memo, the same is not reflected on the sales report, kindly help.
    Patrick

    Hi Gordon,
    Sorry, I did both the report and relationships in crystal but if I do a query in a view it is something like
    SELECT     dbo.OACT.AcctCode, dbo.OACT.AcctName, dbo.INV1.ItemCode, dbo.INV1.Dscription, OCRD_1.CardCode, OCRD_1.CardName
    FROM         dbo.OCRD CROSS JOIN
                          dbo.OACT INNER JOIN
                          dbo.INV1 ON dbo.OACT.AcctCode = dbo.INV1.AcctCode INNER JOIN
                          dbo.OCRD AS OCRD_1 ON dbo.INV1.BaseCard = OCRD_1.CardCode
    the problem is incorporating the credit memo table coz if i include it I end up with wrong figures, hope this will help you guide.
    Patrick

  • 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

  • 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.

  • 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 I

    Hi,
    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

  • Wrongly Invoiced in Credit Memo

    Hello Gurus,
    we are creating an Credit Memo Using "MIRO".
    we  wrongly debited to the customer and credited to GRIR Account.
    Posting Keys Used(21-for customerr and 96- for GRIR account.
    Actual Payment to be sent is "$8700.00"
    By doing this transaction which we wrongly debited the customer is $625.
    And we had sent a check for $8075 which he already cashed it.
    Now i need to know how do i reverse the transaction of wrong debit and credit and send a fresh payment for $625.
    when i am trying to do manual adjustments to the GRIR account i am getting error "can only be posted to internally in code"
    please advise me in this regard.
    thanks,
    anand

    Hi Anand,
    Basically you cannot post to an GR/IR account manually.
    If i understand correctly, you want to deduct $625 from your vendor invoice of $8700 & wanted to pay him the net of $8075.
    In this process during initial credit memo creation you credited to GR/IR account wrongly, instead of specifying an Exp account.
    If this is the case, then
    1.Reset the cleared items (Hoping that the payment run of 8075, had cleared your invoice and credit memo) T.Code : FBRA.
    2.Reverse your FI document (that got created during MIRO)
    3. Re-book the Credit memo, with correct Credit to appropriate account.
    4.Manually clear the Open items (Invoice,credit memo against payment).
    Hopefully, i am in line with your query.
    If not please give some more details.
    Thanks
    Kalyan

  • 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

  • Cancel invoice document(Credit Memo) - Reg.

    Dear Experts,
    I am trying to cancel Invoice document(Credit Memo) through MR8M transaction. While processing, system is issuing error message (M8 534) as Balance not Zero: & debits : & Credits. But being its saying in initial screen of MR8M, i dont know where to change the amount.
    Please help me out to cancel credit memo. Thanks in advance..
    Regards,
    Kumar

    Other way around to cancel an invoice is to issue credit memo, In MIRO click credit memo, then date, then reference to PO, put in the amount then hit post, your invoice will be cancelled by issuing credit memo
    MR8M also issues credit memo, by cancelling the invoice, and so does MIRO when you create credit memo against PO, the invoice is reversed
    Edited by: Afshad Irani on Apr 8, 2010 8:09 AM

  • 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
    Govi

    Hi,
    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

  • 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

  • INVOICE or CREDIT MEMO in BAPI  'BAPI_ACC_INVOICE_RECEIPT_POST'

    Hi,
    I use BAPI   'BAPI_ACC_INVOICE_RECEIPT_POST' 
    I search the parameters field in the BAPI ' BAPI_ACC_INVOICE_RECEIPT_POST'  to fill  the type of document   " INVOICE or CREDIT MEMO. "
    best regard

    Hi,
    GOTO T-code VOFA and search for your valid document type,and give the suitable document type.
    Please let me know if you still have any issues.
    Thansk and regards,
    Rajeshwar

  • Check Flag for Double Invoices or Credit Memos

    hello
    can i one please explain me the effect of
    "Check Flag for Double Invoices or Credit Memos"
    please explain with explain
    thanks
    vijay

    as terms itself says that u can post the same invoice twice it helps u in posting the same invoice twice
    suppose u have post invoice 1103#
    now by mistake user trys to enter the sam e invoice to release the payment then system dispalys a messge wrning or error
    but to activate it u need to do the settings in spro-mminvoice---incoming invoice
    and mark the check box in vendor master

  • FK02 - Check Flag for Double Invoices or Credit Memos

    Hi,
    What is the transaction in customizing to set the parameters for check flag for double invoices or credit memos ? (ex: date, reference number, etc.) (so that a warning message will pop-up if  user tries to do such a transaction 2 times)
    The check box check double inv. is already cheked in FK02, but I want to set the different parameters.
    Julien

    OMRDC

  • Amount of the paid invoice after credit memo not correct

    Hi all
    I am using AP, CM and GL.
    I register an invoice in Payables with amount 10000.
    After two days the supplier send me a document with when he is telling that i have to pay only 8000.
    I register this document as credit memo with amount 2000 and apply on the invoice.
    But i pay in the bank only 8000 and i can not pay both documents because, it will not reflect correct actions in bank statements.
    Can you please tell me how to solve this situation?
    Thank you and best regards
    Edited by: user567002 on Nov 23, 2010 4:28 AM

    That depends on how you created the credit memo. Did you use the credit balance/line feature to create the credit memo or was that a standalone CM that you keyed in ? If it was the former, the previous_customer_trx_id field on the CM record will contain the customer_trx_id of the invoice. But if the CM was manually keyed in, that field would be blank.
    Either which way, you should be able to identify the link between the invoice and credit memo using the ar_receivable_applications_all table.

  • 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
    Admire

    Hi,
    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.

Maybe you are looking for

  • Plug-Ins

    I was so excited to buy, install, and open my imovie for the first time but my excitement was soon deflated. iMovie '08 is a horse of a different color to say the least and I like many other people who have bragged on the easy usage of previous iMovi

  • Problem with dropdownbyKey

    Hi All , I am using one dropdownbykey element in my screen. If I deploy it blank is coming as default element in the list but i want my first element to be default element. Thanks in advance.

  • Time Machine - how does it handle a full disc when increments are deleted?

    I have a 500G. I could not find any info on the following, so would greatly appreciate help. My understanding of how it works is - there is an initial backup - FULL (step0) - the next steps are incremental i.e. - step 1 is a delta between the state a

  • Picasa Web Album Playback Error

    I used QuickTime Pro to edit .mov files from my camera. No problems with playback in QuickTime or in Picasa resident on my machine, but when I upload the edited files to Picasa Web Album, the audio track is out of sync with the video or worse. In fac

  • Activity type and skf calculation

    Dear Forum, I would like to seek advice of the difference of both calculation.  1 skf - 1 big amount allocated to all cost center. if the skf measurement is number of employee, then the cycle will apportion the amount according to the number of emplo