Gl Gurus! Query help

We have 100’s of accounts in GL_CODE_COMBINATIONS segment2, not been used for years. We want to inactivate these accounts not used for more then 3years. Does any one have any idea about to find this out in a query which tables to join we are in apps 11.5.8.
Thanks

Hmmm...stretching my memory of Oracle Apps...
This won't be easy. In theory, you'll need to search anywhere (meaning any table in any module) that stores a gl_code_combination_id. There are a LOT of those (not just gl_je_lines, etc.)
Then you'll need to determine when that row was created (that should be easy, most tables have a created_date).
Unless I'm totally wrong and there's a menu item in the GUI that says "Deactivate After 3 Years"
;-)

Similar Messages

  • Query Help-2

    Query Help:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=471180&tstart=15&trange=15
    It seems I have confused enough people with my improper presentation of query. Sorry guys. I will restate my question with different table names.
    The above was my previous posting, which was not clear..so Iam restating my problem as follows....
    I have the following tables
    Customer(custID, Name, Address)
    Order(custID, OrderID, orderDate)
    CreditCard(custID, creditCard#, creditCardType)
    Now if I have 3 records in Order with custID 100 and 2 records in CreditCard as
    Order:
    100,A001,11/22/03
    100,A002,11/24/03
    100,A003,12/02/03
    CreditCard:
    100,42323232..., VISA
    100,5234234...., MASTER
    Now how can I get
    custID, Name, Address, OrderID, orderDate, creditCard#, creditCarType
    data in minimum no. of records....
    I think I have made my query clear..
    now please help me guys...
    thanks so much for your help.

    You are right.
    But frankly the actual tables on my database are not customer,orders and creditcards..but I just tried to reproduce the problem with these tables, please ignore that user needs a refund etc situtaion. If the tables were actually order,creditcards etc..it would have been a problem to be considered.
    Can you please help me with the query
    if I have m rows in Order and n rows in CreditCard. I will get m*n records, I looking for max(m,n).
    With the following fields in my query result,
    custID, Name, Address, OrderID, orderDate, creditCard#, creditCarType
    from Customer, Order, CreditCard tables
    Thanks so much for your htlp

  • SQL Query Help - Is this possible or impossible????

    Hi guys,
    I need help with an SQL query that I'm trying to develop. It's very easy to explain but when trying to implement it, I'm struggling to achieve the results that I want.....
    For example,
    I have 2 tables
    The first table is:
    1) COMPANY create table company (manufacturer varchar2(25),
                                                          date_established date,
                                                          location varchar2(25) );My sample test date is:
    insert into company values ('Ford', 1902, 'USA');
    insert into company values ('BMW', 1910, 'Germany');
    insert into company values ('Tata', 1922, 'India');The second table is:
    2) MODELS create table models (manufacturer varchar(25),
                                                 model varchar2(25),
                                                 price number(10),
                                                 year date,
                                                 current_production_status varchar2(1) ) ;My sample test data is:
    insert into models values ('Ford', 'Mondeo', 10000, 2010, 0);
    insert into models values ('Ford', 'Galaxy', 12000,   2008, 0);
    insert into models values ('Ford', 'Escort', 10000, 1992, 1);
    insert into models values ('BMW', '318', 17500, 2010, 0);
    insert into models values ('BMW', '535d', 32000,   2006, 0);
    insert into models values ('BMW', 'Z4', 10000, 1992, 0);
    insert into models values ('Tata', 'Safari', 4000, 1999, 0);
    insert into models values ('Tata', 'Sumo', 5500,   1996, 1);
    insert into models values ('Tata', 'Maruti', 3500, 1998, 0);And this is my query:
    SELECT
            com.manufacturer,
            com.date_established,
            com.location,
            DECODE(nvl(mod.current_production_status, '0'), '0', '-', mod.model),
            DECODE(nvl(mod.current_production_status, '0'), '0', '-', mod.price),
            DECODE(nvl(mod.current_production_status, '0'), '0', '-', mod.year),
            mod.current_production_status
    FROM
           company com,
           models mod
    WHERE
          mod.manufacturer = com.manufacturer
          and com.manufacturer IN ('Ford', 'BMW', 'Tata')
          and mod.current_production_status IN (1,0)
    ORDER BY
            mod.current_production_status DESCWhat I want the query to output is this:
    com.manufacturer        com.date_established          com.location          mod.model          mod.price             mod.year     mod.current_production_status
    Ford               1902                    USA               Escort               10000               1992          1
    BMW               1910                    Germany               -               -               -          0
    Tata               1922                    India               Sumo               5500               1998          1If current_production_status is 1 it means this particular model has been discontinued
    If current_production_status is 0 it means the manufacturer does not have any discontinued models and all are in procuction.
    The rule is only one record per manufacturer is allowed to have a current_production_status of 1 (so only one model from the selection the manufactuer offers is allowed to be discontinued).
    So the query should output the one row where current_production_status is 1 for each manufacturer.
    If for a given manufacturer there are no discontinued models and all have a current_production_status of 0 then ouput a SINGLE row that only includes the data from the COMPANY table (as above). The rest of the columns from the MODELS table should be populated with a '-' (hyphen).
    My query as it is above will output all the records where current status is 1 or 0 like this
    com.manufacturer        com.date_established          com.location          mod.model          mod.price          mod.year     mod.current_production_status
    Ford               1902                    USA               Escort               10000               1992          1
    Tata               1922                    India               Sumo               5500               1998          1
    Ford               1902                    USA               -               -               -          0                    
    Ford               1902                    USA               -               -               -          0
    BMW               1910                    Germany               -               -               -          0
    BMW               1910                    Germany               -               -               -          0
    BMW               1910                    Germany               -               -               -          0
    Tata               1922                    India               -               -               -          0
    Tata               1922                    India               -               -               -          0However this is not what I want.
    Any ideas how I can achieve the result I need?
    Thanks!
    P.S. Database version is '10.2.0.1.0'

    Hi Vishnu,
    Karthiks query helped...
    But this is the problem I am facing...
    SELECT
            com.manufacturer,
            com.date_established,
            com.location,
            DECODE(nvl(mod.current_production_status, '0'), '0', '-', mod.model),
            DECODE(nvl(mod.current_production_status, '0'), '0', '-', mod.price),
            DECODE(nvl(mod.current_production_status, '0'), '0', '-', mod.year),
            mod.current_production_status
    FROM
           company com,
           models mod
    WHERE
          mod.manufacturer = com.manufacturer
          and com.manufacturer = 'Ford'
          and mod.current_production_status IN (1,0)
    ORDER BY
            mod.current_production_status DESCThe value of:
    and com.manufacturer = 'Ford'will be dependent on front end user input....
    When I run the query above I get all the rows where current_production_status is either 1 or 0.
    I only require the rows where current_production_status is 1.
    So if I amend it to look like this:
         and mod.current_production_status = 1This works....
    BUT if a user now passes in more than one manufacturer EG:
    and com.manufacturer IN ('Ford', 'BMW')The query will only return the one row for Ford where current_production_status is 1. However because BMW has no models where current_production_status is 1 (all 3 are 0), I still want this to be output - as one row....
    So like this:
    com.manufacturer        com.date_established          com.location          mod.model          mod.price             mod.year     mod.current_production_status
    Ford               1902                    USA               Escort               10000               1992          1
    BMW               1910                    Germany               -               -               -          0So (hopefully you understand), I want both cases to be catered for.....whether a user enters one manufacturer or more than one...
    Thanks you so much!
    This is really driving me insane :-(

  • Hi basis gurus, plz help me i have problem in loading the solman 4.0 sr3

    hi basis gurus, plz help me i have problem in loading the solution manager 4.0 sr3 on mssql 2005 with sp2,
    i am enclosing the error log.
    plz help me.
    INFO 2007-12-15 04:52:47.203
    Copied file 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/inifile.xml' to 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/inifile.2.xml'.
    INFO 2007-12-15 04:52:47.234
    Copied file 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/inifile.xml' to 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/inifile.3.xml'.
    INFO 2007-12-15 04:52:47.671
    Copied file 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/keydb.xml' to 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/keydb.2.xml'.
    INFO 2007-12-15 04:52:47.671
    Execute step changeUserInstall of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|Preinstall|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:04.531
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\change.log.
    INFO 2007-12-15 04:53:04.546
    Output of change user /install is written to the logfile change.log.
    WARNING 2007-12-15 04:53:04.562
    Execution of the command "change user /install" finished with return code 1. Output:
    Install mode does not apply to a Terminal server configured for remote administration.
    INFO 2007-12-15 04:53:04.625
    Execute step chgautInstdirPublicAllOS4 of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|Preinstall|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:04.718
    Execute step replaceDLLs of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|Preinstall|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:04.843
    File not found: [C:/DOCUME1/ADMINI1/LOCALS~1/Temp/1/sapinst_exe.3432.1197711967/msvcp71.dll].
    INFO 2007-12-15 04:53:04.859
    File not found: [C:/DOCUME1/ADMINI1/LOCALS~1/Temp/1/sapinst_exe.3432.1197711967/msvcr71.dll].
    INFO 2007-12-15 04:53:04.921
    Execute step registerEventsDll of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|Preinstall|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:05.125
    Execute step AddPrivileges of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|Preinstall|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:05.343
    Successfully added privileges 'SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege' to account 'SOLMAN\Administrator' on host '.'.
    INFO 2007-12-15 04:53:05.406
    Execute step checkInstDirPermissions of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|Preinstall|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:05.562
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\testfile.1.
    INFO 2007-12-15 04:53:05.562
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\testfile.1.
    INFO 2007-12-15 04:53:05.828
    Execute step
    Component  W2K_ServicePack_Check|ind|ind|ind|ind
    Preprocess  of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2007-12-15 04:53:24.640
    Execute step sync of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2007-12-15 04:53:24.859
    Execute step adminCheck of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2007-12-15 04:53:25.62
    Execute step W2KSPCheck of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2007-12-15 04:53:25.234
    Execute step XPSPCheck of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2007-12-15 04:53:25.421
    Execute step DNSCheck of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:25.546
    DNS is configured correctly.
    INFO 2007-12-15 04:53:25.609
    Execute step done of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:25.796
    Execute step checkParams of component |NW_Onehost|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:25.984
    Execute step fillContextForSoftwareFeatures of component |NW_Onehost|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:26.171
    Execute step loadUsageTypes of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features_Init|ind|ind|ind|ind|2|0.
    INFO 2007-12-15 04:53:28.62
    Execute step fillContextUsageTypes of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0.
    INFO 2007-12-15 04:53:28.265
    Execute step setAllPossible of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:28.859
    Copied file 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/usages_data.xml' to 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/usages_data.1.xml'.
    INFO 2007-12-15 04:53:28.890
    Copied file 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/usages_data.xml' to 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/usages_data.2.xml'.
    INFO 2007-12-15 04:53:28.921
    Copied file 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jexclude.xml' to 'C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jexclude.1.xml'.
    INFO 2007-12-15 04:53:28.921
    Execute step determineScenarioParameters of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:29.140
    Execute step prepareUsagesTableForUserInputXml of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:29.640
    Execute step determinePossibleUsageTypesXml of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:30.468
    Execute step prepareUsagesTableForUserInputDB of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:30.578
    Execute step setDefaultsGuiValues of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:30.687
    Execute step setDefaultsStackDetermined of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:30.781
    Execute step chooseMandatory of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:31.296
    Execute step makeABAPPartsImpossible of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:31.390
    Execute step setDependencyRestrictions of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Prepare|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:32.0
    Execute step prepareScenario of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Select|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:53:32.468
    Execute step fillUsagesTable of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Select|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:53:33.515
    Execute step selectUsages of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Select|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:53:33.640
    Execute step selectUsagesNetWeaver of component |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features|ind|ind|ind|ind|3|0|SAP_Software_Features_Select|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:53:33.765
    Execute step determineStack of component |NW_Onehost|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:34.234
    Execute step determineCharSet of component |NW_Onehost|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:34.890
    Execute step fillContext2 of component |NW_Onehost|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:35.93
    Execute step startDefaultMode of component |NW_Onehost|ind|ind|ind|ind|0|0.
    INFO 2007-12-15 04:53:35.390
    Execute step fillContext of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:53:35.640
    Execute step setDefaults of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_getJavaHome|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:53:36.31
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 04:53:35 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 04:53:36.312
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/sapxmltoolkit.jar com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
    INFO 2007-12-15 04:53:36.312
    Found a valid JAVA_HOME directory C:\j2sdk1.4.2_12 with JDK version 1.4.2_12.
    INFO 2007-12-15 04:55:54.593
    Copied file 'D:/D51032958/J2EE_OSINDEP/JDKVersion.xml' to '.'.
    INFO 2007-12-15 04:55:54.781
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/sapxmltoolkit.jar com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
    INFO 2007-12-15 04:55:54.781
    Found a valid JAVA_HOME directory C:\j2sdk1.4.2_12 with JDK version 1.4.2_12.
    INFO 2007-12-15 04:55:54.953
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/sapxmltoolkit.jar com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
    INFO 2007-12-15 04:55:55.62
    Execute step getCD of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_getJavaHome|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:55:55.281
    Execute step verifyJavaHome of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_getJavaHome|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:55:55.593
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 04:55:55 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 04:55:55.968
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 04:55:55 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 04:55:56.187
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/3/sapinst_exe.2320.1197712344/JAR/sapxmltoolkit.jar com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
    INFO 2007-12-15 04:55:56.390
    Execute step verifyPolicy of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_getJavaHome|ind|ind|ind|ind|1|0.
    INFO 2007-12-15 04:55:56.531
    Creating directory C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck.
    INFO 2007-12-15 04:55:56.546
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jdkPolicyCheck.
    INFO 2007-12-15 04:55:56.562
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 04:55:56.562
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\local_policy.log.
    INFO 2007-12-15 04:55:56.578
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile local_policy.log.
    INFO 2007-12-15 04:55:56.875
    Output of C:\j2sdk1.4.2_12\bin\jar.exe xvf C:/j2sdk1.4.2_12/jre/lib/security/local_policy.jar:
    extracted: META-INF/MANIFEST.MF
    extracted: META-INF/JCE_RSA.SF
    extracted: META-INF/JCE_RSA.RSA
      created: META-INF/
    extracted: default_local.policy
    extracted: exempt_local.policy
    INFO 2007-12-15 04:55:56.890
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jdkPolicyCheck.
    INFO 2007-12-15 04:55:56.890
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 04:55:56.906
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\US_export_policy.log.
    INFO 2007-12-15 04:55:56.906
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile US_export_policy.log.
    INFO 2007-12-15 04:55:57.62
    Output of C:\j2sdk1.4.2_12\bin\jar.exe xvf C:/j2sdk1.4.2_12/jre/lib/security/US_export_policy.jar:
    extracted: META-INF/MANIFEST.MF
    extracted: META-INF/JCE_RSA.SF
    extracted: META-INF/JCE_RSA.RSA
      created: META-INF/
    extracted: default_US_export.policy
    INFO 2007-12-15 04:55:57.78
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck\default_local.policy.
    INFO 2007-12-15 04:55:57.78
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck\default_US_export.policy.
    INFO 2007-12-15 04:55:57.78
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck\exempt_local.policy.
    INFO 2007-12-15 04:55:57.78
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck\META-INF\JCE_RSA.RSA.
    INFO 2007-12-15 04:55:57.78
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck\META-INF\JCE_RSA.SF.
    INFO 2007-12-15 04:55:57.78
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jdkPolicyCheck\META-INF\MANIFEST.MF.
    INFO 2007-12-15 04:55:57.78
    Removing directory C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jdkPolicyCheck/META-INF.
    INFO 2007-12-15 04:55:57.78
    Removing directory C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jdkPolicyCheck.
    INFO 2007-12-15 04:55:57.343
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 04:55:57 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 04:55:57.625
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 04:55:57 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 05:06:19.171
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:06:19.187
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\LABEL.log.
    INFO 2007-12-15 05:06:19.187
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile LABEL.log.
    INFO 2007-12-15 05:06:21.718
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf D:\D51032958\J2EE_OSINDEP\UT_SOLMAN\LABEL.ASC:
    INFO 2007-12-15 05:21:25.93
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:21:25.93
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\unrestrict142.log.
    INFO 2007-12-15 05:21:25.109
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile unrestrict142.log.
    INFO 2007-12-15 05:21:27.734
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf D:\unrestrict142.zip:
    US_export_policy.jar
    local_policy.jar
    INFO 2007-12-15 05:21:27.750
    Creating directory C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jcePolicyCheck.
    INFO 2007-12-15 05:21:27.765
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:21:27.765
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:21:27.781
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\unrestrict142.log.
    INFO 2007-12-15 05:21:27.781
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile unrestrict142.log.
    INFO 2007-12-15 05:21:27.937
    Output of C:\j2sdk1.4.2_12\bin\jar.exe xvf D:\unrestrict142.zip local_policy.jar:
    extracted: local_policy.jar
    INFO 2007-12-15 05:21:27.953
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:21:27.953
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:21:27.968
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\local_policy.log.
    INFO 2007-12-15 05:21:27.968
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile local_policy.log.
    INFO 2007-12-15 05:21:28.125
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf C:/PROGRA1/SAPINS1/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck/local_policy.jar:
    META-INF/MANIFEST.MF
    META-INF/IBMFW2.SF
    META-INF/IBMFW2.DSA
    META-INF/
    default_local.policy
    INFO 2007-12-15 05:21:28.125
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:21:28.125
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:21:28.156
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\local_policy.log.
    INFO 2007-12-15 05:21:28.156
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile local_policy.log.
    INFO 2007-12-15 05:21:28.312
    Output of C:\j2sdk1.4.2_12\bin\jar.exe xvf C:/PROGRA1/SAPINS1/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck/local_policy.jar META-INF/MANIFEST.MF:
    extracted: META-INF/MANIFEST.MF
    INFO 2007-12-15 05:21:28.546
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 05:21:28 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 05:26:40.343
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:26:40.343
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jce_policy-1_5_0.log.
    INFO 2007-12-15 05:26:40.343
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile jce_policy-1_5_0.log.
    INFO 2007-12-15 05:26:41.953
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf D:\jce_policy-1_5_0.zip:
    jce/
    jce/COPYRIGHT.html
    jce/README.txt
    jce/US_export_policy.jar
    jce/local_policy.jar
    INFO 2007-12-15 05:26:41.953
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jcePolicyCheck\local_policy.jar.
    INFO 2007-12-15 05:26:41.968
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jcePolicyCheck\META-INF\MANIFEST.MF.
    INFO 2007-12-15 05:26:41.968
    Removing directory C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck/META-INF.
    INFO 2007-12-15 05:26:41.968
    Removing directory C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:26:41.968
    Creating directory C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jcePolicyCheck.
    INFO 2007-12-15 05:26:41.984
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:26:41.984
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:26:42.0
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jce_policy-1_5_0.log.
    INFO 2007-12-15 05:26:42.15
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile jce_policy-1_5_0.log.
    INFO 2007-12-15 05:26:42.171
    Output of C:\j2sdk1.4.2_12\bin\jar.exe xvf D:\jce_policy-1_5_0.zip jce/local_policy.jar:
    extracted: jce/local_policy.jar
    INFO 2007-12-15 05:26:42.187
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:26:42.187
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:26:42.203
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\local_policy.log.
    INFO 2007-12-15 05:26:42.203
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile local_policy.log.
    INFO 2007-12-15 05:26:42.359
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf C:/PROGRA1/SAPINS1/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck/jce/local_policy.jar:
    META-INF/MANIFEST.MF
    META-INF/JCE_RSA.SF
    META-INF/JCE_RSA.RSA
    META-INF/
    default_local.policy
    INFO 2007-12-15 05:26:42.359
    Working directory changed to C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck.
    INFO 2007-12-15 05:26:42.359
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:26:42.390
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\local_policy.log.
    INFO 2007-12-15 05:26:42.390
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile local_policy.log.
    INFO 2007-12-15 05:26:42.562
    Output of C:\j2sdk1.4.2_12\bin\jar.exe xvf C:/PROGRA1/SAPINS1/SOLMAN/SYSTEM/MSS/CENTRAL/AS/jcePolicyCheck/jce/local_policy.jar META-INF/MANIFEST.MF:
    extracted: META-INF/MANIFEST.MF
    INFO 2007-12-15 05:26:42.796
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 05:26:42 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 05:26:43.93
    Execution of the command "C:\j2sdk1.4.2_12\bin\java.exe -classpath C:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Sat Dec 15 05:26:42 EST 2007
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=C\:
    j2sdk1.4.2_12
    jre
    bin
    java.vm.version=1.4.2_12-b03
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=;
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=Service Pack 2
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C\:
    PROGRA1
    SAPINS1
    SOLMAN
    SYSTEM
    MSS
    CENTRAL
    AS
    java.runtime.version=1.4.2_12-b03
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    endorsed
    os.arch=x86
    java.io.tmpdir=C\:
    DOCUME1
    ADMINI1
    LOCALS~1
    Temp
    3
    line.separator=\r\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    user.variant=
    os.name=Windows 2003
    sun.java2d.fontpath=
    java.library.path=C\:
    j2sdk1.4.2_12
    bin;.;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    system32;C\:
    WINDOWS;C\:
    WINDOWS
    System32
    Wbem;C\:
    j2sdk1.4.2_12
    bin;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    DTS
    Binn
    ;C\:
    Program Files
    Microsoft SQL Server
    90
    Tools
    Binn
    VSShell
    Common7
    IDE
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    os.version=5.2
    user.home=C\:
    Documents and Settings
    Administrator
    user.timezone=America/New_York
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.4
    java.class.path=C\:/DOCUME1/ADMINI1/LOCALS~1/Temp/3/sapinst_exe.2320.1197712344/JAR/ins-j2ee.jar
    user.name=Administrator
    java.vm.specification.version=1.0
    java.home=C\:
    j2sdk1.4.2_12
    jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.4.2_12
    java.ext.dirs=C\:
    j2sdk1.4.2_12
    jre
    lib
    ext
    sun.boot.class.path=C\:
    j2sdk1.4.2_12
    jre
    lib
    rt.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    i18n.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    sunrsasign.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jsse.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    jce.jar;C\:
    j2sdk1.4.2_12
    jre
    lib
    charsets.jar;C\:
    j2sdk1.4.2_12
    jre
    classes
    java.vendor=Sun Microsystems Inc.
    file.separator=
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    INFO 2007-12-15 05:28:26.93
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:28:26.109
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jce.log.
    INFO 2007-12-15 05:28:26.109
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile jce.log.
    INFO 2007-12-15 05:28:29.156
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf C:\j2sdk1.4.2_12\jre\lib\jce.jar:
    META-INF/MANIFEST.MF
    META-INF/JCE_RSA.SF
    META-INF/JCE_RSA.RSA
    META-INF/
    javax/
    javax/crypto/
    javax/crypto/interfaces/
    javax/crypto/interfaces/DHKey.class
    javax/crypto/interfaces/DHPublicKey.class
    javax/crypto/interfaces/DHPrivateKey.class
    javax/crypto/interfaces/PBEKey.class
    javax/crypto/SecretKey.class
    javax/crypto/spec/
    javax/crypto/spec/RC2ParameterSpec.class
    javax/crypto/spec/RC5ParameterSpec.class
    javax/crypto/spec/PBEParameterSpec.class
    javax/crypto/spec/IvParameterSpec.class
    javax/crypto/spec/DESKeySpec.class
    javax/crypto/spec/DESedeKeySpec.class
    javax/crypto/spec/DHGenParameterSpec.class
    javax/crypto/spec/DHParameterSpec.class
    javax/crypto/spec/DHPrivateKeySpec.class
    javax/crypto/spec/DHPublicKeySpec.class
    javax/crypto/spec/PBEKeySpec.class
    javax/crypto/spec/SecretKeySpec.class
    javax/crypto/Cipher.class
    javax/crypto/CipherSpi.class
    javax/crypto/SunJCE_b.class
    javax/crypto/SunJCE_c.class
    javax/crypto/SunJCE_d.class
    javax/crypto/SunJCE_e.class
    javax/crypto/SunJCE_f.class
    javax/crypto/SunJCE_g.class
    javax/crypto/SunJCE_h.class
    javax/crypto/SunJCE_i.class
    javax/crypto/SunJCE_j.class
    javax/crypto/SunJCE_k.class
    javax/crypto/SunJCE_l.class
    javax/crypto/SunJCE_m.class
    javax/crypto/SunJCE_n.class
    javax/crypto/ExemptionMechanism.class
    javax/crypto/SunJCE_o.class
    javax/crypto/SunJCE_p.class
    javax/crypto/CipherInputStream.class
    javax/crypto/CipherOutputStream.class
    javax/crypto/KeyAgreement.class
    javax/crypto/KeyAgreementSpi.class
    javax/crypto/KeyGenerator.class
    javax/crypto/KeyGeneratorSpi.class
    javax/crypto/Mac.class
    javax/crypto/MacSpi.class
    javax/crypto/ShortBufferException.class
    javax/crypto/SecretKeyFactory.class
    javax/crypto/SecretKeyFactorySpi.class
    javax/crypto/NullCipherSpi.class
    javax/crypto/EncryptedPrivateKeyInfo.class
    javax/crypto/ExemptionMechanismSpi.class
    javax/crypto/ExemptionMechanismException.class
    javax/crypto/SealedObject.class
    javax/crypto/SunJCE_q.class
    javax/crypto/NullCipher.class
    javax/crypto/BadPaddingException.class
    javax/crypto/IllegalBlockSizeException.class
    javax/crypto/NoSuchPaddingException.class
    javax/crypto/SunJCE_r.class
    javax/crypto/SunJCE_s.class
    javax/crypto/SunJCE_t.class
    javax/crypto/SunJCE_u.class
    INFO 2007-12-15 05:36:57.406
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 05:36:57.421
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jce.log.
    INFO 2007-12-15 05:36:57.437
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile jce.log.
    INFO 2007-12-15 05:37:00.234
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf C:\j2sdk1.4.2_12\jre\lib\jce.jar:
    META-INF/MANIFEST.MF
    META-INF/JCE_RSA.SF
    META-INF/JCE_RSA.RSA
    META-INF/
    javax/
    javax/crypto/
    javax/crypto/interfaces/
    javax/crypto/interfaces/DHKey.class
    javax/crypto/interfaces/DHPublicKey.class
    javax/crypto/interfaces/DHPrivateKey.class
    javax/crypto/interfaces/PBEKey.class
    javax/crypto/SecretKey.class
    javax/crypto/spec/
    javax/crypto/spec/RC2ParameterSpec.class
    javax/crypto/spec/RC5ParameterSpec.class
    javax/crypto/spec/PBEParameterSpec.class
    javax/crypto/spec/IvParameterSpec.class
    javax/crypto/spec/DESKeySpec.class
    javax/crypto/spec/DESedeKeySpec.class
    javax/crypto/spec/DHGenParameterSpec.class
    javax/crypto/spec/DHParameterSpec.class
    javax/crypto/spec/DHPrivateKeySpec.class
    javax/crypto/spec/DHPublicKeySpec.class
    javax/crypto/spec/PBEKeySpec.class
    javax/crypto/spec/SecretKeySpec.class
    javax/crypto/Cipher.class
    javax/crypto/CipherSpi.class
    javax/crypto/SunJCE_b.class
    javax/crypto/SunJCE_c.class
    javax/crypto/SunJCE_d.class
    javax/crypto/SunJCE_e.class
    javax/crypto/SunJCE_f.class
    javax/crypto/SunJCE_g.class
    javax/crypto/SunJCE_h.class
    javax/crypto/SunJCE_i.class
    javax/crypto/SunJCE_j.class
    javax/crypto/SunJCE_k.class
    javax/crypto/SunJCE_l.class
    javax/crypto/SunJCE_m.class
    javax/crypto/SunJCE_n.class
    javax/crypto/ExemptionMechanism.class
    javax/crypto/SunJCE_o.class
    javax/crypto/SunJCE_p.class
    javax/crypto/CipherInputStream.class
    javax/crypto/CipherOutputStream.class
    javax/crypto/KeyAgreement.class
    javax/crypto/KeyAgreementSpi.class
    javax/crypto/KeyGenerator.class
    javax/crypto/KeyGeneratorSpi.class
    javax/crypto/Mac.class
    javax/crypto/MacSpi.class
    javax/crypto/ShortBufferException.class
    javax/crypto/SecretKeyFactory.class
    javax/crypto/SecretKeyFactorySpi.class
    javax/crypto/NullCipherSpi.class
    javax/crypto/EncryptedPrivateKeyInfo.class
    javax/crypto/ExemptionMechanismSpi.class
    javax/crypto/ExemptionMechanismException.class
    javax/crypto/SealedObject.class
    javax/crypto/SunJCE_q.class
    javax/crypto/NullCipher.class
    javax/crypto/BadPaddingException.class
    javax/crypto/IllegalBlockSizeException.class
    javax/crypto/NoSuchPaddingException.class
    javax/crypto/SunJCE_r.class
    javax/crypto/SunJCE_s.class
    javax/crypto/SunJCE_t.class
    javax/crypto/SunJCE_u.class
    INFO 2007-12-15 06:43:51.609
    Working directory changed to C:\PROGRA1\SAPINS1\SOLMAN\SYSTEM\MSS\CENTRAL\AS.
    INFO 2007-12-15 06:43:51.609
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jce_policy-1_4_2.log.
    INFO 2007-12-15 06:43:51.625
    Output of C:\j2sdk1.4.2_12\bin\jar.exe is written to the logfile jce_policy-1_4_2.log.
    INFO 2007-12-15 06:43:52.984
    Output of C:\j2sdk1.4.2_12\bin\jar.exe tf D:\jce_policy-1_4_2.zip:
    jce/
    jce/local_policy.jar
    jce/US_export_policy.jar
    jce/README.txt
    jce/COPYRIGHT.html
    INFO 2007-12-15 06:43:52.984
    Removing file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\MSS\CENTRAL\AS\jcePolicyCheck\jce\local_policy.jar.

    Moving this thread to "basis" forum (sorry, I cannot move to SolMan forum).

  • Barcode Printing from EP --using barcode4J (Gurus kindly help me)

    Dear Experts,
    Barcode Printing from EP --using barcode4J
    we want to print employee number as barcode in EP(version 6.4 SP 19).
    we tested the barcode creation a standalone class, it works fine
    Sample Code as follows
    ================================
    Code128Bean bean = new Code128Bean();
                 final int dpi = 150;
                 //Configure the barcode generator
                 bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); //makes the narrow bar
                                                                               //width exactly one pixel
                 bean.setWideFactor(3);
                 bean.doQuietZone(false);
                 //Open output file
                 File outputFile = new File("out.jpg");
                 OutputStream out = new FileOutputStream(outputFile);
                 try {
                      //Set up the canvas provider for monochrome JPEG output
                      BitmapCanvasProvider canvas = new BitmapCanvasProvider(
                                out, "image/jpeg", dpi, BufferedImage.TYPE_BYTE_INDEXED, false);
                   //BarcodeServlet.            
                      //Generate the barcode
                      bean.generateBarcode(canvas, "Z454544");
                      //Signal end of generation
                      canvas.finish();
                 } finally {
                      out.close();
    <b>But the same code i put in wdDoModifyView() or wdDoInit() it throws class not found exception</b>. I have checked that barcode4j.jar and all relevant files are in classpath.
    Any help will be rewarded.
    Thanks
    Aby.

    Re: Barcode Printing from EP --using barcode4J (Gurus kindly help me)  
    Posted: Aug 24, 2007 5:21 AM    in response to: Ashutosh Moharir         Reply      E-mail this post 
    Dear Ashutosh,
    <b> It is working now!     ....  :-D  
    Can someone  provide me with a more detailed answer
    Or Best Practices (step by step) ,that would be Great . </b>
    I deeply appreciate your Quick & valuable advice;
    and shall create a new posting if any further need arises
    Many Thanks,
    Aby Jacob
    =========

  • Need a query help

    hii
    i need a query help
    i have two tables
    the 1st table will look like this
    associate id weekid no.of. hours
    4000 810 40
    4000 820 30
    4000 830 60
    4000 840 70
    2nd table will look like this
    associate id weekid no.of.hours
    4000 810 40
    4000 820 70
    4000 830 130
    4000 840 200
    so when i subtract the last two records frm each other in the second table the value should be equal to the no.of.hours in the first table.. for example
    the query shud consider the last record and one before the last record and the difference between two records shud be equal to the value in the 1st table
    for example
    consider week id 830 and 840
    in second table 830=130
    840=200
    when u subtraced both values the difference shud be equal to value in the 1st table for tht week id
    1 ---->>>> 840 - 830
    =200 - 130
    =70
    in first table 840 has 70 hrs
    like this it shud check with all records and it shud return only the records which are not equal
    regards
    srikanth

    This..?
    sql>select * from t1;
    A_ID W_ID HRS
    4000  810  40 
    4000  820  30 
    4000  830  60 
    4000  840  70 
    4000  850  80 
    sql>select * from t2;
    A_ID W_ID HRS 
    4000  810  40 
    4000  820  70 
    4000  830  130 
    4000  840  200 
    4000  850  260 
    sql>
    select a_id,w_id,hrs,sum_hrs
    from(
    select t1.a_id a_id,t1.w_id w_id,t1.hrs hrs,t2.hrs sum_hrs,
           t2.hrs - nvl(lag(t2.hrs)  over(order by t1.w_id),0) diff
    from t1,t2
    where t1.w_id = t2.w_id)
    where diff != hrs;
    A_ID W_ID HRS SUM_HRS 
    4000  850  80  260                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • SQL Gurus : Need Help in building SQL query

    SQL Gurus,
    Need your expertise to solve my below problem:
    - I have a column that had comma separated data, basically there are the levels in a hierarchy. eg The same column could have the following data:
    Row 1: R1L1, R1L2, R1L3
    Row 2: R2L1, R2L2
    Row 3: R3L1, R3L2, R3L3, R3L4
    For assumption purpose lets assume that there are maximum 5 Levels
    I want to put this data from this column into another table which holds the levels. I am expecting the output in another table as follows:
    Col1____Col2 ____Col3____Col4____Col5
    Row 1: R1L1___R1L2____R1L3____null_____null
    Row 2: R2L1___R2L2____null_____null_____null
    Row 3: R3L1___R3L2____R3L3____R3L4___null
    How do i achieve this ? ie coverting the comma separated values in a column to separate columns. The # of values in each columns could be different as I have showb above
    Regards,
    pk

    with t as (
               select 'R1L1, R1L2, R1L3' c1 from dual union all
               select 'R2L1, R2L2' c1 from dual union all
               select 'R3L1, R3L2, R3L3, R3L4' c1 from dual
    select  substr(c1,instr(', ' || c1 || ', ',', ',1,mod(l,5) + 1),instr(', ' || c1 || ', ',', ',1,mod(l + 1,5) + 1) - instr(', ' || c1 || ', ',', ',1,mod(l,5) + 1) - 2) col1,
            substr(c1,instr(', ' || c1 || ', ',', ',1,mod(l - 1,5) + 1),instr(', ' || c1 || ', ',', ',1,mod(l,5) + 1) - instr(', ' || c1 || ', ',', ',1,mod(l - 1,5) + 1) - 2) col2,
            substr(c1,instr(', ' || c1 || ', ',', ',1,mod(l - 2,5) + 1),instr(', ' || c1 || ', ',', ',1,mod(l - 1,5) + 1) - instr(', ' || c1 || ', ',', ',1,mod(l - 2,5) + 1) - 2) col3,
            substr(c1,instr(', ' || c1 || ', ',', ',1,mod(l - 3,5) + 1),instr(', ' || c1 || ', ',', ',1,mod(l - 2,5) + 1) - instr(', ' || c1 || ', ',', ',1,mod(l - 3,5) + 1) - 2) col4,
            substr(c1,instr(', ' || c1 || ', ',', ',1,mod(l - 4,5) + 1),instr(', ' || c1 || ', ',', ',1,mod(l - 3,5) + 1) - instr(', ' || c1 || ', ',', ',1,mod(l - 4,5) + 1) - 2) col5
      from  (
             select  c1,
                     length(c1) - length(replace(c1,',')) + 5 l
               from  t
    COL1                   COL2                   COL3                   COL4                   COL5
    R1L3                   R1L2                   R1L1
    R2L2                   R2L1
    R3L4                   R3L3                   R3L2                   R3L1
    SQL> SY.

  • Query help with Model clause

    Hi Gurus,
    Can someone please help me out.
    I've a below tables.
    1) tbl_link --> this table contains information at profile level
    2) tbl_summary --> this table contains summary at parent profile level derived from tbl_link table
    One parent profile contains multiple child profiles and each child profile links to a code (which is B, W, G or P) and the code is linked to a category (i.e. ONL and OFL). In this case code B is linked to category 'ONL' and codes W,G,P linked to OFL category.
    ONL category needs 100 points. If it don't have enough points then i need to borrow from OFL category which i'm doing and populating into tbl_summary table at parent profile level.
    Now i need to insert data into tbl_link table at profile level with howmany points used, expired based on tbl_summary table. Rule is at the end of month if we add points for each profile in tbl_link table it should come as 0.
    with
    tbl_SUMMARY as
    select 1 as ppid,'ONL' as catgcode, 53 as earned_points,47 BORROWED_POINTS,100 CERT_POINTS,0 DISCARD_POINTS,100 used from dual
    union
    select 1 as ppid,'OFL' as catgcode, 223 as earned_points,0 BORROWED_POINTS,176 CERT_POINTS,76 DISCARD_POINTS,100 used from dual
    union
    select 2 as ppid,'ONL' as catgcode, 39 as earned_points,61 BORROWED_POINTS,100 CERT_POINTS,0 DISCARD_POINTS,100 used from dual
    union
    select 2 as ppid,'OFL' as catgcode, 90 as earned_points,0 BORROWED_POINTS,29 CERT_POINTS,29 DISCARD_POINTS,100 used from dual
    union
    select 3 as ppid,'ONL' as catgcode, 109 as earned_points,0 BORROWED_POINTS,109 CERT_POINTS,9 DISCARD_POINTS,100 used from dual
    union
    select 3 as ppid,'OFL' as catgcode, 223 as earned_points,0 BORROWED_POINTS,223 CERT_POINTS,23 DISCARD_POINTS,200 used from dual
    union
    select 4 as ppid,'ONL' as catgcode, 109 as earned_points,0 BORROWED_POINTS,109 CERT_POINTS,9 DISCARD_POINTS,100 used from dual
    union
    select 4 as ppid,'OFL' as catgcode, 169 as earned_points,0 BORROWED_POINTS,169 CERT_POINTS,69 DISCARD_POINTS,100 used from dual
    tbl_link as
    select 1 as ppid,1 as pid, 'B' as code,'ONL' as catgcode, 53 as earned_points from dual
    union
    select 1 as ppid,12 as pid, 'W' as code,'OFL' as catgcode, 26 as earned_points from dual
    union
    select 1 as ppid,13 as pid, 'G' as code,'OFL' as catgcode, 87 as earned_points from dual
    union
    select 1 as ppid,14 as pid, 'P' as code,'OFL' as catgcode, 110 as earned_points from dual
    union
    select 2 as ppid,2 as pid, 'B' as code,'ONL' as catgcode, 39 as earned_points from dual
    union
    select 2 as ppid,22 as pid, 'W' ,'OFL' as catgcode, 30 as earned_points from dual
    union
    select 2 as ppid,23 as pid, 'G' ,'OFL' as catgcode, 29 as earned_points from dual
    union
    select 2 as ppid,24 as pid, 'P' ,'OFL' as catgcode, 31 as earned_points from dual
    union
    select 3 as ppid,3 as pid, 'B' as code,'ONL' as tier_catgcode, 109 as earned_points from dual
    union
    select 3 as ppid,32 as pid, 'W' ,'OFL' , 26 as earned_points from dual
    union
    select 3 as ppid,33 as pid, 'G' ,'OFL', 87 as earned_points from dual
    union
    select 3 as ppid,34 as pid, 'P' ,'OFL' , 110 as earned_points from dual
    union
    select 4 as ppid,4 as pid, 'B' as code,'ONL' as catgcode, 109 as earned_points from dual
    union
    select 4 as ppid,42 as pid, 'W' as code,'OFL' , 26 as earned_points from dual
    union
    select 4 as ppid,43 as pid, 'G' as code,'OFL' , 87 as earned_points from dual
    union
    select 4 as ppid,44 as pid, 'P' as code,'OFL' , 56 as earned_points from dual
    final (PARENT_PROFILE_ID,PROFILE_ID,catgcode,EARNED_POINTS,BORROWED_POINTS,CERT_POINTS,DISCARD_POINTS,USED)
    as (
    select A.PPID PARENT_PROFILE_ID,B.PID PROFILE_ID,A.catgcode,B.EARNED_POINTS,BORROWED_POINTS,CERT_POINTS,DISCARD_POINTS,USED
    from tbl_SUMMARY a,tbl_link b where a.ppid=b.ppid AND A.catgcode=B.catgcode
    ORDER BY PROFILE_ID
    select * from final order by 1;
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED
    1                  1           ONL       53             47               100          0               100
    1                  14          OFL       110            0                176          76              100
    1                  13          OFL       87             0                176          76              100
    1                  12          OFL       26             0                176          76              100
    2                  2           ONL       39             61               100          0               100
    2                  24          OFL       31             0                29           29              100
    2                  23          OFL       29             0                29           29              100
    2                  22          OFL       30             0                29           29              100
    3                  32          OFL       26             0                223          23              200
    3                  33          OFL       87             0                223          23              200
    3                  34          OFL       110            0                223          23              200
    3                  3           ONL       109            0                109          9               100
    4                  42          OFL       26             0                169          69              100
    4                  43          OFL       87             0                169          69              100
    4                  44          OFL       56             0                169          69              100
    4                  4           ONL       109            0                109          9               100
    Need Output as below :
    For parent profile 1, whatever i mentioned above is not correct. Borrowed 47 points from OFL to ONL to make ONL and also from OFL category has 176 points remaining after lending to ONL and using only 100 points, remaining 76 points are discarded. Need to deduct these 76 points also from child profiles. Output will be as below.
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    1                  1           ONL       53             47               100          0               100   -53       0
    1                  12          OFL       26             0                176          76              100   -26       0
    1                  13          OFL       87             0                176          76              100   -74       -13
    1                  14          OFL       110            0                176          76              100   -47       -63
    For parent profile id 2 --> ONL category has 39 points, so borrowed 61 points from OFL category to make ONL points 100.
                                Now need to populate tbl_link table at child profile level (i.e. child profiles 22,23,24).
    Borrowed 61 points from OFL and need to deduct this points from the profile which has highest earned points, in this case deduct from profile 24 which has 31 points, from profile 22 which has 30 points. Need output like below
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    2                  2           ONL       39             61               100          0               100   -39       0
    2                  22          OFL       30             0                29           29              100   -30       0
    2                  23          OFL       29             0                29           29              100   0         -29
    2                  24          OFL       31             0                29           29              100   -31       0
    For parent profile id 3 --> ONL category has 109 points, so no need to borrow points from OFL category
                                Now need to populate tbl_link table at child profile level (i.e. child profiles 32,33,34).
    in this case ONL has 100 points, so move the remaining 9 points will be expired. OFL category has 223 points total. need only 200 points (i.e. mutiple of 100) for our process, 23 points will be expired and has to deduct from the profile which has highest earned points, in this case from profile 34. Output :
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    3                  3           ONL       109            0                109          9               100   -100      -9
    3                  32          OFL       26             0                223          23              200   -26       0
    3                  33          OFL       87             0                223          23              200   -87       0
    3                  34          OFL       110            0                223          23              200   -87       -23
    For parent profile id 4 --> ONL category has 109 points, so no need to borrow points from OFL category
                                Now need to populate tbl_link table at child profile level (i.e. child profiles 42,43,44).
    in this case ONL has 100 points, so move the remaining 9 points will be expired. OFL category has 169 points total. need only 100 points (i.e. mutiple of 100) for our process, 69 points will be expired and has to deduct from the profile which has highest earned points, in this case from profile 43. Output :
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    4                  4           ONL       109            0                109          9               100   100       9
    4                  42          OFL       26             0                169          69              100   -26       0
    4                  43          OFL       87             0                169          69              100   -18       -69
    4                  44          OFL       56             0                169          69              100   -56       0
    Can someone help with the query. I googled about looping in sql and came to know that Oracle has a feature MODEL to loop in SQL, but i don't have idea on using MODEL clause.
    Appreciate your help!
    Thanks
    Sri

    Hi Gurus,
    Can someone please help me out.
    I've a below tables.
    1) tbl_link --> this table contains information at profile level
    2) tbl_summary --> this table contains summary at parent profile level derived from tbl_link table
    One parent profile contains multiple child profiles and each child profile links to a code (which is B, W, G or P) and the code is linked to a category (i.e. ONL and OFL). In this case code B is linked to category 'ONL' and codes W,G,P linked to OFL category.
    ONL category needs 100 points. If it don't have enough points then i need to borrow from OFL category which i'm doing and populating into tbl_summary table at parent profile level.
    Now i need to insert data into tbl_link table at profile level with howmany points used, expired based on tbl_summary table. Rule is at the end of month if we add points for each profile in tbl_link table it should come as 0.
    with
    tbl_SUMMARY as
    select 1 as ppid,'ONL' as catgcode, 53 as earned_points,47 BORROWED_POINTS,100 CERT_POINTS,0 DISCARD_POINTS,100 used from dual
    union
    select 1 as ppid,'OFL' as catgcode, 223 as earned_points,0 BORROWED_POINTS,176 CERT_POINTS,76 DISCARD_POINTS,100 used from dual
    union
    select 2 as ppid,'ONL' as catgcode, 39 as earned_points,61 BORROWED_POINTS,100 CERT_POINTS,0 DISCARD_POINTS,100 used from dual
    union
    select 2 as ppid,'OFL' as catgcode, 90 as earned_points,0 BORROWED_POINTS,29 CERT_POINTS,29 DISCARD_POINTS,100 used from dual
    union
    select 3 as ppid,'ONL' as catgcode, 109 as earned_points,0 BORROWED_POINTS,109 CERT_POINTS,9 DISCARD_POINTS,100 used from dual
    union
    select 3 as ppid,'OFL' as catgcode, 223 as earned_points,0 BORROWED_POINTS,223 CERT_POINTS,23 DISCARD_POINTS,200 used from dual
    union
    select 4 as ppid,'ONL' as catgcode, 109 as earned_points,0 BORROWED_POINTS,109 CERT_POINTS,9 DISCARD_POINTS,100 used from dual
    union
    select 4 as ppid,'OFL' as catgcode, 169 as earned_points,0 BORROWED_POINTS,169 CERT_POINTS,69 DISCARD_POINTS,100 used from dual
    tbl_link as
    select 1 as ppid,1 as pid, 'B' as code,'ONL' as catgcode, 53 as earned_points from dual
    union
    select 1 as ppid,12 as pid, 'W' as code,'OFL' as catgcode, 26 as earned_points from dual
    union
    select 1 as ppid,13 as pid, 'G' as code,'OFL' as catgcode, 87 as earned_points from dual
    union
    select 1 as ppid,14 as pid, 'P' as code,'OFL' as catgcode, 110 as earned_points from dual
    union
    select 2 as ppid,2 as pid, 'B' as code,'ONL' as catgcode, 39 as earned_points from dual
    union
    select 2 as ppid,22 as pid, 'W' ,'OFL' as catgcode, 30 as earned_points from dual
    union
    select 2 as ppid,23 as pid, 'G' ,'OFL' as catgcode, 29 as earned_points from dual
    union
    select 2 as ppid,24 as pid, 'P' ,'OFL' as catgcode, 31 as earned_points from dual
    union
    select 3 as ppid,3 as pid, 'B' as code,'ONL' as tier_catgcode, 109 as earned_points from dual
    union
    select 3 as ppid,32 as pid, 'W' ,'OFL' , 26 as earned_points from dual
    union
    select 3 as ppid,33 as pid, 'G' ,'OFL', 87 as earned_points from dual
    union
    select 3 as ppid,34 as pid, 'P' ,'OFL' , 110 as earned_points from dual
    union
    select 4 as ppid,4 as pid, 'B' as code,'ONL' as catgcode, 109 as earned_points from dual
    union
    select 4 as ppid,42 as pid, 'W' as code,'OFL' , 26 as earned_points from dual
    union
    select 4 as ppid,43 as pid, 'G' as code,'OFL' , 87 as earned_points from dual
    union
    select 4 as ppid,44 as pid, 'P' as code,'OFL' , 56 as earned_points from dual
    final (PARENT_PROFILE_ID,PROFILE_ID,catgcode,EARNED_POINTS,BORROWED_POINTS,CERT_POINTS,DISCARD_POINTS,USED)
    as (
    select A.PPID PARENT_PROFILE_ID,B.PID PROFILE_ID,A.catgcode,B.EARNED_POINTS,BORROWED_POINTS,CERT_POINTS,DISCARD_POINTS,USED
    from tbl_SUMMARY a,tbl_link b where a.ppid=b.ppid AND A.catgcode=B.catgcode
    ORDER BY PROFILE_ID
    select * from final order by 1;
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED
    1                  1           ONL       53             47               100          0               100
    1                  14          OFL       110            0                176          76              100
    1                  13          OFL       87             0                176          76              100
    1                  12          OFL       26             0                176          76              100
    2                  2           ONL       39             61               100          0               100
    2                  24          OFL       31             0                29           29              100
    2                  23          OFL       29             0                29           29              100
    2                  22          OFL       30             0                29           29              100
    3                  32          OFL       26             0                223          23              200
    3                  33          OFL       87             0                223          23              200
    3                  34          OFL       110            0                223          23              200
    3                  3           ONL       109            0                109          9               100
    4                  42          OFL       26             0                169          69              100
    4                  43          OFL       87             0                169          69              100
    4                  44          OFL       56             0                169          69              100
    4                  4           ONL       109            0                109          9               100
    Need Output as below :
    For parent profile 1, whatever i mentioned above is not correct. Borrowed 47 points from OFL to ONL to make ONL and also from OFL category has 176 points remaining after lending to ONL and using only 100 points, remaining 76 points are discarded. Need to deduct these 76 points also from child profiles. Output will be as below.
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    1                  1           ONL       53             47               100          0               100   -53       0
    1                  12          OFL       26             0                176          76              100   -26       0
    1                  13          OFL       87             0                176          76              100   -74       -13
    1                  14          OFL       110            0                176          76              100   -47       -63
    For parent profile id 2 --> ONL category has 39 points, so borrowed 61 points from OFL category to make ONL points 100.
                                Now need to populate tbl_link table at child profile level (i.e. child profiles 22,23,24).
    Borrowed 61 points from OFL and need to deduct this points from the profile which has highest earned points, in this case deduct from profile 24 which has 31 points, from profile 22 which has 30 points. Need output like below
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    2                  2           ONL       39             61               100          0               100   -39       0
    2                  22          OFL       30             0                29           29              100   -30       0
    2                  23          OFL       29             0                29           29              100   0         -29
    2                  24          OFL       31             0                29           29              100   -31       0
    For parent profile id 3 --> ONL category has 109 points, so no need to borrow points from OFL category
                                Now need to populate tbl_link table at child profile level (i.e. child profiles 32,33,34).
    in this case ONL has 100 points, so move the remaining 9 points will be expired. OFL category has 223 points total. need only 200 points (i.e. mutiple of 100) for our process, 23 points will be expired and has to deduct from the profile which has highest earned points, in this case from profile 34. Output :
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    3                  3           ONL       109            0                109          9               100   -100      -9
    3                  32          OFL       26             0                223          23              200   -26       0
    3                  33          OFL       87             0                223          23              200   -87       0
    3                  34          OFL       110            0                223          23              200   -87       -23
    For parent profile id 4 --> ONL category has 109 points, so no need to borrow points from OFL category
                                Now need to populate tbl_link table at child profile level (i.e. child profiles 42,43,44).
    in this case ONL has 100 points, so move the remaining 9 points will be expired. OFL category has 169 points total. need only 100 points (i.e. mutiple of 100) for our process, 69 points will be expired and has to deduct from the profile which has highest earned points, in this case from profile 43. Output :
    PARENT_PROFILE_ID  PROFILE_ID  CATGCODE  EARNED_POINTS  BORROWED_POINTS  CERT_POINTS  DISCARD_POINTS  USED  BURN_PTS  EXPIRE_PTS
    4                  4           ONL       109            0                109          9               100   100       9
    4                  42          OFL       26             0                169          69              100   -26       0
    4                  43          OFL       87             0                169          69              100   -18       -69
    4                  44          OFL       56             0                169          69              100   -56       0
    Can someone help with the query. I googled about looping in sql and came to know that Oracle has a feature MODEL to loop in SQL, but i don't have idea on using MODEL clause.
    Appreciate your help!
    Thanks
    Sri

  • Query help - Fetch employees working on two consecutive weekends(SAT/SUN)

    Hello Gurus,
    I have the following requirement and i need your help on this.
    We have a table with all employees effort logged in for the days they have worked. a sample data is given below
    TD_date     Emp_id     Effort     Archive_month
    2-Mar-13     123     8     Mar-13
    9-Mar-13     123     8     Mar-13
    2-Mar-13     213     4     Mar-13
    3-Mar-13     213     4     Mar-13
    24-Mar-13     213     8     Mar-13
    9-Mar-13     312     4     Mar-13
    10-Mar-13     312     4     Mar-13
    16-Mar-13     312     8     Mar-13
    In the above sample data, we have employee 123 who worked on consecutive SATURDAY and 312 who worked on consecutive weekends (9th, 10th and 16th March) but the employee 213 worked on 1st weekend and 4th weekend of the month(Archive_month). So the output should return the employees who worked on two consecutive weekends as below.
    Emp_id
    123
    312
    I have written a query to fetch all employees who worked only on a SAT or SUN which is given below, but i am not able to return the employees who worked on consecutive weekends and i need your help.
    select emp_id, count(*)
    from timesheet_archive
    where archive_month = '03/2013'
    and trim(to_char(td_date,'DAY')) in ('SATURDAY','SUNDAY')
    group by emp_id having count(*) > 1
    order by td_date desc
    Please help me with an approach in SQL or PL/SQL to generate a report of employees who worked on two consecutive weekends.
    Thanks,
    Edited by: 999145 on Apr 9, 2013 11:08 PM
    Edited by: 999145 on Apr 9, 2013 11:10 PM

    hi Manik,
    thanks for your response!!
    Please find the below create and insert scripts for your testing.
    I am also validating the output with my requirement. Thanks for your help!
    create table timesheet_archive as
    (TD_date date,
    Emp_id number(19,0),
    Effort Float,
    Archive_month varchar2);
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
    insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
    insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 213,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
    insert into timesheet_archive values (to_date('10-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 321,8,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
    insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 241,8,'03/2013');
    insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
    insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('30-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('31-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');

  • Query Help pls dates and logic.

    Hi all gurus
    I have a need where I need to put togahter series of timeline events that occurred in past as a one row concerning dates.
    This is my table .
      CREATE TABLE "SORS"."SOR_TRACKING"
       ( "TRACKING_ID" NUMBER NOT NULL ENABLE,
      "LETTER_ID" NUMBER NOT NULL ENABLE,
      "OFFENDER_ID" NUMBER NOT NULL ENABLE,
      "LOCATION_ID" NUMBER NOT NULL ENABLE,
      "OFFICE_ID" NUMBER,
      "MAIL_DATE" DATE DEFAULT SYSDATE NOT NULL ENABLE,
      "RESPONSE_DATE" DATE,
      "STATUS" VARCHAR2(30 BYTE) DEFAULT 'Mailed',
      "ENTRY_DATE" DATE DEFAULT SYSDATE NOT NULL ENABLE,
      "ENTRY_USER" VARCHAR2(30 BYTE) NOT NULL ENABLE,
      "COMMENTS" VARCHAR2(2000 BYTE),
      "FIRST_NAME" VARCHAR2(80 BYTE) NOT NULL ENABLE,
      "MIDDLE_NAME" VARCHAR2(80 BYTE),
      "LAST_NAME" VARCHAR2(80 BYTE) NOT NULL ENABLE,
      "SIR_NAME" VARCHAR2(30 BYTE),
      "ADDRESS1" VARCHAR2(80 BYTE),
      "ADDRESS2" VARCHAR2(80 BYTE),
      "CITY" VARCHAR2(50 BYTE),
      "STATE" VARCHAR2(30 BYTE),
      "ZIP" VARCHAR2(20 BYTE),
      "COUNTY" VARCHAR2(80 BYTE),
      "OFFENDER_TYPE" VARCHAR2(30 BYTE),
      "LAST_MAIL_DATE" DATE,
      "BATCH_ID" NUMBER NOT NULL ENABLE,
      "JURISDICTION" NUMBER,
      "DL_NAME" VARCHAR2(60 BYTE),
      "DL_OFFICE" VARCHAR2(60 BYTE),
      "DL_ADDRESS" VARCHAR2(60 BYTE),
      "DL_MAILING_ADDRESS" VARCHAR2(60 BYTE),
      "DL_CITY" VARCHAR2(60 BYTE),
      "DL_STATE" VARCHAR2(30 BYTE),
      "DL_ZIP" VARCHAR2(20 BYTE),
      "TITLE" VARCHAR2(10 BYTE),
      "MODIFIED_USER" VARCHAR2(30 BYTE),
      "MODIFIED_DATE" DATE,
      CONSTRAINT "PK_SOR_TRACKING" PRIMARY KEY ("TRACKING_ID"))
    Sample date
    REM INSERTING into SOR_TRACKING
    SET DEFINE OFF;
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (781410,1,4557,110207,2809,to_date('05-NOV-13','DD-MON-RR'),null,'Mailed',to_date('05-NOV-13','DD-MON-RR'),'NEEL',null,'BOB','Jolene','Luna',null,'20535 Valleyview Rd ',null,'Boo','OK','74840','potter','STANDARD',to_date('15-FEB-12','DD-MON-RR'),30211,2809,null,null,null,null,null,null,null,'Ms.','NEEL',to_date('05-NOV-13','DD-MON-RR'));
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (190294,1,4557,110207,2809,to_date('08-FEB-12','DD-MON-RR'),to_date('15-FEB-12','DD-MON-RR'),'Verified',to_date('17-FEB-12','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'20535 Valleyview Rd ',null,'Boo','OK','74840','potter','STANDARD',to_date('13-DEC-11','DD-MON-RR'),28442,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (184647,1,4557,110207,2809,to_date('05-DEC-11','DD-MON-RR'),to_date('13-DEC-11','DD-MON-RR'),'Verified',to_date('15-DEC-11','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'20535 Valleyview Rd ',null,'Boo','OK','74840','potter','STANDARD',to_date('09-NOV-11','DD-MON-RR'),27985,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (157253,1,4557,102288,2809,to_date('03-FEB-11','DD-MON-RR'),null,'Mailed',to_date('03-FEB-11','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('08-NOV-10','DD-MON-RR'),25613,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (149710,1,4557,102288,2809,to_date('01-NOV-10','DD-MON-RR'),to_date('08-NOV-10','DD-MON-RR'),'Verified',to_date('16-NOV-10','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('18-OCT-10','DD-MON-RR'),24939,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (138268,1,4557,99564,2809,to_date('03-JUN-10','DD-MON-RR'),to_date('17-JUN-10','DD-MON-RR'),'Letter Returned',to_date('17-JUN-10','DD-MON-RR'),'Boo','Post office: No mail receptacle','BOB','Jolene','Luna',null,'20535 Valley View Rd.',null,'Boo','OK','74840','potter','STANDARD',to_date('19-MAY-10','DD-MON-RR'),24216,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (128798,1,4557,91503,2809,to_date('04-FEB-10','DD-MON-RR'),null,'Mailed',to_date('04-FEB-10','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('10-NOV-09','DD-MON-RR'),23369,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (115073,1,4557,91503,2809,to_date('07-AUG-09','DD-MON-RR'),to_date('10-NOV-09','DD-MON-RR'),'Verified',to_date('10-NOV-09','DD-MON-RR'),'Boo',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('06-MAY-09','DD-MON-RR'),21926,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (108510,1,4557,91503,2809,to_date('05-MAY-09','DD-MON-RR'),to_date('06-MAY-09','DD-MON-RR'),'Verified',to_date('07-MAY-09','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('01-MAY-09','DD-MON-RR'),21316,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (101463,1,4557,88052,2809,to_date('05-FEB-09','DD-MON-RR'),null,'Mailed',to_date('05-FEB-09','DD-MON-RR'),'Boo',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('15-DEC-08','DD-MON-RR'),20525,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (97272,1,4557,88052,2809,to_date('05-DEC-08','DD-MON-RR'),to_date('15-DEC-08','DD-MON-RR'),'Verified',to_date('17-DEC-08','DD-MON-RR'),'Casper',null,'BOB','Jolene','Luna',null,'PO Box 146',null,'Boo','OK','74840','potter','STANDARD',to_date('12-NOV-08','DD-MON-RR'),20018,2809,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (68398,1,4557,76399,1070,to_date('10-OCT-07','DD-MON-RR'),to_date('15-NOV-07','DD-MON-RR'),'Letter Returned',to_date('15-NOV-07','DD-MON-RR'),'KERRYMIN','post office: not delivaerable as addressed ','BOB','Jolene','Luna',null,'752 Boo',null,'Norman','OK','73072','Cleveland','STANDARD',to_date('17-MAY-07','DD-MON-RR'),16596,1070,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (63767,1,4557,76399,1070,to_date('09-AUG-07','DD-MON-RR'),to_date('20-AUG-07','DD-MON-RR'),'Letter Returned',to_date('20-AUG-07','DD-MON-RR'),'KERRYMIN','post office: not deliverable as addressed ','BOB','Jolene','Luna',null,'752 Boo',null,'Norman','OK','73072','Cleveland','STANDARD',to_date('17-MAY-07','DD-MON-RR'),16077,1070,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (59499,1,4557,76399,1070,to_date('14-MAY-07','DD-MON-RR'),to_date('17-MAY-07','DD-MON-RR'),'Verified',to_date('17-MAY-07','DD-MON-RR'),'LAWANHAM',null,'BOB','Jolene','Luna',null,'752 Boo',null,'Norman','OK','73072','Cleveland','STANDARD',to_date('14-MAY-07','DD-MON-RR'),15569,1070,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (54783,1,4557,74693,1070,to_date('01-MAR-07','DD-MON-RR'),to_date('06-MAR-07','DD-MON-RR'),'Verified',to_date('13-MAR-07','DD-MON-RR'),'Boo',null,'BOB','Jolene','Luna',null,'1203 Rebecca Lane',null,'Norman','OK','73072','Cleveland','STANDARD',to_date('01-MAR-07','DD-MON-RR'),14994,1070,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (34100,1,4557,58761,1094,to_date('08-FEB-06','DD-MON-RR'),null,'Mailed',to_date('31-MAR-06','DD-MON-RR'),'LAWANHAM','per M. Splawn','BOB','Jolene','Luna',null,'Rt. 1 Box 42',null,'Wewoka','OK','74884','Seminole','STANDARD',to_date('03-FEB-06','DD-MON-RR'),9560,1094,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (27562,1,4557,52781,1115,to_date('08-NOV-05','DD-MON-RR'),null,'Mailed',to_date('08-NOV-05','DD-MON-RR'),'Boo',null,'BOB','Jolene','Luna',null,'5590 Rebel Ridge Rd',null,'El Reno','OK','73036','Canadian','STANDARD',to_date('16-OCT-05','DD-MON-RR'),8034,1115,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (11822,1,4557,39238,1094,to_date('03-MAR-05','DD-MON-RR'),null,'Mailed',to_date('03-MAR-05','DD-MON-RR'),'Boo',null,'BOB','Jolene','Luna',null,'Rt. 1, Box 42',null,'Wewoka','OK','74884','Seminole','STANDARD',to_date('17-FEB-05','DD-MON-RR'),306,null,null,null,null,null,null,null,null,'Ms.',null,null);
    Insert into SOR_TRACKING (TRACKING_ID,LETTER_ID,OFFENDER_ID,LOCATION_ID,OFFICE_ID,MAIL_DATE,RESPONSE_DATE,STATUS,ENTRY_DATE,ENTRY_USER,COMMENTS,FIRST_NAME,MIDDLE_NAME,LAST_NAME,SIR_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,COUNTY,OFFENDER_TYPE,LAST_MAIL_DATE,BATCH_ID,JURISDICTION,DL_NAME,DL_OFFICE,DL_ADDRESS,DL_MAILING_ADDRESS,DL_CITY,DL_STATE,DL_ZIP,TITLE,MODIFIED_USER,MODIFIED_DATE) values (2257,1,4557,18958,1087,to_date('03-AUG-04','DD-MON-RR'),null,'Mailed',to_date('29-JAN-05','DD-MON-RR'),'SYSTEM',null,'BOB','Jolene','Luna',null,'1037 Tabor Drive',null,'Oklahoma City','OK','73107','Oklahoma',null,null,178,null,null,null,null,null,null,null,null,null,null,null);
    I want to find the all the records whose mail date(earliest of all with no reply) and no response date and find the earlier one with reponse date and display it as a one row.
    For example 
    mail_Date+45 mail_Date in table    earliest date of reponse
    BEGIN_DATE   DEL_DATES           END_DATE                 TRACKING_ID
    17-SEP-04    03-AUG-04 06-          MAR-07                                2257
    Other date and their response date should be shown same way
    The issue is I am not able to retrieve other records in the tables because I am using MIN function.
    here is my query
    SELECT   t.MAIL_DATE + 45 begin_Date,
      del_date.del_dates,
      (SELECT MIN(st2.RESPONSE_DATE) Del_end_date
      FROM sor_tracking st2
      WHERE t.OFFENDER_ID   = st2.OFFENDER_ID
      AND st2.RESPONSE_DATE > del_date.del_dates
      ) End_date,
      t.OFFENDER_ID,
      t.TRACKING_ID
    FROM
      (SELECT MIN(st1.MAIL_DATE) del_dates
        FROM sor_tracking st1
      WHERE st1.OFFENDER_ID  = 4557
      AND st1.RESPONSE_DATE IS NULL
      AND st1.MAIL_DATE      < SysDate - 45
      AND st1.STATUS                  IN ('Letter Returned', 'Mailed')
      AND st1.LETTER_ID               IN (1, 4)
      ) del_date,
      sor_tracking t
    WHERE t.MAIL_DATE   <= del_date.del_dates
    AND (t.OFFENDER_ID   = 4557
         AND t.RESPONSE_DATE IS NULL)
    ORDER BY 1 desc
    Thanks for you time and help.

    with
    sor_tracking as
    (select 4557 offender_id,
            1 letter_id,
            to_date('05-NOV-13','dd-MON-yy') mail_date,
            781410 tracking_id,
            110207 location_id,
            null response_date,
            'Mailed' status
       from dual
    union all
    select 4557,1,to_date('08-FEB-12','dd-MON-yy'),190294,110207,to_date('15-FEB-12','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('05-DEC-11','dd-MON-yy'),184647,110207,to_date('13-DEC-11','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('03-FEB-11','dd-MON-yy'),157253,102288,null,'Mailed' from dual union all
    select 4557,1,to_date('01-NOV-10','dd-MON-yy'),149710,102288,to_date('08-NOV-10','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('03-JUN-10','dd-MON-yy'),138268,99564,to_date('17-JUN-10','dd-MON-yy'),'Letter Returned' from dual union all
    select 4557,1,to_date('04-FEB-10','dd-MON-yy'),128798,91503,null,'Mailed' from dual union all
    select 4557,1,to_date('07-AUG-09','dd-MON-yy'),115073,91503,to_date('10-NOV-09','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('05-MAY-09','dd-MON-yy'),108510,91503,to_date('06-MAY-09','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('05-FEB-09','dd-MON-yy'),101463,88052,null,'Mailed' from dual union all
    select 4557,1,to_date('05-DEC-08','dd-MON-yy'),97272,88052,to_date('15-DEC-08','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('10-OCT-07','dd-MON-yy'),68398,76399,to_date('15-NOV-07','dd-MON-yy'),'Letter Returned' from dual union all
    select 4557,1,to_date('09-AUG-07','dd-MON-yy'),63767,76399,to_date('20-AUG-07','dd-MON-yy'),'Letter Returned' from dual union all
    select 4557,1,to_date('14-MAY-07','dd-MON-yy'),59499,76399,to_date('17-MAY-07','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('01-MAR-07','dd-MON-yy'),54783,74693,to_date('06-MAR-07','dd-MON-yy'),'Verified' from dual union all
    select 4557,1,to_date('08-FEB-06','dd-MON-yy'),34100,58761,null,'Mailed' from dual union all
    select 4557,1,to_date('08-NOV-05','dd-MON-yy'),27562,52781,null,'Mailed' from dual union all
    select 4557,1,to_date('03-MAR-05','dd-MON-yy'),11822,39238,null,'Mailed' from dual union all
    select 4557,1,to_date('03-AUG-04','dd-MON-yy'),2257,18958,null,'Mailed' from dual
    select offender_id,
           letter_id,
           to_char(event_date,'dd-MON-yy') mail_date,
           tracking_id,
           location_id,
           case when last_response_verified is null
                then status
           end status,
           to_char(last_response_verified,'dd-MON-yy') response_date,
           case when last_response_verified is not null
                then 'Verified'
           end response_status
      from (select offender_id,
                   letter_id,
                   event_date,
                   tracking_id,
                   location_id,
                   status,
                   to_find,
                   verified_response,
                   last_value(verified_response ignore nulls) over (partition by offender_id,letter_id
                                                                        order by event_date desc
                                                                   ) last_response_verified
              from (select offender_id,
                           letter_id,
                           event_date,
                           tracking_id,
                           location_id,
                           status,
                           case when event_date < lead(event_date) over (partition by offender_id,letter_id,tracking_id
                                                                             order by event_date
                                                                        ) - 45
                                then 'THIS'
                                when status = 'Mailed'
                                 and lead(tracking_id) over (partition by offender_id,letter_id,tracking_id
                                                                 order by event_date
                                                            ) is null
                                 and direction != lag(direction,1,'null') over (partition by offender_id,letter_id
                                                                                    order by event_date
                                then 'this'
                           end to_find,
                           case when status = 'Verified'
                                then event_date
                           end verified_response
                      from (select offender_id,
                                   letter_id,
                                   mail_date event_date,
                                   tracking_id,
                                   location_id,
                                   'Mailed' status,
                                   'sent' direction
                              from sor_tracking
                            union all
                            select offender_id,
                                   letter_id,
                                   response_date,
                                   tracking_id,
                                   location_id,
                                   status,
                                   'rcvd' direction
                              from sor_tracking
                             where response_date is not null
    where to_find is not null
    order by event_date desc
    OFFENDER_ID
    LETTER_ID
    MAIL_DATE
    TRACKING_ID
    LOCATION_ID
    STATUS
    RESPONSE_DATE
    RESPONSE_STATUS
    4557
    1
    05-NOV-13
    781410
    110207
    Mailed
    4557
    1
    03-FEB-11
    157253
    102288
    13-DEC-11
    Verified
    4557
    1
    04-FEB-10
    128798
    91503
    08-NOV-10
    Verified
    4557
    1
    07-AUG-09
    115073
    91503
    10-NOV-09
    Verified
    4557
    1
    05-FEB-09
    101463
    88052
    06-MAY-09
    Verified
    4557
    1
    03-AUG-04
    2257
    18958
    06-MAR-07
    Verified
    Regards
    Etbin

  • Query help on Goods Receipt Query with AP Invoice

    Looking for a little help on a query.  I would like to list all the goods receipts for a given date range and then display the AP Invoice information (if its been copied to an AP Invoice).  I think my problem is in my where clause, I plagerized an SAP query to show GR and AP from a PO as a start.  SBO 2005 SP01.  Any help would be great appreciated.  Thanks
    SELECT distinct 'GR',
    D0.DocStatus,
    D0.DocNum ,
    D0.DocDate,
    D0.DocDueDate,
    D0.DocTotal,
    'AP',
    I0.DocStatus,
    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.DocDate>='[%0]' AND D1.DocDate<='[%1]')
    OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry
    FROM PDN1 WHERE BaseType=22 AND DocDate>='[%0]' AND DocDate<='[%1]'))

    Hi Dalen ,
    I  believe it is because of the condition
    (D1.BaseType=22 AND D1.DocDate>='%0' AND D1.DocDate<='%1')
    OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry FROM PDN1 WHERE PDN1.BaseType=22 AND DocDate>='%0' AND DocDate<='%1'))
    Try changing
    D1.BaseType=22 OR D1.DocDate>='%0' AND D1.DocDate<='%1
    PDN1.BaseType=22 OR DocDate>='%0' AND DocDate<='%1'))
    Lets see what would be the result . Lets have some fun with troubleshooting
    See what would be the difference in the result .
    Thank you
    Bishal

  • Query help: query to return column that represents multiple rows

    I have a table with a name and location column. The same name can occur multiple times with any arbitrary location, i.e. duplicates are allowed.
    I need a query to find all names that occur in both of two separate locations.
    For example,
    bob usa
    bob mexico
    dot mexico
    dot europe
    hal usa
    hal europe
    sal usa
    sal mexico
    The query in question, if given the locations usa and mexico, would return bob and sal.
    Thanks for any help or advice,
    -=beeky

    How about this?
    SELECT  NAME
    FROM    <LOCATIONS_TABLE>
    WHERE   LOCATION IN ('usa','mexico')
    GROUP BY NAME
    HAVING COUNT(DISTINCT LOCATION) >= 2Results:
    SQL> WITH person_locations AS
      2  (
      3          SELECT 'bob' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      4          SELECT 'bob' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      5          SELECT 'dot' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      6          SELECT 'dot' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      7          SELECT 'hal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      8          SELECT 'hal' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      9          SELECT 'sal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
    10          SELECT 'sal' AS NAME, 'Mexico' AS LOCATION FROM DUAL
    11  )
    12  SELECT  NAME
    13  FROM    person_locations
    14  WHERE   LOCATION IN ('USA','Mexico')
    15  GROUP BY NAME
    16  HAVING COUNT(DISTINCT LOCATION) >= 2
    17  /
    NAM
    bob
    salHTH!
    Edited by: Centinul on Oct 15, 2009 2:25 PM
    Added sample results.

  • QUERY HELP!!! trying to create a query

    i'm creating a summary report
    i have a table with sale dates
    for example i have a table tab_1 and column saleDate as
    saleDat
    1923
    1936
    1945
    2003
    2005
    saleDate contains years and there are some missing years where no sale
    was made
    My report has to display years starting from earliest year
    so i have to create a query that starts with 1923
    but the problem is that I have to have years that are not in table.
    for example i have to display years 1924 which is not in table
    so the part of report has to look like
    1923 blah blah summary.........
    1924 "
    1925
    1926
    2005
    2006
    upto current year (2006 may not be in the table, but i have to display)
    i just need to know the query that can query all the years starting from
    the ealiest saleDate to current year
    thanks in advance

    Please write the query in the following form:
    SELECT a.year, --- place other columns from your table.
    FROM (SELECT (:start_num + rownum) year
    FROM all_tab_columns
    WHERE :start_num + rownum <= :end_num) a,
    tab_1 b
    WHERE a.year = b.saleDat(+);
    Note:
    1) if your start year and end year are 1923 and 2006. Then input as below:
    :start_num = 1922
    :end_num = 2006
    2) Since for some of the years (1924 etc) may not be there in your so you may need to use NVL to print proper indicators.
    3) If you have more than one record in tab_1 for a particular year then group them based year and then use it.
    Hope this helps.
    - Saumen.

  • Pulling open invoices, and paid invoices with details (Query Help).

    Hello All,
    I am sure I messed something up in my joins. I am looking to pull a report of all invoices OINV for a month, then list details of any payment (if it is paid) next to it from RCT2. It is giving me a list of all of the paid invoices, but even though I have a LEFT JOIN it is not listing any of the invoices without payments.
    This is where I am now from the report wizard in Crystal.
    SELECT "OINV"."DocNum", "OINV"."SlpCode", "OINV"."CardCode", "OINV"."DocTotal", "OINV"."U_Commission", "OSLP"."SlpName", "RCT2"."DcntSum", "ORCT"."TaxDate", "OINV"."DocEntry", "OINV"."TotalExpns", "OINV"."CANCELED", "ORCT"."Canceled", "ORCT"."DocNum", "RCT2"."InvType"
    FROM   ("DBName"."dbo"."OINV" "OINV" LEFT OUTER JOIN "DBName"."dbo"."OSLP" "OSLP" ON "OINV"."SlpCode"="OSLP"."SlpCode")
    INNER JOIN ("DBName"."dbo"."ORCT" "ORCT" INNER JOIN "DBName"."dbo"."RCT2" "RCT2" ON "ORCT"."DocNum"="RCT2"."DocNum")
    ON "OINV"."DocEntry"="RCT2"."DocEntry"
    WHERE  "OINV"."CANCELED"='N' AND "ORCT"."Canceled"='N' AND "RCT2"."InvType"<=N'14'
    ORDER BY "OINV"."SlpCode", "ORCT"."DocNum", "ORCT"."TaxDate"
    Thank you in advance for any help you can give me.

    Hello Kiran,
    I thought about that, but my purposes for running the report is to determine commission based on the date that the invoice was paid, I need the TaxDate in ORCT as it relates to the payment in RCT2.
    Removing the ORCT.cancelled condition and the RCT2.invtype conditions now pulls all of the invoices, paid and unpaid. I know now I cant have them in my query, when the record does not exist in ORCT it doesnt have a value for cancelled, and when there is no record in RCT2 there is no invtype, and is filtered.
    Maybe I can say where ORCT.Canelled = 'N' OR ORCT.Cancelled = NULL, but I dont know if that would work.

  • Query Help for reporting on last receipt qty

    SBO Version: 8.82 PL11
    Hello Forum,
    I am looking for some help devising a command behind a crystal report. We are hoping to achieve the last receipt quantity. To arrive at this we would like it to get the last GRPO for an item and total the quantity on that particular GRPO. In addition to this, we want to consider all the lines on the document and SUM them.
    At present, the query I have is as follows:
    Select SUM(c0.Quantity) from PDN1 c0 WHERE c0.ItemCode = T1.ItemCode AND Shipdate = (select Max(ShipDate) from PDN1 C0  INNER JOIN OPDN c1 ON c0.DocEntry = c1.DocEntry where C0.Itemcode =T1.ItemCode AND c1.DocStatus <> 'C'))
    Any assistance would be greatly received.
    Thanks
    Sarah

    Hi Sarah,
    Please repost to the SAP Business One Application  space.
    -Abhilash

Maybe you are looking for

  • How can I access mail on my mac from my iPad?

    I have recently converted to imac and ipad mini from Windows and so am still a newcomer to planet apple.  I think I have eventually sorted myself out but with one exception in mail. I have transferred my outlook for mac filing system to mail using OL

  • Case Statement in a Where clause help

    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production "CORE     11.2.0.1.0     Production" TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production Hello, I have an APEX applicat

  • I have forgot to install Solaris Management Console

    Hi all, I have just installed Solaris 10, and I have forgot to install SMC, and I really don't know how I can install it. So, how I can install the solaris management console ? Thanks Willits

  • Need help in Plsql for Oracle Reports

    Hi i need urgent requirement for this, Kindly guide me. Since i couldnt do. Main Table: For example: Conside this table: (Card_no, month and year are unique constraint) Card_No Name Amount_1 Amount _2 Total Month Year 1 Justin 50 1000 1050 Jan 2011 1

  • Firebug doens't work at all after updating Firefox

    this morning I updated my firefox to 14.01. after that one of my extension i.e firebug just stopped working at all, I mean I couldn't even find the icon in my browser. I even tried to go to tools>addons> but you know what, even that page is not respo