How to prepare  Raw metarials item wise purchase register

Hi,
I need your assistance regarding for generate of this purchase register report.
please check link below where i upload xls file of my report.
http://www.sendspace.com/file/4bmse5
For making this report all data will come from Vendor info, GRPO info. or OINM table
Remember, when i put any date range, it will show Opening Qty and OP Value  which one was the Closing Qty and value for last date.
like put the date range 01-10-2010 and 31-10-2010 and itemname ABC it will show 30-09-2010 closing QTY and value
for 01-10-2010 Opening QTY and Value
Please help me about this report.
Regards,
Mizan
Edited by: mizan700 on Jan 26, 2011 4:56 PM

Hi Mizan........
Please have a look on this report and just give your Raw Material Item Group Code as condition.....
SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription],
T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value',
(ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY,
(ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue,
(isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
     (isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
     (isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
      FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess,
(isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode)
like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode)
like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.'  FROM OPCH T0
INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE
(T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
Regards,
Rahul

Similar Messages

  • Identifying tax item wise in accounting document

    Hi,
    If an accounting Document is having two line items and tax is caluculated on a whole then how can we
    identify how much tax is caluculated item wise
    Thanks,
    K.Kiran.

    Check these tables.
    BSET
    BSEC
    BSEG.

  • Query for Item wise sales report

    Hi Guys,
    Below is the query i have used to run Sales Register.
    But we need Item wise sales register  and those Excise Duty calculations are needed for item wise instead of total document wise. Pls update the query ...
    SELECT M.DocNum AS 'Inv.No ', M.DocDate as 'Date', M.CardName as 'Customer Name',L.Dscription,L.Quantity,L.Price,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
    (SELECT Avg(TaxRate) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT % ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST % ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT % ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as ' VAT% ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as 'VAT12.5 ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST 2% ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST @2 ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST % ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED % ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess% ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' HCess % ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' Hcess ', L.LineTotal as 'Row Total (Rs.)',M.DocTotal as 'Doc Total'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND TargetType ! = 14
    GROUP BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal
    ORDER BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal

    Hi experts..
    Pls   Update the Query

  • Query for Item wise Sales.......

    *Hi Guys, Below is the query i have used to run Sales Register. But we need Item wise sales register and those Excise Duty calculations are needed for item wise instead of total document wise.
    Pls update the query ...*
    SELECT M.DocNum AS 'Inv.No ', M.DocDate as 'Date', M.CardName as 'Customer Name',L.Dscription,L.Quantity,L.Price, (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)', (SELECT Avg(TaxRate) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT % ', (SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ', (SELECT Avg(TaxRate) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST % ', (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ', (SELECT Avg(TaxRate) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT % ', (SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT ', (SELECT Avg(TaxRate) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as ' VAT% ', (SELECT Sum(TaxSum) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as 'VAT12.5 ', (SELECT Avg(TaxRate) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST 2% ', (SELECT Sum(TaxSum) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST @2 ', (SELECT Avg(TaxRate) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST % ', (SELECT Sum(TaxSum) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST ', (SELECT Avg(TaxRate) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED % ', (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED ', (SELECT Avg(TaxRate) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess% ', (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess ', (SELECT Avg(TaxRate) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' HCess % ', (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' Hcess ', L.LineTotal as 'Row Total (Rs.)',M.DocTotal as 'Doc Total' FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND TargetType ! = 14 GROUP BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal ORDER BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal

    Closing this ...
    Edited by: Parimis on Jun 25, 2010 5:44 PM

  • Item wise payment terms in Purchase order

    hi
    Is it possible to have item wise different payment terms in Single Purchase Order?
    Thanks in Advance
    Rajendra

    Hi Prasad,,
    It is not possible to maintain different payment terms item wise <b>in single PO</b>
    Thanks
    suresh
    Message was edited by:
            suresh kallur

  • How to Prepare Flat File for Vendor Open Items for RFBIBL00

    Hi Experts,
    I have to prepare a flat file structure for vendor open items to use in RFBIBL00.
    I tried to take structure from the structures BBKPF and BBSEG structures.
    I have 59 fields in my file and I need to map these fields with the structures BBKPF and BBSEG to prepare the structures for
    Header and Items for vendor open items.
    Can any body help me how to prepare the flat file structures.
    Thanks & Regards,
    Sudheer
    Edited by: sudheer kumar on Dec 4, 2009 11:09 AM

    RFBIBL00 has a documentation please check it

  • How to view ACCNTS payble reconaccount Line Item wise after cheking tick

    I want to see the ACCOUNTS Payble RECONCILITION acoount LINE ITEM wise.
    I had seen the GL Master and their I found that The LINE ITEM was not Checked.
    later I had checked the Line Item Display, but Iam not able view the previous transactions Line Item Wise For that GL Account.
    1. Kindly suggest me how I can see the Previous Line Items after cheking the Line Item Disply.
    2. kindly Tell Me if I can Run any Programme.
    3.If its so what programme I can run and how.
    4. Is there any problem by checking the line item display to the GL account.
    Thanks In Advance
    I will definately reward the points
    Akash Narayana

    Hi,
    1. Enable Line Item Display in GL master.
    2. Block the GL for Posting in Company Code.
    3. Run the Program RFSEPA01.
    4. Check whether Line item details are available and then unblock the GL.
    Regards
    Hari

  • How To Restrict Users To Only Create Purchase Requisitions with Item Catalog?

    Hi, everyone 
    Please help me, 
    How To Restrict Users To Only Create Purchase Requisitions with Item Catalog? is it possible? 
    Regards,   Manuel

    Hi Steenie Norman
    First click on the text item ---> Tools ---> Property Pallete ---->
    and change the Keyboard State to Local Only also this Depend in your OS
    hope this useful ....
    Regards
    Mohammed

  • Purchase Order item wise should not be DELEATED once GRN/IR is done

    HI All,
    HERE is ISSUE,
    Purchase order is Created which consist of two line items 10 and 20 .
    now aganist the PO  item 10 GRN/IR is done their by purchase history gets generated.
    In std SAP these type of item can be deleated but  the user wants that these type of Items in purchase order should not be deleated for which PURCHASE order history is generated.
    And their should be an error or warning message when ever the user try for deleating the Item.
    So Can any one  guide how to proceed?
    solution is very URGENTLY needed.
    Regards,
    Rajashekhar

    Hi,
    You can ask your ABAPer to write a piece of code in the enhancement MEVME001 in such a way that he has to check the EKBE(History per Purchasing Document) table for the entries by passing the PO & PO line item number, if the entries are present then the error deletion of the item cannot be done.
    Thanks,
    Mahesh.

  • How to restrict the user to enter the item in purchase order?

    I want to restrict user to enter the item in purchase order.
    How can i do this?
    Please help
    Abhishek

    Hi,
       You may create a transaction variant for ME21N in SHD0 transaction. Make the item field as output only as shown below:
    Result:
       You may check the doc: Learning SHD0 with Example
    Regards,
    AKPT

  • I have the Watchtime app on my iPad (1) and after an iPad restore my purchased items in the watch time app will not restore, however the items appear for purchase. how can i get the items to restore.

    Puchased items in my watchtime app will not restore to my ipad (1) after an ipad restore. The items appear ready for purchase. how can i restore the items.

    Following ultimately helped me : Make sure that you are logged in at the App Store App or iTunes App with your apple ID and password with a US account. Turn your iPad off and on and than you should see the Radio button again. It won't work if you are logged on with a foreign account. If you are not logged in at all, it worked, too.

  • How to create item wise invoice with reference to sales order.

    Hi ,
    Please let me know how to create item wise invoice with reference to sales order.
    Ex : Sales order has 2 line items .
              When creating invoice system should create two invoices for each line items.
    I have tried with copy control but I am not able to do it.
    Please advise.
    Regards

    Hi,
    Please let us know your exact requirement. Whether you want it to be fixed like only one line item to be billed every time ot it to be based on selection you do every time.
    As per my understanding it should not be fixed and in that case it should like as follows,
    In VF01 you will select Del. document/S.O. number and click on selection list and will take you to next screen as mention below,
    and select desire line item to be billed and click on copy and will take you to billing screen.
    Regards,
    Ajit K Singh

  • How to use Apple Store app to purchase item in Favorites?

    How to use Apple Store app to purchase an item in 'Favorites'?

    You can't delete the App Store app on the iPod. You can only hide it via Restrictions (Settings>General>Restrictions).
    If not hidden by restrictions, have you used the SpotLight search to try to find it?
    Last
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

  • Hi - how do  I download items already purchased?  I have tried store and search for available nloads but it t

    Hi - how do  I download items already purchased?  I have tried store and search for available downloads but it tells me they are already downloaded - they are not however - fyi I lost my phone so I am using a new phone with the same apple id and assumed I could just re-access my previously purcahsed items - how do I find them to download?
    Many thanks

    many thanks for a really fast response - Yes I have seen on other postings since you only get one hit and you are right I should have backed up and didn't as I am a bit of a novice and naive (but learning fast now).  Have used your suggestion and accessed and downloaded some historical apps.
    many thanks - I will ensure I back up regularly going forward. 
    Thanks again

  • How to configure Sales order item text copy to Purchase requisition item

    Hi,
    How to configure sales order item text copy to Purchase requisition text then copy to PO item text.
    Regards
    Jack

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

Maybe you are looking for

  • 4.3 and 16.9

    Why is it when Yesterday (12) on Freview Transmit via the BT vision box it shows in 4.3 and on my Samsung freeview telly and Panasonic I get a16.9 perfect screen fit  seems silly to me maybe they will when they "sort" out subtitles on demand this wil

  • How to download the sd version of a movie onto my ipad, after purchasing the hd.

    I Buy hd versions of all my movie as they look better on the big screen tv. With that said, I only want to download the sd versions onto my iPads when were going to be on long car trips, otherwise I just stream it via wifi to save space. . i have wen

  • Is iPhoto and iMovie and garage band on Lion reinstall thumb drive from Apple??

    Is iphoto and imovie and garage Band On the Os x Lion reinstall thumb Drive Sold By Apple???

  • Problems with servlet filters

    Hello, I'm trying to implement filters for some of the examples presented in the j2ee tutorial. Thus, I've realized a very simple filter that works very well for the Converter example (mapped to the index.jsp URL). But this filter doesn't work with t

  • Category Attribute - Text

    Dear MDM Experts, I want to import a quite long text into a Category Attribute, but when I do the mapping in the Import Manager, the message says that the imported text is too long, and it will be cutted to 128 character. Is there any solution for th