Query Showing BP Properties

Hello All -
We would like a query that shows only the BP Accounts with BP Property #2 selected.  In this query, we would like to show the status (Y or N) of BP Properties 3-12.  Can anyone help with this?
Thanks,
Mike

hi Mike,
try this,
SELECT T0.[CardCode], T0.[CardName], T0.[QryGroup3], T0.[QryGroup4], T0.[QryGroup5], T0.[QryGroup6], T0.[QryGroup7], T0.[QryGroup8], T0.[QryGroup9], T0.[QryGroup10], T0.[QryGroup11], T0.[QryGroup12]
FROM OCRD T0
WHERE T0.[QryGroup2] = 'Y'
please let me know if this serves your requirement.
regards,
FIdel

Similar Messages

  • How To Make Search Query Showing the Result As List of Buttons.

    Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
    this is my on screen keyboard i made..
    im making a system that the result were a list of buttons.. showing like this
    This was supposed to be the output of the query that i need to do..
    Please help me.. i just need a idea or tips how to make this one.

    Here is code I posted recently for another question
    Public Class Form1
    Const BUTTON_SIZE As Integer = 20
    Const SPACE As Integer = 5
    Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.
    Dim buttons As New List(Of List(Of MyRadioButton))
    For row = 1 To 6
    Dim newRow As New List(Of MyRadioButton)
    buttons.Add(newRow)
    For col = 1 To 6
    Dim button As New MyRadioButton()
    button.row = row
    button.col = col
    button.Height = BUTTON_SIZE
    button.Width = BUTTON_SIZE
    button.Left = col * (BUTTON_SIZE + SPACE)
    button.Top = row * (BUTTON_SIZE + SPACE)
    button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
    Me.Controls.Add(button)
    newRow.Add(button)
    AddHandler button.CheckedChanged, AddressOf Radio_Change
    Next col
    Next row
    End Sub
    Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim button As MyRadioButton = CType(sender, MyRadioButton)
    Dim row As Integer = button.row
    Dim col As Integer = button.col
    End Sub
    End Class
    Public Class MyRadioButton
    Inherits RadioButton
    Public row As Integer
    Public col As Integer
    End Class
    jdweng

  • Query Show deptno 20 Last record to End

    Oracle 9i Database
    I want to create a query that show records, Deptno 20 last record to End.
    blow query show all records that are in emp table.
    SQL> select empno,ename,job,deptno, row_number() over (order by deptno) rno from emp;
         EMPNO ENAME      JOB           DEPTNO        RNO
          7782 CLARK      MANAGER           10          1
          7839 KING       PRESIDENT         10          2
          7934 MILLER     CLERK             10          3
          7369 SMITH      CLERK             20          4
          7876 ADAMS      CLERK             20          5
          7902 FORD       ANALYST           20          6
          7788 SCOTT      ANALYST           20          7
          7566 JONES      MANAGER           20          8
          7499 ALLEN      SALESMAN          30          9
          7698 BLAKE      MANAGER           30         10
          7654 MARTIN     SALESMAN          30         11
         EMPNO ENAME      JOB           DEPTNO        RNO
          7900 JAMES      CLERK             30         12
          7844 TURNER     SALESMAN          30         13
          7521 WARD       SALESMAN          30         14
    14 rows selected.
    SQL> I want result
    EMPNO ENAME      JOB           DEPTNO        RNO
    7566 JONES      MANAGER           20          8
    7499 ALLEN      SALESMAN          30          9
    7698 BLAKE      MANAGER           30         10
    7654 MARTIN     SALESMAN          30         11
    7900 JAMES      CLERK             30         12
    7844 TURNER     SALESMAN          30         13
    7521 WARD       SALESMAN          30         14Regards

    with t as
    ( select    7782  e1,'CKING '  e2  ,  ' PRESIDENT '  e3     ,   10  e4    from dual union all   
       select    7934, 'MILLER'  ,  'CLERK  '        ,    10       from dual union all  
       select    7369, 'SMITH '  ,  'CLERK  '        ,    20       from dual union all     
       select    7876, 'ADAMS'   , 'CLERK '        ,     20       from dual union all   
       select    7902, 'FORD '   ,  'ANALYST '       ,  20       from dual union all   
       select    7788, 'SCOTT'   , 'ANALYST '       ,  20       from dual union all
       select    7788 ,' SCOTT '  ,'ANALYST '  ,       20       from dual union all       
       select    7566, 'JONES ',    'MANAGER '   ,     20       from dual union all 
       select    7499, 'ALLEN ' ,    'SALESMAN'   ,    30       from dual union all
       select    7698, 'BLAKE ' ,    'MANAGER '    ,   30       from dual union all 
       select    7654, 'MARTIN' ,  'SALESMAN '  ,    30       from dual union all 
       select    7900, 'JAMES ' ,   'CLERK '      ,       30       from dual union all  
       select    7844, 'TURNER' ,  'SALESMAN ' ,     30       from dual union all  
       select    7521 ,'WARD ' ,    'SALESMAN ' ,     30       from dual   
    SELECT o.*
      FROM (SELECT p.*,
                   MAX (CASE
                           WHEN p.e4 = 20
                              THEN p.rno
                        END) OVER (ORDER BY p.e4) AS mx
              FROM (SELECT a.*, ROW_NUMBER () OVER (ORDER BY e4) rno
                      FROM t a) p) o
    WHERE o.rno >= o.mx

  • QuickTime Pro keeps crashing when I open "Show Movie Properties"

    I keep getting the "QuickTime Player has encountered a problem and needs to close. We are sorry for the inconvenience." crash when I try and do "Show Movie Properties" on .MOV files.
    The error signature is:
    EventType : BEX P1 : QuickTimePlayer.exe P2 : 7.65.17.80
    P3 : 4afa5828 P4 : QuickTimePlayer.dll P5 : 7.65.17.80 P6 : 4afa5820
    P7 : 0000130d P8 : c0000409 P9 : 00000000
    Any suggestions?
    I'm running the latest QuickTimePro (7.6.5) on WinXP SP3

    in fact it's one of the few bits of Quick Time that seems stable on my PC!
    Hmmmmm ... your symptoms aren't typical for what I'm about to check on. But I think we ought to check to see if any other application has sprayed old QuickTime componentry into unorthodox places on the PC. (That's one possible cause of a BEX.)
    (1) Go Start > My Computer.
    (2) From the Tools menu, select Folder Options ...
    (3) Click the View tab.
    (4) Make sure Show hidden files and folders is selected and Hide extensions for known filetypes is unchecked.
    (5) Click OK.
    Now head down into your C:\Windows\system32\ directory. What files and folders with QuickTime in the file/folder-name can you see in there?
    (In a standard QuickTime installation, you should see precisely two files, QuickTime.qts and QuickTimeVR.qtx, and no QuickTime folders whatsoever.)

  • Quicktime Player X Show Movie Properties is gone?

    I still have QT player 7 on my machine, but why is "Show Movie Properties" gone from QT X Player? I need that in order to turn on and off text layers to get chapters to work in BitVice. So I guess the fix is just use QT Player 7 in the meantime? Thanks for any insight!

    Hi,
    Maybe there should have been an option for Quicktime Pro users to ignore the Quicktime X update.
    I don't see the point of Quicktime X (other than the cosmetic changes) Why do we need two copies of Quicktime when everything we need from Pro is absent from X.
    I hope that X gets a Pro option in the near future before Apple brings out another OS update that makes Quicktime 7 Pro obsolete.
    Regards

  • Problem showing certificate properties from signed PDFs

    I'm signing two PDF files with two distinct signatures.
    When performing the following operation in Adobe Acrobat Reader 8 we obtain different results:
    Signatures, right button on top of "Signed By ...", Show Signature Properties, Show Certificate
    With one of the PDFs that's possible and we can see the certificate properties, with the other we cannot see the properties of the certificate and Acrobat Reader crashes.
    The main differences between the certificates are:
    Certificate with good results:
    Basic Constraints: "Subject Type = End Entity
    Path Length = None Constraint "
    Key Usage: Digital Signature, Non-Repudiation, Key Encipherment, Date Encipherment, Key Agreement (f8)
    Certificate with bad results:
    Basic Constraints: "Subject Type = End Entity
    Path Length Constraint = None "(Critical X.509 Version 3 extension)
    Key Usage: Digital Signature, Key Encipherment, Encipherment Date (b0 00) (Critical X.509 Version 3 extension)
    Is Adobe Acrobat Reader capable of obtainning a signature property that has Critical Extensions?
    Thanks for any help.

    Send me the file to [email protected], I'll try to have a look at my environment
    Tal
    www.arx.com

  • How to restore/config JDev Property Inspector to show all properties/attrs

    I'm using JDeveloper 11.1.1.0.0, and found that the Properties Inspector does not display all the attributes (for viewing/editing), instead, it shows only the attributes that has values been set explicitly.
    How can I configure it and/or restore it to show all properties/attributes of a component?

    user518778 - since you are an internal Oracle user please use the internal email list jdev_us to post your questions.

  • Cmd-J  Show Movie Properties missing in QT10???

    Where did the show movie properties window go to in QT10?

    I was having the same problem, needing that movie properties dialog.   Follow these instructions to install QT7, it will solve your problem:  http://support.apple.com/kb/ht3678

  • Query showing all values

    Hi,
    I want to build a query which shows all accounts. What I mean even if there is a 0 value for that account in that period i want to see all the values for the account number.
    Can anyone help me?
    Thanks

    Hello Abhi,
    if you set the setting "Access Type for Result Values" to "Master Data" in the properties of your account characteristic in the Query Designer you should see all the accounts from your master data table even the ones that have no values in the cube. Is this what you want to do?
    For more details please check here:
    http://help.sap.com/saphelp_nw70/helpdata/en/f0/95bc272b9e4e4b85cdcef59c37d55d/frameset.htm
    Regards,
    Maxim

  • QUERY FOR ITEM PROPERTIES

    hello ,
    i need to know how to do a query that shows the item info
    itemcode     itemname     dept     properties
    itema           testa            acc      dining                  (qry group #_)
    itema           testa            acc      patio                    (qry group #_)
    itemb           testb            fur        entcenter            (qry group #_)
    so if itema has 5 properties list them one line each instead of one line and different columns for different property.
    as for the acc and fur does are the itemgroup name instead of the numbers.  
    any help is greatly appreciated.
    thank you.

    select src.ItemCode,src.ItemName,src.ItmsGrpNam
    from
    (select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup1 = 'Y' and OITG.ItmsTypCod = 1
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup2 = 'Y' and OITG.ItmsTypCod = 2
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup3 = 'Y' and OITG.ItmsTypCod = 3
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup4 = 'Y' and OITG.ItmsTypCod = 4
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup5 = 'Y' and OITG.ItmsTypCod = 5
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup6 = 'Y' and OITG.ItmsTypCod = 6
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup7 = 'Y' and OITG.ItmsTypCod = 7
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup8 = 'Y' and OITG.ItmsTypCod = 8
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup9 = 'Y' and OITG.ItmsTypCod = 9
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup10 = 'Y' and OITG.ItmsTypCod = 10
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup11 = 'Y' and OITG.ItmsTypCod = 11
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup12 = 'Y' and OITG.ItmsTypCod = 12
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup13 = 'Y' and OITG.ItmsTypCod = 13
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup14 = 'Y' and OITG.ItmsTypCod = 14
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup15 = 'Y' and OITG.ItmsTypCod = 15
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup16 = 'Y' and OITG.ItmsTypCod = 16
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup17 = 'Y' and OITG.ItmsTypCod = 17
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup18 = 'Y' and OITG.ItmsTypCod = 18
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup19 = 'Y' and OITG.ItmsTypCod = 19
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup20 = 'Y' and OITG.ItmsTypCod = 20
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup21 = 'Y' and OITG.ItmsTypCod = 21
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup22 = 'Y' and OITG.ItmsTypCod = 22
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup23 = 'Y' and OITG.ItmsTypCod = 23
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup24 = 'Y' and OITG.ItmsTypCod = 24
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup25 = 'Y' and OITG.ItmsTypCod = 25
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup26 = 'Y' and OITG.ItmsTypCod = 26
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup27 = 'Y' and OITG.ItmsTypCod = 27
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup28 = 'Y' and OITG.ItmsTypCod = 28
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup29 = 'Y' and OITG.ItmsTypCod = 29
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup30 = 'Y' and OITG.ItmsTypCod = 30
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup31 = 'Y' and OITG.ItmsTypCod = 31
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup32 = 'Y' and OITG.ItmsTypCod = 32
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup33 = 'Y' and OITG.ItmsTypCod = 33
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup34 = 'Y' and OITG.ItmsTypCod = 34
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup35 = 'Y' and OITG.ItmsTypCod = 35
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup36 = 'Y' and OITG.ItmsTypCod = 36
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup37 = 'Y' and OITG.ItmsTypCod = 37
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup38 = 'Y' and OITG.ItmsTypCod = 38
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup39 = 'Y' and OITG.ItmsTypCod = 39
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup40 = 'Y' and OITG.ItmsTypCod = 40
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup41 = 'Y' and OITG.ItmsTypCod = 41
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup42 = 'Y' and OITG.ItmsTypCod = 42
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup43 = 'Y' and OITG.ItmsTypCod = 43
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup44 = 'Y' and OITG.ItmsTypCod = 44
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup45 = 'Y' and OITG.ItmsTypCod = 45
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup46 = 'Y' and OITG.ItmsTypCod = 46
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup47 = 'Y' and OITG.ItmsTypCod = 47
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup48 = 'Y' and OITG.ItmsTypCod = 48
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup49 = 'Y' and OITG.ItmsTypCod = 49
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup50 = 'Y' and OITG.ItmsTypCod = 50
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup51 = 'Y' and OITG.ItmsTypCod = 51
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup52 = 'Y' and OITG.ItmsTypCod = 52
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup53 = 'Y' and OITG.ItmsTypCod = 53
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup54 = 'Y' and OITG.ItmsTypCod = 54
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup55 = 'Y' and OITG.ItmsTypCod = 55
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup56 = 'Y' and OITG.ItmsTypCod = 56
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup57 = 'Y' and OITG.ItmsTypCod = 57
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup58 = 'Y' and OITG.ItmsTypCod = 58
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup59 = 'Y' and OITG.ItmsTypCod = 59
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup60 = 'Y' and OITG.ItmsTypCod = 60
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup61 = 'Y' and OITG.ItmsTypCod = 61
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup62 = 'Y' and OITG.ItmsTypCod = 62
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup63 = 'Y' and OITG.ItmsTypCod = 63
    union all
    select OITM.ItemCode,OITM.ItemName,OITG.ItmsGrpNam
    from OITM CROSS JOIN OITG
    where OITM.QryGroup64 = 'Y' and OITG.ItmsTypCod = 64) src
    order by src.ItemCode

  • Discoverer Report showing Null VS Show SQL query showing results !!!

    I created a simple Cross Tab Discoverer report from a custom SQL which has a calculation for balances. The output is giving all null values even though there are balances. The output doesn't seem right. So I copied the query from Tools-->Show SQL and ran the query in the TOAD where I'm showing balances for the report. I don't understand why it is not showing in the discoverer. Please help.
    Thanks
    Edited by: PA1B on Jan 27, 2010 11:40 AM

    Sorry for late reply.
    Below is the Show SQL query. I don't think the query is application dependent. C_1 is my calculation.
    SELECT o279709.SEGMENT3 as E279727,
    o279709.SEGMENT4 as E279728,
    CASE WHEN o279709.CURRENCY_CODE = 'USD' AND o279709.TRANSLATED_FLAG <> 'Y' THEN SUM(o279709.ENDING_BAL) ELSE 0 END as C_1,
    GROUPING_ID(o279709.CURRENCY_CODE,o279709.SEGMENT3,o279709.SEGMENT4,o279709.TRANSLATED_FLAG) as GID
    FROM ( --Foriegn Entity USD Balances
    SELECT                B.SEGMENT1,
                                       B.SEGMENT2,     
                                       B.SEGMENT3,
                                  (select distinct substr(cat.COMPILED_VALUE_ATTRIBUTES,5,1) from apps.fnd_flex_values cat
                   where FLEX_VALUE_SET_ID = (select bat.FLEX_VALUE_SET_ID from apps.fnd_id_flex_structures_vl aat, apps.fnd_id_flex_segments_vl bat
                                                                                                                       where bat.id_flex_code = 'GL#' and
                                                                                                                            bat.id_flex_code = aat.id_flex_code and
                                                                                                                            aat.APPLICATION_ID = bat.APPLICATION_ID and
                                                                                                                            aat.APPLICATION_ID = 101 and
                                                                                                                            bat.SEGMENT_NAME = 'Prime Account' and
                                                                                                                            aat.id_flex_num = bat.id_flex_num
                                                                                                                            and bat.id_flex_num in (select distinct chart_of_accounts_id from apps.gl_code_combinations gat
                                                                                                                                                                              where gat.code_combination_id = A.code_combination_id))
                                       and cat.flex_value = b.segment3) ACCT_TYPE ,
                                       B.SEGMENT4,
                                       B.SEGMENT5,
                                       B.SEGMENT6,
                                       B.SEGMENT7,
                                       B.SEGMENT8,
                                       B.SEGMENT9,
                                       B.SEGMENT10,
                                       B.SEGMENT11,
                                       B.SEGMENT12,
                                       B.SEGMENT13,
                                       C.NAME,
    A.SET_OF_BOOKS_ID,
                                       A.CURRENCY_CODE,A.TRANSLATED_FLAG,
                                  SUM(NVL(A.BEGIN_BALANCE_DR,0) - NVL(A.BEGIN_BALANCE_CR,0)) BEG_BAL,
                                  SUM(NVL(A.PERIOD_NET_DR,0)) DEBITS,
    SUM( NVL(A.PERIOD_NET_CR,0)) CREDITS ,
    A.PERIOD_NAME,
                                  SUM(NVL(A.BEGIN_BALANCE_DR,0) - NVL(A.BEGIN_BALANCE_CR,0))+ SUM(NVL(A.PERIOD_NET_DR,0) - NVL(A.PERIOD_NET_CR,0)) ENDING_BAL
    FROM                     APPS.GL_BALANCES A ,
                                       APPS.GL_CODE_COMBINATIONS B,
                                       APPS.GL_SETS_OF_BOOKS     C
    WHERE                     A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID
    --AND                           A.PERIOD_NAME = 'SEP-09'
    AND                          C.SET_OF_BOOKS_ID = A.SET_OF_BOOKS_ID
    --AND                           A.TRANSLATED_FLAG <> 'Y'
    --AND                           B.SEGMENT1 = '83101'
    --AND                           B.SEGMENT3 = '14602'
    --AND                           A.SET_OF_BOOKS_ID = 77
    --AND                           A.CURRENCY_CODE = 'USD'
    GROUP BY           A.CODE_COMBINATION_ID,
                                  B.SEGMENT1,
                                       B.SEGMENT2,     
                                       B.SEGMENT3,
                                       B.SEGMENT4,
                                       B.SEGMENT5,
                                       B.SEGMENT6,
                                       B.SEGMENT7,
                                       B.SEGMENT8,
                                       B.SEGMENT9,
                                       B.SEGMENT10,
                                       B.SEGMENT11,
                                       B.SEGMENT12,
                                       B.SEGMENT13,          
                                       A.CURRENCY_CODE,
                                       A.TRANSLATED_FLAG,
                                       C.NAME,A.PERIOD_NAME,
    A.SET_OF_BOOKS_ID
    ) o279709
    WHERE (o279709.PERIOD_NAME = 'DEC-09')
    AND (o279709.SET_OF_BOOKS_ID <> 72)
    AND (o279709.SEGMENT12 = '000')
    AND (o279709.SEGMENT3 IN ('10101','10301','10502','12001'))
    AND (o279709.SEGMENT1 IN ('82901','82902','82903','83001','83003','83201'))
    GROUP BY GROUPING SETS(( o279709.CURRENCY_CODE,o279709.SEGMENT3,o279709.SEGMENT4,o279709.TRANSLATED_FLAG ),( o279709.SEGMENT3,o279709.SEGMENT4 ),( o279709.SEGMENT3 ))
    HAVING (GROUP_ID()=0)
    ORDER BY GID DESC;
    Thanks,
    PA1
    Edited by: PA1B on Jan 29, 2010 12:50 PM

  • Status of data in Bex query shows wrong date

    Dear Experts,
    The Bex qurey after sucessful execution, show the Status of data as old date i.e. feb 2012. but we observed that the data uplaod happens regularly and sucessful.
    we tried executing the same query using RSRT/Bex Analyzer/Portal. the results are same i.e. showing incorrect status of data.
    Note: The Bex query is built on BI Infoset which sources from DSOs and Master Data infoobjects, and  BI version is 7.0.
    Kindly please help for resolving the issue.
    Best Regards,
    Mannu.

    Hi Vijay,
    The data upload has happend today also and it is sucessful, the reporing status is available for requests from respective infoproviders.
    'Status of data' is not a filed. if it an information to tell the status of data in query result.
    Please find the following steps to find the 'status of data'
    go to RSRT->give the query name and execute-> now after query results-> go to last page-> you can find the 'status of data'.
    Best Regards,
    Mannu

  • Customer aging query - show balance as of a specific date

    I am working on a query for a vendor aging to show information that is not available in the vendor aging report. However, I want to show the balance that was open at a specific point in time. i.e. today is Aug 17 and i want to show what was due at June 30. All the June invoices have been paid as of Aug 17 so i cannot use docstatus. The aging report gives you the option to select Vendors with a zero balance and reconciled transactions. How do i show that information in a query?

    Hi Vicki,
    I'm trying to do the exact same thing. Get the aging balance at any point in time in verion 2007.
    Have you succeded so far?.
    I use to run a query to get the balance at any point in 2005 like this..
    SELECT     T2.CardCode, T2.CardName , T0.[BatchNum], T0.[TransId], T0.[TransType], T1.[CreatedBy], T1.[RefDate], T1.[DueDate], T1.[MthDate],
    T1.[LineMemo], T0.[Ref1], T1.[BaseRef], T1.[Credit], T1.[Debit], T1.[FCCredit], T1.[FCDebit], T1.[SYSCred],
    T1.[SYSDeb], T1.[SourceLine], T1.[Ref1], T1.[LineType], T1.[TaxDate], T1.[Account], T1.FCCurrency, T1.[ObjType]
    FROM     [dbo].[OJDT] T0
    INNER     JOIN [dbo].[JDT1] T1 ON T1.[TransId] = T0.TransId
    INNER     JOIN [dbo].[OCRD] T2 ON T1.[ShortName] = T2.CardCode
    WHERE     T1.[Account] IN (SELECT AcctCode FROM oact WHERE LocManTran = 'Y' AND GroupMask = 1)
    AND      T1.[RefDate] <= '20091026'
    AND      (T1.[MthDate] > '20091026'
    OR      T1.[IntrnMatch] = 0 )
    ORDER BY T0.[TransType], T1.[RefDate], T2.CardCode, T1.DueDate
    But this baby shows more documents than needed and a lot of work has to be done to place payments on the right invoices to como up with the right balance age.
    I'd appreciate if you could help me out or let me know what have you found so far.
    Best,
    Ricardo Sada

  • Open Orders Query showing all open AP Orders

    Hi All,
    I wish to generate a report that shows all open AP Purchase Orders as well as all orders that are partially inviced.
    I have been using the following query but it is not giving me complete results:
    SELECT
    T1.[DocNum] AS 'PO NUMBER',
    T1.[DocDate] AS 'POSTING DATE',
    T1.[DocDueDate] AS 'DUE DATE',
    T1.[TaxDate] AS 'DOC DATE',
    T1.[Comments] AS 'REMARKS',
    T1.[CardCode] AS 'CUSTOMER/VENDOR CODE',
    T1.[CardName] AS 'CUSTOMER/VENDOR NAME',
    T0.[LineTotal] AS 'LINE TOTAL',
    T0.[OcrCode] AS 'PROFIT CENTER',
    T1.[PaidSum] AS 'PAID',
    T0.[Project] AS 'PROJECT CODE',
    T0.[LineNum] AS 'ROW NUMBER',
    T0.[LineStatus] AS 'LINE STATUS',
    T1.[DocStatus] AS 'PR STATUS'
    FROM
    POR1 T0  INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry
    WHERE
    T1.DOCSTATUS <>'C'
    AND
    T0.LineStatus <> 'C'
    ORDER BY T1.docentry
    I need to add to this query a column to show PO's that have been partially invoiced, a column to show if the invoices have been paid and another column to show the balances for those particular orders.
    HELP PLEASE!
    Robinson

    Thanks Carin,
    That was very helpful, BUT:
    1. I still wish to view all open orders that have been partially invoiced
    2. I still wish to see all the Purchase Orders that have been partially invoiced and paid
    3. I finally want to see the balances for these Purchase Orders that have been partially invoiced.
    I don't seem to find the correct fields containing the information. So far all that I was able to establish is that OPOR.DocTotal is the total amount for the Purchase Order. However, OPOR.PaidToDate does not give an accurate value of what is invoiced or paid.
    I wish to add the following fields. A field showing the corresponding Invoice number for the partially invoiced order, the amount paid for that PO and the balance.
    Thank you.
    Robinson

  • SSRS query shows error no columns

    this is the query command Text:
    ="select pallet_id, pallet_create_dm,pn_id from MATS_ITG.pwax_pen_link where pallet_id  in ("& Join(Parameters!pallet_id.Value,",") &")"
    when it querys it shows error
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'DsPartial_lookup'. (rsErrorExecutingCommand)
    ERROR [42703] ERROR 2624: Column "SGAC2207H0" does not exist 
     pallet_id is a multiple value  ,SGAC2207H0 is just my data
    can not figure out why, Please help me

    Hi ,
      Pallet_ID parameter seems to passing string like 'SGAC2207H0' . Check and change the parameter to pass numbers by checking the assignment to the value column in the parameter. If still need the string to be passed , Try the below expression  
    ="select pallet_id, pallet_create_dm,pn_id from MATS_ITG.pwax_pen_link where pallet_id in ('"& Join(Parameters!pallet_id.Value,"','") &"')"
    Best Regards Sorna

Maybe you are looking for

  • Photoshop CC can't install ImageReady.exe running

    I have tried multiple times to install Photoshop CC.   After completing the download, then extracting I get a message: at 42% Photoshop CC Install Please close the following applications to continue: -ImageReady.exe Nothing is running.  HOW CAN I GET

  • In-document links work in desktop Acrobat, not in browser

    Scenario: two .pdfs generated from FrameMaker with full Acrobat 7.0. Document A contains a cross-reference to a heading on page 7 of document B. Behaviour in desktop Reader: clicking on the link in Document A opens Document B, at page 7 Behaviour in

  • Blinking battery light when fully charged

    My battery light is blinking (low battery power warning) but the battery is fully charged.  I installed a brand new battery, left the AC adapter on overnight, and this morning had a blinking battery light.  It doesn't seem to be a problem except that

  • SOAP or XI adaptor should be used

    Hi Expert, I have a scenario where the sender should call XI in form of web service, XI will forward the call to the ABAP using proxy. My question is how should I configure the sender agreement: 1) Since it's web service, I guess it should be SOAP se

  • Oracle 10g (10.2.0.4) for Windows 2008 R2

    Hi, I am trying to install Oracle 10g (10.2.0.4) on a Windows 2008 server. When launching the OUI, the first screen comes up. After making any combination of selection and pressing Next, the OUI simply disappears... ? Can anyone help... ideas/suggest