Commission Query not picking up payment on Account linked later

Hi Experts,
I created a query for a Client who need to pay Sales Commission to Sales Employees. This report must show only the Invoices that was Paid.
The Query works fine, exept that it will not pick up the following Payments: When they makie a Incoming Payment on Account and then later link it to an Invoice via the Internal Reconciliation screen.
SELECT T0.[DocNum] AS 'Incoming Payment', T0.[DocDate] AS ' Incoming Payment Date', T0.[CardCode], T0.[CardName],  T3.[SlpName], T3.[Commission], T1.[DocNum] AS 'Invoice Number', T2.[OpenSum] AS 'Invoice Line Amounts', T2.[OpenSum] * T3.[Commission] / 100 AS 'Commission Amount'
FROM ORCT T0  INNER JOIN OINV T1 ON T0.DocEntry = T1.ReceiptNum INNER JOIN INV1 T2 ON T1.DocEntry = T2.DocEntry INNER JOIN OSLP T3 ON T1.SlpCode = T3.SlpCode
WHERE T0.[DocDate] >=[%0] AND  T0.[DocDate] <=[%1]
How can I get these Invoices that was linked to a Payment to also show in this query?
Thanks,
Marli

I know that this is an old post, but in case someone else wants to use this code I wanted to point out that this code assumes that only invoices are included in payments.  If other types such as deposits or credits are included in the payment, then you will get the wrong results.
Need to change the link to OINV slightly to check the document type for Invoices
JOIN
OINV T1 ON T1.DocEntry = T4.DocEntry AND T4.InvType = 13 -- AR Invoice Hdr
Then need to do this same for the other possible document types.

Similar Messages

  • System is not picking bank out going account in TBB1

    Hi All,
    I am facing the problem in TBB1 accounting entries, system is picking the bank main account (From House bank/account id assigned GL) Not picking Bank out going account from account determination
    Example:
    Accounting entry at the time of TBB1: (Term start)
    Wrong entry
    Dr. Fixed Term Deposit GL account
    Cr. Bank Main account (Which is assigned in House bank/account ID)
    Correct accounting entry should be like this:
    Dr. Fixed Term Deposit GL account
    Cr. Bank out going account
    I have checked the Payment configuration but still not able to identify the issue
    Thank in advance for your help and support
    Regards,
    MS

    Hi Ravi,
    I was going through your reply.
    I needed some clarity on my understanding please confirm it.
    Suppose Bank Account is : 113150 ( Created in FS00)
    Bank Clearing Account for Treasury Clearing purpose is 114150 (not yet created in FS00)
    Bank Clearing for non treasury clearing purpose is 112150 (created in FS00)
    in my account determination of TRM I have maintained masking as ++++++4+++
    then in this case when posting happens Account picked up will be 114150 based on my House Bank detail in payment tab.
    Although 114150 is not created in FS00 and not maintained in T042Y in FBZP. and system will throw error.
    Am I right?
    Please confirm the understanding.

  • Document type KR is not picking to Clear GL account with T-code F-03

    Hi all,
    My client wants to clear GL account Cash-in-Transit which is open item managed. He has posted two items. One is with KR document type like Intercompnay adjustment account debit (40) and Cash-in-Transit account credit (50). Second item is with SA document type like Cash-in-Transit accont debit (40) and Intercompany adjustment account credit (50). He did not give vendor number and appropriate posting key (31) while postings. With document type KR, he posted with posting keys 40 and 50. Now while clearing the GL account through T-code F-03, system is picking only SA document type. The system is not picking document type KR. He wants to clear the items with each other. I have checked the document type settings. Check boxes Intercompany postings and trading partner are active in both above document types.
    How can the GL account be cleared ? Are any configuration settings missing ? Kindly advice as soon as possible.
    Thanks in advance.
    Regards,
    K.S.K

    Hi,
    First of all..why would system need a Exchange gain/Loss Account..If your local currency is INR and you posted a debit and a credit document both in INR..then there is no question of a foreign exchange gain/loss account..
    BUT, if you have posted the document in any currency other than INR, ie: your local currency...then the system would need a exchnage gain/loss account when you try to clear the debits and credits.. i am giving an example below to explain better..
    You posted a debit of 100 USD @ 40 = Rs. 4000.00
    You posted a Credit of 100 USD @ 42 = Rs. 4200.00
    Now, if you clear this debit and credit then there is no difference in 100 USD, as the debit and credit is netting off.. but if you see INR there is a difference of Rs. 200.00 which system posts to Exchange gain/loss account..which we maintain in OB09.
    Hope it is clear to you now..
    Regards,
    SAPFICO.

  • Invoice is not picked for payment

    Hello SAP guru's
    I am facing a strange issue with Invoice for payment.
    Here, Invoice had been paid and later check was voided and move to open payables but later It's not picked for the payment run after i change the payment terms to Immediatley.
    what could be  the cause for this? any idea will be appreciated with good reward points.
    rgds,

    Thanks for reply.
    This Invoice is in open payables as i said.
    Due date : 08/26/2007, payment terms : PT00 ( pay immediatley).
    Other invoices posted after this document to this vendor are posted and paid without any issue.
    I am not sure how to check the payment run to consider this invoce for payment though all above parameters allow for payment immediatley.
    rgds,

  • Commission Group not picking in sales order

    Hi
    We have created the Commission Group (ie. 6 ) in product master in R/3 and successfully downloaded in to CRM product master.  When we create the sales order in CRM the relevant commission is not being picked up in the order from the product master. When we check at the item level of the order under general tab by default the commission grp is taken as 1 instead of 6 which was maintained in the product master.
    All the other date like Vol rebate grp , Product group and product hierarchy has picked up correctly from product master. Only Commission grp is not getting picked as maintained in product master.
    Plz help.
    Rgds
    Praveen Raj

    Hi Dave,
    As you suggested first execute PP order settle to sales order which I have done. After that I have done RA on Sales Order through KKA3. It has saved the record and value flows correctly. After that while I am going to VA88 for Sales Order settlement it is asking for setlment rule which I doubt. If the Sales order is sender what will be its receiver ? During PP order settle to sales order it was PP order in sender and receiver category was material and reciver was Sales document Numeber. What will be its reciver when Sales order is sender.
    Kindly need your valuable suggestion ...
    Best Regards,
    Samrat Roy
    Edited by: Samrat Roy on Feb 10, 2012 2:49 AM

  • Profit Center not picked in Payment documents

    The problem concerns incoming payment with clearing invoices, in the same time, the profit center is
    not taken automatically from invoice to payment document. How can the same be achieved.

    Dear Sir and Madam.
    the configuration Team has to Enable the concepts on Profit Center that can be able to Pick,.
    They enabled the Cost Center are Bus area.
    Please Check this two is Active that is not required to get the reports
    Thanks and Regards
    N,.Soma Sundaram

  • Query not picking up Cache

    Guys
    I am probably misunderstanding but would appreciate some explaination.
    I have run an OLAP Cache pre-populate Bex Broadcast, which sets up (as I can see in RSRCACHE) a cache setting of:
    Fixed Forecast EQ 01.07.2014
    Calendar Week EQ 01.2014
    Calendar Week EQ 02.2014
    Material Group EQ 182
    Material Group EQ 183
    Material Group EQ 184
    So as you can see the OLAP Cache populate variant sets up 2 weeks in  alist, and 3 Material Groups in a list.
    I then manually run the same query with the following selection:
    Fixed Forecast = 01.07.2014
    Calendar Week = 01.2014
    Material Group = 182
    I expected this to use the cache I had populated, but it appears it didn't because I now have a new setting showing in RSRCACHE:
    Fixed Forecast EQ 01.07.2014
    Calendar Week EQ 01.2014
    Material Group EQ 182
    Effectively this new cache is a full subset of the pre-populate cache I initially setup.
    I want to pre-populate cache for a range of selection that the customer typically does, but there are far too may Week/Material combinations to set each one up individually. Am I setting something wrong?
    I also tried the initial cache pre-populate as a range rather than a list, and saw the same behaviour (the only difference being the initial cache used a BT rather than 2 EQ lines.
    By the way, globally and for InfoProvider we are set as Cache Mode=1, but this specific uery is using cache mode 4 (this is a test as we are multiple application server environment)
    Regards
    Simon

    I know that this is an old post, but in case someone else wants to use this code I wanted to point out that this code assumes that only invoices are included in payments.  If other types such as deposits or credits are included in the payment, then you will get the wrong results.
    Need to change the link to OINV slightly to check the document type for Invoices
    JOIN
    OINV T1 ON T1.DocEntry = T4.DocEntry AND T4.InvType = 13 -- AR Invoice Hdr
    Then need to do this same for the other possible document types.

  • OBIEE Issue - Physical Query not picking cascaded Conditions

    In one the OBIEE Reports, I have given a set of NOT LIKE conditions as below:
    Session Name is not LIKE (pattern match) '%AUDIT%'
    AND Session Name is not LIKE (pattern match) '%audit%'
    AND Session Name is not LIKE (pattern match) '%Audit%'
    But when we refresh the report, it filters only records which uses AUDIT keyword as part of Session Names. When I checked the session log (attached for reference), I found that though logical table query takes those three conditions, while firing against database Physical Query contains condition only for AUDIT wild card as filter. Whether there is any limitation applied on using NOT LIKE conditions or is it a bug or the way the conditions are sequenced is wrong (in OBIEE sense).

    Thanks buddy. Though this workaround will solve the issue, I am curious to know why OBIEE behaves such a way. Its peculier to see OBIEE admits all 3 conditions in logical query where the Physical query skips few of the conditions in session log itself.

  • Automatic Payment Program(F111) not picking Bank Sub accounts

    Dear all,
    The entiries genertaed from automatic payment program(F111) is not picking the bank sub accounts (Receipts/Payment GLs) which are given in the following node:-
    Financial Accounting --> Bank Accounting --> Business Transactions -->Payment Transactions --> Payment Request --> Define Clearing Accts forReceiving Bank for Acct. Transfer
    It is picking the Main Bank GL, which has given in bank master(FI12).
    Please advise.
    Thanks & regards
    Ramesh Nair

    Hi,
    The config : Financial Accounting --> Bank Accounting --> Business Transactions -->Payment Transactions --> Payment Request --> Define Clearing Accts for Receiving Bank for Acct. Transfer
    Is to decide bank sub account of the sending bank, when you are doing Bank to Bank transfer. This is manditory for cash management bank to bank transfer. Please read the config documentation again.
    I just cut and paste from SAP documentaion.
    "In this activity you define the offsetting accounts for the receiving bank accounts for bank account transfers (payments between house bank accounts) which should be posted to when payment is made.
    The entries are necessary when payment requests are created for cash management payment advice notes that result from cash concentration, for example. The offsetting accounts for the paying house bank are determined by the payment program specifcations and the payment methods used. The offsetting accounts for the receiving house bank cannot be determined from these specifications, however, but can be defined in this section. "
    Now, when you are creating payments with F111 and if you want to get sub accounts for house bank you have to do the following config.
    F111 -> Maintain Configuration -> Bank determination -> Bank accounts ( for each accont id and payment method combination ).
    Then you will see payments from this sub accounts and you have to setup posting rule to clear this account if you are doing EBS.

  • Document not picked in f110 payment

    Invoice doc: 5000000001
    Due on: 12/30/2008
    Baseline date: 11/10/2008
    Payment terms: 50 days net due
    Vendor master details:
    Vendor: 241344
    Payment method: E
    Payment proposal Details:
    Payment run on 12/29/2008 through F110 t-code
    Parameters:
    Identification:MTR1
    Payment method: E
    Vendor:1 to 99999999
    Result : above invoice doc not picked
    Second payment executed on same day 12/29/2008
    Parameters:
    MTR2
    Payment method: C
    Vendor: 1 to 99999999
    Result: above invoice picked in proposal but not cleared giving error u201CPmnt methods for this run are not specified in master record or in itemu201D.
    Again same executed on 30th but not picked but finally picked on 01/02/2009
    My question is why document is not picked in MTR1 which has correct values.

    Hi
    Check the base line date for this IV - I dont think the document is overdue in MRT1 that is the reason it is not picked up (in frist payment run). It is overdue in the payment run (in January you run).
    Check the invoice date for document getting picked up ( i hope it is with in the date), check the base line date for payment for payment proposal (I hope on 30th it is not overdue).
    Thanks

  • Automatic Payment program not picking vendors

    Hi
    On Monday,user run F110, some vendors are not picked up for payment. When I've checked this vendor master data payment terms 60 days (Net due date from Doc.date) is mentioned. These vendors fall in to due next 06/22/2008.But they are in open items only. The payment method is assigned correctly, no changes were done for past 3/4 months.
    My doubt is Why these are not picked for payment when they are in Open Item in this payment run ?
    Can any one tell me when will these vendors can be picked up for payment ? Do they complete the total period as per payment terms assignement ?
    Regards
    Madan

    Hi
    I've checked the next p/date, it is 06/19/2008 which is less than due date (06/22/2008).
    Is it the reason for not picking ? If I want this vendor to be picked up for payment, Shall I run this once again by giving more than due date like 06/24/2008 ?
    I've checked other vendors also, they fall under due date and got picked up.
    I appreciate your kind response and will award you the points soon..
    Regards
    Madan

  • Planed delivery cost- account is not picking in MIRO?

    Hi,
    Here in pricing procedure even though for the planned delivery costs condition type - account key and account is assigned in obyc & even then the relevant GL is not picking, instead only manual account assigned GL only picked up always kindly let me know the possible causes?
    when I create a cost centre based PO with acct assignment category K, the GL which I am assigning in PO only picked up..
    kindly let me know the possible causes for the same?
    regards,
    ARCHU

    Hi,
    1st one should know where & how account assigned PO will be used.If you used account assigned PO(lts say K), then during GR, you will have account entries
    Consumption A/C :Dr
    GR/IR Clearing A/C: Cr
    During MIRO posting, the GR/IR Clearing A/C as accounting entries:
    GR/IR Clearing A/C: Dr
    Vendor A/C: Cr
    Check the link how GL account for a material group is treated, when a purchase order is created with account assigned  with material group and all assignment done in OBYC , OMQW & OME9.
    http://www.bluemarlinsys.com/ns/0603-03.asp
    Regards,
    Biju K

  • G/L account not picking automatically for cost centre

    Hai
    When ever i create a P.O for a cost centre ,when i enter the cost centre, the system is not picking the G/L account automatically. Instead i need to enter the G/L account manually.Why it is behaing like this? what is the solution?
    I had checked all the setting as mentioned below
    1.OBYC->   Here maintained the  G/L account for the comibination of
    Valuation mod - Gereral Modi- Valuation class- debit g/l account - credit  g/l account
    2.OKB9 -> Maintained entries for  Co.code- Cost element - Cost center
    3.OME9- Account Modification is VBR
    4.OBY6- Checked the field status variant, posting period variant

    Hi,
    Once u have given account assignment category 'K', then system will pick automatically G/L account from the OBYC settings for the combination of Valuation modification code,  account modifier (VBR) & Valuation class.
    From the OME9 transcation, system will pick transcation key for the respective account assignment category.
    For the  account assignment category 'K', account modifier is 'VBR'.
    Here masterial master record (MMR) is optional. If you are giving MMR in the PO, system will pick valuation class from the MMR.
    If MMR is not giving, then system will pick valuation class from the transcation OMQW. Here you need to maintain valuation class aganist material group, which is u r giving in the PO. ( This is optional)
    In the OBYC transcation, for the transcation key  GBB you need to maintain G/L account for the combination Valuation modification code,  account modifier (VBR) & Valuation class.
    Also maintain one more entry in the transcation key  GBB,  maintain G/L account for the combination Valuation modification code,  account modifier (VBR) & Valuation class field is blank.
    Once you have given account assignment category 'K' in the PO, system will pick G/L for the combination Valuation modification code,  account modifier (VBR) & Valuation class. This is happening before giving the cost centre.
    If you are not maintaining MMR in the PO and not maintaining valuation class aganist material group in the transcation OMQW, the system will pick G/L account for the combination of Valuation modification code,  account modifier (VBR) & Valuation class field is blank.
    So in your case, check valuation class aganist material group in the transcation OMQW and maintain G/L in the OBYC for the respective combination. If valuation class is not maintained aganist material group in the transcation OMQW and maintain one more entry in the OBYC with the blank valuation calss field.
    Regards
    KRK

  • 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

  • Document not picked in F110

    Invoice doc: 5000000001
    Due on: 12/30/2008
    Baseline date: 11/10/2008
    Payment terms: 50 days net due
    Vendor master details:
    Vendor: 241344
    Payment method: E
    Payment proposal Details:
    Payment run on 12/29/2008 through F110 t-code
    Parameters:
    Identification:MTR1
    Payment method: E
    Vendor:1 to 99999999
    Result : above invoice doc not picked
    Second payment executed on same day 12/29/2008
    Parameters:
    MTR2
    Payment method: C
    Vendor: 1 to 99999999
    Result: above invoice picked in proposal but not cleared giving error u201CPmnt methods for this run are not specified in master record or in itemu201D.
    Again same executed on 30th but not picked but finally picked on 01/02/2009
    My question is why document is not picked in MTR1 which has correct values.

    Hi
    In F110 , when ever you run Payment Proposal , it picks the invoices which are due for the Payment Run date. It also depends on the Next Run Date , Based on the Discount periods of the Payment terms.
    In both MTR1 & MTR2 , check your Next Run date.
    Regards
    Venkat

Maybe you are looking for

  • Problem in XML Publisher

    Hi, I am trying to get xdo package from java_top, but i dint find required classes in it(DocumentHelper, DocumentViewer ), I am using Version 11.5.10.2CU. So is there any solution for this. Thanks Babu

  • CS4 wont open - error specified module could not be found

    I have run CS4 on my windows Vista pc for years without a problem.  Yesterday I downloaded DNG converter 7.2 as I have purchased a Fuji Xpro and needed to be able to process the Raw files - my version of ACR is not compatible.  Today I tried to look

  • Maximum file size for importing into Premiere Pro CS6

    Hi, I'm considering recording raw video, no compression at 720p, 30 fps for 20-30 min.  This woudl result in a file that is close to 80 Gbytes.  I'm wondering what the maximum file size for importing into premiere Pro is and if I need to split this f

  • Video Levels and Deinterlacing

    I have been trying out Premiere Elements 10 and had a couple of questions. First, if I take AVCHD footage and check the video levels in Premiere Pro, it seems to indicate that the video is 0-255 on the RGB scale. Is there any way to test or see the v

  • Upload/Download docs from DMS

    Hello, I am trying to learn how to up- and download documents from Business Document Service (trans. OAER) in a web page. Reading here and there I found some examples of code for it but it is for ABAP and not for WebDynpro. I performed my examples in