Grouping and Concatenating of Data

SQL> DESC TEST
Name                                      Null?    Type
BAND                                               VARCHAR2(2)
BRANCH_CODE                                        VARCHAR2(4)
COUNTRY                                            VARCHAR2(3)
SERVICE_CATEGORY                                   VARCHAR2(2)
RESIDENTIAL                                        VARCHAR2(1)
COMMERCIAL                                         VARCHAR2(1)
ZIP_CODE                                           VARCHAR2(5)
SQL>SELECT BAND, BRANCH_CODE, COUNTRY, SERVICE_CATEGORY, RESIDENTIAL, COMMERCIAL, ZIP_CODE
FROM TEST
GROUP BY BAND, BRANCH_CODE, COUNTRY, SERVICE_CATEGORY, RESIDENTIAL, COMMERCIAL, ZIP_CODE
ORDER BY BAND, BRANCH_CODE, COUNTRY, SERVICE_CATEGORY, RESIDENTIAL, COMMERCIAL;
BA BRAN COU SE R C ZIP_C
TM 2001 US  PC N Y 32011
TM 2001 US  PC N Y 56321
TM 2001 US  PC Y N 01011
TM 2001 US  PC Y N 01206
TM 2001 US  PC Y N 01302
TM 2003 CAN TC Y N 90981
TQ 2005 BAU PC N Y 98180
TQ 2005 BAU PC N Y 98321
TQ 2005 BAU PC N Y 98734
TQ 2005 BAU PC Y N 93672
10 rows selected.I want to pull the data by concatenating the zip_code based on the unique combination of other fields :
And the result should be like :
BA BRAN COU SE R C ZIP_CODE
TM 2001 US  PC N Y 32011|56321
TM 2001 US  PC Y N 01011|01206|01302
TM 2003 CAN TC Y N 90981
TQ 2005 BAU PC N Y 98180|98321|98734
TQ 2005 BAU PC Y N 93672If anyone can provide some inputs that would be great ...

Frank Kulash wrote:
You don't have to use all of the techniques from http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php
Hi Frank,
The link provides sub-optimal technique using analytic ROW_NUMBER. I mentioned this many times on the forum - there is no need to group by:
SELECT  BAND,
        BRANCH_CODE,
        COUNTRY,
        SERVICE_CATEGORY,
        RESIDENTIAL,
        COMMERCIAL,
        LTRIM(SYS_CONNECT_BY_PATH(ZIP_CODE,'|'),'|') ZIP_CODE
  FROM (
        SELECT  t.*,
                ROW_NUMBER() OVER(PARTITION BY BAND,BRANCH_CODE,COUNTRY,SERVICE_CATEGORY,RESIDENTIAL,COMMERCIAL ORDER BY ZIP_CODE) RN
          FROM  TEST t
  WHERE CONNECT_BY_ISLEAF = 1
  START WITH RN = 1
  CONNECT BY RN = PRIOR RN + 1
  ORDER BY BAND,
           BRANCH_CODE,
           COUNTRY,
           SERVICE_CATEGORY,
           RESIDENTIAL,
           COMMERCIAL
/And same for pre-10g versions:
SELECT  BAND,
        BRANCH_CODE,
        COUNTRY,
        SERVICE_CATEGORY,
        RESIDENTIAL,
        COMMERCIAL,
        LTRIM(SYS_CONNECT_BY_PATH(ZIP_CODE,'|'),'|') ZIP_CODE
  FROM (
        SELECT  t.*,
                ROW_NUMBER() OVER(PARTITION BY BAND,BRANCH_CODE,COUNTRY,SERVICE_CATEGORY,RESIDENTIAL,COMMERCIAL ORDER BY ZIP_CODE) RN,
                COUNT(*) OVER(PARTITION BY BAND,BRANCH_CODE,COUNTRY,SERVICE_CATEGORY,RESIDENTIAL,COMMERCIAL) CNT
          FROM  TEST t
  WHERE RN = 1
  START WITH RN = CNT
  CONNECT BY RN = PRIOR RN + 1
  ORDER BY BAND,
           BRANCH_CODE,
           COUNTRY,
           SERVICE_CATEGORY,
           RESIDENTIAL,
           COMMERCIAL
/SY.

Similar Messages

  • Table name for Customer Account Group and created by Data

    Dear Gurus,
    Kindly le t me know the table name having a list of Customer a/c groups and created by data. if there is no such table thn pls let me know the alternatives for fetching the same data.
    Wishes
    Abhishek

    hI
    Go to Se11 and give table name KNA1 and go to display
    you can able to see the Customer AccountGroup field :KTOKD
    Thanks
    Vasu

  • Delivery grouping and the delivery date for group in SD

    Hi
    Using a userexit I am grouping certain materials together.  However the delivery date for group field is not picking up the expected date.
    Assume the following example:
    Material X            Delivery Date 20.12.2006
    Material Y           Delivery Date 27.12.2006
    If I group them together I expect the delivery date for the group to become 27.12.2006 however it is picking up 20.12.2006.
    If anyone has some thoughts regarding this they would be most appreciated.

    Yeah got ur point i was mapping the table configuaration for ur reference.
    This grouping is supposed to make sure that all materials are delievered at the same Date (VBEP-EDATU) and must use the last date in the delivery group.
    say materials  X -- DELIVERY DATE  20 12 2006
                         Y -- DELIVERY DATE  27 12 2006
    so the matnrs are avalaible in VBAP along with  for the VBELN and POSNR values now pick the delivery date for this material from VBEP   ,,
    Now once the itab is sorted by delivery group  and EDATU descending .
    so X and Y are present in for delivery group 001 say .
    X -- DELIVERY DATE  20 12 2006
    Y-- DELIVERY DATE  27 12 2006
    after sort by date it will be
    Y-- DELIVERY DATE  27 12 2006
    X -- DELIVERY DATE  20 12 2006
    which will pick up the latest date (or max date)
    Tis was what i meant to say.
    what is the incude you r using ?
    regards,
    vijay

  • Grouping and sorting the data based on the parameter

    Hi,
    I need to display the total of item Cost i.e sub total based on parameter in Excel format
    if value = 1 then (Subtotal by Manufacture) and sorting by Manufacture, Receipt Date, Organization, Item Code
    if value = 2 then (Subtotal by Organization ) and sorting by Organization, Item, Serial Number
    and at the end of report need to display full total
    is it possible in excel output using the below xml , please guide me if i need to change the way of getting XML ouput or can be acheived using this.
    Please find the xml , thanks in advance
    <?xml version="1.0"?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <ASWRECDTREP>
    <LIST_G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>10</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PARTS</ORGANISATION_NAME>
    <SERIAL_NUMBER>90699100802262</SERIAL_NUMBER>
    <ITEM_CODE>OM906LA.007</ITEM_CODE>
    <DESCRIPTION>MERCEDES SERIES 900 OFF HWY ENGINE 205 KW 0852</DESCRIPTION>
    <MANUFACTURER>MER</MANUFACTURER>
    <APPLICATION>INDL</APPLICATION>
    <ITEM_COST>15009.09</ITEM_COST>
    <MATERIAL_COST>685.25</MATERIAL_COST>
    <PO_NUMBER>1001395</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>22-MAY-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>EUR</CURRENCY_CODE>
    <PO_UNIT_PRICE>7431.3</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>10</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PARTS</ORGANISATION_NAME>
    <SERIAL_NUMBER>90699100802285</SERIAL_NUMBER>
    <ITEM_CODE>OM906LA.007</ITEM_CODE>
    <DESCRIPTION>MERCEDES SERIES 900 OFF HWY ENGINE 205 KW 0852</DESCRIPTION>
    <MANUFACTURER>MER</MANUFACTURER>
    <APPLICATION>INDL</APPLICATION>
    <ITEM_COST>15009.09</ITEM_COST>
    <MATERIAL_COST>685.25</MATERIAL_COST>
    <PO_NUMBER>1001395</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>22-MAY-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>EUR</CURRENCY_CODE>
    <PO_UNIT_PRICE>7431.3</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>30</ORGANIZATION_CODE>
    <ORGANISATION_NAME>Melbourne</ORGANISATION_NAME>
    <SERIAL_NUMBER>6520107896</SERIAL_NUMBER>
    <ITEM_CODE>3500.010</ITEM_CODE>
    <DESCRIPTION>ALLISON 3000 SERIES ON HWY TRANSMISSION E018179</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>11126.11</ITEM_COST>
    <MATERIAL_COST>664.23</MATERIAL_COST>
    <PO_NUMBER>971515</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>14-APR-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>8063.3</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>30</ORGANIZATION_CODE>
    <ORGANISATION_NAME>Melbourne</ORGANISATION_NAME>
    <SERIAL_NUMBER>6510869062</SERIAL_NUMBER>
    <ITEM_CODE>3200.010</ITEM_CODE>
    <DESCRIPTION>ALLISON 3000 SERIES ON HWY TRANSMISSION E017944</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>11853.57</ITEM_COST>
    <MATERIAL_COST>707.66</MATERIAL_COST>
    <PO_NUMBER>982120</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>12-MAY-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>8251.6</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>40</ORGANIZATION_CODE>
    <ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
    <SERIAL_NUMBER>D6002 G6003</SERIAL_NUMBER>
    <ITEM_CODE>520 SERIES.002</ITEM_CODE>
    <DESCRIPTION>KONRAD 520 SERIES MARINE STERN DRIVE</DESCRIPTION>
    <MANUFACTURER>OTH</MANUFACTURER>
    <APPLICATION>MARI</APPLICATION>
    <ITEM_COST>9296.95</ITEM_COST>
    <MATERIAL_COST>482.91</MATERIAL_COST>
    <PO_NUMBER>1009062</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>24-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>6939.29</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>40</ORGANIZATION_CODE>
    <ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
    <SERIAL_NUMBER>ABC123</SERIAL_NUMBER>
    <ITEM_CODE>GM20541-KP1.001</ITEM_CODE>
    <DESCRIPTION>KOHLER GENSET</DESCRIPTION>
    <MANUFACTURER>KOH</MANUFACTURER>
    <APPLICATION>PGEN</APPLICATION>
    <ITEM_COST>756.83</ITEM_COST>
    <MATERIAL_COST>.78</MATERIAL_COST>
    <PO_NUMBER>1015156</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>14-OCT-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>AUD</CURRENCY_CODE>
    <PO_UNIT_PRICE>20</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>40</ORGANIZATION_CODE>
    <ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
    <SERIAL_NUMBER>ABC124</SERIAL_NUMBER>
    <ITEM_CODE>GM20541-KP1.001</ITEM_CODE>
    <DESCRIPTION>KOHLER GENSET</DESCRIPTION>
    <MANUFACTURER>KOH</MANUFACTURER>
    <APPLICATION>PGEN</APPLICATION>
    <ITEM_COST>756.83</ITEM_COST>
    <MATERIAL_COST>.78</MATERIAL_COST>
    <PO_NUMBER>1015156</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>14-OCT-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>AUD</CURRENCY_CODE>
    <PO_UNIT_PRICE>20</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>06R1017763</SERIAL_NUMBER>
    <ITEM_CODE>6062HK30.005</ITEM_CODE>
    <DESCRIPTION>DETROIT SERIES 60 MARINE ENGINE 615 KW 2949322</DESCRIPTION>
    <MANUFACTURER>MDD</MANUFACTURER>
    <APPLICATION>MARI</APPLICATION>
    <ITEM_COST>99125.34</ITEM_COST>
    <MATERIAL_COST>2028.31</MATERIAL_COST>
    <PO_NUMBER>883339</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>05-MAR-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>63768</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310935001</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1000221</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310935002</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1000221</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310935003</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1000221</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6510876301</SERIAL_NUMBER>
    <ITEM_CODE>T350R.004</ITEM_CODE>
    <DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>9465.69</ITEM_COST>
    <MATERIAL_COST>597.33</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>6936.3</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6510876302</SERIAL_NUMBER>
    <ITEM_CODE>T350R.004</ITEM_CODE>
    <DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>9465.69</ITEM_COST>
    <MATERIAL_COST>597.33</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>6936.3</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6510876303</SERIAL_NUMBER>
    <ITEM_CODE>T375R.002</ITEM_CODE>
    <DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>10224.19</ITEM_COST>
    <MATERIAL_COST>645.19</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>7433.3</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310940354</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310940355</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310940356</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>6310940357</SERIAL_NUMBER>
    <ITEM_CODE>2500.003</ITEM_CODE>
    <DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
    <MANUFACTURER>ATD</MANUFACTURER>
    <APPLICATION>ONHY</APPLICATION>
    <ITEM_COST>4855.33</ITEM_COST>
    <MATERIAL_COST>306.39</MATERIAL_COST>
    <PO_NUMBER>1005777</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    <G_ASW_REC_DATE>
    <ORGANIZATION_CODE>70</ORGANIZATION_CODE>
    <ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
    <SERIAL_NUMBER>5272003543</SERIAL_NUMBER>
    <ITEM_CODE>T1637K33.002</ITEM_CODE>
    <DESCRIPTION>DETROIT SERIES 4000 INDUSTRIAL ENGINE 1865 KW 2456291</DESCRIPTION>
    <MANUFACTURER>MDD</MANUFACTURER>
    <APPLICATION>MNIG</APPLICATION>
    <ITEM_COST>420083.16</ITEM_COST>
    <MATERIAL_COST>3785.85</MATERIAL_COST>
    <PO_NUMBER>921170</PO_NUMBER>
    <TRANSACTION_RECEIPT_DATE>30-JUN-09</TRANSACTION_RECEIPT_DATE>
    <VENDOR_LOT_NUM></VENDOR_LOT_NUM>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <PO_UNIT_PRICE>301549</PO_UNIT_PRICE>
    </G_ASW_REC_DATE>
    </LIST_G_ASW_REC_DATE>
    </ASWRECDTREP>
    Best Regards,
    Mahi

    Hi Vetri,
    I tried to implement the solution you have given and i am getting error,
    I tried to see the output by loading the xml to the template given in BIP Blog in the following Link,
    http://blogs.oracle.com/xmlpublisher/2007/05/left_up_down_right_group.html
    I am getting the same error,Please help me how to overcome this.If possible send me the template that was working for you.
    The error log is as follows:
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Users\MAHESH\Desktop\Grouping.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Users\MAHESH\Desktop\EmployeeListing.xml
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:439)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
         at oracle.xdo.parser.v2.XSLTContext.peekExprValue4Grouping(XSLTContext.java:871)
         at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:536)
         at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:583)
         at oracle.xdo.parser.v2.XSLVariable.getValue(XSLVariable.java:205)
         at oracle.xdo.parser.v2.XSLVariable.processAction(XSLVariable.java:117)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
         ... 15 more
    Best Regards,
    Mahi

  • Group and display XML Data

    Hi,
    I am building a Dynamic form with below XML to be displayed in tabular format grouped by resultType with comma separated resultDesc.
    <resultTypeParent>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Policy</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Compliance</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Operations</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Frameworks</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>FKE</resultType>
              <resultDesc>Data</resultDesc>
         </resultInfo>
    </resultTypeParent>
    The output should look like,
    ACP                                             FKE
    Policy, Compliance,                       Data
    Operations, Frameworks
    Can someone help me with a solution/ideas?
    Thank you,
    Sandeep

    You can try converting the blob object first to a string and then displaying it in the Output text field. You can refer to
    How to Convert  Blob to String ? Hi All,
    for converting a blob to string. It many not be a very good idea if the size of the blob very large.
    Thanks,
    TK

  • 10g Grouping and  Hide Repeating Data

    I need to return a sales rep's accounts assigned to him. But, a customer can have several sub account records,
    because a new transaction will create a new record in the subacct table. Here's the query but it returns
    all of the rows for the customer assigned to the Salesperson and really not a great format.
    All I want is the customer's last record. It would also be great to eliminate any repeating data in columns:ssn
    sb.salesperonid, acctid. It's easier to view the data when there's just 1 ssn, 1 salespersonid,acctid but
    multiple subaccbal balances.
    SELECT sb.ssn,
    sb.salespersonid,
    sb.acctid,
    sb.subacctbal
    FROM subaccbal_current sb,
    sysusr_salesperson1,
    product p
    WHERE sb.subacctbal > 1
    AND sysusr_salesperson1.usrid = sb.salespersonid
    AND sb.prodid = p.prodid (+)
    AND sysusr_salesperson1.usrid = 2007
    order BY sb.ssn,sb.subacctbal
    sb.ssn sb.salespersonid    acctid             subaccbal    
    16x67 2007                8x41                 3840.1447436467236765             southwestern burger
    16x67 2007                8x41                3999.53760824202520962         chips and salsa
    16x67 2007                8x41                   4001.49146206932217968            chips
    31x34 2007                8x47                 3940.7899999999823942          chipotle meal
    31x34 2007                8x47                 4019.660000000200747           coke
    31x34 2007                8x47                 4110.8599999999692953          speakers
    31x34 2007                8x47                 8216.30999999995797296         phone
    31x34 2007                8x47                 8671.1099999999555424           table cloth
    31x34 2007                8x47                 8743.079704290217582865      pickles
    32x76 2007                8x10               117756.91                           juice      
    32x59 2007                1x004               52116.229999999969462937         fish n chip
    32x59 2007                1x004               64675.1499999994542136           paper
    32x59 2007                1x004               64959.1799999998650161           markerss
    33x58 2007                8x37                44334.3858770048316717           paint
    33x58 2007                8x37                45016.1826601808917375           beer
    33x58 2007                8x37                71637.165562261602140981      fruit
    Preferred report format:
    Salesperson:2007
    sb.ssn      acctid             subaccbal    
    16x67      8x41            4001.49146206932217968      chips
    31x34       8x47           8743.079704290217582865       pickles
    32x76       8x10        117756.91                             juice
    32x59       1x004        64959.1799999998650161            markerss
    33x58       8x37          71637.165562261602140981      fruit
    2nd report format:
    sb.ssn sb.salespersonid    acctid             subaccbal    
    16x67 2007                8x41                 3840.1447436467236765             southwestern burger
                                                           3999.53760824202520962         chips and salsa
                                                           4001.49146206932217968            chips
    31x34                        8x47                 3940.7899999999823942          chipotle meal
                                                           4019.660000000200747           coke
                                                           4110.8599999999692953          speakers
                                                            8216.30999999995797296         phone
                                                           8671.1099999999555424           table cloth
                                                           8743.079704290217582865      pickles
    32x76                       8x10              117756.91                           juice      
                                                          52116.229999999969462937         fish n chip
    32x59                                               64675.1499999994542136           paper
                                                          64959.1799999998650161           markerss
    33x58                       8x37                44334.3858770048316717           paint
                                                          45016.1826601808917375           beer
                                                          71637.165562261602140981      fruitthanks for any help.
    Edited by: achtung on Jan 6, 2010 1:12 PM

    Hi,
    Your 'Preferred report format" is an example of a +Top-N Query+ , which you can do using the analytic ROW_NUMBER function:
    {code}
    WITH     got_rnum     AS
         SELECT     sb.ssn,
              sb.salespersonid,
              sb.acctid,
              sb.subacctbal,
              ROW_NUMBER () OVER ( PARTITION BY sb.ssn
                        ORDER BY      sb.subacccbal          DESC
                        ) AS rnum
         FROM subaccbal_current sb,
              sysusr_salesperson1,
              product p
         WHERE      sb.subacctbal               > 1
         AND      sysusr_salesperson1.usrid      = sb.salespersonid
         AND      sb.prodid                = p.prodid (+)
         AND      sysusr_salesperson1.usrid      = 2007
    SELECT     *     -- or list all columns except rnum
    FROM     got_rnum
    WHERE     rnum          = 1
    ORDER BY ssn
    {code}
    This assumes that subaccbal_current.ssn is unique, and that the "last" row for any ssn is the one with the greatest subacctbal.
    Notice that the sub-query got_rnum is just your original query, with one more column in the SELECT clause.
    Output like your "2nd report format" is best done by your front-end tool. If SQL*Plus is your front end, you can use the BREAK command to suppress display of certain columns if the value is the same as the preceding row.
    If you must do it in pure SQL, you can get the ROW_NUMBER like I did above. In the main query, you could use rnum in a CASE expressions to determine whether you show the value or NULL:
    {code}
    SELECT     CASE
              WHEN rnum = 1
              THEN ssn
         END     AS ssn
    {code}
    Edited by: Frank Kulash on Jan 6, 2010 4:31 PM
    Added example of "2nd report format"

  • Sql grouping and summing impossible?

    I want to create an sql query to sum up some data but i'm starting to think it is impossible with sql alone. The data i have are of the following form :
    TRAN_DT     TRAN_RS     DEBT     CRED
    10-Jan     701     100     0
    20-Jan     701     150     0
    21-Jan     701     250     0
    22-Jan     705     0     500
    23-Jan     571     100     0
    24-Jan     571     50     0
    25-Jan     701     50     0
    26-Jan     701     20     0
    27-Jan     705     0     300The data are ordered by TRAN_DT and then by TRAN_RS. Tha grouping and summing of data based on tran_rs but only when it changes. So in the table above i do not want to see all 3 first recods but only one with value DEBT the sum of those 3 i.e. 100+150+250=500. So the above table after grouping would be like the one below:
    TRAN_DT     TRAN_RS     DEBT     CRED
    21-Jan     701     500     0
    22-Jan     705     0     500
    24-Jan     571     150     0
    26-Jan     701     70     0
    27-Jan     705     0     300The TRAN_DT is the last value of the summed records. I undestand that the tran_dt may not be selectable. What i have tried so far is the following query:
    select tran_dt,
             tran_rs,
             sum(debt)over(partition by tran_rs order by tran_dt rows unbounded preceding),
             sum(cred)over(partition by tran_rs order by tran_dt rows unbounded preceding) from that_tableIs this even possible with sql alone, any thoughts?
    The report i am trying to create in BI Publisher.Maybe it is possible to group the data in the template and ask my question there?

    915218 wrote:
    Is this even possible with sql alone, any thoughts?It sure is...
    WITH that_table as (select to_date('10/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 100 debt, 0 cred from dual union all
                         select to_date('20/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 150 debt, 0 cred from dual union all
                         select to_date('21/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 250 debt, 0 cred from dual union all
                         select to_date('22/01/2012', 'dd/mm/yyyy') tran_dt, 705 tran_rs, 0 debt, 500 cred from dual union all
                         select to_date('23/01/2012', 'dd/mm/yyyy') tran_dt, 571 tran_rs, 100 debt, 0 cred from dual union all
                         select to_date('24/01/2012', 'dd/mm/yyyy') tran_dt, 571 tran_rs, 50 debt, 0 cred from dual union all
                         select to_date('25/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 50 debt, 0 cred from dual union all
                         select to_date('26/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 20 debt, 0 cred from dual union all
                         select to_date('27/01/2012', 'dd/mm/yyyy') tran_dt, 705 tran_rs, 0 debt, 300 cred from dual)
    , brk AS (
    SELECT     tran_dt,
            tran_rs,
         debt,
         cred,
            CASE WHEN Nvl (Lag (tran_rs) OVER (ORDER BY tran_dt, tran_rs), 0) != tran_rs THEN tran_rs || tran_dt END brk_tran_rs
      FROM that_table
    ), grp AS (
    SELECT     tran_dt,
            tran_rs,
             debt,
             cred,
            Last_Value (brk_tran_rs IGNORE NULLS) OVER  (ORDER BY tran_dt, tran_rs) grp_tran_rs
      FROM brk
    SELECT     Max (tran_dt),
            Max (tran_rs),
             Sum (debt),
             Sum (cred)
      FROM grp
    GROUP BY grp_tran_rs
    ORDER BY 1, 2
    Boneist
    MAX(TRAN_    TRAN_RS       DEBT       CRED
    21-JAN-12        701        500          0
    22-JAN-12        705          0        500
    24-JAN-12        571        150          0
    26-JAN-12        701         70          0
    27-JAN-12        705          0        300
    Me
    MAX(TRAN_ MAX(TRAN_RS)  SUM(DEBT)  SUM(CRED)
    21-JAN-12          701        500          0
    22-JAN-12          705          0        500
    24-JAN-12          571        150          0
    26-JAN-12          701         70          0
    27-JAN-12          705          0        300Edited by: BrendanP on 17-Feb-2012 04:05
    Test data courtesy of Boneist, and fixed bug.
    Edited by: BrendanP on 17-Feb-2012 04:29

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • Convert data link between one query's group and another querys group to SQL

    Hi
    I have a report where there are 2 query Groups. These 2 query groups r linked by data link. How do i combine these queries to One query so i can use it as a SQL query.
    Thanks

    Hi,
    Assume that we have two queries Q1 and Q2 and the common column between the two queries is "comn".
    Now we can convert the datalink into SQL as follows:-
    SELECT *
    FROM
    (Query for Q1)a,
    (Query for Q2)b
    WHERE a.comn=b.comn(+)
    Note: "a" and "b" are alias names for Q1 and Q2.

  • [DATA LOSS] I closed the Tab Groups and all my tabs dissapeared. How can I recover the tabs in Firefox 26? Would you please just delete this feature?

    Thank-you in advance for reading all of this.
    A slip of the mouse in trying to return to the left-most tab caused the tab groups feature to take over the window. I completely failed to comprehend what I was looking at and closed the thing by clicking the x because I damn sure didn't want what I was looking at. Undo close group? Of course not, I didn't want a group in the first place. Hey! My tabs are completely gone now! So in just a few steps all of which seemed innocent, I have lost all but ten of the tabs that were open, and those were only the most recent ten (and actually older tabs would have been more valueable than newer so insult on top of injury).
    I don't think increasing the number of undoable tab closures is the answer. I think getting rid of the tab groups feature all together is the best way to go. I seem to have lost all the tabs I had open, irretrievably, and some of them had been open for WEEKS so they can't be reopened from history.
    The tab groups feature is a data loss bug. Please remove it from the UX completely. If you have to figure out a way to grandfather people who actually have a tab group, fine but don't further vex me with it, please.
    The reason this catastrophe has occurred is that your feature, was so discoverable that I activated it by mistake, and the UI after that had to be learned on the spot, yet was too complicated to learn. You really should withdraw it until you can figure out how to keep the UI for it from causing data loss such as I have experienced this morning.
    Also, there may be other questions on this feature which are from a certain point of view the same as this one. It's hard for me to tell for sure. None of them had a true resolution so that's why I posted this one, also I'm seeking a specific fix, removal of the offending feature.
    Why remove the feature? Because if I allow in my discussion the possibility of retaining it, it will stick around in its present and dangerous form until your team is done bikeshedding the new form it should take. Instead I want you to delete the feature and then require its champion to convince you that a new incarnation won't cause data loss before you allow it back in.
    Fellow users, if you know of a way to recover all 50 lost tabs from an "undo close tab group incident", I would be grateful for that advice, but I would still believe the feature should be deleted. Some of the tabs have been retained for months so digging them out of the history is not practical.

    I am not 100% certain but I am fairly sure development of this tab feature has ceased and it is likely to be deprecated. I am even less sure what the replacement will be.
    Thus forum is not the place for discussing development issues or feature requests. (Developers do not use this site)
    *You could comment using feedback <br /> https://input.mozilla.org/en-US/feedback
    *Or try to find a developers forum or mailing list <br /> http://www.mozilla.org/about/forums/#general-development
    I have not tried this and am not even using Windows at present but the tabs groups are stored as entries in the sessionstore.js files. Firefox has such a file plus sometimes numbered copies and a backup copy. Firefox will have re-writen these files but I suppose there is a posibility the Windows OS may have kept copies.
    * see http://windows.microsoft.com/en-US/windows7/Previous-versions-of-files-frequently-asked-questions
    * http://kb.mozillazine.org/Sessionstore.js Note the files are kept within the Firefox Profile
    ** Firefox Button -> Help -> Troubleshooting [open profile] (or some thing similar) is one method of locating the profile.
    Find and backup any current sessionstore.js file. Consider also bookmark or otherwise recording anything you have open. Now find any previous versions and try putting them in Firefox's profile before restarting it.

  • Win 8.1 domain workstation. Block all access, except for a fews users/groups and domain controller information/date.

    Hi!
    Win 8.1 pro, domain workstation. How Block all access, except for a fews users/groups and domain controller information/date.
    Nuance:
    From domain AD is locked Workstation Firewall "Domain profile" edit.
    Possible?
    cenubit

    Hi GirtsR,
    I am not sure the command to use the SID to accomplish what you want to achieve, if you only know the SID, you could take use Powershell to find the related information, more information, please check:
    Working with SIDs
    And a similar thread for reference:
    How to find user/group known only SID
    More reference: Default local groups.
    Best regards
    Michael Shao
    TechNet Community Support

  • Group and Individual Assets Legacy data load

    Hi, I work for a oil and gas company and I am having issues for the initial load for the group and individual assets into SAP .
    Any help in regards to this would be helpful.
    Below are the values that I would like to load into SAP for group ( grp 1 )  and individual assets ( Ind 1 and Ind 2 ) into SAP.  We would like the depreciation to be carried on the group asset level and allocated on the NBV of individual assets ( which I think seems not possible but the standard allocates the depreciation only on acquisition value ) .
    Asset              APC Value         Acc Depreciation      NBV
    grp 1                20,000.00           10,000.00                 10,000.00
    Ind  1               10,000.00            6,000.00                    4,000.00
    Ind  2               10,000.00            4,000.00                    6,000.00
    The problem is for intital load as well once the Ind 1 and Ind 2 are assigned to group asset grp 1 , it doesnt consider the acc depreciation at all , and the system allocations the accumulated depreciation based on apc values rather then NBV as of the load date.
    Also, if I plan to load only the NBV of the group and individual assets only, the clients wants the APC values as well for reporting , so not where I can get those from if I only load the NBV.
    Please let me know other approaches for initial load of group and individual assets that you guys might have worked on .
    Thanks
    bharani

    hi,
    Hope your requirement is to see the takeover values as on legacy asset takeover date, for those group assets mistakenly created with AS21...instead of AS81.
    Am i right...........
    Then you can do this by doing below.
    1) Go to OAAQ, for your CC, the last closed FY should be same as the FY, which is actually used during legacy asset upload.
    2) now go to AS82, for your wrongly created group assets and in takeover values tab, enter the values manually.
    Note: Assets created by AS01/AS21 can changed with AS92/AS82, then you will have takeover values tab in addition to normal AS02/AS22 transactions.
    once updation is finished, then again revert back the changes in OAAQ.
    This will solve your issue.
    Thanks,
    Srinu

  • Data import from ECC to MDG via MDMGX tool for CC group and CC hierarchy

    Hello,
    We currently in process of importing data from ECC to MDG (co-deployed).
    The MDMGX guide we follow mention about Accout (ACCA), Cost Center(CCTR) and Profit Center (PCTR).
    While doing DIF, it shows above 3 domains but didnt mention about how cost center group(CCTRG), Cost center hierarchy (CCTRH) and same with profit center group (PCTRG) and profit center hierarchy (PCTRH) will be imported to MDG?
    is there seperate process to bring hierarchy data from ECC to MDG?
    Thnx in advance
    Sahil

    Hello Sahil
    With MDMGX you can load individual master data but for group and hierarchies, you have to use the old procedure. If you ask me, then the MDMGX takes longer time rather that downloading the data in file from tables directly and upload it in MDG.
    Go through this document and load the hierarchy and group data.
    How to upload Finance data in MDG - Hub
    Kiran

  • What is a data group and what use is it for?

    CAn some one explain me the concept of data group in EBS. What is it used for ? How does it enhance the security of Oracle Apps data ?
    I know that Data groups are used while defining a responsibility and are meant for data security purpose. But I want to know the conceptual details behind it.
    Thanks.

    Ok.. so with a data group we can have data security at Oracle schema level. I hope my understanding is correct.
    I can create a data base user called Sinha and create a data group with this user/schema.
    Now when I create a data group with this schema and assign it to a responsibility, which in turn is assigned to a user, he/she will have access only to those objects which are present in the schema called Sinha, right ?
    Now as all the objects in Oracle Apps are created under the Apps schema, what use this new data group (and schema) is of ?

  • Grouping and ordering data

    I want to use grouped data from a query column. At the
    moment I can output and group the data using cfifs dependant
    on months and years. How can I find recordcounts and use the
    variables #doct07# #dnov07# #ddec07# #djan08# #dfeb08# #dmar08# so
    they keep the values in the cfoutput query? TIA
    <cfquery name="qrysales">
    SELECT clientinfo.visit
    FROM clientinfo
    order by clientinfo.visit
    </cfquery>
    <cfoutput query="qrysales">
    <cfset datesbymonth=(month(qrysales.visit))>
    <!--- 2007 entries --->
    <cfif qrysales.visit contains "2007">
    <cfif datesbymonth eq 10>
    <cfset doct07=#datesbymonth#>
    #doct07#
    <cfelseif datesbymonth eq 11>
    <cfset dnov07=#datesbymonth#>
    #dnov07#
    <cfelseif datesbymonth eq 12>
    <cfset ddec07=#datesbymonth#>
    #ddec07#</cfif>
    <!--- 2008 entries --->
    <cfelseif qrysales.visit contains "2008">
    <cfif datesbymonth eq 1>
    <cfset djan08=#datesbymonth#>
    #djan08#
    <cfelseif datesbymonth eq 2>
    <cfset dfeb08=#datesbymonth#>
    #dfeb08#
    <cfelseif datesbymonth eq 3>
    <cfset dmar08=#datesbymonth#>
    #dmar08#
    </cfif>
    </cfif>
    </cfoutput>

    See attached screen shot:
    To understand how the optional grouping works look at the attached
    example. I put some print lines on two charts that write out to a file.
    You will need to change the location. In that example my data comes
    in like:
    sourcedata[0][0] = 10;
    sourcedata[0][1] = "Chris Kwai";
    sourcedata[0][2] = 232;
    sourcedata[1][0] = 10;
    sourcedata[1][1] = "Ice Bella";
    sourcedata[1][2] = 291;
    sourcedata[2][0] = 10;
    sourcedata[2][1] = "Nola Dicci";
    sourcedata[2][2] = 567;
    sourcedata[3][0] = 11;
    sourcedata[3][1] = "Chris Kwai";
    sourcedata[3][2] = 312;
    sourcedata[4][0] = 11;
    sourcedata[4][1] = "Ice Bella";
    sourcedata[4][2] = 614;
    sourcedata[5][0] = 11;
    sourcedata[5][1] = "Nola Dicci";
    sourcedata[5][2] = 212;
    So for 3 users I have 10 and 11 value. If I do not optionally group my
    chart (But I group sum on x-axis) gets two sets of data one for the
    category and one for the summed values for each user.
    Series Data <undefined>
    Chris Kwai
    Ice Bella
    Nola Dicci
    Series Data <undefined>
    544.0
    905.0
    779.0
    If I use optional grouping I get three sets of data. One for the
    category and then one for each optional group (ie 10 and 11):
    Series Data <undefined>
    Chris Kwai
    Ice Bella
    Nola Dicci
    Series Data for month 10
    232.0
    291.0
    567.0
    Series Data for month 11
    312.0
    614.0
    212.0
    This will then draw two bars (10 and 11) for each user.
    Does this make sense?
    Jason
    On 10/26/2011 11:12 AM, Kevin Williams wrote:
    > Jason,
    >
    > Thank you for the quick response! Any chance you can send me a screen
    > shot of the group sort icon? I'm sorry, but I for the life of me, I
    > don't see it (I'm sure it's staring me straight in the face!).
    >
    > Also, I'm apparently misunderstanding the optional grouping field--I
    > there any documentation you can point me to on what it does (teach me to
    > fish)?

Maybe you are looking for

  • Calculated Key Figures vs. Formulas

    Hello all, Can someone explain in a few words what's the difference between a Calculated Key Figure and a Formula? We know the CKF's are global to all the queries and the formulas aren't. But how can we decide when to use ones or the others? Many tha

  • Need to upgrade the mac os 10.6.8 to 10.7

    i need to upgrade the mac os 10.6.8 to 10.7 i am  having the mac os 10.7 dvd also but i am not able to upgrade. Please help me out.

  • Vakpa table links with vbak in BI

    hi guys, im new in BI, i need to link vakpa & vbak in BI, can u please tell me how to do that ? or does vakpa table exist in tcode LBWE

  • Wie kann ich am besten Einzelbilder aus Videos speichern?

    Zur Zeit behelfe ich mir mit Vollbild-Bildschirmfotos während der Dia-Show-Funktion, hier ist der BS weitgehend frei von störenden Zusatzinfos. Hier kann ich aber nur im normalen Vorwärtslauf mit der Pause-Funktion ins Video hineinstoppen und auf ein

  • Delta loading through Generic extractor - function module not found

    Hi, I'm working on a BW3.5 system and we have some generic delta FM extractors. One of these is called ZBW_CONF_DELTA and the FM is also called ZBW_CONF_DELTA. It is a delta-enabled extractor. Whenever an extraction is done in the init delta mode, th