Query to list down collections for a period- Invoice No and Incoming Pymt.

Hi,
I have used the following query to list down all collection made during a particular period:
SELECT T1.CardName, T0.DocDate as 'Posting Date', T0.DocNum as 'AR Invoice Number',
+T3.SlpName, T0.DocTotal as 'AR Invoice Total', T0.DocTotalFC as 'AR Invoice Total FC', +
+T1.DocDate as 'Payment Date', T1.DocNum as 'Incoming Payment Number ',T1.CashSum as 'Cash +Amount', +
+T2.CheckNum as 'Check Number', T2.CheckSum as 'Cheque Amount', T1.TrsfrSum as 'Bank Transfer Amount'
+FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry LEFT JOIN RCT1 T2 ON +
+T1.DocNum = T2.DocNum +
+Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode +
where T1.DocDate >=[%0] and T1.DocDate <=[%1] and T0.U_AT_SLST = 'Local' ORDER BY
T0.CardName,T1.DocDate
But there are certain Incoming payments which do not appear in the report although it satisfies all the clauses as per the query.
Can anyone comment on what could be the issue?
Regards.

Hi Vishal
Did you retype the query in the thread, or copy and paste? Try changing the Where and the Order By references to the same tables as the Select portion as follows:
SELECT T1.CardName, T0.DocDate as 'Posting Date', T0.DocNum as 'AR Invoice Number',
+T3.SlpName, T0.DocTotal as 'AR Invoice Total', T0.DocTotalFC as 'AR Invoice Total FC', +
+T1.DocDate as 'Payment Date', T1.DocNum as 'Incoming Payment Number ',T1.CashSum as 'Cash +Amount', +
+T2.CheckNum as 'Check Number', T2.CheckSum as 'Cheque Amount', T1.TrsfrSum as 'Bank Transfer Amount'
+FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry LEFT JOIN RCT1 T2 ON +
+T1.DocNum = T2.DocNum +
+Left Join OSLP T3 ON T3.SlpCode= T0.SlpCode +
where T0.DocDate >=%0 and T0.DocDate <=%1 and T0.U_AT_SLST = 'Local' ORDER BY
T1.CardName,T0.DocDate
Was - where T1.DocDate >=%0 and T1.DocDate <=%1 and T0.U_AT_SLST = 'Local'
SB - where T0.DocDate >=%0 and T0.DocDate <=%1 and T0.U_AT_SLST = 'Local'
Was - ORDER BY T0.CardName,T1.DocDate
SB - ORDER BY T1.CardName,T0.DocDate
Unless your SELECT was pointing to the wrong tables, but I think the problem is with the Where and Order By.
Kind regards
Peter Juby

Similar Messages

  • My wifi button is frezon and I tried turning my phone off for a period of time and reset my phone but the button is still frezon it want slide over to turn on my wifi. Is there any other way to fix without going to apple to get it fixed?

    My wifi button is frezon and I tried turning my phone off for a period of time and reset my phone but the button is still frezon it want slide over to turn on my wifi. Is there any other way to fix without going to apple to get it fixed?

    Hey Posada143, You can still try the rice thing, but do not expect much, as roaminggnome has stated. The rice only works if you do it ASAP and leave the iPod off-- do not attempt use, turn on or charge until it is completely dried out. This is probably academic at this point but remember this for the next time: The drying can take 10 days. You put the uncooked rice and iPod in a sealed bag, change the rice every couple of days. This creates a low humidity environment and draws the moisture out of the iPod, but it takes time. Turn your iPod on to earlier, and you run the risk of shorting out, damaging the components inside. Even if done correctly it can spotty. If you do get the iPod to work (and this may require Resetting, Restoring or attempting to place it in DFU recover mode) the first thing you do is make backups, because you never know how long it will continue to work. As for your pictures, if you can't get your iPod to work, you can try data retrieval companies, however; there is no guaranty it will work and it tends to be very expensive. In the future get in the habit of as making backups, because you just don't know. And invest in and use a water tight case. Hope this helps, Good luck. Cheers.

  • Translation of Balance Sheet accounts at Period End Rate and Income Stateme

    Hi All,
    I have a requirement of Transalation of Balance Sheet accounts at Period End Rate and Income Statement Accounts at Average Rate.
    How can we achieve this in oracle r 12.1.3
    Regards,
    Chirag

    Hi Chirag
    As per Oracle following are the rules that has to be followed for translation.
    1. For Balance Sheet Accounts (Asset & Liabilities) GL as a default uses the YTD rule.
    2. For P&L Accounts you can choose between YTD and PTD rule. So in your case you can use the default PTD Rule. (Profile Option 'GL Translation: Revenue/Expense Translation Rule')
    YTD Rule = (Translated Period Amount = Period-End Rate x YTD Ledger Currency Balance - Beginning Translated Balance).
    PTD Rule = (Translated Period Amount = Period Average Rate x PTD Ledger Currency Balance)
    Hope this helps.
    Regards,
    Gautam
    Edited by: Gahlout on Sep 25, 2012 11:04 PM

  • SQL query to list all collections, members, OS, SP, IP and if physical/virtual

    Hi guys, I have the below query which lists all the collections and their members, however I need to expand it to also include the OS, Service Pack, IP and if it's a physical or virtual machine.
    I've tried a few things but only made it worse. Is anyone able to expand the below code to include those extras??
    SELECT
    v_FullCollectionMembership.CollectionID AS 'CollID',
    v_Collection.Name AS 'CollName',
    v_FullCollectionMembership.Name AS 'SystemName'
    FROM
    v_FullCollectionMembership, v_Collection
    WHERE v_FullCollectionMembership.CollectionID = v_Collection.CollectionID
    ORDER BY
    CollID ASC, SystemName ASC

    Hi,
    These requirements could be found in several threads or blogs. We need convert WQL to SQL, and you can involve SQL guys to integrate the statements and format the result.
    How to create a all virtual machines collection.
    SCCM SQL Query - IP Address
    ConfigMgr Systems without Current Service Packs, and System Patch Status 

  • Hello. How can I make it so firefox remembers which links I've visited as on the music singles pages for longer periods of time and more links?

    I frequently use the singles pages on wikipedia, for example: http://en.wikipedia.org/w/index.php?title=Category:2012_singles&from=D
    So I had already clicked on the links some months ago on the 2012 singles pages, but firefox forgot that I had clicked on the links there. How can I make it so it remembers for longer periods of time without causing problems to firefox? Also, I want it to remember what links I've clicked on the 2013 singles pages, because I am also keeping up with that. Can I tell firefox to remember all history for these pages, such as 2012 singles, or 2013 singles specifically? I just want firefox to remember what links I've visited, as in, the songs in the 2012/2013 singles pages, and not forget those, because I have already downloaded those so I want firefox to keep track. What are my options? Please let me know, and I hope you understand the problem I am describing.

    My Firefox remembers history from over a year ago, and unless you are using a setting or external tool to clear it, or load huge numbers of pages/download huge numbers of files, Firefox should pretty easily remember links you've accessed in recent months.
    To see what Firefox has computed as the number of URLs to remember, you can check here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''.hist''' and pause while the list is filtered
    (3) Look for '''places.history.expiration.transient_current_max_pages'''
    Mine's set to 104858. I don't know how that was determined.

  • 4 albums purchased from iTunes yesterday have songs not playing all the way through. They play for a period of time and skip to the next song. Everytime they are played. Can anyone help?

    Some songs I purchased last night are not playing all the way through. Several songs from the 4 albums I purchased play for a period of time then just skip to the next song. The songs that do this, do it everytime they are played at the exact same spot. The songs that are affected skip to the next on iTunes on my PC which is updated to the most current iTunes and my 160gb iPod classic. Everytime they are played at the exact same spot. However on my other device, iPhone 4s all songs play just fine. I have almost 7,000 songs on my iPod and this has never happened before and I have played it awhile since downloading those albums yesterday. This is only happening with the albums purchased yesterday. Can anyone help me figure out what is wrong?

    I'm having the same issue with a few songs I just downloaded. It skips randomly in the middle of the song.

  • Query is returning multiple records for a bank account id and party id

    Hi All,
    I am not getting why this query is returning multiple records for a particular bank account id and party id:
    SELECT instrument_payment_use_id
    ,instrument_type
    ,instrument_id
    ,start_date
    ,ext_pmt_party_id
    FROM iby_pmt_instr_uses_all
    WHERE instrument_id =:lv_num_ext_bank_account_id
    and exists (select 1 from iby_external_payees_all b where PAYEE_PARTY_ID= :lv_num_party_id and b.ext_payee_id = ext_pmt_party_id)
    I want above values to be used in api iby_disbursement_setup_pub.set_payee_instr_assignment in R12.
    Please help asap.
    Thanks

    O/P of query run for
    SELECT rowid, instrument_payment_use_id
    FROM iby_pmt_instr_uses_all
    WHERE instrument_id =6642
    AND EXISTS (
    SELECT 1
    FROM iby_external_payees_all b
    WHERE payee_party_id= 85470
    AND b.ext_payee_id = ext_pmt_party_id);
    is below:
    Rowid     INSTRUMENT_PAYMENT_USE_ID
    AABiDXAGIAABhiKAAS     236586
    AABiDXAGRAABSjtAAz     148437
    The version is R12

  • Query on fetching the no.of days between Invoice date and due date in rtf template embedded BI Publisher Report

    Hi Experts,
    We have a requirement to fetch the value of 'No of days' between Invoice date and due date (Two variable date fields on the template) in an Analysis.
    Please let me know the procedure of how to achieve the same.
    Regards,
    Rev

    it's good for ideas but implementation a bit different
    Oracle Business Intelligence Publisher Report Designer's Guide
    This function provides a method to get the difference between two dates in the given locale. The dates need to be in "yyyy-MM-dd" format. This function supports only the Gregorian calendar. The syntax is as follows:
    <?xdoxslt:date_diff(‘format’, ‘YYYY-MM-DD’, ‘YYYY-MM-DD’, $_XDOLOCALE, $_XDOTIMEZONE)?>
    where
    format is the time value for which the difference is to be calculated
    Example:
    <?xdoxslt:date_diff(‘d’, ‘2006-04-08’, ‘2006-04-01’, $_XDOLOCALE, ‘America/Los_Angeles’)?>
    returns
    -7

  • Reason for deviation  in invoice date and order date

    hi all,
    i want to know the field and table name for reason for deviation.
    suppose the difference in invoice date and order date is 7 days.
    how can i find the reason for this difference.
    thanks in advance

    Dear bala
    Obviously there will be a difference between sale order date and billing date in real time scenarios. However, if you want to capture, you have to maintain the relevant text in billing (Goto --> Header --> Header texts).
    thanks
    G. Lakshmipathi

  • Querying Exchange 2013 Mail server for email items using c# and Exchange Web Services

    I am trying to upgrade an existing application that reads Exchange 2003 using WebDAV. The mail server is to be upgraded to Exchange 2013, so I am checking how I can use EWS.
    I have a problem in that although I know the inbox has unread items with attachments, the query I am running against the
    FindItems object is returning empty (results.totalCount=0)
    Here is my code snippet:
    private static void GetAttachments(ExchangeService service)
    // Return a single item.
    ItemView view = new ItemView(100);
    ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
    service.UseDefaultCredentials = true;
    service.AutodiscoverUrl("[email protected]", RedirectionUrlValidationCallback);
    ItemView view = new ItemView(1);
    string querystring = "HasAttachments:true Subject:'ATTACHMENT TEST' Kind:email";
    // Find the first email message in the Inbox that has attachments.
    // This results in a FindItem operation call to EWS.
    FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, querystring, view);
    //FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, new ItemView(50));
    if (results.TotalCount > 0)
    // looping through all the emails
    for (Int16 iDx = 0; iDx < results.TotalCount-1; iDx++)
    EmailMessage email = results.Items[iDx] as EmailMessage;
    if (email.IsRead == false) {
    // Request all the attachments on the email message. This results in a GetItem operation call to EWS.
    email.Load(new PropertySet(EmailMessageSchema.Attachments));
    foreach (Attachment attachment in email.Attachments)
    if (attachment is FileAttachment)
    FileAttachment fileAttachment = attachment as FileAttachment;
    What I am supposed to be doing is reading all the unread emails in the target inbox (only one Exchange server) and taking the attachments on disk so I can then add them as attachments as new cases on SalesForce.
    Where am I going wrong?
    Also, this line:
    ItemView view = new ItemView(100);
    was:
    ItemView view = new ItemView(1);
    Surely that will only look for one email item, right?

    thanks, do you know why I would be getting an error message like 'The specified object was not found in the store'
    here is my code:
    ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
    service.Url = new Uri("https://sgexc.bocuk.local/EWS/Exchange.asmx");
    //creates an object that will represent the desired mailbox
    Mailbox mb = new Mailbox(@"[email protected]");
    //creates a folder object that will point to inbox folder
    FolderId fid = new FolderId(WellKnownFolderName.Inbox, mb);
    //this will bind the mailbox you're looking for using your service instance
    Folder inbox = Folder.Bind(service, fid);
    FindItemsResults<Item> findResults = service.FindItems(new FolderId(WellKnownFolderName.Inbox, new Mailbox("[email protected]")),new ItemView(10));
    it's happening on this line:
    Folder inbox = Folder.Bind(service, fid);
    and if I try to use AutoDiscoverURL then I just see my own inbox.

  • 100% Down Payment for A/P Invoice

    Dear Experts,
    One of our clients requires to recieve 100% down-payment AP invoice, but the scenario is slightly different.
    The purchase process requires to pay the amount today, but the purchase is actually entered into the system the following day or after 2-3 days. If this operation is done normally in SAP, suppose the invoice date is 13/10/2009 and the payment date is 12/10/2009 (advance payment), the outgoing payment module does not show the invoice of 13/10/2009 when docdate 12/10/2009 is entered.
    How to tackle this particular problem, please help!

    Hi Ahmad...........
              It will not display the actula invoice dated 13th as you are paying to supplier on 12th. For that you should raise an AP Down Payment invoice on 12th on month on the basis of Purchase Order then only it will display you the AP down payment invoice and do the payment. Then whenever you raise an actual invoice no need to do the paymnet and will get reconciled automatically.
    Regards,

  • Query..For...Invoice..and..A/R creditmemo..

    I wann a Query for Total Invoice amount for a particular custmer as well as A/R credit memo Total amount (EX if an custmer having 10 invoice and 5 a/r credit memo's i want sum of the 10 invoce amount as well as a/r credit memo total ).
    Thanks & Regards
    Yogi

    Hi
    If you need in One line ,
    SELECT  CardCode, CardName,sum(Total) AS 'Total'
    from 
    (Select T0.CardCode, T0.CardName, Sum (T0.DocTotal )as 'Total'
         FROM dbo.OINV T0
         Where T0.CardCode like '[%1]%'
         GROUP BY T0.CardCode, T0.CardName
    UNION ALL
    SELECT  T1.CardCode, T1.CardName,Sum((T1.DocTotal *-1)) AS 'Total'
    FROM dbo.ORIN T1
    Where T1.CardCode like '[%1]%'
    GROUP BY T1.CardCode, T1.CardName
    ) A
    GROUP BY CardCode, CardName
    ORDER BY CardName
    <<
    Or  You might like this
    SELECT  CardCode, CardName,sum(Total) AS 'Total',Sum(ARtotal) as 'Invoice',Sum(APTotal) as 'Credit'
    from 
    (Select T0.CardCode, T0.CardName, Sum (T0.DocTotal )as 'Total', Sum (Doctotal) as 'ARTotal',Null as 'APTotal'
         FROM dbo.OINV T0
         GROUP BY T0.CardCode, T0.CardName
    UNION ALL
    SELECT  T1.CardCode, T1.CardName,Sum((T1.DocTotal *-1)) AS 'Total', Null as 'ARTotal', Sum((T1.DocTotal *-1)) AS 'APTotal'
    FROM dbo.ORIN T1
    GROUP BY T1.CardCode, T1.CardName
    ) A
    GROUP BY CardCode, CardName
    ORDER BY CardName
    Hope this helps
    Bishal
    Edited by: BIshal Adhikari on Jul 22, 2009 9:07 AM
    Edited by: BIshal Adhikari on Jul 22, 2009 9:24 AM

  • SQL query problem, listing all deliveries linked to an invoice

    Hi I'm trying to write a query that returns all the deliveries linked to an invoice as a single commaseparated result.
    This query gets all the links from every line as a commaseparated result but I want to remove the duplicate entries, eg. where/how do I insert the distinct clause?
    DECLARE @EmployeeList varchar(350)
    SELECT @EmployeeList = COALESCE(@EmployeeList + ', ', '') +
       ( T1.baseref )
    FROM oinv T0 inner join inv1 T1 on T0.DocEntry = T1.DocEntry
    where  T0.docnum = 119229 and T1.baseref <> ''
    SELECT @EmployeeList
    Thanks in advance for all help

    Hi,
    How did you use the temporary table?
    Can you write your code here.
    I am also getting repeated data values in my query output. I want to save that query output into one temporary table and than want to use the SELECT DISTINCT on that temporary table. I am searching on forum madely to do that but can't find the perfect help.  It will be nice if you can help me in that.
    Thank you

  • What java collection for large amount of data and user customizable record

    I'm trying to write an application which operates on large amount of data. I want user could customize data structure (record) from different types of variables(float,int,bool,string,enums). These records should be stored in some kind of Array. Size of record: 1-200 variables; size of Array of those records: about 100000 items (one record every second through whole day). I want these data stored in some embedded database (sqlite, hsqldb) - access using simple JDBC. Could you give me some advise how to design thoses data strucures. Sincerely yours :)
    Ok, maybe I give some example. This will be some C++ code.
    I made an interface:
    class ParamI {
    virtual string toString() = 0;
    virtual void addValue( ParamI * ) = 0;
    virtual void setValue( ParamI * ) = 0;
    virtual BYTE getType() = 0;
    Than I made some template class derived from interface ParamI:
    template <class T>
    class CParam : CParamI {
    public:
         void setValue( T val );
         T getValue();
         string toString();
         void setValue( ParamI *src ) {
              if ( itemType == src->getType() ) {
                   CParam<T> ptr = (CParam<T>)src;
                   value = ptr->value;
    private:
         BYTE itemType;
         T value;
    sample constructor of <int> template:
    template<> CParam<int>::CParam() {
         itemType = ParamType::INTEGER;
    This solution makes me possible to write collection of CParamI:
    std::vector<CParamI*> myCollection;
    CParam<int> *pi = new CParam<int>();
    pi->setValue(10);
    myCollection.push_back((CParamI*)pi);
    Is this correct solution?. My main problem is to get data from the collection. I have to check its data type using getType() method of CParamI interface.
    Please could give me some advise, some idea to make it right using java.

    If you have the requirement that you have to be able to configure on the fly, then what I've done in the past is just put everything into data pairs into a list: something along the line of: (<Vector>, <String>), where the Vector would store your data and String would contain a data type. I would then make a checker to validate the input according to the SQL databypes that I want to support on the project. It's not a big deal with the amount of data you are talking about.
    The problem you're going to have is when you try to allow dynamic definition, on the fly, of data being input to a table that has already been defined. Your DB will not support that, unless you just store that data pair--which I do not suggest.

  • How to keep that valve open for certain period of time and shut off automatically

    Hi everyone,
    The objective of the VI is to measure pH and then open acid or base valve based on pH valve. Below is my UNFINISHED VI
    My question is:  if, for example, the  pH is 10, then, the program will open acidic valve for 5 seconds and then shut off automatically. After that, wait for 5 second. this process will go on and on as I use while loop, but I just dont know how to control the valve on for 5sec and off and then wait for 5sec.
    Anyone can help me out?    Thank you very much
    In the picture, please enter those values before running
    P.S The VI is based on previously posted vi by someone who made it 1 yrs ago.
    Attachments:
    project_trial_1_26.vi ‏27 KB
    Capture.JPG ‏79 KB

    1. The reason the valves close immediately is that the Elapsed Time VI does not cause any wait, it only measures the time. So the valves closed within a small fraction of a second of the time they opened.
    2. I modified your VI to wait until the Elapsed Time has ended.  See the "wait" state.  I probably modified some of your other functionality in the process, but this shows one way you could do the timing. 
    3. You do not need any Value property nodes.  They should never be used if the value can be wired directly.
    4. You do not need any sequence structures. Dataflow will determine the order of things occurring.
    5. If you use an enum for the state machine (and it is a good way to name and select states), you should make it a type def. Then when you need to change it as I did to add several states, you only need to change the Type Def in one place and the changes propagate through to every place you used the control or constants derived from it.
    6. I added a Halt state which will close both valves before stopping the program.  When you are controlling a real world process, it is important to consider the start up and shutdown requirements. For example the digital outputs of the USB-6008 default to inputs when the device is first powered up. And, the inputs are pulled high by a 4700 ohm resistor (at least I think I recall that value). Will this open your valves before the program starts running and sets the I/O lines to outputs and forces them low?
    The USB-6008 has rather limited drive on the digital lines. You will probably need a buffer between it and the valve coils.
    PID and PWM are more complicated than I want to get into here.  First, are your valves proportional or on/off? Second, (assuming that they are on/off) how fast can you open and close them without destroying them in the first week? What is their expected lifetime in terms of the number of operations? How fast do you need to be able to change them to keep your pH where you want it?  Are these values compatible?
    Lynn
    Attachments:
    pH State.ctl ‏12 KB
    project_trial_1_28.2.vi ‏66 KB

Maybe you are looking for

  • Error while activating ODS Object

    Hi, I have loaded the data from R/3 to a ODS Object and the activation of ODS failed due to the following errors as shown below.. -Value '20060 ' of characteristic 0CALQUARTER is     not  plausible -Error when assigning SID (details in long text) -Ac

  • Error while executing agent.  ORABPEL-05006

    Hi: I have a bpel process waiting until a DbAdapter (with one Wait Activity) reads a record on database, but the problem is : - The record is in the database - The DbAdapter read it but the process don´t continue. - If the process is monitored by the

  • InDesign CS 5.5 for MAC singel-user - Deinstallation and reinstallation on another MAC

    We have an Adobe InDesign CS 5.5 single-user license for MAC. It was installed on one MAC (MAC no. 1) approx. two years ago but need to move it to another MAC (MAC no. 2). We have tried to deinstall the programme from MAC no. 1. Next we have tried in

  • Read XML into the database

    Hi, If I have a XML file and want to read its attributes into matching columns in a table, what is the best way to map the xml e.g. firstname to a firstname column in the table? <name> <firstname>Bill</firstname> <last>Gates</last> </name> Thanks

  • MBP 10.9.5-Gray screen (post log-in) but can log into guest acc no problem

    Background: MBP has been fine until today, when it got really slow. I figure I have too many windows open (specifically Safari tabs); I was also having weird freeze-ups with the VLC player. I restarted the computer after it was getting really weird;