Payment F110-  vendor credits-not clearing.

Hi There
Please help  me in this f110 payment
I have  2 dcuments (doc type KG- vendor credit memo) each 300$.
and 1 document (doc type- Invoice Gross)200$.
When we run the f110 its not picking up the credits,
error: "Due items with  currency USD, pmnt method C- items total is > 0".
I am running the check payment.
I mean why the program is not clearing the cridit entries.
Please suggest with Tcodes.
Many thanks
Sharath

Hi Gurus
can you please help me with this issue.
We have a regular invoice of 5000$ and a Vendor credit for 900$, but the F110 payment run is not picking the 900$ credit but picking the invoice 5000
It gives me the error "No pymt possible because items with a debit bal.still exist; see job log".
Both the documents has the payment method on them, but still the credits are not being cleared...please advise.
Thanks
MSJ

Similar Messages

  • URGENT---Automatic payment run-Vendor open item clearing

    When I run the payment program, it ran without any error, however, the vendor account was not cleared. The balance in GL and Vendor account remains the original amounts. And the Vendor line items which were supposed to be cleared thru F110, are now showing as Open items.
    please give me the TCODES to look in.
    Please help.
    Thanks in advance
    Sharath

    Dear Sharath,
    To check whether your payment run has actually generated any payment document or not, please follow the following steps:-
    (1) Go to transaction SE16/ SE16N and table REGUH, give the "payment run ID", "run date" and "Proposal Indicator as blank".
         It should show the payment document.
    (2) If (1) above show payment document, then go to table REGUP and check the invoices paid.
       If invoices are there in REGUP, then there might be some issue in the payment document updation in the system which you can check via transaction SM12. (For this just check in table REGUV, whether payment documents created and posted are equal or not for the payment run.)
    (3) if (1) do not show any payment document, that means payment run has not made any payment.
        In this case, you create a new payment run and in the parameters select the error logs display also and in free selection give the document number you are expecting to be paid off by the payment run. This might help you to know the reason of non payment by cheking the proposal log/ payment run log.
    I hope that this should assist you
    Regards,
    Gaurav

  • Vendor Advance not cleared

    Hello Sir,
    I am doing vendor down payment t code:f-48 and clear from t code:F-54
    But entry shown in FBL1n with tick Spl.G/L ind.in credit balance ? its shows Red indicator?why not in Green indicator ?
    Waiting for Reply.
    Thanks
    J

    Dear J,
    what You' re reporting is the normal System behavior.                                                                               
    When a down payment is cleared with transaction F-54, the down payment                                     
    clearing document contains 2 vendor line items: one special G/L line                                       
    item and one 'credit memo' line item. The special G/L line item clears                                     
    the special G/L line item in the downpayment, whereas the 'credit memo'                                    
    line item remains open and does not clear the vendor line item in the                                      
    invoice.                                                                               
    But this is correct: Usually the amount of the vendor line item                                            
    in the invoice (-> the amount of the 'final' invoice) is higher than the                                   
    amount in the 'credit memo' line item of the downpayment clearing (the                                     
    amount of the 'credit memo' line item of the downpayment clearing is the                                   
    amount of the downpayment), and so these two vendor line items cannot be                                   
    cleared with each other. But if they should, the customer could clear                                      
    them and post a residual line item with another clearing transaction.                                                                               
    If you want to get another result, like clearing the documents, you have                                   
    2 methods.                                                                               
    1) using F-53 (outgoing payment post) to clear the invoice and the                                         
    downpayment.                                                                               
    2) after using F-54, you have to run F-44 (account clear) to fully clear                                   
    the open item.      
    I hope this helps You.
    Mauri

  • Payment program-Vendor credits

    Hi Gurus
    can you please help me with this issue.
    We have a regular invoice of 5000$ and a Vendor credit for 900$, but the F110 payment run is not picking the 900$ credit but picking the invoice 5000. The credits are past due also.
    It gives me the error "No pymt possible because items with a debit bal.still exist; see job log".
    Both the documents has the payment method on them, but still the credits are not being cleared...please advise.
    Thanks
    MSJ

    Hi MSJ,
    While selecting the Invoice and Creidt Memo from Same vendor system compares some fields in both the documents and only if these field entries in both the document marches system sets off the document against each other.
    In your case i think there is some diff in the field entries that system matches. Kindly check the same.
    Please go through the note 164835
    Please assign points if helpful.
    JS

  • Payment Card posting - Do not clear invoice

    We are using the payment card functionality in Sales Orders for one of our requirements to monitor credit authorization from a Financing company for our Customers. Once we receive the authorization back, like in credit cards, the delivery can take place.
    However, unlike credit card orders, we do not want to clear the invoice on posting. We want it to post like any other normal Credit sales, debiting the Customer and crediting Revenue. (For credit card orders, it clears the Customer to a CC clearing account). We wouldn't have the Credit card settlement process either. We shall be receiving the funds from the Financing company as per agreed terms.
    Now the issue -  how do we prevent the invoice from getting cleared on Release to Accounting? Do we use an user exit? Even if we manage to do it, will it have any downstream impact, like credit card settlement program or anything like that?
    Any suggestions will be highly appreciated.
    Thanks!
    FP

    Hi Renan,
    Let me explain the issue with an example:
    Example -
    1     01          21000491     XXX Technologies     435.00
    2     50          400000     Sales     400.00-
    3     50          220900     Use Tax     29.00-
    4     50          220900     Use Tax     4.00-
    5     50          220900     Use Tax     2.00-
    6     15          21000491     XXX Technologies     435.00-
    7     40          120010     Visa Receivable Clg     435.00
    Lines 1 to 5 are the ones that post normally without payment card. Line 6 and 7 are posting because the sales order has been authorized by a payment card. Although I am using the payment card functionality, I do not want to post lines 6 and 7 as the payment is going to come from the Financing company on due date.
    I hope this will help to understand the issue at hand.
    Thanks,
    FP

  • Payment not  clearing for Vendor through Automatic Payment Program

    Hi
    I had setup automatic payment program for my vendor to take $ from my GL account. When I run the payment program, it ran without any error, however, the vendor account was not cleared. The balance in GL and Vendor account remains the original amounts.
    The log shows the following.
    Job started
    Step 001 started ( program SAPF110S, variant &0000000001081, user ID XXXXXXX)
    Log for payment run for payment on 01/12/2008, identification XXXX
    End of log
    Job finished
    Can anyone help ?
    Thanks
    Shalini

    I have not proposed a solution. Now go to F110 and go to the table additional tab and press proposal log button on the lower right hand side. this will give a detailed log. Either analyse this error set right error or send the error log for analysis.
    First run the proposal run and if it is successful, run the payment run and then to print run.
    It should be run in the above sequence.
    Edited by: Sivakumar Gopalakrishnan on Jan 12, 2008 7:54 PM

  • Down payment doc not cleared in Payment Run F110

    Dear Friends,
    Document 1700000043 is a reversal of down payment which should be settle with final invoice 5400212994. Both documents have the same due date, but only 5400212994 was cleared with a payment run.
    Please can anybody clarify why document 1700000043 was not cleared with a payment run.
    I checked in Exception list and found error message as "No Payment possible because Items with a debit balance still exists; see job log"
    User follow the below process:
    1) Downpayment made as below on 08.10.2009
    Vendor                                   29.000,00
    LC El PaymClrng Ac               34.510,00-
    Payables Tax Input                  5.510,00
    1) GR posgted on 26.11.2009
                Engineering Service   41.700,00
                GR/IR - Services         41.700,00-                          
    3) IR posted on 26.11.2009 and Net due date 23.12.2009
             Vendor                           49.623,00-
              GR/IR                              41.700,00
              Payables Tax Input           7.923,00
    4) Downpayment Reversal on 26.11.2009
          Vendor (PK 39)                 29.000,00-
           Venfor (PK 26)                34.510,00
           Payables Tax Input           5.510,00-
    Please check above process and let me know if any details are needed for further.
    Thanks,
    Venkat

    HI Venkat,
    Sorry Venkat. It is the clarance in F-54 not the Revesal.
    After clearance, the amount 29.000,00 is posted to Vendor Spl GL. So nullified this account.
    Once cleared, the amount is posted to Normal Vendor ac as 34.510,00 (Doc 1700000043)
    So this doc is not picked in Payment Run.
    Invoice amount is 49.623,00-.  So the difference 15113 (49.623,00-34.510,00) should be cleared in Payment run. It is not done.
    My assumption is there is the amount difference between Normal Vendor to Speial Vendor (34,510 - 29000).  Is it the cause to not picked the doc 1700000043 in payment run.
    Please advise what I can do?
    Thanks
    Venkat

  • Down payment not cleared with invoice trans f-54

    Hi All,
    I need help with down payment clearing with invoice. Purpose is to have open residual item for not paid invoice part.
    I made such steps:
    1. Vendor down payment request, trans F-47, (for instance) 90Eur
    2. Make down payment, trans F110, 90Eur
    3. Vendor invoice receipt, trans. FB60, 115Eur
    4. Clear down payment, trans. F-54.
    The problem is that clearing document is created, but actually down payment for 90Eur and invoice for 115Eur are not cleared, and residual item for 25Eur is not created. Using payment program (F110) again system suggest to pay whole invoice sum - 115Eur - that is quite dangerous.
    I will be very thankful for your help.

    Hi,
    Have you cleared down payment against the invoice no. in F-54 ?
    If you do so, there will be a link between  the invoice & down payment document no. During F110, system will select both the documents together.
    Also check in T code FB00 (Editing options) under "Open Items" tab, whether "include invoice reference" check box is selected.
    If not, then select this check box & try the transaction once again.
    Hope this helps you.
    Regards,
    Ashutosh

  • F110 payment run completed but not generated all check for the payments

    Do any one have an idea or the potential answer on my query
    I've run F110 and generated one Payment all 45 open items for one vendor
    Now after the print done only the first 20 items got into the check register, and left over the remaining 25 items
    So my question is why system not generated the check for the remaining 25 items and what is the remedy

    No all settings are available, but still the same situation the all checks are not generated for all items of the vendor open items clearing in the one payment documents
    single vendor
    single payment for all 25 open items
    After print activity compelted
    checks created for items 5
    leftover items 20 not created check
    can anyone tell why system is behaving like this

  • Custom purchase requsitionto vendor open and cleared payment report

    dear all i develop report but i cant ableto show in that open amount and cleared amount of vender in that report so please see this report and feedback me for logic to show open and clear amount of vendor purchase orderwise or vendorwise
    report zpo_purchase_history no standard page heading message-id 00.
    TABLES : bsik, bsak, lfa1, lfb1, skb1, t001, bapifvdexp_vzzbepp.
    type-pools:slis,ICON.
    types :begin of ty_po,
            banfn type eban-banfn,
            "Purchase Requisition Number
            bnfpo type eban-bnfpo,
            "Item Number of Purchase Requisition
            ekgrp type eban-ekgrp,                 "Purchasing Group
            badat type eban-badat,
            "Requisition (Request) Date
            menge type eban-menge,
            KNTTP TYPE EBAN-KNTTP,
             PSTYP type eban-PSTYP,
            "Purchase Requisition Quantity
            meins type eban-meins,
            "Purchase Requisition Unit of Measure
            lifnr type ekko-lifnr,                 "Vendor Account Number
            bedat type ekko-bedat,                 "Purchasing Document Date
            ebeln type ekpo-ebeln,
            "Purchasing Document Number
            ebelp type ekpo-ebelp,
            "Item Number of Purchasing Document
            matkl type ekpo-matkl,                 "Material Group
            mtart type ekpo-mtart,                 "Material Type
            matnr type ekpo-matnr,                 "Material Number
            txz01 type ekpo-txz01,                 "Short Text
            menge1 type ekpo-menge,                "Purchase Order Quantity
            meins1 type ekpo-meins,
            "Purchase Order Unit of Measure
            balqty type ekpo-menge,                "Balance Quantity
            netpr type ekpo-netpr,
            "Net Price in Purchasing Document
            peinh type ekpo-peinh,                 "Price Unit
            mblnr type mseg-mblnr,
            "Number of Material Document
            zeile type mseg-zeile,                 "Item in Material Document
            menge2 type mseg-menge,                "GR Quantity
            meins2 type mseg-meins,                "GR Unit of Measure
            werks type mseg-werks,                 "Plant
            charg type mseg-charg,                 "Batch
            belnr type rbkp-belnr,
            "Document Number of an Invoice Document
            bldat type ekbe-bldat,                 "Document Date in Document
            belnr_b type rbkp-belnr,
            SHKZG type ekbe-SHKZG ,                "Debit/Credit Indicator
            DMBTR type   bsik-dmbtr,                "Amount in Local Currency
            DMBTR_C type   bsAk-dmbtr,                "Amount in Local Currency
            thick(10) type c,                      "Thickness
            width(10) type c,                      "Width
            length(10) type c,                     "Length
            grade(10) type c,                        "Grade
            BELNR_d type bseg-belnr,
            xblnr type bkpf-xblnr,
            awkey  type bkpf-awkey,
            RMWWR type rbkp-RMWWR,
            WMWST1 type rbkp-WMWST1,
            end of ty_po.
    types :begin of ty_ekko,
            ebeln type ekko-ebeln,
            lifnr type ekko-lifnr,
            bedat type ekko-bedat,
            end of ty_ekko.
    types:begin of ty_ekpo,
            ebeln type ekpo-ebeln,
            ebelp type ekpo-ebelp,
            matnr type ekpo-matnr,
            txz01 type ekpo-txz01,
            menge type ekpo-menge,
            meins type ekpo-meins,
            netpr type ekpo-netpr,
            peinh type ekpo-peinh,
            banfn type ekpo-banfn,
            bnfpo type ekpo-bnfpo,
            mtart type ekpo-mtart,
            end of ty_ekpo.
    types :begin of ty_eban,
            banfn type eban-banfn,
            bnfpo type eban-bnfpo,
            matnr type eban-matnr,
            menge type eban-menge,
            meins type eban-meins,
            end of ty_eban.
    types : begin of ty_ekbe,
             ebeln type ekbe-ebeln,
             ebelp type ekbe-ebelp,
             belnr type ekbe-belnr,
             bldat type ekbe-bldat,
             gjahr type ekbe-gjahr,
             buzei type ekbe-buzei,
             matnr type ekbe-matnr,
             DMBTR type ekbe-dmbtr,
             shkzg type ekbe-shkzg,
             end of ty_ekbe.
    types : begin of ty_mseg,
             mblnr type mseg-mblnr,
             mjahr type mseg-mjahr,
             zeile type mseg-zeile,
             menge type mseg-menge,
             meins type mseg-meins,
             ebeln type mseg-ebeln,
             ebelp type mseg-ebelp,
             matnr type mseg-matnr,
             werks type mseg-werks,
             charg type mseg-charg,
             end of ty_mseg.
    types : begin of ty_rbkp,
             belnr type rbkp-belnr,
             gjahr type rbkp-gjahr,
             bldat type rbkp-bldat,
             lifnr type rbkp-lifnr,
             ZUONR type rbkp-ZUONR,
             RMWWR type rbkp-RMWWR,
             WMWST1 type rbkp-WMWST1,
             end of ty_rbkp.
    types : begin of ty_bseg,
             bukrs type bseg-bukrs,
             belnr type bseg-belnr,
             gjahr type bseg-gjahr,
             buzei type bseg-buzei,
             valut type bseg-valut,
             wrbtr type bseg-wrbtr ,
             augbl type bseg-augbl,
             matnr type bseg-matnr,
             lifnr type bseg-lifnr,
             ebeln type bseg-ebeln,
             end of ty_bseg.
    types : begin of ty_rseg,
             belnr type rseg-belnr,
             gjahr type rseg-gjahr,
             ebeln type rseg-ebeln,
             ebelp type rseg-ebelp,
             matnr type rseg-matnr,
             bukrs type rseg-bukrs,
             end of ty_rseg.
    types : begin of ty_bsik,
             belnr type bsik-belnr,
              buzei type bsik-buzei,
             DMBTR type bsik-DMBTR,
             budat type bsik-budat,
             shkzg type bsik-shkzg,
             ebeln type bsik-ebeln,
             lifnr type bsik-lifnr,
             end of ty_bsik.
    types : begin of ty_bsak,
             belnr type bsak-belnr,
       lifnr type bsak-lifnr,
        ebeln type bsak-ebeln,
             DMBTR_C type bsak-DMBTR,
    ZUONR type bsak-ZUONR,
             end of ty_bsak.
    types: begin of ty_bkpf,
             BELNR type bkpf-belnr,
             xblnr type bkpf-xblnr,
             awkey  type bkpf-awkey,
           end of ty_bkpf.
    data: it_po type standard table of ty_po,
           it_ekko type standard table of ty_ekko,
           it_ekpo type standard table of ty_ekpo,
           it_eban type standard table of ty_eban,
           it_ekbe type standard table of ty_ekbe,
           it_mseg type standard table of ty_mseg,
           it_rbkp type standard table of ty_rbkp,
           it_rseg type standard table of ty_rseg,
           it_bseg type standard table of ty_bseg,
           it_bsik type STANDARD TABLE OF ty_bsik with header line,
           it_bsak type STANDARD TABLE OF ty_bsak,
           it_bkpf type standard table of ty_bkpf,
           wa_po type ty_po,
           wa_ekko type ty_ekko,
           wa_ekpo type ty_ekpo,
           wa_eban type ty_eban,
           wa_mseg type ty_mseg,
           wa_rbkp type ty_rbkp,
           wa_rseg type ty_rseg,
           wa_bseg type ty_bseg,
           wa_ekbe type ty_ekbe,
           wa_bsik type ty_bsik,
           wa_bsak type ty_bsak,
           wa_bkpf type ty_bkpf.
    data: it_fcat type slis_t_fieldcat_alv,
           it_lshead type slis_t_listheader,
           it_sort type slis_t_sortinfo_alv,
           wa_fcat type slis_fieldcat_alv,
           wa_lshead type slis_listheader,
           wa_layout type slis_layout_alv,
           wa_sort type slis_sortinfo_alv.
    data :it_cl_data like table of clobjdat,
           wa_cl_data like clobjdat.
    data: values(10) type n.
    data: value1(4) type N.
    data: c_matkl type ekpo-matkl,
           c_matnr type ekpo-matnr,
           c_ekgrp type eban-ekgrp,
           c_badat type eban-badat,
           c_index type sy-tabix,
           c_grmenge type mseg-erfmg,
           c_low(10) type c,
           c_high(10) type c,
           c_date type string,
           c_bukrs type ekko-bukrs,
           c_WERKS type eban-WERKS.
    data: gd_date(10).
    DATA: V_EVENTS TYPE SLIS_T_EVENT,
           WA_EVENT TYPE SLIS_ALV_EVENT.
    *********Selection screen variables*********
    selection-screen:begin of block b1 with frame title text-001.
    select-options: s_bukrs for c_bukrs DEFAULT  'bmp1',
                     s_WERKS for c_WERKS,
                     s_matnr for c_matnr DEFAULT 'rm-01',
                     s_matkl for c_matkl ,
                     s_badat for c_badat ,"obligatory,
                     s_ekgrp for c_ekgrp.
    parameters: ch_bal as checkbox.
    selection-screen:end of block b1.
    *initialization.
    * PERFORM EVENT_CALL.
    *  PERFORM POPULATE_EVENT.
    start-of-selection.
         PERFORM EVENT_CALL.
       PERFORM POPULATE_EVENT.
       perform getdata.
       perform setdata.
       perform fieldcat.
       perform display.
    *&      Form  GETDATA
    form getdata .
       select a~BANFN
              a~bnfpo
              a~ekgrp
              a~badat
              a~KNTTP
              a~PSTYP
              b~ebeln
              b~ebelp
              b~matkl
              b~matnr
              b~bukrs
              into corresponding fields of table it_po
              from eban as a inner join ekpo as b
              on a~banfn = b~banfn and
                 a~bnfpo = b~bnfpo AND
                 A~KNTTP = B~KNTTP and
                 a~PSTYP = b~PSTYP
              where  a~badat in s_badat and
                     a~ekgrp in s_ekgrp and
                     a~WERKS in s_WERKS and
                     b~matnr in s_matnr and
                     b~matkl in s_matkl and
                     b~bukrs in s_bukrs and
                     b~loekz <> 'L' and
                     a~loekz <> 'X'.
       if it_po[] is not initial.
         select ebeln
                ebelp
                matnr
                txz01
                menge
                meins
                netpr
                peinh
                banfn
                bnfpo
                mtart
                from ekpo into table it_ekpo
                for all entries in it_po
                where ebeln = it_po-ebeln and
                      ebelp = it_po-ebelp and
                      loekz <> 'L'.
         select banfn
                bnfpo
                matnr
                menge
                meins
                from eban into table it_eban
                for all entries in it_po
                where banfn = it_po-banfn and
                      bnfpo = it_po-bnfpo and
                      loekz <> 'X'.
         if it_ekpo[] is not initial.
           select ebeln
                  lifnr
                  bedat
                  from ekko into table it_ekko
                  for all entries in it_ekpo
                  where ebeln = it_ekpo-ebeln.
           select ebeln
                  ebelp
                  belnr
                  bldat
                  gjahr
                  buzei
                  matnr
                  DMBTR
                  shkzg
                  from ekbe into table it_ekbe
                  for all entries in it_ekpo
                  where ebeln = it_ekpo-ebeln and
                        ebelp = it_ekpo-ebelp .
    *if it_ekbe-shkzg = 'H'.
    **ekbe-dmbtr = ekbe-dmbtr * -1.
    **ekbe-menge = ekbe-menge * -1.
    *endif.
    * select belnr
    *             gjahr
    *             ebeln
    *             ebelp
    *     from bseg into table it_bseg
    *             for all entries in it_ekpo
    *             where ebeln = it_ekpo-ebeln and
    *                   ebelp = it_ekpo-ebelp.
           select belnr
                  gjahr
                  ebeln
                  ebelp
                  matnr
                  bukrs
                  from rseg into table it_rseg
                  for all entries in it_ekpo
                  where ebeln = it_ekpo-ebeln and
                        ebelp = it_ekpo-ebelp.
         endif.
         if it_ekbe[] is not initial.
           select mblnr
                  mjahr
                  zeile
                  menge
                  meins
                  ebeln
                  ebelp
                  matnr
                  werks
                  charg
                  from mseg into table it_mseg
                  for all entries in it_ekbe
                  where mblnr = it_ekbe-belnr and
                        mjahr = it_ekbe-gjahr and
                        zeile = it_ekbe-buzei and
                        bwart = '101'.
         endif.
         if it_rseg[] is not initial.
           select belnr
                  gjahr
                  bldat
                  lifnr
                  ZUONR
                  RMWWR
                  WMWST1
                  from rbkp into table it_rbkp
                  for all entries in it_rseg
                  where belnr = it_rseg-belnr.
         endif.
    *if it_rseg[] is not initial.
    *      SELECT bukrs
    *              belnr
    *              gjahr
    *              buzei
    *              valut
    *              wrbtr
    *              augbl
    *              matnr
    *              lifnr
    *              ebeln
    *        INTO TABLE it_bseg
    *          FROM bseg
    *          FOR ALL ENTRIES IN it_rseg
    *          WHERE bukrs = it_rseg-bukrs and ebeln = it_rseg-ebeln and mwskz = ''.
    *endif.
    *loop at it_BKPF into wa_BKPF.
    *  values = wa_rbkp-belnr.
    *  value1 = wa_rbkp-gjahr.
       data: aekey_1 type string .
    *CONCATENATE values value1 into aekey_1.
    *  if it_BSEG[] is not initial.
    *MESSAGE aekey_1 type 'I'.
           SELECT single belnr xblnr awkey into wa_bkpf
             from bkpf
             where awkey = aekey_1.
    SELECT SINGLe belnr
    buzei
    dmbtr
    budat
       shkzg
       ebeln
       lifnr
       FROM bsik
    INTO CORRESPONDING FIELDS OF  wa_bsik
    *FOR ALL ENTRIES IN it_bseg
    WHERE
        bukrs in s_bukrs and
        lifnr = wa_rbkp-lifnr
    and
    *AND gjahr = it_bseg-gjahr
    * AND
        belnr = wa_bkpf-belnr.
    insert wa_bsik into table it_bsik.
    CLEAR wa_bsik.
    CLEAR it_bsik.
    *endloop.
    * and ebeln = it_bseg-ebeln .
    *    select BELNR
    **           SHKZG
    **           DMBTR
    *           from bkpf into table it_bkpf
    *            for ALL ENTRIES IN it_rbkp
    *            where belnr = it_rbkp-belnr.
    *        ENDif.
    IF IT_bseg[] IS NOT INITIAL.
           select belnr
             LIFNR
             ebeln
                  DMBTR
              ZUONR
                  from bsik into table it_bsik
                  for all entries in it_bseg
                  where belnr = it_bseg-belnr.
           select belnr
             LIFNR
             ebeln
                  DMBTR
              ZUONR
                  from bsak into table it_bsak
                  for all entries in it_bseg
                  where belnr = it_bseg-belnr.
    ENDIF.
       else.
         message s002.
         leave list-processing.
       endif.
    endform.                    " GETDATA
    *&      Form  SETDATA
    form setdata .
       clear wa_po.
       loop at it_po into wa_po.
         c_index = sy-tabix.
    ********Calculate PR Quantity**********
         clear wa_eban.
         read table it_eban into wa_eban
                    with key banfn = wa_po-banfn
                             bnfpo = wa_po-bnfpo.
         if sy-subrc eq 0.
           move:wa_eban-menge to wa_po-menge,
                wa_eban-meins to wa_po-meins.
         endif.
    ********Calculate PO Quantity**********
         clear wa_ekpo.
         read table it_ekpo into wa_ekpo
                    with key banfn = wa_po-banfn
                             bnfpo = wa_po-bnfpo .
         if sy-subrc eq 0.
           move:wa_ekpo-txz01 to wa_po-txz01,
                wa_ekpo-netpr to wa_po-netpr,
                wa_ekpo-peinh to wa_po-peinh,
                wa_ekpo-mtart to wa_po-mtart,
                wa_ekpo-menge to wa_po-menge1,
                wa_ekpo-meins to wa_po-meins1.
         endif.
    ********Calculate Balance Quantity******
         clear wa_mseg.
         loop at it_mseg into wa_mseg
                where ebeln = wa_po-ebeln and
                      ebelp = wa_po-ebelp.
           c_grmenge = c_grmenge + wa_mseg-menge.
         endloop.
         move:wa_mseg-mblnr to wa_po-mblnr,
              c_grmenge to wa_po-menge2,
              wa_mseg-meins to wa_po-meins2,
              wa_mseg-werks to wa_po-werks,
              wa_mseg-charg to wa_po-charg.
         wa_po-balqty = wa_eban-menge - c_grmenge.
         clear : wa_rseg,wa_rbkp.
         read table it_rseg into wa_rseg with key
                        ebeln = wa_mseg-ebeln
                        ebelp = wa_mseg-ebelp.
         read table it_rbkp into wa_rbkp
                    with key belnr = wa_rseg-belnr
                             gjahr = wa_rseg-gjahr.
         if sy-subrc eq 0.
           move : wa_rbkp-belnr to wa_po-belnr,
                  wa_rbkp-bldat to wa_po-bldat,
                  wa_rbkp-RMWWR to wa_po-RMWWR,
                  WA_RBKP-WMWST1 TO WA_PO-WMWST1.
         endif.
           read table it_bseg into wa_bseg with key
                         ebeln = wa_rseg-ebeln
                         bukrs = wa_rseg-bukrs.
           if sy-subrc eq 0.
             move wa_bseg-belnr to wa_po-belnr_d.
           endif.
    *    read table it_bkpf into wa_bkpf
    *    with key belnr = wa_ekbe-belnr.
    *    read table it_bseg into wa_bseg
    *    with key belnr = wa_bkpf-belnr.
    CLEAR wa_bsik.
    clear it_bsik.
         read table it_bsik into wa_bsik
         with key belnr = wa_bkpf-belnr.
    *    if wa_bsik-shkzg = 'H'.
    *     wa_bsik-DMBTR = wa_bsik-DMBTR * 1.
    *     endif.
           if sy-subrc eq 0.
             move : wa_bsik-belnr to wa_po-belnr,
                     wa_bsik-DMBTR to wa_po-DMBTR.
            endif.
    *    clear wa_bsik.
    *    read table it_bsik into wa_bsik
    *               with key  belnr = wa_bseg-belnr.
    *    if sy-subrc eq 0.
    *        move : wa_bsik-DMBTR to wa_po-DMBTR.
    *    endif.
    *clear wa_bsak.
    *    read table it_bsak into wa_bsak
    *               with key  belnr = wa_bseg-belnr.
    *    if sy-subrc eq 0.
    *        move : wa_bsak-DMBTR_C to wa_po-DMBTR_C.
    *    endif.
    *clear : wa_rbkp.
    *loop at it_bsik into wa_bsik.
    *read table it_bsik into wa_bsik with key belnr = wa_rbkp-belnr.
    *if sy-subrc eq 0.
    *  move : wa_bsik-DMBTR to wa_po-DMBTR.
    *    endif.
    *endloop.
    *********Assign Vendor,PO Date*********
         clear wa_ekko.
         read table it_ekko into wa_ekko
                    with key ebeln = wa_po-ebeln.
         if sy-subrc eq 0.
           move:wa_ekko-lifnr to wa_po-lifnr,
                wa_ekko-bedat to wa_po-bedat.
         endif.
    *clear wa_ekko.
    *read table it_ekko into wa_ekko
    *with key lifnr = wa_po-lifnr.
    *if sy-subrc eq 0.
    *  move: wa_bsik-DMBTR to wa_po-DMBTR.
    *  endif.
    *    call function 'ZSD_BATCH_CLASSIFICATION_DATA'
    *      exporting
    **        ch_charg                   = wa_po-charg
    *        ch_matnr                   = wa_po-matnr
    *        ch_werks                   = wa_po-werks
    *      tables
    *        cl_data                    = it_cl_data
    **       I_SEL_CHARACTERISTIC       =
         loop at it_cl_data into wa_cl_data.
           if wa_cl_data-ausp1 ne '?'.
             if wa_cl_data-atnam eq 'THICKNESS'.
               move wa_cl_data-ausp1 to wa_po-thick.
             elseif wa_cl_data-atnam eq 'LENGTH'.
               move wa_cl_data-ausp1 to wa_po-length.
             elseif wa_cl_data-atnam eq 'WIDTH'.
               move wa_cl_data-ausp1 to wa_po-width.
             elseif wa_cl_data-atnam eq 'GRADE'.
               move wa_cl_data-ausp1 to wa_po-grade.
             endif.
           endif.
         endloop.
         modify it_po from wa_po index c_index.
         clear :c_grmenge,wa_po,wa_ekpo,wa_mseg,c_index.
       endloop.
    endform.                    " SETDATA
    *&      Form  FIELDCAT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form fieldcat .
       perform buildfields using '1' 'BANFN'  'IT_PO' 'PR Number' '' ''.
    *  perform buildfields using '2' 'BNFPO'  'IT_PO' 'PR Item Number' '' ''.
       perform  buildfields using '2' 'KNTTP' 'IT_PO' 'A/c Assignment Cat' '' ''.
       perform  buildfields using '2' 'PSTYP' 'IT_PO' 'Item Cat' '' ''.
       perform buildfields using '3' 'EKGRP'  'IT_PO' 'Purchase Group' '' ''.
       perform buildfields using '4' 'BADAT'  'IT_PO' 'Request Date' '' ''.
       perform buildfields using '5' 'MENGE'  'IT_PO' 'PR Quantity'  'X' ''.
       perform buildfields using '6' 'MEINS'  'IT_PO' 'PR Unit' '' ''.
       perform buildfields using '7' 'LIFNR'  'IT_PO' 'Vendor Number' '' ''.
       perform buildfields using '8' 'EBELN'  'IT_PO' 'Purchasing Doc No' '' ''  .
       perform buildfields using '9' 'BEDAT'  'IT_PO' 'PO Date' '' ''.
       perform buildfields using '10' 'MTART' 'IT_PO' 'Material Type' '' ''.
       perform buildfields using '11' 'MATKL' 'IT_PO' 'Material Group' '' ''.
       perform buildfields using '12' 'MATNR' 'IT_PO' 'Material Number' '' ''.
       perform buildfields using '13' 'TXZ01' 'IT_PO' 'Material Desc' '' ''.
       perform buildfields using '18' 'MENGE1' 'IT_PO' 'PO Quantity' 'X' ''.
       perform buildfields using '19' 'MEINS' 'IT_PO' 'PO Unit' '' ''.
       perform buildfields using '20' 'NETPR' 'IT_PO' 'Net Price' '' ''.
       perform buildfields using '21' 'PEINH' 'IT_PO' 'Price Unit' '' ''.
       perform buildfields using '22' 'MBLNR' 'IT_PO' 'GR Number' '' ''.
       perform buildfields using '23' 'MENGE2' 'IT_PO' 'GR Quantity' 'X' ''.
       perform buildfields using '24' 'MEINS2' 'IT_PO' 'GR Unit' '' ''.
       perform buildfields using '25' 'BELNR' 'IT_PO' 'Invoice doc. number' '' ''.
       perform buildfields using '26' 'BLDAT' 'IT_PO' 'Invoice Date' '' ''.
    *  perform buildfields using '26' 'BELNR_D' 'IT_POP' 'A/C Doc. No.' '' ''.
    *  perform buildfields using '26' 'AUGBL' 'IT_PO' 'Clearing Doc No.' '' ''.
       perform buildfields using '26' 'DMBTR' 'IT_PO' 'OPEN AMOUNT' '' ''.
      perform buildfields using '26' 'DMBTR' 'IT_PO' 'clear AMOUNT' '' ''.
    *  perform buildfields using '26' 'DMBTR_C' 'IT_PO' 'Clear balance' '' ''.
       if ch_bal = 'X'.
         perform buildfields using '27' 'BALQTY' 'IT_PO' 'Balance Quantity'
         'X' ''.
       endif.
       perform buildfields using '26' 'WMWST1' 'IT_PO' 'TOTAL TAX ADDED' 'X' ''.
       perform buildfields using '26' 'RMWWR' 'IT_PO' 'TOTAL AMOUNT IN INVOICE' 'X' ''.
    endform.                    " FIELDCAT
    *&      Form  BUILDFIELDS
    *       text
    *      -->P_0449   text
    *      -->P_0450   text
    *      -->P_0451   text
    *      -->P_0452   text
    form buildfields  using    value(p_col_pos) like sy-cucol
                                value(p_fldname) type slis_fieldname
                                value(p_tabname) type slis_tabname
                                value(p_reptext) like dd03p-reptext
                                value(p_do_sum) type char1
                                value(hotspot) type char1.
       wa_fcat-col_pos = p_col_pos.
       wa_fcat-fieldname = p_fldname.
       wa_fcat-tabname = p_tabname.
       wa_fcat-reptext_ddic = p_reptext.
       wa_fcat-do_sum = p_do_sum.
       wa_fcat-hotspot = hotspot.
       append wa_fcat to it_fcat.
       clear wa_fcat.
    endform.                    " BUILDFIELDS
    *&      Form  DISPLAY
    form display .
       clear wa_layout.
       wa_layout-zebra = 'X'.
       wa_layout-colwidth_optimize = 'X'.
    * wa_layout-box_fieldname     = 'SEL'.
    * wa_layout-edit = 'X'.
       perform build_sort using 'BANFN' '1' 'X'.
       call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                = ' '
    *   I_BUFFER_ACTIVE                   = ' '
          i_callback_program               = sy-cprog
    *   I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND '
          i_callback_top_of_page           = 'TOP_OF_PAGE'
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
        i_background_id                   = 'ALV_BACKGROUND'
    *   I_GRID_TITLE                      =
    *   I_GRID_SETTINGS                   =
          is_layout                        = wa_layout
          it_fieldcat                      = it_fcat
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
         it_sort                           = it_sort
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
    *   I_DEFAULT                         = 'X'
        I_SAVE                            = 'A'
    *   IS_VARIANT                        =
    *   IT_EVENTS                         =
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT                          =
    *   IS_REPREP_ID                      =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   I_HTML_HEIGHT_TOP                 = 0
    *   I_HTML_HEIGHT_END                 = 0
    *   IT_ALV_GRAPHICS                   =
    *   IT_HYPERLINK                      =
    *   IT_ADD_FIELDCAT                   =
    *   IT_EXCEPT_QINFO                   =
    *   IR_SALV_FULLSCREEN_ADAPTER        =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
         tables
           t_outtab                          = it_po[]
      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
    *&      Form  top_of_page
    *       text
    form top_of_page.                                           "#EC *
    **********Create report header*********
       refresh it_lshead.
       clear wa_lshead.
    **********To display date in header*********
    *  write: s_badat-low to c_low dd/mm/yyyy,s_badat-high to c_high
    *  dd/mm/yyyy.
    *  if s_badat-high is initial.
    *    concatenate 'Dated on' c_low into c_date separated by space.
    *  else.
    *    concatenate 'Dated between' c_low 'and' c_high into c_date separated
    *    by space.
    *  endif.
       wa_lshead-typ = 'H'.
       wa_lshead-info = 'PR To Payment History'.
    *  'Pending Indents History -

    We had a requirement to retrieve "aging of receiveables" by customer. Basically, it goes thru each record and depending on the due date places the amounts in the following buckets (example). 0-30 day Overdue, 31-60 days Overdue, 61-90 days overdue, 30+ days overdue, 60+ days overdue) etc all the way to 6+ years overdue.
    There are also cooresponding buckets for coming due analysis. For example, what is: 0-30 days coming due, 31-60 days coming due, 30+ days coming due, etc...
    To do this, first I needed to be able be able to produce an open items statement at any given time in the past. Now, this seems impossible because of how the items go from open to cleared all the time. And an item that was open one month ago, may not be open anymore.
    What I did was first remove any selections on item status. Then compare the posting date with teh key date in the past, if the posting date is less than or equal to the key date, keep the record.
    Then compare the clearing date with the key date. First, keep all that are #. (This keeps all records still open from that posting date/key date)
    Then, add another check for all items that were cleared after the key date (GT Key Date). This gives you the open items on that date.
    Hope that makes sense. Let me know if you want clarification.
    /smw

  • Payment run  - should not clear the open item but should post payment doc

    Hi Gurus,
    Can you please help me , on how to acheive like when payment run F110 post the payment doc it should not close the open item rather keep that open item as open item , but hsould be be paid by payment doc posted through payment run F110.
    Have any one of you had similar requirement ..? FICO gurus help me to acheiev this .. any exit /BADI ..or ideas..
    Appreciate your help in advance

    HI ,
    Thanks for your reply , but still I am not clear on that.
    reason they want to keep this open to be kept as open item , so that item will be picked up by dunning run ..
    Basically  the open invoice is being cleared by payment doc which was generated by payment run. If we look at BSEG in the open item record BSEG-AUGBL = will have the clearing doc number , and in addition to that BSEG will have created another record for the clearing doc as well .
    May be since open invoice record is being updated with clearing doc (AUGBL ) , I belive its not shown up as open item .
    Somehow this item should be kept as open item ... that is the req and also paid item payment reference should be transfered to Bill of exchange as well.
    Hope you have clear background of my req...
    Tnanks in advance ,

  • AuC Down Payment not clearing

    Hi Gurus,
    The scenario is that we are using WBS elements to collect costs for AuC. So project Consumption POs were raised and down payments were made against them. Now at the year end some of these need to be settled to AuC.
    This we did and down payments appeared on AuC through a default cost element mentioned in PS  IMG u2018Define default cost elements for down paymentsu2019. This vendor down payment element 7XXXXXX has no Company code segment.
    We understand that these down payments are to be cleared but since the account assignment object in actual vendor down payment line item has WBS element and when we clear it through F-52, clearing doesnu2019t update (FI AA) asset data since no asset number is mentioned in actual vendor down payment line item. So it keeps throwing following error message.
    Down payment to recipient 7011000002 0 area 01 amount        2,200.00 not cleared
    Message no. AW605
    Diagnosis
    All downpayments were not cleared for the asset under construction for the receiver 7011000002 0 in area 01. An amount of        2,200.00 was not cleared, or too much was cleared.
    You can only completely transfer an asset under construction if you reverse the down payments in the current fiscal year beforehand.
    Procedure
    Clear the downpayments that you want to settle to receiver 7011000002 0.
    Please help how to settle this without reversing downpayments as checks were issued to vendors already.

    Hi
    Reverse the settlement of WBS to AUC, first of all....
    Clear the downpayments, which would again post to WBS...
    Now settle WBS to AUC and AUC to Final asset...
    br, Ajay M

  • Down payments status not cleared.

    Hi,
    We are working with down payments by standard customizing. Everything works fine if the Down payment request has status cleared before the invoices, however If the down payment request still with status not cleared the following invoices doesnu2019t get the down payment and we can bill all the items from the milestone billing and if the down payment still not cleared it never appear in the invoices. So at the end the sales orders have sent to the client a bigger amount. That is a situation is wrong and  we would like to avoid in order to avoid a lot of problems with our clients because the system doesnu2019t give any warning informing about you have send to the client the 120% of the sales order, if we have bill a down payment request for 20%. Our understanding the system always should get the down payment in the invoices or at least give a warning when you finish the billing without clear the down payments. We would like to know the right way to manage this situation.
    Thank you and best regards.

    HI Venkat,
    Sorry Venkat. It is the clarance in F-54 not the Revesal.
    After clearance, the amount 29.000,00 is posted to Vendor Spl GL. So nullified this account.
    Once cleared, the amount is posted to Normal Vendor ac as 34.510,00 (Doc 1700000043)
    So this doc is not picked in Payment Run.
    Invoice amount is 49.623,00-.  So the difference 15113 (49.623,00-34.510,00) should be cleared in Payment run. It is not done.
    My assumption is there is the amount difference between Normal Vendor to Speial Vendor (34,510 - 29000).  Is it the cause to not picked the doc 1700000043 in payment run.
    Please advise what I can do?
    Thanks
    Venkat

  • When we run F110 on multiple vendors, some vendors check not printed

    When we run f110 on Multiple vendors (payment method is C). Some vendors do not get a check. how ever a payment document is created. I can see the posting in FBL1n.
    the text of the error message is thus:
    "The following payment documents/payment orders were not updated 
    (Result of the payment document update)                         
        CoCd Payment document/Payment order                         
        (payment document numbers are listed here)                                            
    The accompanying payment media have not been generated"
    Has anyone had this problem before?
    All help is appreciated.          
    -Pratibha

    Hi Pratibha
    The reason may be
    the vendor having a separate house bank in vendor master wrt to the varient u have given when running app.
    If the variant not belongs  the vendor house bank with payment method combination, then only the accounting entry will be updated.
    Pls check.
    Srinivas

  • Vendor Account not getting automatically cleared using F.13 (OB74)

    Dear Sir / Mam,
    I want to clear vendor account open item based on assignment field.
    for this
    1. I configured OB74 as below
    YAIN     K     0     9999999999     ZUONR (where YAIN = COA)
    2. One of my vendor account # 300031 is appearing as below
    Assignment              DocumentNo      Type          Doc. Date          Amount in local cur.
    TestF.13                100000034            SA           17.02.2012                   275.00
    TestF.13                5100000266          RE            20.05.2010                   275.00-
    3. I executed T-Code F.13 and I selected CoCode, FY, Flagged Select Vendor Option & selected Vendor Account Number and executed in Production Run where in I am getting the following message.
    I  Program started by:           " CSPL
    I  Start date     " 17.02.2012  Start time     " 23:44:04
    S  No customer documents selected
    S  No G/L account documents selected
    I  Only accounts with debit and credit postings are included
    I  Stop date      " 17.02.2012  Stop time      " 23:44:05
    There after If i go and check the vendor account the open item are still open!
    I want to clear it through T-Code F.13 as I have mass documents be cleared like this.
    (Therefore I am not clearing it through F-44)
    Please guide me as where am I going wrong.
    Thanks In Anticipation
    Regards
    Chirag Shah

    Dear Jessica,
    In OB74,
    I have Put my chart of accounts - YAIN,
    Account type K,
    From / To accounts  as 0 to 99999999 (as they are numbered/charactered in the master record),
    criteria 1 is ZUONR.
    Account doesn't have Zero Balance but there are few line items with comman assignment text total of which is ZERO in Doc Currency (As I have shown in query)
    in F.13
    Clearing date is tried as 17-02-2012 as well as 18-02.2012
    Unticked Test run (= Production RUN)
    and executed.
    But still it shows the given below details, gives the same message and not clearing the line items.
        CoCd AccTy Account number   G/L           Open Items    Clrd Items
        1000 K     0000300031       0030021002            9             0       
    Thanks & Regards
    Chirag Shah

Maybe you are looking for