GR/IR Outstanding

Hi,
I have one problem here. Kindly give me the other alternative to solve this problem. Explaination as below:
We have created one Purchase Order. In that PO we also included the Freight charge for every line item to charge at the same vendor.I called it as A
After that we do Good Receipt and the Freight Charge was included.
Unfortunately, when come to invoice part, they realize the Freight charge is not coming from the same vendor but from the different vendor(B). They still continue do the invoicing. And during MIRO, they not included the freight charge to be invoice to vendor A , but for freight charge they do subsequent debit for vendor B .
That's why the GRIR account is still outstanding.
This issue was related with stock recon account. Fyi, we can do any adjustment to the stock recon account because it is automatic posting when do Good Receipt. Finance side can't simply open that account and do some adjustment that will cause the account become not tally.
I already give them the way to solve this, by do reversal from back which is from Invoice part, reverse good receipt, then amend PO. Delete the freight charge and do goods receipt and invoice again. For freight charge they need to do planned delivery cost for it (vendor B).
The issue now is, to do reversal for goods receipt, stock must be available in the system, but they didn't have any stock for that material (already sold to other company). They not sure when the next order actually is.
Please help, kindly give me the other way to solve this problem.

Hi
Try reversing the invoice posted (wrongly on different vendor) and post a new one and change the invoicing party (in details tab) to correct vendor in IV. Then your entries will be correct.
Thanks

Similar Messages

  • Trying to create a query that shows Sales Order/Invoice Totals as well as Paid/Outstanding/Available Down Payments

    Currently working on SAP B1 v8.82
    I'm looking to generate a query that will give an overall report for a given customer that shows Sales Order No, Invoice No, Sales Order Total, Invoice Total, Amount Paid on Invoice, Amount Remaining on Invoice, Down Payments Available, Open on Sales Order.
    I'm not sure what the best way to select the columns in bold above.  Invoice Total should be self-explanatory.  Amount Paid should be any down payments or applied payments on the invoice.  The balance due on the invoice (which seems to be T0.DocTotal if I'm not mistaken) should = 'Invoice Total' - 'Amount Paid on Invoice'. In the Down Payments Available column I want the total amount of money on the account or on down payments that aren't tied to a Sales Order.  If a client overpaid in the past for instance and there's a credit on their account, then it should contribute to this sum.  Open on Sales Order should be pretty easy.  I guess it's just the sum of everything that is still open on the Sales Order.  I'm just not sure what the best way to sum all the un-delivered freight, tax, and line items is.  Here's what my query looks like so far.
    SELECT DISTINCT T4.[DocNum] [Sales Order No],
    T0.DocNum [Invoice No],
    T4.DocTotal [Sales Order Total]
    T0.DocTotal [Amount Outstanding],
    FROM OINV T0
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN DLN1 T2 ON T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
    INNER JOIN RDR1 T3 ON T2.BaseEntry = T3.DocEntry AND T2.BaseLine = T3.LineNum
    INNER JOIN ORDR T4 ON T3.DocEntry = T4.DocEntry
    INNER JOIN OSLP T5 ON T4.SlpCode = T5.SlpCode
    WHERE T0.CardName Like '%%[%0]%%'
    GROUP BY T4.DocNum, T0.DocNum, T0.DocTotal, T4.DocTotal
    I tried doing a little searching around for queries similar to what I need, but I could find exactly what I was looking for and I'm very unfamiliar with OJDT, JDT1, and ITR1 tables which I think might be important to finding unapplied payments...

    Thanks.  There's a few problems though.
    1)  It seems that OINV DocTotal != Balance Due.  I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
    2)  It's pulling incoming payments from different customers.  I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry]  =  T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]"  In one example I have 2 incoming payments 446 and 614.  Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542.  *I was able to fix this by adding WHERE T5.CardCode = [%0]*
    3)  I'm going to work with this a little bit and see if I can alter it to make it work for me.  Basically this query falls a little short on the following:
    -  Doesn't include incoming payments that aren't linked to a down payment invoice.
    -  Does not give the Invoice Total (I'd like to know how much of the SO was invoiced.  DocTotal seems to give me Amount Invoiced - Down Payments.  I'm not sure the best way to get this number.  Maybe I could do the sum of each line * tax + freight)
    -  Does not give the outstanding amount on an invoice.  The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
    -  Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied.  Perhaps this would be easily accomplished by simply pulling in their account balance.

  • Variable of No of Days Outstanding in Vendor Liabilities Aging Report

    Dear Experts,
    Which Variable No is use for No of Days Outstanding in Vendor Liabilities Aging Report?
    Thanks,
    Srujal Patel

    Yes I m asking for No of Days Outstanding and I know thats the day.
    But as per My Formula only Days are calculate.
    1. Eg, 10/11/2011 Due Date  14/11/2011 Aging Date
    Result is 4 Days Out Standing thats right.
    But
    2. Eg. 10/09/2011 Due Date 14/11/2011 Aging Date
    Result is 4 Days outstanding thats wrong
    Actual result is 65 Days
    So, which formula I have use in PLD to get proper result

  • Ageing Report for Outstanding Amount from Customer

    Dear All,
    Kindly let me know if any ageing report available to find the out the outstanding amount for list of customers?
    We want to know how many days customers crossed their credit period?
    If the customer has 50 days credit, it may be crossed 50 days or still customer may have 20 days. These reports we want from SAP.
    Kindly let me know if one available in standard SAP.
    Regards,
    Mullairaj

    Hi,
    Not availabe a standard report in sap go through with the help of abaper sa per your requirement.
    Regards,
    Kanike

  • Vendor Outstanding Report

    Dear
    I want to create one vendor Outstanding Report that contains total amount , balance , Please tell me what are the related table for this
    Regards
    Sarath P G

    Hi
    you can get the Bsik Bsak to get calculate balance by getting  the debit and credit   
    you will get  the total as well  .
    regards Nilesh

  • Vendor Outstanding Payment with reference to Purchase Order

    Is there any standard report to see outstanding payments for vendors? I wanted to see purchase orders no, miro no, vendor, clear amount, pending amount, clearing document etc. i tried FBL1N but i didnt get po no. there. Please Guide.

    There is no standard report which gives your requirement.  You will have to develop the report thru help of abaper or create a abap querry.

  • Vendor outstanding against Purchase order

    Hi Gurus,
                      Is there any standard report in SAP where we can get vendor outstanding against purchase order . (Purchase order made,miro also made , but payment is still due ). How can we find or track the pending payment of vendor against which purchase order.

    Hi
    No standard report displays your requirement.
    Prepare a Functional Specification(FS) as per your requirement and tell your ABAP Guy to prepare a Customized Report.
    Regards
    Venkat

  • Report for outstanding invoice/ collections report

    How could we get a report on all the outstanding invoice for a customer based on regions. i.e
    One customer is serviced across the US. the client needs to get a report on all outstanding invoices based on regions. Any suggestions??

    You can specialize T-Code VF05 using info provided in OSS note 350068
    From a previous post of yours it sounds like the client wants no special code. This note provides an example for the VA05 transaction, but it applies to VF05 as well.
    The only issue on a client "sell" point is that it does require append table fields, and ABAP code to create the interface to pass the appended values. it is pretty basic code though, and works great because you can go out and get all kinds of data to enhance the VA05 VF05 transactions.
    Once complete you can add  / sort the columns ala standard ALV report funcitons
    Bill

  • OUTSTANDING PO QTY AND OUTSTANDING PO VALUE

    Hi
        I am in need of report to print outstanding po qty and outstanding po value.
    could any one please give me the source code..
    Its very urgent.....
                   Thanks in advance

    Please find this report for Outstanding PO's
    report zaprropo message-id zm no standard page heading line-size 212
                                                           line-count 65.
    **** TABLES------------------------------------------------------------*
    tables:
          ekko,                            " Purchasing Document Header
          ekpo,                            " Purchasing Document Item
          ekbe,                            " History of PurchasingDocument
          essr.                            " Service Entry Sheet HeaderData
    **** DATA--------------------------------------------------------------*
    data  : begin of it_ekko occurs 0,
             ebeln like ekko-ebeln,
             ernam like ekko-ernam,
             ekgrp like ekko-ekgrp,
             bedat like ekko-bedat,
           end of it_ekko.
    data  : begin of it_ekbe_gr occurs 0,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
              bewtp like ekbe-bewtp,
              dmbtr like ekbe-dmbtr,
            end of it_ekbe_gr.
    data  : begin of it_ekbe_ir occurs 0,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
    *          bewtp LIKE ekbe-bewtp,
              dmbtr like ekbe-dmbtr,
            end of it_ekbe_ir.
    data  : begin of it_output occurs 0,
              ekgrp like ekko-ekgrp,
              ebeln like ekko-ebeln,
              ebelp like ekpo-ebelp,
              ernam like ekko-ernam,
              afnam like ekpo-afnam,
              bedat like ekko-bedat,
              txz01 like ekpo-txz01,
    *          bewtp LIKE ekbe-bewtp,
              netwr like ekpo-netwr,
              dmbtr like ekbe-dmbtr,
              iramt like ekbe-dmbtr,
              outst like ekpo-netwr,
              eindt like eket-eindt,
    *          effwr LIKE ekpo-effwr,
            end of it_output.
    data  :  begin of it_title occurs 0,
               h11(5),
               h0(5),
               h1(13),
               h2(7),
               h3(15),
               h4(15),
               h5(10),
               h6(40),
               h7(20),
               h8(20),
               h9(20),
               h10(20),
               h12(10),
             end of it_title.
    data : flength.
    data : s_no type i value 1.
    * ---- Added by Gopi
    * Internal table for PO / WO Delivery Date
    data : begin of it_eket occurs 0,
             ebeln like eket-ebeln,
             ebelp like eket-ebelp,
             eindt like eket-eindt,
           end of it_eket.
    ***** selections
    selection-screen : skip.
    selection-screen : begin of block block1 with frame title text-001.
    parameters : s_bukrs like ekko-bukrs.
    select-options :  s_ebeln for ekko-ebeln,
                      s_bedat for ekko-bedat,
                      s_ekgrp for ekko-ekgrp.
    *                  s_hdg   for ekko-ekgrp.
    selection-screen : end of block block1.
    selection-screen begin of block btch with frame title text-003.
    parameters: excel as checkbox,
                file(128) type c.
    selection-screen end of block btch.
    selection-screen begin of block block2 with frame title text-002.
    parameters: asat as checkbox,
                p_date like sy-datum.
    selection-screen end of block block2.
    *---------AT SELECTION-SCREEN------------------------------------------*
    at selection-screen.
    at selection-screen on value-request for file.
      perform get_file_name using file.
    **** main program code**************************************************
    start-of-selection.
      it_title-h11 = 'S.No'.
      it_title-h0  = 'Group'.
      it_title-h1  = 'PO Number'.
      it_title-h2  = 'PO Item'.
      it_title-h3  = 'PO Creator'.
      it_title-h4  = 'Requisitor'.
      it_title-h5  = 'PO Date'.
      it_title-h6  = 'PO Short Text'.
      it_title-h7  = 'PO Amount'.
      it_title-h8  = 'GR/SE Amount'.
      it_title-h9  = 'IR Amount'.
      it_title-h10 = 'Outstanding'.
      it_title-h12 = 'Del. Date'.
      append it_title.
      perform extract_po_details_new.                           "20070814
      perform extract_po_history_new.                           "20070814
      perform calculate_outstanding_new.                        "20070814
    end-of-selection.
      perform display_report.
      if excel = 'X'.
        perform download.
      endif.
    * ---- Added by Gopi
    top-of-page.
      perform page_heading.
    *************************** display_report ****************************
    form display_report.
    *  it_title-h11 = 'S.No'.
    *  it_title-h0  = 'Group'.
    *  it_title-h1  = 'PO Number'.
    *  it_title-h2  = 'PO Item'.
    *  it_title-h3  = 'PO Creator'.
    *  it_title-h4  = 'Requisitor'.
    *  it_title-h5  = 'PO Date'.
    *  it_title-h6  = 'PO Short Text'.
    *  it_title-h7  = 'PO Amount'.
    *  it_title-h8  = 'GR/SE Amount'.
    *  it_title-h9  = 'IR Amount'.
    *  it_title-h10 = 'Outstanding'.
    *  it_title-h12 = 'Del Date'.
    *  APPEND it_title.
    *  WRITE : / 'Outstanding PO Listing Report'.
    *  ULINE.
    *  FORMAT COLOR COL_HEADING.
    *  WRITE : /1   it_title-h11,
    *           7   it_title-h0,
    *           14  it_title-h1,
    *           29  it_title-h2,
    *           38  it_title-h3,
    *           53  it_title-h4,
    *           68  it_title-h5,
    *           79  it_title-h6,
    *           122 it_title-h7,
    *           142 it_title-h8,
    *           162 it_title-h9,
    *           182 it_title-h10,
    *           202 it_title-h12.
    *  FORMAT COLOR OFF.
    *  ULINE.
    * If Output table is not empty
      if not it_output[] is initial.
        loop at it_output.
          on change of it_output-ebeln.
            uline.
            write : /1(5)  s_no, 6 sy-vline,
                     7  it_output-ekgrp,
                    14  it_output-ebeln,
                    29  it_output-ebelp,
                    38  it_output-ernam,
                    53  it_output-afnam,
                    68  it_output-bedat,
                    79  it_output-txz01,
                    122 it_output-netwr,
                    142 it_output-dmbtr,
                    162 it_output-iramt,
                    182 it_output-outst,
                    202 it_output-eindt.
            s_no = s_no + 1.
          else.
            write :/6 sy-vline,
                    29  it_output-ebelp,
                    38  it_output-ernam,
                    53  it_output-afnam,
                    68  it_output-bedat,
                    79  it_output-txz01,
                    122 it_output-netwr,
                    142 it_output-dmbtr,
                    162 it_output-iramt,
                    182 it_output-outst,
                    202 it_output-eindt.
          endon.
    *      WRITE :/6 sy-vline.
          clear : it_output.
        endloop.
      else.
    * If Output table is empty
        format color 5 intensified on.
       write : / 'No outstanding report generated for the purchasing group'
                  ,s_ekgrp-low, 'to', s_ekgrp-high,'for the period'
                  ,s_bedat-low, 'to', s_bedat-high.
        format color off.
      endif.
    endform.
    **************************** download*********************************
    form download.
      data: begin of it_download_header occurs 1,
               h0(5),
               h1(13),
               h2(7),
               h3(15),
               h4(15),
               h5(10),
               h6(40),
               h7(20),
               h8(20),
               h9(20),
               h10(20),
               h12(10).
      data: end of it_download_header.
      it_download_header-h0  = 'Group'.
      it_download_header-h1  = 'PO Number'.
      it_download_header-h2  = 'PO Item'.
      it_download_header-h3  = 'PO Creator'.
      it_download_header-h4  = 'Requisitor'.
      it_download_header-h5  = 'PO Date'.
      it_download_header-h6  = 'PO Short Text'.
      it_download_header-h7  = 'PO Amount'.
      it_download_header-h8  = 'GR/SE Amount'.
      it_download_header-h9  = 'IR Amount'.
      it_download_header-h10 = 'Outstanding'.
      it_download_header-h12 = 'Del. Date'.
      append it_download_header.
      call function 'WS_DOWNLOAD'
           exporting
                codepage            = 'IBM'
                filename            = file
                filetype            = 'DAT'
           importing
                filelength          = flength
           tables
                data_tab            = it_download_header
           exceptions
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5.
      call function 'WS_DOWNLOAD'
           exporting
                codepage            = 'IBM'
                filename            = file
                filetype            = 'DAT'
                mode                = 'A'
           importing
                filelength          = flength
           tables
                data_tab            = it_output
           exceptions
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5.
      if sy-subrc ne 0.
        message e999 with 'error downloading file :' file.
      endif.
    endform.
    *&      Form  get_file_name
    *       text
    *      -->P_P_FNAME  text
    form get_file_name using    p_fname.
      call function 'WS_FILENAME_GET'
           exporting
                def_filename     = p_fname
                mask             = ',*.*,*.*.'
                mode             = 'S'
           importing
                filename         = p_fname
           exceptions
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                others           = 5.
    endform.                    " get_file_name
    *&      Form  page_heading
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form page_heading.
    *  it_title-h11 = 'S.No'.
    *  it_title-h0  = 'Group'.
    *  it_title-h1  = 'PO Number'.
    *  it_title-h2  = 'PO Item'.
    *  it_title-h3  = 'PO Creator'.
    *  it_title-h4  = 'Requisitor'.
    *  it_title-h5  = 'PO Date'.
    *  it_title-h6  = 'PO Short Text'.
    *  it_title-h7  = 'PO Amount'.
    *  it_title-h8  = 'GR/SE Amount'.
    *  it_title-h9  = 'IR Amount'.
    *  it_title-h10 = 'Outstanding'.
    *  it_title-h12 = 'Del. Date'.
    *  APPEND it_title.
      write : / 'Outstanding PO Listing Report'.
      uline.
      format color col_heading.
      write : /1   it_title-h11,
           7   it_title-h0,
           14  it_title-h1,
           29  it_title-h2,
           38  it_title-h3,
           53  it_title-h4,
           68  it_title-h5,
           79  it_title-h6,
           122 it_title-h7,
           142 it_title-h8,
           162 it_title-h9,
           182 it_title-h10,
           202 it_title-h12.
      format color off.
      uline.
    endform.                    " page_heading
    *&      Form  EXTRACT_PO_DETAILS_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form extract_po_details_new.
      data: begin of it_po occurs 0,
        ebeln like ekko-ebeln,
        ebelp like ekpo-ebelp,
        ernam like ekko-ernam,
        ekgrp like ekko-ekgrp,
        bedat like ekko-bedat,
        txz01 like ekpo-txz01,
        netwr like ekpo-netwr,
        afnam like ekpo-afnam,
        effwr like ekpo-effwr.
      data: end of it_po.
      refresh it_output.
      if not p_date is initial.
        select a~ebeln b~ebelp a~ernam a~ekgrp a~bedat b~txz01 b~netwr
           b~afnam b~effwr
        into corresponding fields of table it_po
        from ekpo as b inner join ekko as a
        on b~ebeln = a~ebeln
        where a~bukrs = s_bukrs  and
            a~aedat le p_date  and
            a~ebeln in s_ebeln and
            a~bedat in s_bedat and
            a~ekgrp in s_ekgrp and
            a~frgke ne 'E'     and
            b~loekz not in ('L', 'S', 'X').
      else.
        select a~ebeln b~ebelp a~ernam a~ekgrp a~bedat b~txz01 b~netwr
           b~afnam b~effwr
        into corresponding fields of table it_po
        from ekpo as b inner join ekko as a
        on b~ebeln = a~ebeln
        where a~bukrs = s_bukrs  and
            a~ebeln in s_ebeln and
            a~bedat in s_bedat and
            a~ekgrp in s_ekgrp and
            a~frgke ne 'E'     and
            b~loekz not in ('L', 'S', 'X').
      endif.
      sort it_po by ebeln ebelp.
      delete adjacent duplicates from it_po.
      delete it_po where ekgrp eq 'HDB' and ebelp eq 10.    "20070814
      delete it_po where ebeln+0(1) eq '6'.
      loop at it_po.
        move-corresponding it_po to it_output.
        append it_output.
        clear it_output.
      endloop.
      refresh it_po.
      free it_po.
    endform.                    " EXTRACT_PO_DETAILS_NEW
    *&      Form  EXTRACT_PO_HISTORY_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form extract_po_history_new.
      data: begin of it_ekbe occurs 2000,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
              bewtp like ekbe-bewtp,
              shkzg like ekbe-shkzg,
              dmbtr like ekbe-dmbtr.
      data: end of it_ekbe.
      check not it_output[] is initial.
      select * into corresponding fields of table it_ekbe
        from ekbe for all entries in it_output
        where ebeln = it_output-ebeln and
              ebelp = it_output-ebelp and
              bewtp in ('E', 'N', 'Q', 'R', 'X').
      loop at it_ekbe.
        if it_ekbe-bewtp = 'E'.          "GET GR AMT
          move it_ekbe-ebeln to it_ekbe_gr-ebeln.
          move it_ekbe-ebelp to it_ekbe_gr-ebelp.
          move it_ekbe-bewtp to it_ekbe_gr-bewtp.
          if it_ekbe-shkzg = 'H'.
            it_ekbe_gr-dmbtr = it_ekbe-dmbtr * ( -1 ).
          else.
            it_ekbe_gr-dmbtr = it_ekbe-dmbtr.
          endif.
          collect it_ekbe_gr.
        else.                              "GET IR AMT
    *    ELSEIF IT_EKBE-BEWTP = 'N' OR     "GET IR AMT
    *           IT_EKBE-BEWTP = 'Q' OR
    *           IT_EKBE-BEWTP = 'R' OR
    *           IT_EKBE-BEWTP = 'X'.
          move it_ekbe-ebeln to it_ekbe_ir-ebeln.
          move it_ekbe-ebelp to it_ekbe_ir-ebelp.
          if it_ekbe-shkzg = 'H'.
            it_ekbe_ir-dmbtr = it_ekbe-dmbtr * ( -1 ).
          else.
            it_ekbe_ir-dmbtr = it_ekbe-dmbtr.
          endif.
          collect it_ekbe_ir.
        endif.
      endloop.
      refresh it_ekbe.
      free it_ekbe.
    endform.                    " EXTRACT_PO_HISTORY_NEW
    *&      Form  CALCULATE_OUTSTANDING_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form calculate_outstanding_new.
    *  DATA: BEGIN OF IT_EKET OCCURS 10000,
    *          EBELN LIKE EKET-EBELN,
    *          EBELP LIKE EKET-EBELP,
    *          EINDT LIKE EKET-EINDT.
    *  DATA: END OF IT_EKET.
      sort: it_ekbe_gr, it_ekbe_ir.
      sort it_output by ebeln ebelp.
      loop at it_output.
        read table it_ekbe_gr with key ebeln = it_output-ebeln
                                       ebelp = it_output-ebelp.
        if sy-subrc = 0.
          move it_ekbe_gr-dmbtr to it_output-dmbtr.
        endif.
        read table it_ekbe_ir with key ebeln = it_output-ebeln
                                       ebelp = it_output-ebelp.
        if sy-subrc = 0.
          move it_ekbe_ir-dmbtr to it_output-iramt.
        endif.
        if it_output-iramt gt it_output-netwr.
          delete it_output. " where iramt gt it_output-netwr.
          clear : it_output.
          continue.
        endif.
        if it_output-ekgrp eq 'HDB'.
          if it_output-netwr = it_output-iramt.
            delete it_output.
            clear it_output.
          else.
            it_output-outst = it_output-netwr - it_output-iramt.
            modify it_output.
          endif.
        else.
          if it_output-netwr = it_output-dmbtr.
            if it_output-dmbtr = it_output-iramt.
              delete it_output.
              clear it_output.
            else.
              it_output-outst = it_output-netwr - it_output-iramt.
              modify it_output.
            endif.
          else.
            if it_output-netwr = it_output-iramt.
              delete it_output.
              clear it_output.
            else.
              it_output-outst = it_output-netwr - it_output-iramt.
              modify it_output.
            endif.
          endif.
        endif.
      endloop.
      sort it_output by ebeln ebelp.
      check not it_output[] is initial.
      select * into corresponding fields of table it_eket
        from eket for all entries in it_output
        where ebeln = it_output-ebeln and
              ebelp = it_output-ebelp.
      sort it_eket by ebeln ebelp.
      loop at it_output.
        read table it_eket with key ebeln = it_output-ebeln
                                    ebelp = it_output-ebelp.
        if sy-subrc = 0.
          it_output-eindt = it_eket-eindt.
        else.
          clear it_output-eindt.
        endif.
        modify it_output.
      endloop.
      sort it_output by ekgrp ebeln ebelp.
    endform.                    " CALCULATE_OUTSTANDING_NEW
    Regards
    Gopi

  • Outstanding balances of vendor

    hi all
    how we will Transfer  Outstanding balances of one vendor to another vendor.
    thks in adv
    rgds
    sree

    Hello  Sree...
    If I tell ur answer how many marks u will give to me...
    If u want to know the answer cal me...
    Regs,
    Bhaskar

  • Need Help to build a report "GL Account-wise Outstanding Balance as on"

    Hi All,
    i have a requirement to build a GL Account-wise Outstanding Balance as on date...
    report format
    1.Date of Transaction     
    2.Journal Source     
    3.Journal Category     
    4.Opening Balance     
    5.Debit for the period     
    6.Credit for the Period     
    7.Closing Balance
    Parameters
    Company Code
    Account No
    Account Description
    GL Date(As on)
    Currency
    my query
    select trunc(gjh.posted_date) "Date of Transaction",je_source "Journal Source",je_category"Journal Category",
    abs(sum((begin_balance_dr-begin_balance_cr))) "Opening balance",sum(period_net_dr) "Debit for the period",sum(period_net_cr) "credit for the period",
    abs(sum((begin_balance_dr-begin_balance_cr)+(period_net_dr-period_net_cr)))"Closing Balance"
    from gl_je_headers gjh,gl_je_lines gjl,gl_code_combinations gcc,gl_balances gb
    where gjh.je_header_id=gjl.je_header_id
    and gjl.code_combination_id=gcc.code_combination_id
    and gcc.code_combination_id=gb.code_combination_id
    and gjh.currency_code=gb.currency_code
    and gjl.set_of_books_id=gb.set_of_books_id
    and gjh.period_name=gb.period_name
    and gcc.segment1='01'
    --and gjl.code_combination_id=12854
    and gjh.currency_code='USD'
    and gb.actual_flag='A'
    and gjh.status='P'
    and gjl.status='P'
    and gjh.period_name=to_char(sysdate,'Mon-yy')
    group by gjh.posted_date,je_source,je_category
    pls someone help me to correct the query

    Well, you may want to look at the activity for one specific account, in detail, before you try to get involved in summarizing/grouping the detail. That way you will begin to understand what the grouping function in the SQL statement is going to do to you. You do not say what is wrong with your query, but I am assuming that your numbers for the Opening Balance and the Closing Balance are too high. Would that be a correct assumption? The problem, as I see it, is that you are joining the gl lines detail to the gl balances table. That means every record (row) in the join for that account for the desired period is going to have the beginning balance dr and cr columns. So if you sum up that column, you are going to sum up the beginning balances multiple times. What you need to do is first summarize your detail activity by the date, journal source, and journal category, and the debits and credits sums, for the period in question, and store that result, Then do a second query that joins that result set to the gl_balances table. Also not sure what null values are doing to you, if you have them in the debit and credit fields. You may have to convert the null values to a 0 as part of this whole process. Or do this via a custom program. Or if you have a data warehouse, you might want to see if you can handle this in the data warehouse. So some options to thiink about.
    John Dickey

  • Agewise Outstanding Report for Vendors report

    Hi All,
    In SAP, Agewise Outstanding Report for Vendors report coming with Vendor Master Details  along with Address details in the report S_ALR_87012085 - Vendor Payment History with OI Sorted List  which is not really required. Hence we need to remove all un necessary details. We need only a signle line report for each vendor like below.
    Vendor Code Vendor Name  Due - 30  days  Due - 60  days  Due 90 Days  Due  120 days and more than above
    The selection of period option is already available in std SAP. We have to change the output report only. This is rquired for Audit purpose.
    Please help me in the above issue.
    Regards
    Vinu

    Hello,
    The following example I have given is for customers.
    The only difference is in transaction codes. For customer you go to FDI1, for vendor you go to FKI1 (reports).
    For Customer you go to FDI4, for vendor you go to FKI4 for forms.
    Remaining all are the same.
    Hello,
    Go to transaction code FDI4
    Select Form Type RFFRRD20 Line item analysis
    Give your form name and description
    Structure (Two axis) - as defaulted
    Click on Create
    You will have lead column
    Delete the rows 2, 3 and 4
    Double click on column 1
    Enter the customer numbers from 1 to 999999
    First column double click  (A)
    Slelect following values
    Due date analysis 1
    Days for net due date 0 to 30
    Give the short name, medium name and long text for the column.
    Repeat this step in next columns like 31 to 60, 61 to 90, 91 to 120 and 121 to 99999 days etc in other columns and select due date analysis 1. (B,C,D,E)
    Create one more column by way of formula. To create a new column you need to double click on blue line. Put formula add all five columns you have created above. (F = ABCDE)
    You prepare one more column with
    Due date analysis 2 (G)
    Now you prepare one more column add (F+G) = This will be total open items = over due and not due.
    Now go to FDI1 and prepare a report - assign the form created in FDI4 to the report.
    Characteristics you need to select are
    Account Type (Select Account Type as D for customers)
    Currency
    Customer
    Document Type
    Special G/L Ind
    Company Code
    Change the output types and options according to your requirement.
    Refer FDI2 and FDI3 for other standard reports created.
    Refer FDI5 and FDI6 for other standard forms created.
    Save your report and execute.
    Regards,
    Ravi

  • Same PR still outstanding in MD04 although the PR-PO-MIGO and MIRO happend

    Dear experts,
    following is the scenario-
    for material type: V1 PR is created (01/03/2011) once it went below the reorder point with delivery date 01/11/2011 as per the lead time (7 days) and PO. now the goods receipt happens on 01/21/2011 and IR on 01/26/2011.
    and again the SAME PR (with exception message 07) as above is again shownig in MD04 with the same creation date and PO but its open -
    Question: does the PR is again outstanding because the delivery of the goods was not as per the lead time (why the same PR is still showing although the PR-PO-MIGO-MIRO already ahppened for the material)?
    thanks for your replies.
    Edited by: Coolio7 on Jan 28, 2011 8:21 PM

    Propably some one created a PO directly instead of converting  the PR and PR is  not getting deleted because it is firmed.  Delete the firming indicator  and check.
    Cheers
    Rav

  • Automaticly offer outstanding items of a business partner in journal entry

    One Customer ist a stright bookkeeper. Hi only likes to book in the journal and won't use the banking wizzard.
    Is there a possibility, that there will be automaticly an offer with the outstanding items of the business-partner when making a journal-entry like:
    GL 1.000,00 against BP
    Thanks for helping

    Good morning,
    thanks for your answer. I know this proceeding i've written from other ERP-Software (sage).
    When you make a journal entry, i'll get an offer of the outstanding items from the BP an i can choose, where i'll subtract the payed amount from.
    I see, there is no standard possibility to do so in SBO.
    Why you say, that it isn't a good practise to pass yournal entries on bp?

  • A/R balance and outstanding checks per customer

    Hi Experts,
    Is there a way to query to get the information as to the A/R balance and the Outstanding checks of a customer? Columns would be document number, document date, Customer Name, A/R balance, Outstanding checks and Total. Parameters will be date start/end, Customer code from/end.
    Many thanks!
    Don

    Dear Mr Elicor,
    I am working on the query. At the best of my knowleadge the tables involved are the OINV, OCHH and ORCT.
    There are other tables that can be involved (e.g. RCT1), but I think that with the 3 tables above we can get all the data.
    select t0.docnum, t0.docdate, t0.cardcode, t0.doctotal, t1.checksum, t2.deposited, t2.checknum
    from oinv t0 inner join orct t1 on t0.docnum = t1.docnum
    join ochh t2 on t1.docentry = t2.rcptnum
    where t1.checksum <> 0 and t2.deposited <> 'c'
    The t2.deposited tells us if the check has been paied, so there is no open payment for it.
    Please, let me know if this query helps you.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • G/L A/C OUTSTANDING SHOWING CLEARED IN ALL ITEMS ON SAME DATE

    Dear Expert
    G/L A/C outstanding documents are showing cleared transactions in all items category
    using the same date in FBL1N.
    To illustrate in detail when we click on the radio button with
    open item with date 17.11.2009 i  m getting certain uncleared
    documents, now when I am using the radio button with all items with
    same date i m getting all those docs which were uncleared showing
    cleared.While in the database documents are showing in BSAK table only.
    What are the causes for the same .
    Thanks - Viral

    The items that you are questioning most likely were cleared after 17.11.2009.  When you run FBL1N for open items with key date 17.11.2009, SAP will show you all items that were open as of that date - even if the items have since been cleared.  When you run FBL1N for all items, their clearing status is displayed as of the current date.  For example, if an item was cleared on 18.11.2009, then it was open as of 17.11.2009, but is cleared as of today.
    Regards,
    Shannon

Maybe you are looking for

  • Switching Data Source for a report with stored procedure

    Post Author: ysbn CA Forum: Data Connectivity and SQL I've created a report and deployed it on a Crystal Server. The report is based on a certain stored procedure which also exists on other DB machines in my environment (Oracle machines). When I try

  • How to update Adobe Flash Player?

    I have gone through all the steps (including uninstalling Flash Player) and I still get the error message: "Unable to load metafile" - what do I do now?

  • Why will CS4 not open DNG files converted from Olympus E-M1 raw files?

    For several years I have been able to use the DNG Converter to convert .ORF raw files from my Olympus E-M1 and then open them for processing in CS4. Suddenly CS4 quit recognizing these DNG files saying "Photoshop could not complete your request becau

  • IMac will not stay asleep!  Widgets are to blame!!

    Thought I'd share this piece of information, it might be in here somewhere but I could not find the resolution. Here goes: Recently, my iMac would not stay asleep, my screensaver would not even start. If I forced my screensaver with expose, it would

  • Extending network range with express device

    I'm trying to determine how to improve my wifi signal at work.  My office network is set up with a cisco router unfortunately and I purchased an airport express in order to try boost the signal I'm receiving.  I prefer using my macbook air over my pc