Issue in getting the purchase details

SELECT Tbl_ProductGroupMaster.ProdName, Tbl_ProductGroupMaster.UnitNam, Tbl_Inventory.CrDate, Tbl_Inventory.QtyOpStk, Tbl_Inventory.QtyClStk, Tbl_Inventory.ExcShortage, purchase.SumOfNUnit, sales.SumOfQty
FROM Tbl_ProductGroupMaster, Tbl_Inventory, [SELECT Tbl_PurchaseMain.idate as p_idate, Tbl_PurchaseSub.Proid as proid,
sum(Tbl_PurchaseSub.NUnit) AS SumOfNUnit
FROM Tbl_PurchaseMain, Tbl_PurchaseSub WHERE Tbl_PurchaseMain.GID=Tbl_PurchaseSub.gid
and format(cdate(Tbl_PurchaseMain.idate),'mm-dd-yyyy') between format(cdate('13-Sep-2009'),'mm-dd-yyyy') and
format(cdate('02-Oct-2009'),'mm-dd-yyyy') GROUP BY
Tbl_PurchaseMain.idate, Tbl_PurchaseSub.Proid]. AS purchase, [SELECT Tbl_SalesMain.idate AS s_idate, Tbl_SalesSub.Proid, sum(Tbl_SalesSub.Qty) AS SumOfQty
FROM Tbl_SalesMain, Tbl_SalesSub
WHERE Tbl_SalesMain.SAID=Tbl_SalesSub.SAID And
format(cdate(Tbl_SalesMain.idate),'mm-dd-yyyy') Between format(cdate('13-Sep-2009'),'mm-dd-yyyy') And
format(cdate('02-Oct-2009'),'mm-dd-yyyy')
GROUP BY Tbl_SalesMain.idate, Tbl_SalesSub.Proid]. AS sales
WHERE Tbl_Inventory.CrDate = purchase.p_idate and
Tbl_Inventory.CrDate = sales.s_idate and
Tbl_ProductGroupMaster.PROID=Tbl_Inventory.proid AND
Tbl_Inventory.PROID=purchase.proid and
Tbl_Inventory.PROID=sales.proid and
Tbl_Inventory.CrDate = '13-Sep-2009';
I am getting the out put as below:
I have one more product 'bbb' for which their is no record in purchase on '13-sep-2009'.But exist in
inventory and sales. I need that to be printed . Please let me know the correction in the query.
ProdName     UnitNam     CrDate     QtyOpStk     QtyClStk     ExcShortage     SumOfNUnit     SumOfQty
aaa     Kgs     13-Sep-2009     10010     10000     0     55     22
thanks,
Vinodh

[Duplicate post|http://forums.oracle.com/forums/thread.jspa?threadID=966322&tstart=0]

Similar Messages

  • We need to buy Adobe Framemaker version 11. The distributor is only able to provide us with version 12. Can someone suggest me how is it possible to get the license for ver 11 serial  key after purchasing ver 12 and also how to get the download details ?

    We need to buy Adobe Framemaker version 11. The distributor is only able to provide us with version 12. Can someone suggest me how is it possible to get the license for ver 11 serial  key after purchasing ver 12 and also how to get the download details ?   Urgent response will be helpful.D

    Adobe Support helped us with a similar query. We ended up with exactly what you need.

  • How to get the Purchase order Qty in the object dependency

    Hi,
    We are using variant pricing in the purchase order. I have condition type say u201CZVBPu201D for Pallet cost. I defined Pallet cost as 5 USD per each (pallet). I have to calculate Number of pallets = Purchase order Qty/ 5. The number of pallets should be rounded to nearest integer.
    My question is how to get the Purchase order Qty in the object dependency?
    Is there any reference table and field can be used to get Purchase order Qty just like we use MMCOM-VKOND for variant pricing.
    Appreciate your help
    Thanks,
    Srini

    Hi,
    1. I do not have system now so I can not conclusively tell about table field .
    2. Since I did it long back so I also do not exactly remember it, there are more than one place where PO qty appears for example Item overview and Item details - one of the PO qty when used in the characteristic do pull the PO qty which can be used for variant pricing (so request to please update the forum with the correct table and field once you find it - in the meantime if I get opportunity to get to system I will also try and find out ).

  • Function module to get the payment details for PO

    Hi,
    Is there any standard function modlue to get the payment details for specific purchase order  or is there any table where we can get the payment details till date.
    My requirement is purchase order wise how much already paid to vendor  and what is the balance amount  to be paid vendor.
    thanks in advance....
    Regards,
    Sree

    Hello
    BAPI_PO_GETDETAIL will help you.
    Look at structures PO_ITEM_HISTORY and PO_ITEM_HISTORY_TOTALS
    Also you may use table EKBE

  • HOW CAN I GET THE PURCHASE ORDER RELEASE DATE

    Dear All,
    HOW CAN I GET THE PURCHASE ORDER RELEASE DATE - any reprot is there?
    Thank you
    Ahmad

    Hi,
    u goto that PO and select Environment on top line .under that select header changes if u click on that u will get entire details who reased when released, date , time etc
    regards,
    Srinivas Kona

  • How to get the input details on the output screen in T code KCR0

    Hi All,
    How to get the input details on the output screen in T code KCR0, the issue is that we need to get the input details like Company code and payment date on the output screen while executing the report painter via t code KCR0.
    I tried to chane the settings via t code KCR6 but still didn't get the required output details.
    Regards,
    Ajay

    This is the asset accounting forum.  You should post your question in the proper forum.

  • Not getting the child details

    Hi Friends,
    Iam implementing a master detail page.
    Here I have taken two sequences...one(emp id sequence)  for emp  custom table and  one (dependent id) for family details.
    empid is common column for them. Based on this empid I should get child details (family details)
    In my search page,create/update page  Iam getting the master details , but Iam not able to get child details for the  selected employee.
    I have created a ASSOCIATION  say EmpFamAO  between two EO's (emp table    and   family details table)...................Based on empid column
    AND
    I have created a VIEW LINK  between this EO's  from master (EmpFamAO) left side  and child(EmpFamAO) right side of the view link editor
    But the issue is Iam not getting this common column (emp id) in my child table when querying  therfore Iam not getting related child details...when Iam clicking on details icon or update icon .
    Let me know for any clarifications.
    Thank you.
    Aravinda.

    Hi Aravind just you have to fallow these methods.
    public void createEmployee()
            EmpHeadersEOVOImpl hVo = getEmpHeadersEOVO();
            OADBTransaction tr = getOADBTransaction();
            if(!hVo.isPreparedForExecution())
                hVo.executeQuery();
            Row row = hVo.createRow();
            hVo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
            Number empId= tr.getSequenceValue("KSK_EMP_ID_SEQ");
            hVo.getCurrentRow().setAttribute("EmpId", empId);
        public void createEmpFamily()
            EmpFamilyEOVOImpl sfVo = getEmpFamilyEOVO();
            EmpHeadersEOVOImpl ehVo = get EmpHeadersEOVO();
            OADBTransaction tr = getOADBTransaction();
            sfVo.setMaxFetchSize(0);
            Row row = sTVo.createRow();
            sfVo.first();
            sfVo.insertRow(row);
            row.setNewRowState(Row.STATUS_INITIALIZED);
            Number familyId= tr.getSequenceValue("KSK_FAMILY_ID_SEQ");
            String empId = ehVo.getCurrentRow().getAttribute("StudentId").toString();
            sfVo.getCurrentRow().setAttribute("FamilyId", familyId);
            sfVo.getCurrentRow().setAttribute("EmpId", empId);
    now above first method show for master table and
    second one show Child Creation methos
    so in that method we are inserting empid into Child table and inserting child id also.
    So now your requirement will fullfill.
    Let me know if required any details.
    Thanks
    San
        public void save()
            OADBTransaction tr = getOADBTransaction();
            tr.commit();

  • HT1203 Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? Do I need a home computer,

    Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? How do I sync all the devices to have the same music and apps?

    You can set up an iCloud account on each one (the SAME iCloud account using the same AppleID on each) and then sync via iCloud.
    http://support.apple.com/kb/HT5262\
    However, an iCloud backup nor sync contains purchased content - that is available for redownload from the iTunes and App stores (so no need to waste iCloud space storing it for you).
    So, for purchased content, you will have to download it on each device - just use the same AppleID and download each item on each device.
    Without a computer to aid the sync'ing, downloading the purchased content on each device is the only way.
    P.S  audiobooks cannot be re-downloaded once purchased (all other content can be), so without a computer to save, store and move the audiobook files around, you will only be able to put those on one device - the one you first purchase it on.

  • How to get the recruitment details in a customised report.

    Dear Experts,
    We are into developing a report which has to fetch the below.
    1.vendor name
    2.No. of positions
    3.Dept.name
    4.amount
    5.cost of recruitment
    6.Number of advertise ments.
    Experts,from where we have to get the above details.
    Please advice
    V Sai.

    Thread is closed.
    v sai

  • When syncing iPod the PC lost power. once power restored synced iPod but the sleeve detail has been blanked. Also when syncing a 'miss-match' message is reported on iTunes. how do I get the sleeve detail back onto iPod?

    When syncing iPod the PC lost power. once power restored synced iPod but the sleeve detail has been blanked. Also when syncing a 'miss-match' message is reported on iTunes. how do I get the sleeve detail back onto iPod?

    http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/libata/ch07.html#excatATAbusErr wrote:
    ATA bus error means that data corruption occurred during transmission over ATA bus (SATA or PATA). This type of errors can be indicated by
    ICRC or ABRT error as described in the section called “ATA/ATAPI device error (non-NCQ / non-CHECK CONDITION)”.
    Controller-specific error completion with error information indicating transmission error.
    On some controllers, command timeout. In this case, there may be a mechanism to determine that the timeout is due to transmission error.
    Unknown/random errors, timeouts and all sorts of weirdities.
    As described above, transmission errors can cause wide variety of symptoms ranging from device ICRC error to random device lockup, and, for many cases, there is no way to tell if an error condition is due to transmission error or not; therefore, it's necessary to employ some kind of heuristic when dealing with errors and timeouts. For example, encountering repetitive ABRT errors for known supported command is likely to indicate ATA bus error.
    Once it's determined that ATA bus errors have possibly occurred, lowering ATA bus transmission speed is one of actions which may alleviate the problem.
    I'd also add; make sure you have good backups when ATA errors are frequent

  • How to get the network details in flex4.5 web application

    How to get the network details in flex 4.5 web application
    similar to the nativeinterface in air application

    checkout this document for secure web application
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6167e-7fff.html    

  • Function module for getting the partner details and Classifications

    Hi,
    Can any one tell me FMs for getting the Partner Details and for getting the characteristics associated with an equipment??
    Thanks

    Hi Anu,
    are you talking about the SAP Business Partner???
    Well, if yes, then just check the FM 'BAPI_BUPA_CENTRAL_GETDETAIL'.
    Or just search for oher FMs with BAPI_BUPA*.
    Hope this helps...
    Ciao Bernhard

  • Issue with getting the entire spooled job into the pdf document

    Hi All,
    My scheduled job runs fine and completes successfully but it appears to have some issues with getting the entire spooled job into the pdf document which it sends to a an end user.Has anyone encountered it before.Your kind assistance would be appreciated.
    Thank you.
    Regards,
    John

    Hi,
    Please read below link for your query:-
    http://help.sap.com/saphelp_nw04/helpdata/EN/85/54c73cee4fb55be10000000a114084/content.htm
    Regards,
    Anil

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile b

    I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile by changing the color management settings, the color picker no longer shows true white or black. How do I get elements 12 to honor the new calibrated settings?

    Ok so I've done what you said and this is what it's come back ....
    I don't know that these are the errors , but they're the things which don't look right ...
    Throughout the shut down there is a recurring line ;
    It says ;
    Com.apple.launchd 1 0x100600e70.anonymous.unmount 301 PID still valid
    Then there are 2 more which I think are related ;
    Com.apple.securityd 29 PID job has I overstayed its welcome , forcing removal.
    Then the same with fseventd 48 and diskarbitrationd 13
    Oh and on Launchd1 : System : stray anonymous job at shut down : PID 301 PPID13 PGID 13 unmount...
    Then the last process says "about to call: reboot (RB_AUTOBOOT).
    Continuing...
    And stops ...
    Hope this means something to you ... Thanks again for your help so far :-)

Maybe you are looking for