Anyone can check my xslt code ?

i've tried to use JAXP to transform xml by using xslt. the java program has been written and compiled, but when i tried to run it, it come out the errors:
error: 'unknown protocol: c'
fatal error: 'could not compile stylesheet'
i was suspecting my xslt code might be wrong, could anyone check for me ? i'm quite new to xslt, probably will make lots of silly mistakes.
xml file: http://www.bbc.co.uk/travelnews/tpeg/en/local/rtm/rtm_tpeg.xml
xslt file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="tpeg_document/tpeg_message">
<xsl:value-of select="summary"><xsl:text>;<\xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
any suggestions will be appreciated,
cheers,

i'm not sure whether it'll be the case, but you migt be right. i posted my java source code here:
public class FileDownload {
public static void download(String address, String localFileName){
OutputStream out = null;
URLConnection conn = null;
InputStream in = null;
StringBuffer xmlContentBuffer = new StringBuffer();
String temp = new String();
String xmlContent;
try {
URL url = new URL(address);
out = new BufferedOutputStream(
new FileOutputStream(localFileName));
conn = url.openConnection();
in = conn.getInputStream();
byte[] buffer = new byte[1024];
int numRead;
long numWritten = 0;
System.out.println (in.toString ());
while ((numRead = in.read(buffer)) != -1) {
out.write(buffer, 0, numRead);
numWritten += numRead;
temp = new String(buffer);
xmlContentBuffer.append(temp);
System.out.println(localFileName + "\t" + numWritten);
xmlContent = xmlContentBuffer.toString();
String xsltString;
FileInputStream xslt= new FileInputStream ("Tpeg.xslt");
int x= xslt.available();
                    byte b[]= new byte[x];
                    xslt.read(b);
xsltString = new String(b);
                    String htmlString = XmlUtil.applyXslt(xmlContent, xsltString);
                    System.out.println(htmlString);
} catch (Exception exception) {
exception.printStackTrace();
} finally {
try {
if (in != null) {
in.close();
if (out != null) {
out.close();
} catch (IOException ioe) {
     public static void download(String address) {
          int lastSlashIndex = address.lastIndexOf('/');
          if (lastSlashIndex >= 0 &&
          lastSlashIndex < address.length() - 1) {
               download(address, address.substring(lastSlashIndex + 1));
          } else {
               System.err.println("Could not figure out local file name for " + address);
     public static void main(String[] args) {
          for (int i = 0; i < args.length; i++) {
               download(args);

Similar Messages

  • All the pages I visit are being bookmarked under Unsorted bookmarks. This is a breach of privacy since anyone can check my browsing history. How do I stop this?

    All the pages I visit are being bookmarked under Unsorted bookmarks. This is a breach of privacy since anyone can check my browsing history. How do I stop this? I have turned off Browsing History.

    Firefox doesn't bookmark pages automatically to the Unsorted folder unless you click the star on the location bar.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • If anyone can check this file for me

    Hi!
    Trying to print this ai file I had created. I can't open it now in CS6, CC or 2014? Says I don't have enough memory. (RAM). It is only 1.6mb. I'm running win 7 x64.
    Here it is on dropbox if anyone can opening it and save it say in a standard PDF or more compatible format?
    AI FILE
    When placing it I get this:
    Thank you
    Max

    I can't open the file.
    1) Tells me not enough memory?
    2) placing it in latest PS or AI I get the screen?
    I'll start from scratch, but if the file is okay, I'd rather use that. So if anyone can check it for me. Thanks

  • Anyone can help on t-code: MR08 error message 00349

    When i'm going to post the Cancel Invoice document, there is an error .
    Field BSEG-REBZZ. does not exist in the screen SAPMM08R 0110
         Message no. 00 349
    Diagnosis
         The specified field does not exist on the screen.
    Procedure
         Check your batch input data.
    Can anyone guide me?

    Hi
    You might have to adjust the field status control to solve the problem. please check.
    also you can search for OSS.
    regards
    Srinivas

  • Can I find the code behind a conversion Type in bW

    Hi all,
    I've created a converion type referencing 0mateiral and created a target variable to be used in a query.  I was wondering where I can see the code behind the UOM converion that takes place.
    thanks

    Hi
    Not sure I understand your question
    But you can check RSUOM transaction code.
    Regards
    Anindya

  • Can anyone help me wid d codes for  Generated Program for gate pass

    can anyone help me wid d codes for  Generated Program for gate pass in MM
    Message was edited by:
            Ronei Shedi

    Hi
    There is no std business process in SAP for Gate pass for the Material entry
    before GR stock entry into the stores.
    You have to write a Z program based on the details of Purchase order tables EKKO and EKPO.
    This will mainly check whether the correct PO qty was delivered or not with proper quality.
    So use the PO tables EKKO and EKPO and fetch the data and use it
    Since this is client specific there is no feneralised program for it.
    Reward points if useful
    Regards
    Anji

  • Hi,  Trying to log in with my user id and password at iocbc but was not able to access. Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting  Anyone can advise? or i need to download?

    Hi,
    i have the same problem?
    Trying to log in with my user id and password at iocbc but was not able to access.
    Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting
    Anyone can advise?

    You need to install Java for your Mac OS version, and/or make sure it's enabled in the Java Preferences application and your browser's preferences.

  • How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone

    How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone

    Steve,
    I appreciate your answer.  While it might work, I'm a bit hesitant to remove the other programs as a possible solution since they are all currently working.
    With Acrobat 9 Pro failing with the OS 10.7 upgrade, I'm hoping that there is a less severe solution.
    Since the trigger appears to be 10.7 and may have something to do with the discontinued support of Rosetta, I could be spending a few hours working on a reinstall without a change.  Yes, it might work.  The "might" is the part that makes me hesitate.
    Is anyone else out there on OS 10.7 and running Acrobat 9 Pro?  Any issues with anyone else?
    Thanks Steve.  I do appreciate your offering a solution.  I may end up trying it if nothing else comes together.
    Mark

  • I forgot my security questions and I aren't receiving the reset email to my email. I already check in the inbox and in the spam, anyone can give me some advise?thank you.

    I forgot my security questions and I aren't receiving the reset email to my email. I already check in the inbox and in the spam, anyone can give me some advise?thank you.

    The best way is to call applecare (800) APL-CARE (800-275-2273). You can also email them but you need to create a case here https://getsupport.apple.com/Issues.action. When I did it it took about 10 mins.

  • My late 2009 iMac is running slow, particularly on Mail, more so since I upgraded to Yosemite. I have run an Etrecheck but it doesn't mean too much to me. If anyone can point me to what I need to do I'll be very grateful.

    My late 2009 iMac is running slow, particularly on Mail, more so since I upgraded to Yosemite. I have run an Etrecheck but it doesn't mean too much to me. If anyone can point me to what I need to do I'll be very grateful.
    Etrecheck says:
    Problem description:
    Imac late 2009 running slow
    EtreCheck version: 2.2 (132)
    Report generated 5/3/15, 4:33 PM
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        iMac (21.5-inch, Late 2009) (Technical Specifications)
        iMac - model: iMac10,1
        1 3.06 GHz Intel Core 2 Duo CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                Empty  
            BANK 1/DIMM0
                Empty  
            BANK 0/DIMM1
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM1
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        NVIDIA GeForce 9400 - VRAM: 256 MB
            iMac 1920 x 1080
    System Software: ℹ️
        OS X 10.10.3 (14D136) - Time since boot: 5:5:56
    Disk Information: ℹ️
        ST3500418ASQ disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (308.35 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        HL-DT-ST DVDRW  GA11N 
    USB Information: ℹ️
        Apple Inc. Built-in iSight
        Western Digital My Book 111A 1 TB
            disk1s1 (disk1s1) <not mounted> : 32 KB
            My Book (disk1s3) /Volumes/My Book : 1.00 TB (226.58 GB free)
        Apple Internal Memory Card Reader
        Apple, Inc. Keyboard Hub
            Apple, Inc Apple Keyboard
        Apple Computer, Inc. IR Receiver
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
    Configuration files: ℹ️
        /etc/hosts - Count: 30
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Toast 10 Titanium/Toast Titanium.app
        [not loaded]    com.roxio.BluRaySupport (1.1.6) [Click for support]
        [not loaded]    com.roxio.TDIXController (1.7) [Click for support]
            /Library/Application Support/LogMeIn/drivers
        [loaded]    com.logmein.driver.LogMeInSoundDriver (4.1.48f99) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.NovatelWireless.driver.NovatelWirelessUSBCDCECMControl (3.0.13) [Click for support]
        [not loaded]    com.NovatelWireless.driver.NovatelWirelessUSBCDCECMData (3.0.13) [Click for support]
        [not loaded]    com.ZTE.driver.ZTEUSBCDCACMData (1.3.8) [Click for support]
        [not loaded]    com.ZTE.driver.ZTEUSBMassStorageFilter (1.3.8) [Click for support]
        [not loaded]    com.novamedia.driver.IceraUSB_MSD_Bypass (1.3.0) [Click for support]
        [not loaded]    com.novatelwireless.driver.3G (3.0.13) [Click for support]
        [not loaded]    com.novatelwireless.driver.DisableAutoInstall (3.0.13) [Click for support]
        [not loaded]    com.option.driver.Option72 (2.15.0) [Click for support]
        [not loaded]    com.option.driver.OptionHS (3.26.0) [Click for support]
        [not loaded]    com.option.driver.OptionMSD (1.21.0) [Click for support]
        [not loaded]    com.option.driver.OptionQC (1.11.0) [Click for support]
        [not loaded]    com.pctools.iantivirus.kfs (1.0.1) [Click for support]
        [not loaded]    com.rim.driver.BlackBerryUSBDriverInt (0.0.39) [Click for support]
        [not loaded]    com.rim.driver.BlackBerryUSBDriverVSP (0.0.45) [Click for support]
        [not loaded]    com.vodafone.driver (3.0.9) [Click for support]
        [not loaded]    com.zte.driver.cdc_ecm_qmi (1.0.1) [Click for support]
        [not loaded]    com.zte.driver.cdc_usb_bus (1.0.1) [Click for support]
        [not loaded]    de.novamedia.driver.NMSmartplugSCSIDevice (1.0.1) [Click for support]
        [not loaded]    de.novamedia.oem.vodafone.vtp.huawei.cdc (0.0.2) [Click for support]
            /System/Library/Extensions/NMHuaweiPhonesVTPCDC.kext/Contents/Resources
        [not loaded]    de.novamedia.driver.NMUSBCDCACMData.VTP (3.2.6) [Click for support]
            /System/Library/Extensions/NovatelWireless3G.kext/Contents/Plugins
        [not loaded]    com.novatelwireless.driver.3GData (3.0.13) [Click for support]
            /System/Library/Extensions/Vodafone.kext/Contents/Plugins
        [not loaded]    com.vodafone.driver.Data (3.0.9) [Click for support]
            /Volumes/My Book/Extras/WD +TURBO Installer.app
        [not loaded]    com.wdc.driver.1394HP (1.0.9) [Click for support]
        [not loaded]    com.wdc.driver.USBHP (1.0.11) [Click for support]
    Startup Items: ℹ️
        AdobeVersionCueCS2: Path: /Library/StartupItems/AdobeVersionCueCS2
        Qmaster: Path: /Library/StartupItems/Qmaster
        VirtualPCOSServices: Path: /Library/StartupItems/VirtualPCOSServices
        Startup items are obsolete in OS X Yosemite
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.cloudphotosd.plist
        [killed]    com.apple.coreservices.appleid.authentication.plist
        [killed]    com.apple.EscrowSecurityAlert.plist
        [killed]    com.apple.icloud.fmfd.plist
        [killed]    com.apple.Maps.pushdaemon.plist
        [killed]    com.apple.photolibraryd.plist
        [killed]    com.apple.security.cloudkeychainproxy.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        10 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.awdd.plist
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.icloud.findmydeviced.plist
        [killed]    com.apple.ifdreader.plist
        [failed]    com.apple.mtrecorder.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.periodic-daily.plist
        [killed]    com.apple.softwareupdated.plist
        [killed]    com.apple.wdhelper.plist
        8 processes killed due to memory pressure
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS4ServiceManager.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [failed]    com.logmein.LMILaunchAgentFixer.plist [Click for support] [Click for details]
        [running]    com.logmein.logmeingui.plist [Click for support]
        [running]    com.logmein.logmeinguiagent.plist [Click for support]
        [not loaded]    com.logmein.logmeinguiagentatlogin.plist [Click for support]
        [running]    de.novamedia.VodafoneDeviceObserver.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.adobe.versioncueCS3.plist [Click for support]
        [loaded]    com.adobe.versioncueCS4.plist [Click for support]
        [failed]    com.apple.spirecorder.plist
        [loaded]    com.bombich.ccc.plist [Click for support]
        [running]    com.logmein.logmeinserver.plist [Click for support]
        [loaded]    com.logmein.raupdate.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    jp.co.canon.MasterInstaller.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        Mail    Application  (/Applications/Mail.app)
        Dropbox    Application  (/Applications/Dropbox.app)
        AdobeResourceSynchronizer    Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        iAntiVirus    Application Hidden (/Applications/iAntiVirus/iAntiVirus.app)
    Internet Plug-ins: ℹ️
        LogMeInSafari64: Version: 1.0.730 [Click for support]
        Unity Web Player: Version: UnityPlayer version 3.5.3f3 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        LogMeIn: Version: 1.0.730 [Click for support]
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        LogMeInSafari32: Version: 1.0.730 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        iPhotoPhotocast: Version: 7.0
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        EPPEX Plugin: Version: 10.0 [Click for support]
        JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
    Audio Plug-ins: ℹ️
        DVCPROHDAudio: Version: 1.2
    3rd Party Preference Panes: ℹ️
        Adobe Version Cue CS2  [Click for support]
        Adobe Version Cue CS3  [Click for support]
        Adobe Version Cue CS4  [Click for support]
        Déjà Vu  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
        SixtyFourSwitcher  [Click for support]
    Time Machine: ℹ️
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 499.25 GB Disk used: 190.89 GB
        Destinations:
            My Book [Local]
            Total size: 1.00 TB
            Total number of backups: 13
            Oldest backup: 2015-04-21 19:59:59 +0000
            Last backup: 2015-05-02 19:49:37 +0000
            Size of backup disk: Adequate
                Backup size 1.00 TB > (Disk used 190.89 GB X 3)
    Top Processes by CPU: ℹ️
            12%    iavd
             5%    iAntiVirus
             5%    WindowServer
             5%    diskimages-helper
             1%    mdworker(5)
    Top Processes by Memory: ℹ️
        537 MB    kernel_task
        266 MB    Google Chrome Helper(4)
        111 MB    Google Chrome
        74 MB    ocspd
        74 MB    WindowServer
    Virtual Memory Information: ℹ️
        1.45 GB    Free RAM
        2.55 GB    Used RAM
        59 MB    Swap Used
    Diagnostics Information: ℹ️
        May 3, 2015, 11:26:23 AM    /Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_2015-05-03-112623_[ redacted].cpu_resource.diag [Click for details]
        May 3, 2015, 11:22:17 AM    Self test - passed

    Thanks for all the replies.
    I've now installed the ad blocker, thrown away the unwanted files, and thrown away a copy of Firefox that Adware said had a problematic extension.
    Things are better, but still slow.
    Activity Monitor shows that with just Mail, Chrome and Excel running, 2.9GB of my 4GB RAM is used. Opening InDesign (always slow) increase that to 3.2GB. But the graph stays green.
    Console shows several potential problems but I don't know if any are significant. In any case I will call my Mac store tomorrow to ask their advice about RAM.
    04/05/2015 18:52:05.309 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3383189 oid:3383189 ino:3383189 fsEvents:1 /Users/leopard/Library/Mail/V2/[email protected]/INBOX.mbox/AB2DA797-EBE4-453E-82BD-8CE588E5D59D/Data/9/6/6/Attachments/669999/5 -- /Users/leopard/Library/Mail/V2/[email protected]/INBOX.mbox/AB2DA797-EBE4-453E-82BD-8CE588E5D59D/Data/9/6/6/Attachments/669999/5
    04/05/2015 18:52:05.309 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3375445 oid:3375445 ino:3375445 fsEvents:1 /Users/leopard/Library/Mail/V2/[email protected]/INBOX.mbox/AB2DA797-EBE4-453E-82BD-8CE588E5D59D/Data/9/6/6/Messages -- /Users/leopard/Library/Mail/V2/[email protected]/INBOX.mbox/AB2DA797-EBE4-453E-82BD-8CE588E5D59D/Data/9/6/6/Messages
    04/05/2015 18:52:10.564 com.apple.backupd-helper[66]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    04/05/2015 18:52:11.090 com.apple.backupd-helper[66]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    04/05/2015 18:52:12.727 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:52:13.021 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:52:13.022 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:52:14.284 helpd[296]: Cannot find executable for CFBundle 0x7fb412caabe0 </Library/Documentation/Help/iWorkFunctionsHelp.help> (not loaded)
    04/05/2015 18:52:15.085 helpd[296]: Cannot find executable for CFBundle 0x7fb412d1f540 </Library/Documentation/Help/X422MFPHelp.help> (not loaded)
    04/05/2015 18:52:17.455 helpd[296]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
    04/05/2015 18:52:17.456 helpd[296]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 1. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
    04/05/2015 18:52:21.737 helpd[296]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 3. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
    04/05/2015 18:52:21.738 helpd[296]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 3. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
    04/05/2015 18:52:23.292 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 18:52:31.811 AddressBookManager[428]: Validate metadata timed out, cancelling
    04/05/2015 18:52:33.395 accountsd[262]: AIDA Notification plugin running
    04/05/2015 18:52:33.396 accountsd[262]: Enter ShareKitAccountEnabler  - didChangeWithType - type=2 for account [email protected] (A9323757-5224-408D-AE23-0CB83451E046).
    04/05/2015 18:52:33.467 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 18:52:33.573 accountsd[262]: AIDA Notification plugin running
    04/05/2015 18:52:33.574 accountsd[262]: Enter ShareKitAccountEnabler  - didChangeWithType - type=2 for account [email protected] (A9323757-5224-408D-AE23-0CB83451E046).
    04/05/2015 18:52:33.922 accountsd[262]: AIDA Notification plugin running
    04/05/2015 18:52:33.923 accountsd[262]: Enter ShareKitAccountEnabler  - didChangeWithType - type=2 for account [email protected] (D9A0E166-5A9D-4D1B-B82F-E4CA68F064F3).
    04/05/2015 18:52:34.068 accountsd[262]: AIDA Notification plugin running
    04/05/2015 18:52:34.068 accountsd[262]: Enter ShareKitAccountEnabler  - didChangeWithType - type=2 for account [email protected] (D9A0E166-5A9D-4D1B-B82F-E4CA68F064F3).
    04/05/2015 18:52:34.354 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 18:52:35.161 icbaccountsd[430]: Connection error while checking Apple Internalness. Error: Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application." (The connection to service named com.apple.CrashReporterSupportHelper was invalidated.) UserInfo=0x7fe8584355d0 {NSDebugDescription=The connection to service named com.apple.CrashReporterSupportHelper was invalidated.}
    04/05/2015 18:52:35.597 helpd[296]: Could not find access page in directory /Applications/Carbon Copy Cloner/Carbon Copy Cloner.app/Contents/Resources/Help
    04/05/2015 18:52:35.598 helpd[296]: Could not find access page in directory /Applications/Carbon Copy Cloner/Carbon Copy Cloner.app/Contents/Resources/Help
    04/05/2015 18:52:35.612 helpd[296]: Could not find access page in directory /Applications/Final Cut Pro Studio/Final Cut Pro.app/Contents/Resources/English.lproj/Final Cut Pro Help
    04/05/2015 18:52:35.613 helpd[296]: Could not find access page in directory /Applications/Final Cut Pro Studio/Final Cut Pro.app/Contents/Resources/English.lproj/Final Cut Pro Help
    04/05/2015 18:52:37.542 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3111641 oid:3111641 ino:3111641 fsEvents:1 /Users/leopard/Library/Mail/V2/[email protected]@imap.gmail.com -- /Users/leopard/Library/Mail/V2/[email protected]@imap.gmail.com
    04/05/2015 18:52:37.542 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3078032 oid:3078032 ino:3078032 fsEvents:1 /Users/leopard/Library/Mail/V2/[email protected] -- /Users/leopard/Library/Mail/V2/[email protected]
    04/05/2015 18:52:37.542 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3096791 oid:3096791 ino:3096791 fsEvents:1 /Users/leopard/Library/Mail/V2/[email protected]/[Google Mail].mbox/Spam.mbox -- /Users/leopard/Library/Mail/V2/[email protected]/[Google Mail].mbox/Spam.mbox
    04/05/2015 18:52:37.542 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3112877 oid:3112877 ino:3112877 fsEvents:1 /Users/leopard/Library/Mail/V2/[email protected]@imap.gmail.com -- /Users/leopard/Library/Mail/V2/[email protected]@imap.gmail.com
    04/05/2015 18:52:37.542 mds[55]: (DiskStore.Error:1417) Unexpected file  dev:16777225 storeDev:16777218 mode:41ed hint:3105498 oid:3105498 ino:3105498 fsEvents:1 /Users/leopard/Library/Mail/V2/Mailboxes -- /Users/leopard/Library/Mail/V2/Mailboxes
    04/05/2015 18:52:39.465 sandboxd[328]: ([430]) icbaccountsd(430) deny mach-lookup com.apple.CrashReporterSupportHelper
    04/05/2015 18:52:42.205 com.apple.backupd[433]: Starting automatic backup
    04/05/2015 18:52:43.308 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 18:52:50.022 com.apple.backupd[433]: Backing up to /dev/disk1s3: /Volumes/My Book/Backups.backupdb
    04/05/2015 18:53:40.588 mapspushd[322]: 2015-05-04 18:53:40.588, 322, 42c4fc20, [MapsAnnouncements]: server returned error: 404 for URL http://gspe21.ls.apple.com/config/announcements?hardware=iMac10,1&lang=en&os=osx &os_build=14D136&os_version=10.10.3
    04/05/2015 18:53:40.589 mapspushd[322]: 2015-05-04 18:53:40.588, 322, 42c4fc20, [MapsAnnouncements]: Failed to load announcements document: Error Domain=GEOErrorDomain Code=-601 "The operation couldn’t be completed. (GEOErrorDomain error -601.)" UserInfo=0x7fba42c4deb0 {NSErrorFailingURLStringKey=http://gspe21.ls.apple.com/config/announcements?hardware=iMac10,1&lang=en&os=osx &os_build=14D136&os_version=10.10.3, HTTP Status Code=404}
    04/05/2015 18:53:40.989 com.apple.xpc.launchd[1]: (com.apple.quicklook[440]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
    04/05/2015 18:53:41.159 nbagent[439]: XPC Activity invoked with state=0
    04/05/2015 18:53:41.160 nbagent[439]: XPC Activity invoked with state=2
    04/05/2015 18:53:41.329 storeaccountd[317]: AccountServiceDelegate: Accepting new connection <NSXPCConnection: 0x7ff9a8580770> connection from pid 439 with interface <AccountServiceInterface: 0x7ff9a8598880> (PID 439)
    04/05/2015 18:53:41.739 periodic-wrapper[441]: Running daily periodic task.
    04/05/2015 18:53:43.613 storeaccountd[317]: ADI: {
        "Accept-Ranges" = bytes;
        "Cache-Control" = "max-age=14400";
        Connection = "Keep-Alive";
        "Content-Encoding" = gzip;
        "Content-Language" = "en-us";
        "Content-Length" = 793;
        "Content-Type" = "application/x-apple-plist";
        Date = "Mon, 04 May 2015 17:53:43 GMT";
        Etag = "\"e20-5071070ddab80\"";
        Expires = "Mon, 04 May 2015 21:53:43 GMT";
        "Keep-Alive" = "timeout=15, max=281";
        "Last-Modified" = "Tue, 04 Nov 2014 23:01:18 GMT";
        Server = Apache;
    04/05/2015 18:53:44.006 sandboxd[328]: ([447]) nbstated(447) deny ipc-posix-shm-read-data com.apple.AppleDatabaseChanged
    04/05/2015 18:53:58.000 kernel[0]: hfs: mounted Recovery HD on device disk0s3
    04/05/2015 18:53:58.472 mdworker[366]: (ImportBailout.Error:1325) Asked to exit for Diskarb
    04/05/2015 18:53:58.474 mdworker[435]: (ImportBailout.Error:1325) Asked to exit for Diskarb
    04/05/2015 18:53:58.476 mdworker[436]: (ImportBailout.Error:1325) Asked to exit for Diskarb
    04/05/2015 18:53:58.476 mdworker[437]: (ImportBailout.Error:1325) Asked to exit for Diskarb
    04/05/2015 18:53:58.478 CoreServicesUIAgent[359]: unexpected message <OS_xpc_error: <error: 0x7fff76be0c60> { count = 1, contents =
      "XPCErrorDescription" => <string: 0x7fff76be0f70> { length = 18, contents = "Connection invalid" }
    }>
    04/05/2015 18:53:58.478 mdworker[438]: (ImportBailout.Error:1325) Asked to exit for Diskarb
    04/05/2015 18:53:58.558 fseventsd[42]: Logging disabled completely for device:1: /Volumes/Recovery HD
    04/05/2015 18:53:58.565 mds[55]: (Volume.Normal:2464) volume:0x7f96c413b000 ********** Bootstrapped Creating a default store:0 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/Recovery HD
    04/05/2015 18:53:58.000 kernel[0]: hfs: unmount initiated on Recovery HD on device disk0s3
    04/05/2015 18:56:38.724 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:56:39.031 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:56:39.031 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:56:40.704 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:56:40.977 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:56:40.977 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:56:43.160 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:56:43.428 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:56:43.428 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:57:00.920 WindowServer[154]: CGXDisplayDidWakeNotification [729933074334]: posting kCGSDisplayDidWake
    04/05/2015 18:57:00.920 WindowServer[154]: handle_will_sleep_auth_and_shield_windows: Deferring.
    04/05/2015 18:57:01.086 identityservicesd[287]: <IMMacNotificationCenterManager: 0x7fd52247b130>: notification observer: com.apple.iChat   notification: __CFNotification 0x7fd522414040 {name = _NSDoNotDisturbDisabledNotification}
    04/05/2015 18:57:01.235 identityservicesd[287]: <IMMacNotificationCenterManager: 0x7fd52247b130>:    NC Disabled: NO
    04/05/2015 18:57:01.241 identityservicesd[287]: <IMMacNotificationCenterManager: 0x7fd52247b130>:   DND Enabled: NO
    04/05/2015 18:57:01.242 identityservicesd[287]: <IMMacNotificationCenterManager: 0x7fd52247b130>: Updating enabled: YES   (Topics: (
    04/05/2015 18:57:06.630 com.apple.backupd[433]: Will copy (547 KB) from Macintosh HD
    04/05/2015 18:57:06.720 com.apple.backupd[433]: Found 14392 files (112.99 GB) needing backup
    04/05/2015 18:57:06.728 com.apple.backupd[433]: 136.19 GB required (including padding), 118.1 GB available
    04/05/2015 18:57:09.840 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:57:10.119 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:57:10.119 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:57:12.387 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:57:12.668 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:57:12.669 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:57:14.340 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:57:14.619 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:57:14.619 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:57:14.620 com.apple.backupd[433]: Deleted backup /Volumes/My Book/Backups.backupdb/Paul Breeden’s imac (2)/2015-05-02-204937 containing 782.8 MB; 118.88 GB now available, 136.19 GB required
    04/05/2015 18:57:22.106 com.apple.backupd[433]: Deleted backup /Volumes/My Book/Backups.backupdb/Paul Breeden’s imac (2)/2015-05-03-181125 containing 31.6 MB; 118.92 GB now available, 136.19 GB required
    04/05/2015 18:57:22.108 com.apple.backupd[433]: Removed 2 expired backups so far, more space is needed - deleting oldest backups to make room
    04/05/2015 18:57:22.281 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 18:57:22.562 Mail[309]: XOAUTH2 requires user
    04/05/2015 18:57:22.562 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    04/05/2015 18:57:47.959 com.apple.backupd[433]: Deleted backup /Volumes/My Book/Backups.backupdb/Paul Breeden’s imac (2)/2015-04-25-125849 containing 2.94 GB; 121.86 GB now available, 136.19 GB required
    04/05/2015 18:57:47.960 com.apple.backupd[433]: Removed 3 expired backups so far, more space is needed - deleting oldest backups to make room
    04/05/2015 18:58:01.552 com.apple.backupd[433]: Deleted backup /Volumes/My Book/Backups.backupdb/Paul Breeden’s imac (2)/2015-04-26-110446 containing 6.31 GB; 128.17 GB now available, 136.19 GB required
    04/05/2015 18:58:01.554 com.apple.backupd[433]: Removed 4 expired backups so far, more space is needed - deleting oldest backups to make room
    04/05/2015 18:58:30.290 com.apple.backupd[433]: Deleted backup /Volumes/My Book/Backups.backupdb/Paul Breeden’s imac (2)/2015-04-27-095120 containing 110.88 GB; 239.05 GB now available, 136.19 GB required
    04/05/2015 18:58:30.290 com.apple.backupd[433]: Deleted 5 backups containing 120.95 GB total; 239.05 GB now available, 136.19 GB required
    04/05/2015 18:58:30.290 com.apple.backupd[433]: Backup date range was shortened: oldest backup is now Apr 28, 2015
    04/05/2015 18:59:01.076 com.apple.xpc.launchd[1]: (com.apple.quicklook[533]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
    04/05/2015 18:59:09.015 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 18:59:10.846 nsurlstoraged[308]: purgeEntireFileSystemStore - failed to rename the current cache dir /Users/leopard/Library/Containers/com.apple.mail/Data/Library/Caches/com.apple. mail/fsCachedData to new cache dir /var/folders/wv/x9z7l4911p33dv8jyv6nby6m0000gn/T/fsCachedData_remove.  Errno=18
    04/05/2015 18:59:14.837 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 18:59:51.249 spindump[412]: Saved spin report for System Preferences version 14.0 (14.0) to /Library/Logs/DiagnosticReports/System Preferences_2015-05-04-185951_Paul-Breedens-imac-5.spin
    04/05/2015 19:00:05.000 kernel[0]: process WindowServer[154] caught causing excessive wakeups. Observed wakeups rate (per sec): 157; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 66094
    04/05/2015 19:00:05.871 com.apple.xpc.launchd[1]: (com.apple.ReportCrash.Root[544]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash.DirectoryService
    04/05/2015 19:00:05.875 SubmitDiagInfo[340]: Couldn't load config file from on-disk location. Falling back to default location. Reason: Won't serialize in _readDictionaryFromJSONData due to nil object
    04/05/2015 19:00:11.473 spindump[412]: Saved wakeups_resource.diag report for WindowServer version ??? (???) to /Library/Logs/DiagnosticReports/WindowServer_2015-05-04-190011_Paul-Breedens-im ac-5.wakeups_resource.diag
    04/05/2015 19:00:56.197 com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    04/05/2015 19:00:56.530 iconservicesd[59]: Failed to move temp file /Library/Caches/com.apple.iconservices.store/B9FF2D6E-5D0C-1218-402C-B706F28B0A 68.isdata.tmp to /Library/Caches/com.apple.iconservices.store/B9FF2D6E-5D0C-1218-402C-B706F28B0A 68.isdata with error: Error Domain=NSCocoaErrorDomain Code=516 "“B9FF2D6E-5D0C-1218-402C-B706F28B0A68.isdata.tmp” couldn’t be moved to “com.apple.iconservices.store” because an item with the same name already exists." UserInfo=0x7fb949c13070 {NSSourceFilePathErrorKey=/Library/Caches/com.apple.iconservices.store/B9FF2D6E -5D0C-1218-402C-B706F28B0A68.isdata.tmp, NSUserStringVariant=(
        Move
    ), NSDestinationFilePath=/Library/Caches/com.apple.iconservices.store/B9FF2D6E-5D0 C-1218-402C-B706F28B0A68.isdata, NSFilePath=/Library/Caches/com.apple.iconservices.store/B9FF2D6E-5D0C-1218-402C -B706F28B0A68.isdata.tmp, NSUnderlyingError=0x7fb949c11ba0 "The operation couldn’t be completed. File exists"}
    04/05/2015 19:00:57.204 QuickLookSatellite[545]: Failed to obtain sandbox extension for path=/Users/leopard/Library/Caches/com.apple.quicklook.satellite. Errno:1
    04/05/2015 19:00:57.211 QuickLookSatellite[545]: Failed to obtain sandbox extension for path=/Users/leopard/Library/Caches/com.apple.quicklook.satellite. Errno:1
    04/05/2015 19:00:57.796 QuickLookSatellite[545]: CGSConnectionByID: 0 is not a valid connection ID.
    04/05/2015 19:00:57.796 QuickLookSatellite[545]: Invalid Connection ID 0
    04/05/2015 19:01:02.753 sandboxd[328]: ([545]) QuickLookSatelli(545) deny file-issue-extension /Users/leopard/Library/Caches/com.apple.quicklook.satellite
    04/05/2015 19:01:02.824 sandboxd[328]: ([545]) QuickLookSatelli(545) deny mach-lookup com.apple.nsurlstorage-cache
    04/05/2015 19:01:02.837 sandboxd[328]: ([545]) QuickLookSatelli(545) deny file-issue-extension /Users/leopard/Library/Caches/com.apple.quicklook.satellite
    04/05/2015 19:01:02.896 sandboxd[328]: ([545]) QuickLookSatelli(545) deny mach-lookup com.apple.nsurlstorage-cache
    04/05/2015 19:01:08.015 com.apple.xpc.launchd[1]: (com.apple.quicklook.satellite.7940DB53-496F-47D2-87E2-C3EE3CBF1E27[545]) Service exited due to signal: Killed: 9
    04/05/2015 19:01:19.128 apsd[75]: Illegal subject name missing 'courier.push.apple.com' (2.5.4.3): ({
        label = "2.5.4.6";
        "localized label" = "2.5.4.6";
        type = string;
        value = US;
        label = "2.5.4.8";
        "localized label" = "2.5.4.8";
        type = string;
        value = California;
        label = "2.5.4.7";
        "localized label" = "2.5.4.7";
        type = string;
        value = Cupertino;
        label = "2.5.4.10";
        "localized label" = "2.5.4.10";
        type = string;
        value = "Apple Inc.";
        label = "2.5.4.3";
        "localized label" = "2.5.4.3";
        type = string;
        value = "courier.sandbox.push.apple.com";
    04/05/2015 19:01:24.087 Adobe InDesign CS5[550]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.3 instead of 10.10.3. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
    Call location:
    04/05/2015 19:01:24.087 Adobe InDesign CS5[550]: 0   CarbonCore                          0x93ff9291 ___Gestalt_SystemVersion_block_invoke + 135
    04/05/2015 19:01:24.087 Adobe InDesign CS5[550]: 1   libdispatch.dylib                   0x9a9460b5 dispatch_once_f + 251
    04/05/2015 19:01:24.087 Adobe InDesign CS5[550]: 2   libdispatch.dylib                   0x9a9470d8 dispatch_once + 31
    04/05/2015 19:01:24.088 Adobe InDesign CS5[550]: 3   CarbonCore                          0x93f7269d _Gestalt_SystemVersion + 1050
    04/05/2015 19:01:24.088 Adobe InDesign CS5[550]: 4   CarbonCore                          0x93f717c0 Gestalt + 150
    04/05/2015 19:01:24.088 Adobe InDesign CS5[550]: 5   AdobeAFL                            0x016ebfae _ZN5adobe3afl12MacFileUtils13AFileToFSSpecERKNS0_5AFileER6FSSpec + 5254
    04/05/2015 19:01:24.088 Adobe InDesign CS5[550]: 6   ???                                 0x8feb70b3 0x0 + 2414571699
    04/05/2015 19:01:28.908 Mail[309]: {"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
    04/05/2015 19:01:28.952 Adobe InDesign CS5[550]: The function ‘CGSFlushWindow’ is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance. Please use `CGSFlushWindowContentRegion' instead.
    04/05/2015 19:01:29.229 Mail[309]: XOAUTH2 requires user
    04/05/2015 19:01:29.229 Mail[309]: Failed to start the SASL connection
    SASL(-1): generic failure: XOAUTH2 requires user
    Hope this isn't too much ... thanks again for everyone's input.

  • In this report i have marked one line..if this width 30,i need to multiply by a number 0.3 and if the width =30,it multiplies by 0.37...how to use this logic here..??? anyone can help??

    In this report i have marked one line..if this width < 30,i need to multiply by a number 0.3 and if the width >=30,it multiplies by 0.37...how to use this logic here..??? anyone can help??
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',
    T3.ItemName as 'FG Item Name',
    T2.PlannedQty as 'FG Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    0 as 'FG Pending Qty',
    0 as 'FG Receipt Qty',
    '' as 'Issue Item Code',
    '' as 'Issue Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    0 as 'Issue Item - Return Quantity',
    '' as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2
    UNION ALL
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',
    T3.ItemName as 'Item Name',
    T2.PlannedQty as 'Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',
    (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry 
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription    order by T2.DocNum desc

    Hi,
    Try this:
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',T3.ItemName as 'FG Item Name',T2.PlannedQty as 'FG Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) <30 then ((T2.U_OD-T2.U_ID)/2) *0.3 end, 0 as 'FG Pending Qty',0 as 'FG Receipt Qty','' as 'Issue Item Code','' as 'Issue Item Name',Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',0 as 'Issue Item - Return Quantity','' as 'Return Doc No',SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntryINNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCodeLEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntryWHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2UNION ALL SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',T3.ItemName as 'Item Name',T2.PlannedQty as 'Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) >=30 then ((T2.U_OD-T2.U_ID)/2) *0.37 end, (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',(Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry
    where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,
    T2.PlannedQty,T2.U_OD,
    T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription  
    order by T2.DocNum desc
    Thanks & Regards,
    Nagarajan

  • XSLT code required

    Hi Mates,
    I have requirement like
    need to check value endwith Y then add comment line and populate output field using XSLT mapping.
    Ex:
    Input :Source=KolkataY
    check Source is ends with Y
    then Add comment line and populate Source =Kolkata
    Please provide XSLT code  for this requiremet.
    Thanks
    JAYAN

    Why do you need XSLT code ? it can be acheived by simple graphical mapping standard functions
    if input endswith y then input concatenate with comment and pass to target
    regards
    Ninad

  • XSLT code giving emplty output

    Hi ,
    i am a beginer in XSLT.  when i execute the code  i am getting emplty structure.
    Can anyone point out what is missing in my code, are the xpath expressions correct??
    input Xml  will look as below
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
         <Person>
              <FirstName>James</FirstName>
              <LastName>Bond</LastName>
              <Gender>Male</Gender>
              <Address>
                   <Street>6B</Street>
                   <Houseno>bbbb</Houseno>
                   <City>AAAA</City>
              </Address>
         </Person>
    </ns0:MT_XSLT_Source>
    my output should be...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_XSLT_Target xmlns:ns0="http://XYZ.com/Gen">
          <Title>Male</Title>
         <Name> James Bond</Name>
          <Street> 6B bbbb</Street>
          <City>AAA</City>
    </ns0:MT_XSLT_Target>
    my XSLT code is  as below .. (  i think the xpath's are not executing)
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/Gen">
         <xsl:template match="/">
              <ns0:MT_XSLT_Target>
                   <Title>
                        <xsl:value-of select="/ns0:MT_XSLT_Source/Person/FirstName"/>
    ( i doubt issue is in xpath??)
                   </Title>
                   <Name>
                        <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '),
                         Person/LastName)"/>
                   </Name>
                   <Street>
                        <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/Address/Houseno,' '),ns0:MT_XSLT_Source/Person/Address/Street)"/>
                   </Street>
                   <City>
                        <xsl:value-of select="ns0:MT_XSLT_Source/Person/Address/City"/>
                   </City>
              </ns0:MT_XSLT_Target>
         </xsl:template>
    </xsl:stylesheet>
    Edited by: sam kumar on Aug 31, 2010 2:37 PM

    Hi, take this code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/gen">
         <xsl:template match="/">
              <ns0:MT_XSLT_Target>
                   <Title>
                        <xsl:value-of select="ns0:MT_XSLT_Source/Person/FirstName"/>
                   </Title>
                   <Name>
                        <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '),
                         Person/LastName)"/>
                   </Name>
                   <Street>
                        <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/Address/Houseno,' '),ns0:MT_XSLT_Source/Person/Address/Street)"/>
                   </Street>
                   <City>
                        <xsl:value-of select="ns0:MT_XSLT_Source/Person/Address/City"/>
                   </City>
              </ns0:MT_XSLT_Target>
         </xsl:template>
    </xsl:stylesheet>
    I Just change the xmlns:ns0="http://XYZ.com/Gen" to xmlns:ns0="http://XYZ.com/gen"
    Regards,
    Edson Thomaz

  • Database error ??? anyone can help me .......i'm NEW to JSP

    Hi ,
    anyone can help me check wat's the following error means? my program can query and update movies & movie reviews to/from the database. When i tried to query either the movie or the movie reviews, the program works fine but when i try to update review also no problem . However, when i try to update new movies to the database, this error appears(the database already had data inside and i had make sure tat the table name n etc is correct):
    Database Error
    An Operation on the Movie Database Failed!
    org.apache.jasper.JasperException: Cannot find any information on property 'movie' in a bean of type 'db.UpdateMovies'
         at org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:363)
         at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306)
         at org.apache.jsp.jdbc2_jsp._jspService(jdbc2_jsp.java:76)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Anyone have any idea wat's went wrong? Please advice .......& Thanks alot for yr help
    Regards,
    huiqin

    from what you're saying, it would sound like a duplicate entry of key constraint violation
    your stack trace is simply saying that there is a problem with the bean being null or not initialized, and this is likely due to the database failing
    you need to get the database specific error and/or error code, this JSP error won't help in debugging the problem

  • HT201320 if i set up a new email account on my iphone 4 can i get security code or extra pin to stop others accessing the new email account?

    if i set up a new email account on my iphone 4 can i get security code or extra pin to stop others accessing the new email account?

    No, and if I noticed anyone that I allowed to use my iPhone checking my email which is the same as opening any of my snail mail without my permission, that would be the last time they used my iPhone.

Maybe you are looking for

  • Elements 8 Editior will not print !!

    I am extremely annoyed at Adobe as Elements Editor (8.0) will not print!!  I have seen a number of complaints about this and I have tried multiple things to fix the problem.  I own many different Adobe products (Design Suite 5, Reader, Acrobat, Eleme

  • Writing to socket with setinterval not working in windows

    Hello Everyone, I'm trying to stream a big file to my server, and was using 'setInterval' just fine to slowly upload it from OS X, but when I moved my AIR application to a Windows Vista computer, it no longer worked. I started doing some investigatio

  • Will mountain lion support microsoft word

    How do I get my documents from Microsoft word?  I have them backed up.

  • Dodge and Burn Tool basicly stopped working.

    For some reason the Dodge and Burn Tool in Lightrooom 5.4 basicly stopped working. It will only make a slight adjustment no matter how much I change the exposure value. Does anyone know what could be causing this?

  • Selection screen in Cc reporting showing two lines when changed Person Res.

    Hi Guruz I have changed Person responsible in Cost centre hierarchy. Now I have two interval with different person responsible 1st one is from 01.01.07 to 31.12.2008 and 2nd one is from 01.01.2009 to 31.12.9999. When I go to cost centre report and lo