Creating a query to show info similar to MB5B

Hi there,
I am creating a query (similar to the information shown on MB5B) for one of our users to display material documents, material valuation class PLUS stock figures as of that date for multiple special stock indicators.
I have had no problems getting the material docs and valuation class and have set up a join for tables MSEG and MKPF which works fine.
The problem is trying to locate where the stock as of a particular date is held ? Is this information held in a specific table ? I have attempted to run through the ABAP code for MB5B to try and locate what the program itself does to retrieve the opening and closing stocks but can't seem to find the table that holds this info.
Any information welcomed! My next option if I can't get a query to do this, is to make a copy of MB5B code and make the necessary adjustments in the ABAP to allow multiple special stock indicators to be selected - although I'm not sure how big a task that will be !!
Thanks.

Thanks very much for the prompt information.
MSPR unfortunately is empty in our system, MBEW does show current stock but doesn't appear to be backdated (ie. a need to be able to retrieve stock for a material on a specific date in the past).
Thanks again.

Similar Messages

  • Trying to create a query that shows Sales Order/Invoice Totals as well as Paid/Outstanding/Available Down Payments

    Currently working on SAP B1 v8.82
    I'm looking to generate a query that will give an overall report for a given customer that shows Sales Order No, Invoice No, Sales Order Total, Invoice Total, Amount Paid on Invoice, Amount Remaining on Invoice, Down Payments Available, Open on Sales Order.
    I'm not sure what the best way to select the columns in bold above.  Invoice Total should be self-explanatory.  Amount Paid should be any down payments or applied payments on the invoice.  The balance due on the invoice (which seems to be T0.DocTotal if I'm not mistaken) should = 'Invoice Total' - 'Amount Paid on Invoice'. In the Down Payments Available column I want the total amount of money on the account or on down payments that aren't tied to a Sales Order.  If a client overpaid in the past for instance and there's a credit on their account, then it should contribute to this sum.  Open on Sales Order should be pretty easy.  I guess it's just the sum of everything that is still open on the Sales Order.  I'm just not sure what the best way to sum all the un-delivered freight, tax, and line items is.  Here's what my query looks like so far.
    SELECT DISTINCT T4.[DocNum] [Sales Order No],
    T0.DocNum [Invoice No],
    T4.DocTotal [Sales Order Total]
    T0.DocTotal [Amount Outstanding],
    FROM OINV T0
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN DLN1 T2 ON T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
    INNER JOIN RDR1 T3 ON T2.BaseEntry = T3.DocEntry AND T2.BaseLine = T3.LineNum
    INNER JOIN ORDR T4 ON T3.DocEntry = T4.DocEntry
    INNER JOIN OSLP T5 ON T4.SlpCode = T5.SlpCode
    WHERE T0.CardName Like '%%[%0]%%'
    GROUP BY T4.DocNum, T0.DocNum, T0.DocTotal, T4.DocTotal
    I tried doing a little searching around for queries similar to what I need, but I could find exactly what I was looking for and I'm very unfamiliar with OJDT, JDT1, and ITR1 tables which I think might be important to finding unapplied payments...

    Thanks.  There's a few problems though.
    1)  It seems that OINV DocTotal != Balance Due.  I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
    2)  It's pulling incoming payments from different customers.  I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry]  =  T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]"  In one example I have 2 incoming payments 446 and 614.  Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542.  *I was able to fix this by adding WHERE T5.CardCode = [%0]*
    3)  I'm going to work with this a little bit and see if I can alter it to make it work for me.  Basically this query falls a little short on the following:
    -  Doesn't include incoming payments that aren't linked to a down payment invoice.
    -  Does not give the Invoice Total (I'd like to know how much of the SO was invoiced.  DocTotal seems to give me Amount Invoiced - Down Payments.  I'm not sure the best way to get this number.  Maybe I could do the sum of each line * tax + freight)
    -  Does not give the outstanding amount on an invoice.  The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
    -  Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied.  Perhaps this would be easily accomplished by simply pulling in their account balance.

  • Query to show all A/P invoices associated with a PO

    Hi,
    I need some help to create a query to show all A/P invoices associated with a PO. I would like the input to be a PO# and the output to show all the A/P invoices and be able to drill down to the A/P invoices.
    Any help would be appreciated.
    Thanks!
    Jane

    hi,
    P.O target documents query try this,
    SELECT distinct 'GRN', D0.DocNum,D0.DocDate, D0.DocDueDate, D0.DocTotal,'AP INV', I0.DocNum,I0.DocDate, I0.DocDueDate, I0.DocTotal, I0.PaidToDate
    FROM ((OPDN D0 inner Join PDN1 D1 on D0.DocEntry = D1.DocEntry) full outer join (OPCH I0 inner join PCH1 I1 on I0.DocEntry = I1.DocEntry) on (I1.BaseType=20 AND D1.DocEntry = I1.BaseEntry AND D1.LineNum=I1.BaseLine))
    WHERE (D1.BaseType=22 AND D1.BaseRef='[%0]') OR (I1.BaseType=22 AND I1.BaseRef='[%0]') OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry FROM PDN1 WHERE BaseType=22 AND BaseRef='[%0]'))
    Jeyakanthan

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Query that show all users who have access in BW cubes & Query's Owner

    Hi Experts,
    Good day !!!
    I would like to know if it's possible to create a query that tell us who has access to all the cubes in BW? This is a business requrement that we should create if possbile.  We also wonder if we may also create a query for shows us all the queries and who created them? We are doing this manually for each query. We only manually look for all the areas that I have access, but if it can be done systematically, that would save a lot of time.
    Thanks in advance guys !!!
    Best Regards,
    Marshanlou

    Hi,
    Then For this You need to create the table of your own fields with all the user names in R/3 side and Develop the report,
    Bue users will not the stay in same company , They will be changing and some user will be coming, every time u can t go enhancement.
    Regards
    Radha

  • Creating Query to show items from open sales orders with a/p invoice

    Hi experts,
    I am trying to create a query that will show what items/quantities are still in open sales orders that can now be filled by an incoming shipment of goods, processed through the a/p invoice.
    This needs to be done using subqueries, which I have no experience with.  I am trying to do this using the ORDR and RDR1 tables to show the open items from the sales orders and the OPOR and POR1 tables to show items just received in to inventory.  I would like the query to show exactly the open item's, their quantities, the posting date from the sales order and the customer name that can now be filled from the new shipment through the a/p invoice.
    I appreciate the assistance,
    Hayden (on behalf of Todd)

    Hello,
    try this
    SELECT T0.[DocDate], T1.[ItemCode], T1.[Dscription],( T1.[Quantity] - T1.[DelivrdQty]) As "Open Qty" FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDueDate]  <= [%0]And ( T1.[Quantity] - T1.[DelivrdQty]) != 0
    Try this query in query manager.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jul 13, 2011 6:27 AM

  • Errors While creating a query on Infoset in NW2004s system

    I am  getting following errors when we attempt creating a query with an Infoprovider of type INFOSET..
    system error in program CL_RSR  and form GET_COB_PRO-02
    program error in class SAPMSSY1 method : Uncaught_exception.

    Which SPS are you in?
    This note delas with a similar error:
    Note 903436 - Info set with key date derivation type UNCAUGHT_EXCEPTION
    Symptom
    If you use a characteristic that supports master data in an info set and you define a key date derivation type for this characteristic, the following termination may occur when you activate the InfoSet:
    UNCAUGHT_EXCEPTION in class CL_RSR, method GET_COB_PRO
    Other terms
    rsiset, key date derivation of characteristics type, cl_rsq_iset_vers, check_tmon_conditions
    Reason and Prerequisites
    This problem is caused by a delivery error/program error.
    Thanks,
    Raj

  • Help: How to create a query like this?

    I am working on a report and I am facing on a question like this:
    TABLE TEST has two columns A and B
    A B
    2 INFO21
    2 INFO22
    3 INFO31
    3 INFO32
    3 INFO33
    I'd like to create a query which will return
    A INFO
    2 INFO21, INFO22
    3 INFO31, INFO32, INFO33
    Please help.
    Thank you in advance
    Jimmy

    A lot of pretty fine examples here:
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    Rgds.

  • An exception occured while creating a query in EntityManager

    I was directed to create a new topic rather than resurrect a long dead thread. I appreciate the correction in this.
    Persistence, Entity Manager, NetBeans 6.7.1, GlassFish v2.1, Database
    I am getting the following Stack Trace:
    [#|2009-12-08T16:22:06.171-0500|SEVERE|sun-appserver2.1|javax.faces|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=390db479-49c0-47e5-bcdc-e5e07f871644;|javax.faces.event.AbortProcessingException: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    javax.faces.event.AbortProcessingException: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
         at javax.faces.event.MethodExpressionValueChangeListener.processValueChange(MethodExpressionValueChangeListener.java:82)
         at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:123)
         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:416)
         at sun.reflect.GeneratedMethodAccessor290.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.faces.extensions.avatar.components.PartialTraversalViewRootHelper.broadcastEvents(PartialTraversalViewRootHelper.java:500)
         at com.sun.faces.extensions.avatar.components.PartialTraversalViewRootHelper.processValidators(PartialTraversalViewRootHelper.java:267)
         at com.sun.faces.extensions.avatar.components.PartialTraversalViewRootImpl.processValidators(PartialTraversalViewRootImpl.java:152)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
         at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.executeServlet(CometEngine.java:609)
         at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.handle(CometEngine.java:356)
         at com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)
         at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175)
         at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153)
         at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:209)
         at com.davisco.web.jpa.controllers.EmpdataJpaController.findEmpdataEntities(EmpdataJpaController.java:165)
         at com.davisco.web.jpa.controllers.EmpdataJpaJpaController.findEmpdataJpaEntities(EmpdataJpaJpaController.java:155)
         at com.davisco.web.jpa.controllers.EmpdataJpaJpaController.findEmpdataJpaEmpnoEntities(EmpdataJpaJpaController.java:214)
         at com.davisco.web.jsf.EmpdataController.getEmployeesByEmpno(EmpdataController.java:471)
         at com.davisco.web.jsf.EmpdataController.addEmployeeEmpnos(EmpdataController.java:439)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         ... 48 more
    Caused by: Exception [TOPLINK-8034] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Error compiling the query [select object(o) from Empdata as o]. Unknown abstract schema type [Empdata].
         at oracle.toplink.essentials.exceptions.EJBQLException.unknownAbstractSchemaType(EJBQLException.java:494)
         at oracle.toplink.essentials.internal.parsing.ParseTreeContext.classForSchemaName(ParseTreeContext.java:163)
         at oracle.toplink.essentials.internal.parsing.SelectNode.getClassOfFirstVariable(SelectNode.java:366)
         at oracle.toplink.essentials.internal.parsing.SelectNode.getReferenceClass(SelectNode.java:354)
         ... 65 more
    It appears that problem
    |javax.faces.event.AbortProcessingException: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    is actually caused by
    Exception Description: Error compiling the query [select object(o) from Empdata as o]. Unknown abstract schema type [Empdata].
    The Query is a very basic query.
         private EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("PersistPU");
         public EntityManager getEntityManager() {
              return emf.createEntityManager();
         private List<Empdata> findEmpdataEntities(boolean all, int maxResults, int firstResult) {
              EntityManager em = getEntityManager();
              try {
                   Query q = em.createQuery("select object(o) from Empdata as o"); // Problem line
                   if (!all) {
                        q.setMaxResults(maxResults);
                        q.setFirstResult(firstResult);
                   return q.getResultList();
              } finally {
                   em.close();
    I have reviewed my Configuration Files and Source Packages without solution.
    Where do I need to look or what do I need to do to determine the error?

    After reading similar discussion in the OTN Discussion page ( [Thread: Unknown abstract schema type |http://forums.oracle.com/forums/thread.jspa?threadID=602826] ) I reviewed how I was creating my EntityManagerFactory. I realize also more information is required for a more complete understanding of the circumstances.
    I originally created a project in Netbeans using the wizard to create a JSF Project from Entity Classes. Through trial and error I produced from the resulting JSF Web pages a maintenance project for a given table in the database. I was then given the task to split the table and build a new project utilizing the existing entity classes in a production project.
    After the table was split and the new entity classes created I then entered the task of starting a new project using the entity classes in the production project. To do this I used the Netbeans wizard to create the JpaControllers in the production project. I copied as much code as I could from the working table maintenance project I had just completed. I have now started to connect the two projects. I have included the production project with the entities as a library project. I created the persistence.xml file in the new project with the same persistence unit name as the production project. I have included the Toplink Extensions as a library in the new project (even though the production project has the entity classes). From what I have been able to glean I am thinking my EntityManagerFactory declaration may be misdirecting the finding of the Empdata schema in my new project. Here is how I declared my EntityManager in the example given:
    private EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("DvPersistPU");
         public EntityManager getEntityManager() {
              return emf.createEntityManager();
    Here is the wizard generated method which fails with a NullPointerException in the return statement:
         @PersistenceUnit(unitName = "PersistPU")
         private EntityManagerFactory emf = null;
         public EntityManager getEntityManager() {
              return emf.createEntityManager();
    Hopefully this will better help someone to direct me to determining the cause of my error or the error of my ways.
    NullPointerException stacktrace just mentioned:
    EmpdataController: getEmployeesByEmpno [0]
    AbortProcessingException thrown when processing event of type 'javax.faces.event.ValueChangeEvent' during phase 'PROCESS_VALIDATIONS 3' for component with ID or Client ID of 'srchEmp'
    javax.faces.event.AbortProcessingException: java.lang.NullPointerException
    javax.faces.event.AbortProcessingException: java.lang.NullPointerException
    at javax.faces.event.MethodExpressionValueChangeListener.processValueChange(MethodExpressionValueChangeListener.java:82)
    at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:123)
    at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:416)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.faces.extensions.avatar.components.PartialTraversalViewRootHelper.broadcastEvents(PartialTraversalViewRootHelper.java:500)
    at com.sun.faces.extensions.avatar.components.PartialTraversalViewRootHelper.processValidators(PartialTraversalViewRootHelper.java:267)
    at com.sun.faces.extensions.avatar.components.PartialTraversalViewRootImpl.processValidators(PartialTraversalViewRootImpl.java:152)
    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    Caused by: java.lang.NullPointerException
    at com.company.web.jpa.controllers.EmpdataJpaController.getEntityManager(EmpdataJpaController.java:71)
    at com.company.web.jpa.controllers.EmpdataJpaController.findEmpdataEntities(EmpdataJpaController.java:163)
    at com.company.web.jpa.controllers.EmpdataJpaController.findEmpdataEntities(EmpdataJpaController.java:155)
    at com.company.web.jpa.controllers.EmpdataJpaController.findEmpdataEmpnoEntities(EmpdataJpaController.java:214)
    at com.company.web.jsf.EmpdataController.getEmployeesByEmpno(EmpdataController.java:471)
    at com.company.web.jsf.EmpdataController.addEmployeeEmpnos(EmpdataController.java:439)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ... 49 more
    Would someone please help me know where to look next or point me in the direction to find the cause of the error(s)?
    Thank you.

  • Query to show component cost of production order

    Need help writing a query to show the component cost of a production order, using moving average valuation method.
    I understand the table oinm has all history for an item and its calculated price.
    would like to query a production order to show the cost of components at the time of receipt of that production order.
    ideas?

    I have created this query that will work:
    SELECT t0.docdate,t0.appobjtype as [Prod/Comp],t0.itemcode,t0.dscription,t0.outqty,t0.calcprice,(t0.outqty*t0.calcprice) as [Trans Value],t0.warehouse,t0.appobjabs as [Production Order] FROM OINM T0  WHERE t0.transtype='59' and T0.[AppObjAbs] =[%0] order by t0.transnum
    The prompt is where you enter the production order document number.  It will show the calculated cost of components at the time of receipt.
    Thanks for the guidance.
    Rich

  • How to get a field that using variable in order to create a query

    Hi,
    I found a difficulty when creating a query. so, I would like to ask you some question.
    1. How to get a field that using variable which that field I want to put it in my query?
    For example, I would like to take quantity field in inventory audit report. And when I put my cursor in
    quantity field, there was only variable, item, etc. How to get this and put it in query?
    2. How to combined the invoice quantity with inventory audit report quantity?
    3. I have a query like this:
    SELECT distinct T0.[DocDate] as 'Tanggal', T0.[DocNum] as 'No.Faktur', T1.[ItemCode] as 'Kode Barang',
    T1.[Dscription] as 'Deskripsi', T1.[Quantity] as 'Quantity', ((T1.[LineTotal])/(T1.[Quantity])) as 'Harga
    Satuan', T1.[LineTotal] as 'Harga Total', T3.[CalcPrice] as 'HPP Satuan', ((T3.[CalcPrice]) * (T1.
    [Quantity])) as 'HPP Total', T4.[ItmsGrpNam] as 'Jenis Barang', T5.[SlpName] as 'Nama Sales', T1.
    [WhsCode] as 'Kode Gudang' FROM [dbo].[OINV] T0 INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry =
    T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OINM T3 ON T2.ItemCode
    = T3.ItemCode INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod INNER JOIN OSLP T5 ON
    T0.SlpCode = T5.SlpCode WHERE T3.[TransType] = '13' and T3.[CreatedBy] = T1.[DocEntry] and T0.
    [DocDate] >=[%0] and T0.[DocDate] <=[%1] and T4.[ItmsGrpNam] =[%2] and T1.[WhsCode] =[%3]
    Is it possible if I just take one invoice with invoice quantity and only show up at once although I have a
    lot item cost for that item? (because I'm using FIFOmethod).
    Please help me.. cause I'm stuck with this thing :l.
    Thank you very much, and I'm waiting your respon soon.
    Regards,
    Sisca

    Try this one:
    SELECT distinct T0.DocDate as 'Tanggal', T0.DocNum as 'No.Faktur', T1.ItemCode as 'Kode Barang',
    T1.Dscription as 'Deskripsi', T1.Quantity as 'Quantity', ((T1.LineTotal)/(T1.Quantity)) as 'Harga
    Satuan', T1.LineTotal as 'Harga Total', T3.CalcPrice as 'HPP Satuan', ((T3.CalcPrice) * (T1.
    Quantity)) as 'HPP Total', T4.ItmsGrpNam as 'Jenis Barang', T5.SlpName as 'Nama Sales', T1.
    WhsCode as 'Kode Gudang'
    FROM dbo.OINV T0 INNER JOIN dbo.INV1 T1 ON T0.DocEntry =T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    INNER JOIN OINM T3 ON T2.ItemCode = T3.ItemCode AND T3.TransType = '13' and T3.CreatedBy = T1.DocEntry AND T3.Warehouse = T1.WhsCode
    INNER JOIN OITB T4 ON T2.ItmsGrpCod = T4.ItmsGrpCod
    INNER JOIN OSLP T5 ON T0.SlpCode = T5.SlpCode
    WHERE T0.DocDate >=[%0\] and T0.DocDate <=[%1\] and T4.ItmsGrpNam =[%2\] and T1.WhsCode =[%3\]
    Thanks,
    Gordon

  • IN NEED OF A SCCM 2012 QUERY THAT SHOWS LAST TIME SOFTWARE WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%"

    Did you create a software metering rule for each software title? if not then you need you do that first and it will take over a week before you see results.
    Also keep in mind that your query will only find x86 software titles.
    http://www.enhansoft.com/

  • Help in creating a Query

    Hi,
    I have 2 ODS, one holding the PO data and other with GR data.
    Now I want to create a report where where I can show pick up specfic field from each of the ODS and show.
    For example I want to Open order summary report.
    Here my selection is on PO Creation date.
    In the report I need to show these fields.
    PO Creation date - from PO ODS
    PO Num  - from PO ODS
    PO line  num - from PO ODS
    PO item text - from PO ODS
    PO Qty - from PO ODS
    GR Qty - from GR ODS.
    For this I have used replacement path for Variables PO Num and PO line Num.
    I am able to get the result required, But the PO qty and GR qty are showed in different line rather than Combined into one line.
    When I move the PO creation date into free charector then it is showing combine information of PO & GR qty in one line. 
    Can any one provide me the best data model which I should go.
    Note : Presently we are using Infoset but we want to get ride of it.
    Regards,
    Tony

    Hi Doniv,
    we have tried it, but the problem when we use multiprovider or infocube is when we select the data based on fields which are not common on the boths sides it will not pick up the data correctly. For example PO creation date is on PO ODS. So when you create a query on the multiprovider with PO creation date as in selection. Then it will pick on PO data as PO creation date is not in GR ODS.
    anyother ways...
    Regards,
    Tony

  • How do I create an effect on on object similar to this on Illustrator?

    How do I create an effect on on object similar to this on Illustrator?
    Please see the type show in the link provided : "CHIVAS"
    http://2.bp.blogspot.com/-F-lpKYp-QnE/UH8jwTkTmfI/AAAAAAAAOWQ/BuN9gm9Pe5U/s1600/Chivas+log o+2012.jpg
    Also if anyone knows what font this is, it would be much appreciated.
    Many thanks in advance,
    Nick

    Hello Ellie,
    This is what I do:
    First Create the brushes by selecting the shapes desired. Select the shape and place it into the burshes window.
    (Main Menu: Window + Brushes)
    Then A new window will show: Please select "New Scatter Brush"
    After you click OK, a new window will appear:
    In here I have selected Random Size, Spacing and Rotation. You may want to adjust the percentages to you design. The last thing to select is the Colorization Method; in this case "Tints" is selected because will allow me to change the color of the shape by using the color pallet window. After that click Ok and use the brush tool.
    This is the end result after using the Mask Feature:
    I know you can do something a lot better than this sample. I hope this helps!

  • Variable entry screen for query doesnt show selection values.

    Hi,
    I've created a query with date varibale Quarter From-To. When i execute this query, the variable entry screen pops up but when i try to select values just shows ??? and not the text.
    if i run the same query in RSRT the variable entry screen pops up but here the selection values are present for me to choose from.
    can anyone tell why the values arent showing when the query is executed.
    Thanks

    yes, it seems to be a problem with NetWeaver BI BEx Java Web runtime as it works in RSRT and web analyzer. Found a note on marketplace note 125357 - No values displayed for attributes in input help but this did not resolve issue.
    A call has been raised now as it seems to be a product fault

Maybe you are looking for

  • Adobe Premiere Pro Cs6 Will Not Open

    I have an issue. Essentially I began installing Adobe Premiere Pro, and it installed halfway before concluding it had allegedly finished installing all the updates. This is not true as I cannot click the application in Creative Cloud, and my arrow re

  • BW: Transaction Key  in 2LIS_02_ITM

    Hi , In the datasource for Purchasing 2LIS_02_ITM and it is also there in the Schedule line item 2LIS_02_SCL, there is a field called BW: Transaction Key mapped to BWVORG in R/3. It looks to me, that it provides information about, whether it is a inv

  • What do you have to do to incur a fee on iColud

    In the Lenghty agreement that comes in OS5 I see that I must pay any fees I am charged but the structure is not explained anywhere. Why cant apple make this clear before one gets into something by mistake. I upgraded to the new operating system on my

  • Missing Flash more on iPad than iPhone

    I don't want to start up a big discussion, but I have to say that in the year I've had my iPhone, I didn't miss Flash once. It has never been an issue. Now, with my new iPad (which I absolutely love!), I have missed not having Flash loads of times, j

  • Update will not install. It says close any other Firefox windows currently open, only one open is the update window.

    You Tube videos flicker or shuffle very fast, Display expands to the right then slides to the left every second. I might have to uninstall Firefox. This is a mess.