Report for A/R Invoice's Base Document

Hi..
My client wants to have the report showing the base document(Delivery..if any) of A/R Invoice he has punched into the system.
basically he wants to see the what is the base document of particular A/R Invoice.
Regards
Rakhi

Hi
pls find this Query
SELECT T0.[DocNum]    As [Base Document No for Ar Invoice], T2.[DocNum]   As [A/R Invoice No]
FROM ODLN T0  INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry,
OINV T2 INNER JOIN INV1 T3 ON T2.DocEntry = T3.DocEntry
WHERE T3.[BaseRef]  = T0.[DocNum] and  T3.[ItemCode]  = T1.[ItemCode]
regards
Jenny
Edited by: Jennifer Anderson on Jul 15, 2010 1:26 PM

Similar Messages

  • Report for MRP controller and relevant purchasing document

    HI
    My requirement :We have MRP controller for different diciplines(mech, electrical, Instrumentation.......ect).
    I want to search for a report Where it display me the Purchasing document(PO) number by respective decipline.
    I tried all the report in MRP controller such as MC.E, MC.D, COOIS.........ect
    Thanks in advance
    Mujeeb

    Hi Mangalraj
    Thanks for your answer, but my question is not yet answered.
    As you told i did follow accordingly.
    When i enter the T.code: ME5A ( i can not find the scope of list ALV but did find the entried as below)
    A     3-line + n special
    B     2-line + n special
    B1     2-line + 2 MRP list
    B2     2-line + 2 stock/rq.
    B3     2-line + 2 purch.dt.
    C     1-line
    C1     1-line + stock/rqts.
    D     
    F     Collective release
    G     3-line loop
    H     2-line loop
    I     1-line loop
    If i select "C" from the list i'm getting 1 line display but as you told i did press the CTRL+F8 but unable to get the cost) it does not work at all like dat.
    I'm using the system version 4.6C. Can you please suggest something on the report.
    Thanks & regards,
    Mujeeb

  • Report for AR reserve invoices

    I want to see all AR reserve invoices for a particular item. Is there a report for this in SBO or do I have to write a query?
    thanks

    Awesome, thanks.
    To check Committed quantity coming from AR reserve invocies
    AR Reserve invoices
    select oinv.docentry, oinv.docnum, oinv.canceled, oinv.isins, inv1.linenum, inv1.itemcode, inv1.linestatus, inv1.quantity, inv1.opencreqty
    from oinv
    inner join inv1 on oinv.docentry=inv1.docentry
    where itemcode = 'X' and isins = 'Y' and inv1.linestatus <> 'C'

  • Report for viewing credit limit block released documents

    Hello All,
    Our client's requirement- credit limit check to be carried out and authorised persons can release the blocked orders.
    But is there any report at month end to see how many documents were released and who released them  Is there any standard report for viewing these or ABAP has to develop them?  VKM2 transaction- released SD Documents would not show any released documents once billing is done i.e, once the sales documents is released it cannot be known who released it and when, how to track this?. so what can be the solution for this? Please suggest
    Regards,
    RAJ

    Dear Raja,
    Use VKM4 t code.
    You can see both credit released sales orders and deliveries.
    Put Overall credit status as D.
    You can see how much value was released, when it was released. But with which user id it was released you cant see it.
    Regards
    Abhilash

  • Error in Sales InvoiceSAP ERROR A/R INVOICE- ROWS [BASE DOCUMENT INTERNAL ID] "NO MATCHING RECORD FOUND"

    Hi,
    I am new to this portal.
    When I am trying to add A/R invoice based on Sales Order I got this Error Message from Evening in All Open Document. How to Rectify This.
    An Early Response Will Be very helpful.
    Thanks,
    Vikram

    Hello Vikram,
    Welcome to the Portal. Please check whether the Item Code and other line level Items on Sales Order are same or not.
    This type of message generally occurs when Base Document Rows Level are different from Target Document.
    Hope this Help
    Sudhir Sharma

  • Report for Depot Excise Invoice

    Hi Friends,
    We need to find out the commercial invoice number for an existing Depot excise invoice directly without having to go into delivery and look into the document flow. Do we have any standard report where we can see both the Depot excise invoice number and the commercial excise number and can be searched based on depot excise invoice number. Or is there any alternate method that we can use here.
    Regards,
    Abhishek

    Dear Abhishek
    run j1i7 and give depot excise group and Excise Transaction Type as DLFC so that you will get not only the excise invoice numbers pertaining to depot but also its respective billing document and delivery references.
    thanks
    G. Lakshmipathi

  • Report for Number of invoice per vendor with amount

    Hi All,
    is there any standard SAP report we have which provide us number of invoices and amounts invoiced per vendor for a given time period.
    Amit.

    Hi amit
    I have the same requirement
    "The requirement is to view POs related to invoices per vendor""
    Can you suggest me a solution
    Please help
    Regards
    Shanker

  • Report for parked/post invoice and subsequent payment

    Dear All,
    Is there any report or function module wherein one can know the status of particular invoice i.e. whether it is in park stage or post stage or reversed or payment has been made?
    Regards
    Amit

    Hello,
    FBL5n and FBL1n and mark posted items yes/no
    then open item report includes parked invoices or does not include them
    Parked invoices can be seen with yellow sign.
    Choose noted items for down payment information.
    all the best erwin

  • Nee help on ALV report for Total of BSEG-BUZEI & F1 document in FB03

    Hi friends,
    I need to diplay line items total & when double clicked on BELNR field it should open the F1 document in FB03.
    Could anyone plz guide me on this.
    Waiting for response.
    below is my code,
    Kindly needed help.
    REPORT  YALV_1.
    TABLES : BKPF,BSEG.
    Data for ALV display
    TYPE-POOLS: SLIS.
    data : int_fcat type SLIS_T_FIELDCAT_ALV,
           fieldcatalog type slis_t_fieldcat_alv with header line.
    DATA:  wa_sortinfo TYPE slis_sortinfo_alv,
           i_sortcat TYPE slis_t_sortinfo_alv.
    TYPES  : BEGIN OF T_BKPF,
            BUKRS TYPE BKPF-BUKRS,
            BELNR TYPE BKPF-BELNR,
            GJAHR TYPE BKPF-GJAHR,
            BLART TYPE BKPF-BLART,
            BLDAT TYPE BKPF-BLDAT,
            BUDAT TYPE BKPF-BUDAT,
            END OF T_BKPF.
    types: begin of t_bseg,
           BUZEI TYPE BSEG-BUZEI,
           end of t_bseg.
    DATA : it_bkpf TYPE STANDARD TABLE OF t_bkpf with header line,
          wa_bkpf TYPE t_bkpf,
           it_bseg type standard table of t_bseg.
          wa_bseg type t_bseg.
    field to store report name
    DATA :  i_repid like sy-repid.
    select bukrs belnr gjahr blart bldat budat from bkpf into table
    it_bkpf where blart = 'AA'.
    field to check table length
    *data i_lines like sy-tabix.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    PERFORM sortcat_init CHANGING i_sortcat.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but
    *can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such
    *as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'BUKRS'.
      fieldcatalog-seltext_m   = 'Company Code'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 4.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BELNR'.
      fieldcatalog-seltext_m   = 'Doc No'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'GJAHR'.
      fieldcatalog-seltext_m   = 'Fiscal Year'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BLART'.
      fieldcatalog-seltext_m   = 'DOC Type'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BLDAT'.
      fieldcatalog-seltext_m   = 'Doc Date'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BUDAT'.
      fieldcatalog-seltext_m   = 'Popsting Date'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BUZEI'.
      fieldcatalog-seltext_m   = 'Line Items'.
      fieldcatalog-col_pos     = 6.
      fieldcatalog-do_sum      = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    FORM sortcat_init CHANGING i_sortcat TYPE slis_t_sortinfo_alv.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'BUKRS'.
      wa_sortinfo-tabname = 'T_BKPF'.
      wa_sortinfo-spos = 1.            " First sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'BELNR'.
      wa_sortinfo-tabname = 'T_BKPF'.
      wa_sortinfo-spos = 2.            " Sec sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
    ENDFORM.                    " sortcat_init
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      i_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = i_repid
               i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
               i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
               is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_sort                = i_sortcat
               it_special_groups       = gd_tabgroup
               IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = IT_BKPF
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    form data_retrieval.
    IF it_bkpf[] IS NOT INITIAL.
       select buzei from bseg into
         table it_bseg for all entries in it_bkpf
         where bukrs = it_bkpf-bukrs
         and belnr = it_bkpf-belnr
         and gjahr = it_bkpf-gjahr.
         endif.
    endform.                    " DATA_RETRIEVAL.

    Hello
    1.
    form display_alv_report.
    i_repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = i_repid
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat = fieldcatalog[]
    i_save = 'X'
    tables
    t_outtab = IT_BKPF
    exceptions
    program_error = 1
    others = 2.
    2.
    * FORM USER_COMMAND
    FORM user_command USING u_com LIKE sy-ucomm sel_lin TYPE slis_selfield.
    CASE u_com.
      WHEN '&IC1'. 
        CASE sel_lin.
          WHEN 'BELNR'.
          read TABLE IT_BKPF INDEX sel_lin-tabindex.
          SET PARAMETER ID 'BLN' FIELD IT_BKPF-BELNR.
          SET PARAMETER ID 'BUK' FIELD IT_BKPF-BUKRS.
          SET PARAMETER ID 'GJR' FIELD IT_BKPF-GJAHR.
          CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN. 
        ENDCASE.
    CLEAR u_com.
    ENDCASE.
    ENDFORM. "USER_COMMAND

  • REPORT for list of invoice with an order reason.

    Hi SAP Gurus !
    Is there any standard SAP report which will show me a list of invoice with an order reason field?
    I have tried VF05 and VF05n,but in both of them, order reason as a selection parameter field is missing.
    In case of any clarification kindly revert back to me.
    Regards,
    Ujjawal

    Thanks to all !
    Actually i was going  to create a query with VBRK and VBAK  tables but sales order number is not the common link as sales order number is present in VBAK table only.
    Apart from that i had tried to add VBRK and VBRP table then i was getting the list of invoice with order reasons (because order reason was getting copied from an order to invoice) ,but in this query i'm getting Order reason number with list of invoice only(Description of order reason is not coming).
    Please guide me for this if i'm wrong.
    Regards,
    Ujjawal

  • CCR Report for a plant on Hourly basis

    Dear All,
    My Business requested us (BASIS) to reshedule CCR Report (background job) for a plant to run on hourly basis which was on daily basis early. Could this effect the load/performance  of the system?
    The usual time for completion of this job daily is 30 mins.
    Please suggest/guide.
    Regards,
    kk

    Hi,
    I am sending herewith SQL statement for populating data into the concern tables
    To make easier for further testing your script.
    insert into calls values (0772740929, 22-SEP-06 05.22.44.123)
    insert into calls values (0882740929, 22-SEP-06 05.22.44.123)
    insert into calls values (0772740929, 25-SEP-06 05.22.44.123)
    insert into calls values (0662740929, 27-SEP-06 05.22.44.123)
    insert into calls values (0452740929, 22-SEP-06 05.22.44.123)
    insert into calls values (0992740929, 24-SEP-06 05.22.44.123)
    insert into calls values (0992740929, 26-SEP-06 05.22.44.123)
    insert into events values (3, 22-SEP-06 05.22.44.123,1918)
    insert into events values (4, 22-SEP-06 05.32.44.123,1918)
    insert into events values (3, 24-SEP-06 05.22.44,1920)
    insert into events values (4, 24-SEP-06 05.42.44,1920)
    insert into events values (3, 26-SEP-06 05.22.44,1958)
    insert into events values (4, 26-SEP-06 05.52.44,1958)
    Insert into games values (1918,’ Copy of QN27030628’)
    Insert into games values (1920,’ Test Game TF1sarah’)
    Insert into games values (1958,’ Test Car Race’)
    Thanks
    jayesh

  • Report for Differences in Invoice Amount and PO Amount

    Hello,
    Is there any standard report available in SAP to compare the differences in PO Amount andd Actual Invoiced Amount against that PO?
    Regards,
    Rohit Garg

    Hello,
    Try report MC$4 - Vendor Analisis: Purchasing Values.
    I personally find it very useful.
    Hope this helps!
    KR,
    Severina

  • How do find Oustanding Sales Report and Collection Report for A/R Invoice

    Dear All,
                     I need to find the Sales Outstanding amount and Collection details like Check or Cash Or RTGS this is including A/R Invoice Amount and JE Pending Amount. Is it possible?
    Kindly any body let me know some idea or if any sql query, plz send me.
    Advance Thanks to all.
    Regards,
    A. Anvar

    Hi!
    Check this, with little modification you can get the report i think
    Declare @FromDate as Datetime
    Declare @ToDate as Datetime
    SET @FromDate = (Select Min(S0.TaxDate) from ORCT S0 where S0.TaxDate >='20110201')
    SET @ToDate = (Select Max(S1.TaxDate) from ORCT S1 Where S1.TaxDate < ='20110228')
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cash' [Payment Mode],R0.CashSum [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate   and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cheque' [Payment Mode],R0.CheckSum  [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate  and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Discount' [Payment Mode],R0.TrsfrSum  [Amount] from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate and R0.Canceled = 'N'

  • Report for no of invoices sent for print

    Hi Gurus,
    Report is needed that indicates how many invoices should be printed daily from SAP.  we are printing and mailing invoices; report should detail how many need to be mailed vs. were sent edi/faxed.
    How i can achive this ?
    Regards,
    Sujit Shinde.

    The output records can be found from table NAST. I suppose you could create a query based on it.

  • Report for pending of invoice parking

    Dear all,
    Is there any standard report in SAP to see only the GR completed, but not any invoices done (either parked or posted).
    Immediate reply will be appreciated.
    Thanks
    Prasant sekhar

    Go to transaction ME2N and select the following in the slection parameters based on the requirement:
    INVZERO:     No invoices entered (this will be useful to see that no invoice is made against the PO)
    RECHNUNG: Open invoices (this will be useful to see that there are invoices made but still some amount is due to pay against that PO)
    Pl let me know whether the above addressed your querry:
    Thanks,
    Shree

Maybe you are looking for

  • Attach GOS attachments with a standard send mail functionality

    Hi Folks, I am here after long time and need your help. I have a requirement where I need to attach document with a standard send mail functionality. Below is the details: From Quality notification 'Action Box', if the user select a perticular action

  • Bug in new hotplug (2004_09_23-2)?

    Has anyone else had/has problems with the hotplug update? My comp freezes (50/50 chance) at boot, when the hotplug-deamon is started.. it just stops at "busy" and nothing more happens.. I have to make a cold reboot and hope that it works.. Also I get

  • Export Data into Excel Sheet in UNIX

    Hi All How to export the table data into excel sheet in unix. Thanks

  • Connect MacBook Pro Retina to Ethernet LAN

    Is this the adapter I need to connect my 2013 MacBook Pro Retina Display to LAN via Ethernet? There seems to be some question between this and the USB adapter for older MBPs. Thank you. http://store.apple.com/us/product/MD463ZM/A/thunderbolt-to-gigab

  • SAP Logos/Graphic Table

    Hi, Does anyone know the name of an SAP table that contains Logo/Graphic information (such as name of logo/graphic, if it is black/white or color, etc.)  I've found a few structures, but I need a table.  Thank you, Danielle