Timezone of the application

I'm coding an application which uses timezone. I'd like to give the user ability to change the timezone. Is that possible to change the timezone in which application is running? I mean to change the raw offset from GMT. For example the telephone has GMT + 1 and user can overwrite that value (or not telephone's but just J2ME) by GMT + 3.
thanks

Hi
Q: Is it a simple workaround the timestamp issue?
I got the same trouble using Netbeans 6.0.1 / Glassfish V2
[TopLink Warning]: 2008.04.01 04:56:34.094--UnitOfWork(12644844)--Exception [TOPLINK-3002] (Oracle TopLink Essentials - 2.1 (Build b27-fcs (03/26/2008))): oracle.toplink.essentials.exceptions.ConversionException
Exception in thread "main" Local Exception Stack:
Exception Description: The object [oracle.sql.TIMESTAMPTZ@1094d48], of class [class oracle.sql.TIMESTAMPTZ], from mapping [oracle.toplink.essentials.mappings.DirectToFieldMapping[messagecreatedtimestamp-->WORKORDER_VIEW.MESSAGECREATEDTIMESTAMP]] with descriptor [RelationalDescriptor(com.telenor.cinclus.statistics.model.WorkorderView --> [DatabaseTable(WORKORDER_VIEW)])], could not be converted to [class java.util.Date].
Exception [TOPLINK-3002] (Oracle TopLink Essentials - 2.1 (Build b27-fcs (03/26/2008))): oracle.toplink.essentials.exceptions.ConversionException
Exception Description: The object [oracle.sql.TIMESTAMPTZ@1094d48], of class [class oracle.sql.TIMESTAMPTZ], from mapping [oracle.toplink.essentials.mappings.DirectToFieldMapping[messagecreatedtimestamp-->WORKORDER_VIEW.MESSAGECREATEDTIMESTAMP]] with descriptor [RelationalDescriptor(com.telenor.cinclus.statistics.model.WorkorderView --> [DatabaseTable(WORKORDER_VIEW)])], could not be converted to [class java.util.Date].
at oracle.toplink.essentials.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:87)

Similar Messages

  • How can I set the timezone in my application?

    I inherited a website in which the DateFormat() function is littered throughout, and plays an integral role in ensuring the application runs correctly. For instance, we have a calendar system in which employees can book lessons on certain days and at certain times. The Date and Time functions are key to this application's success.
    But we moved the website from one server to a newer, shared, one a few months back running CF10 on Windows Server 2008. (I believe the old one was running CF8 on a Windows 2000 server or something.) But what appears to be happening is that other users on this new shared box are changing the date/time based on their needs and at different times, and it is affecting our applications. I called the support staff of the hosting company who told me I had to specify the date and time via Java in my application file and that should solve the problem.
    The issue is that I really have no idea how to do this. My programming with Java is virtually null, and even my familiarity with ColdFusion is waning, as I have not seriously used it in about 9 years. I see there are a number of tutorials and demonstrations on the web for accessing date and time via Java in ColdFusion, but I don't know how to set the application to a specified timezone, (which is what I think I have to do), so that when the DateFormat() object is called, it calls the correct date. Otherwise, when employees go to book lessons, the dates are off. Their calendar will show that April might begin on a Tuesday instead of a Monday. At other times we've noticed the hour is off by a considerable amount - 4 or 5 hours, when the server itself is in a timezone only 1 hour behind us.
    Any idea how to pull something like this off?
    I figure even if I can specify the timezone in the application files I may have to overwrite every instance of DateFormat() to something customized, but I'm hoping I don't have to go that far.
    Any help is greatly appreciated.

    Question: Do you think the response from the support staff is correct? I mean, surely, I can't be the only CF user on a shared box whose other users need to modify the date and time within their applications. Even if they do it at the application level for their domain, surely it wouldn't affect mine, would it? That was what was implied by the support people, but I have a feeling they are way off, or covering for some goof-up on their end. I struggled like hell yesterday trying to get this to work and I did not get very far at all.
    I found an interesting tutorial here which does a comparison of time zones and, theoretically, this might do the trick. But if what the guy told me was nonsense then I won't bother with it. For the record, our calendar has been working fine for about a week now.

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.Not working in USA timezone.

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works fine in our side (Timezone,kolkata ,india even for Timezone,slvaniya,USA) but our USA client is telling that on changing the date it not starts from start-up sequence.Can anyone plz suggest the reason for it.

    This is the code which we have used.
    //////////Return if it is first time for the day or not//////////////
    + (BOOL)isFirstTimeToday {
    BOOL result = YES;
    NSDate *now = [[NSDate alloc] init];     /// represents the current time
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: now];
    NSDate *today = [gregorian dateFromComponents:components];
    [now release];
    [gregorian release];
    NSDate *savedDate = [[NSUserDefaults standardUserDefaults] objectForKey:LAST_TIME_VISITED];
    if (savedDate) {
    if ([today earlierDate:savedDate] == today) {
    result = NO;
    return result;
    ////////Stores the date/////////////
    + (void)userDidVisitReenforceScreenToday {
    [[NSUserDefaults standardUserDefaults] setObject:[NSDate todayAtMidnight] forKey:LAST_TIME_VISITED];
    ////////////What [NSDate todayAtMidnight] stores/////////////////////
    + (NSDate *)daysFromNowAtMidnight:(NSInteger)nOfDays {
    NSDate *date = [NSDate dateWithTimeIntervalSinceNow: (86400*nOfDays)];
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: date];
    NSDate *dateAtMidnight = [gregorian dateFromComponents:components];
    [gregorian release];
    NSLog(@"dateAtMidnight : %@",dateAtMidnight);
    return dateAtMidnight;
    + (NSDate *)todayAtMidnight {
    return [self daysFromNowAtMidnight:0];
    Please Suggest..

  • An error occurred while preparing the installation. Try running the application again

    I Have erased the hard drive of my MBP in order to perform a clean reinstall of OS X Mavericks, according to these instructions.
    When I tried to reinstall, my internet connection stopped (was broadcasting via another MBP and the cable from that one got disconnected), so I restarted the erased MBP to try again. Holding command+R, it booted in internet recovery (as the recovery partition was erased along with the rest of the hard drive), but could not connect over the broadcasted WiFi, so I created a bootable USB flash drive according to these instructions on the other MBP.
    This installation went smooth without any hiccups, but due to an oversight I had to do it again the next day.
    I took the same steps, with the same bootable drive (I did not create a new one the first time) but this time I couldn’t get through the prepare to install phase. At the end, where the “about a second remaining” message stays for about 20 minutes, I get the “An error occurred while preparing the installation. Try running the application again” message. When I quit the installer (only option at that stage) and return to Disk Utility, the internal drive on which I tried to do the installation is not visible anymore.
    I tried this (after a reboot every time) with a new bootable usb drive with the same download of the OS X Mavericks installer and with a new one, each ending with the same error. The installer was downloaded on an MBP on which Mavericks is also installed, with the same Apple ID. The App Store did not allow me to change Apple ID for the Mavericks download. Can this pose a problem? It did work the first time, though.
    Note that this error occurs at a different stage than the one with the same message due to the wrong date (this discussion amongst others). I also checked the date in terminal and this appears to be correct, when I consider the timezone.
    Here are a few lines from the installer log (omitted similar lines and lines that could contain personal information). The most important line is the last one, indicating the error.
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: @(#)PROGRAM:Install  PROJECT:Install-846
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: @(#)PROGRAM:IA  PROJECT:InstallAssistant-476.8
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Hardware: MacBookPro9,2 @ 2.50 GHz (x 4), 4096 MB RAM
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Running OS Build: Mac OS X 10.9.3 (13D65)
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: DYLD_NO_FIX_PREBINDING=1
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: __CF_USER_TEXT_ENCODING=0x0:0:0
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: PWD=/
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: SHLVL=1
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: __OSINSTALL_ENVIRONMENT=1
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: CI_DEFAULT_OPENCL_USAGE=0
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: OS_INSTALL=1
    Jun 22 02:14:01 localhost Install OS X Mavericks[423]: Env: _=/System/Library/CoreServices/Language Chooser.app/Contents/MacOS/Language Chooser
    Jun 22 02:14:38 localhost Install OS X Mavericks[423]: Using distribution archive from /Volumes/Install OS X Mavericks/Install OS X Mavericks.app/Contents/SharedSupport/OSInstall.mpkg
    Jun 22 02:14:38 localhost Install OS X Mavericks[423]: Configuring products from SharedSupport folder
    Jun 22 02:14:38 localhost Install OS X Mavericks[423]: Install is double-dmg. Not adding chunklist to download list.
    Jun 22 02:14:38 localhost Install OS X Mavericks[423]: Using product <OSInstallDVDProduct> based on media at /Volumes/Install OS X Mavericks/Install OS X Mavericks.app/Contents/SharedSupport at distance 5
    Jun 22 02:14:38 localhost Install OS X Mavericks[423]: Using product <OSInstallESDProduct> based on distribution at /Volumes/Install OS X Mavericks/Install OS X Mavericks.app/Contents/SharedSupport/OSInstall.mpkg at distance 5
    Jun 22 02:14:38 localhost Install OS X Mavericks[423]: Checking Software Update catalog URL https://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-sn owleopard-leopard.merged-1.sucatalog
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: JS: installCheckScript threw exception TypeError: 'null' is not an object (evaluating 'my.target.systemVersion')
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: No available package ref for compatibility update. Ignoring.
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: *** IFDCustomizationController_10_6 does not know the size of distant package at (null)
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: *** IFDCustomizationController_10_6 does not know the size of distant package at (null)
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: Can not connect to /var/run/systemkeychaincheck.socket: No such file or directory
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: Could not load Software Update catalog: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo=0x7fedd960ccc0 {NSUnderlyingError=0x7feddc866ef0 "The Internet connection appears to be offline.", NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-sn owleopard-leopard.merged-1.sucatalog, NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-sn owleopard-leopard.merged-1.sucatalog, NSLocalizedDescription=The Internet connection appears to be offline.}
    Jun 22 02:14:39 localhost Install OS X Mavericks[423]: Could not fetch SWU catalog to create SWU product
    Jun 22 02:14:49 localhost Install OS X Mavericks[423]: LSExceptions [0x7fedd9446e50] unloaded
    Jun 22 02:15:12 localhost Install OS X Mavericks[423]: No available package ref for compatibility update. Ignoring.
    Jun 22 02:15:12 localhost Install OS X Mavericks[423]: *** IFDCustomizationController_10_6 does not know the size of distant package at (null)
    Jun 22 02:15:12 localhost Install OS X Mavericks[423]: *** IFDCustomizationController_10_6 does not know the size of distant package at (null)
    Jun 22 02:20:55 localhost Install OS X Mavericks[423]: Created IATool object:dbe23a50
    Jun 22 02:20:56 localhost Install OS X Mavericks[423]: Could not find package ref in any source for: com.apple.pkg.BaseSystemBinaries
    —a lot of similar messages, but for other packages —
    Jun 22 02:20:56 localhost Install OS X Mavericks[423]: No available package ref for compatibility update. Ignoring.
    Jun 22 02:21:09 localhost Install OS X Mavericks[423]: Preventing machine sleep.
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Using product IA_PKSecureNetEnabledProduct <file:///Volumes/schijf/OS%20X%20Install%20Data/> at distance 5
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Using existing boot files dir at /Volumes/Install OS X Mavericks/.IABootFiles
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Using mutable product path: /Volumes/schijf/OS X Install Data
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Using boot files path: /Volumes/Install OS X Mavericks/.IABootFiles
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Could not find package ref in any source for: com.apple.pkg.BaseSystemBinaries
    —a lot of similar messages, but for other packages —
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Could not find package ref in any source for: com.apple.pkg.OSInstall
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: No available package ref for compatibility update. Ignoring.
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Could not find package ref in any source for: com.apple.pkg.BaseSystemBinaries
    —a lot of similar messages, but for other packages —
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Could not find package ref in any source for: com.apple.pkg.OSInstall
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: No available package ref for compatibility update. Ignoring.
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Retrieving 0 packages (0.000 GB)
    *****This is where the timer starts saying “”About a minute remaining”*****
    Jun 22 02:21:42 localhost Install OS X Mavericks[423]: Verifying InstallMacOSX.pkg/InstallESD.dmg
    Jun 22 02:42:36 localhost Install OS X Mavericks[423]: Finished operation queue
    Jun 22 02:42:36 localhost Install OS X Mavericks[423]: Opening /Volumes/Install OS X Mavericks/Install OS X Mavericks.app/Contents/SharedSupport/InstallESD.dmg
    Jun 22 02:42:38 localhost Install OS X Mavericks[423]: Extracting boot files from /Volumes/OS X Install ESD/BaseSystem.dmg
    Jun 22 02:42:39 localhost Install OS X Mavericks[423]: Extracting Boot Bits from Inner DMG:
    Jun 22 02:42:41 localhost Install OS X Mavericks[423]: Copied kernelcache
    Jun 22 02:42:42 localhost Install OS X Mavericks[423]: Copied Boot.efi
    Jun 22 02:42:42 localhost Install OS X Mavericks[423]: Copied PlatformSupport.plist
    Jun 22 02:42:42 localhost Install OS X Mavericks[423]: Ejecting disk images
    Jun 22 02:42:42 localhost Install OS X Mavericks[423]: Generating the com.apple.Boot.plist file
    Jun 22 02:42:42 localhost Install OS X Mavericks[423]: com.apple.Boot.plist: {
          "Kernel Cache" = "/.IABootFiles/kernelcache";
          "Kernel Flags" = "container-dmg=file:///Install%20OS%20X%20Mavericks.app/Contents/SharedSupport/ InstallESD.dmg root-dmg=file:///BaseSystem.dmg";
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: Done generating the com.apple.Boot.plist file
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: Blessing /Volumes/Install OS X Mavericks -- /Volumes/Install OS X Mavericks/.IABootFiles
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: Blessing Mount Point:/Volumes/Install OS X Mavericks Folder:/Volumes/Install OS X Mavericks/.IABootFiles plist:com.apple.Boot.plist
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: ***************************** Setting Startup Disk *****************************
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: ******           Path: /Volumes/Install OS X Mavericks
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: ******     Boot Plist: /Volumes/Install OS X Mavericks/.IABootFiles/com.apple.Boot.plist
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: /usr/sbin/bless -setBoot -folder /Volumes/Install OS X Mavericks/.IABootFiles -bootefi /Volumes/Install OS X Mavericks/.IABootFiles/boot.efi -options config="\.IABootFiles\com.apple.Boot" -label OS X Installer
    Jun 22 02:42:43 localhost Install OS X Mavericks[423]: Bless on /Volumes/Install OS X Mavericks succeeded
    Jun 22 02:45:55 localhost Install OS X Mavericks[423]: Got error in writing to /Volumes/schijf/OS X Install Data/minstallconfig.xml
    That last line indicates the error that occurred. (The internal drive on which I try to install Mavericks is called “schijf”, it also already has been called Macintosh HD, with no effect. This time I tried another name during the reformat to see if and when the installer renames the disk. Does it do this, or should I call the disk “Macintosh HD” myself?)
    By now I also got past the internet recovery issues, being able to get the progress bar under the spinning globe and the option to install Lion (not Mavericks, but I suppose that’s because the MBP shipped with Lion). When I choose this option, the installer first spends a few hours downloading additional components. This eventually took less time than first indicated, but still about 4-5 hours. After this, the installation of about 24 minutes starts, but this takes much longer than the indicated 24 minutes, each minute taking about 15 minutes. When it was less than a minute, the internet connection got disconnected (but I don’t suppose it still needed an internet connection at this stage, having downloaded all additional components) and now the “Less than a minute” message has been there the whole night (about 9,5 hours), the last 9 hours with a spinning beachball on the screen after I accidentally clicked somewhere on the screen (nowhere in particular, he shouldn’t do something because of the click. After unplugging the power adapter, the battery icon on the screen wasn’t updated, and the WiFi icon simply disappeared, instead of showing no bars like it should when there’s no connection).
    Does Anyone know how I can fix the error, because I would prefer installing with a bootable drive. Is it worth it to continue waiting on the current, apparently stuck Lion installer to finish or should I force a reboot?
    Can I try using the Recovery Disk assistant (OS X Recovery Disk Assistant v1.0) to create a recovery disk with the other MBP? I think not, as this might cause trouble with 2 different MBP's using the same license.
    Thanks in advance!

    Since this thread seems to be gaining more speed than the other one i'm working on, i figured i'd add these images to help you all out detailing the exact problem.
    I'm having the same issue and I wanted to provide some info specific to my mac, and some info in general to help with diganosis.
    First, my specs
    Secondly, I am running an aftermarket 500 GB drive.
    Third, not sure if this is realated, but this screen suggests the proress will take 3 minutes, then it abruptly umps to the restart phase after about 1.5 - 2.5 minutes.
    And finally, here is the seeminly unavoidable error message.
    Also, other things I've tried now are
    installing it from the "show package contents area",
    mounting said DMG and trying to install from there.
    installing a package file called "upgradeos.pkg"
    no luck.

  • Error after deploying the application in PI java system

    Hi all,
    I have created a test web dynpro java application and deployed in PI7.1 java engine. Using the JCO's maintained i hav connected to ECC7.1 system and created a model to call a bapi. After deploying and running the application, I got the following error. Please let me know the solution
    Regards
    Sagar
        500   Internal Server Error  SAP NetWeaver Application Server/Java AS 
    The initial exception that caused the request to fail, was:
    java.lang.NullPointerException
        at com.sap.conn.jco.rt.DefaultDestinationManager.checkProperties(DefaultDestinationManager.java:405)
        at com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:142)
        at com.sap.conn.jco.rt.DefaultDestinationManager.searchDestination(DefaultDestinationManager.java:292)
        at com.sap.conn.jco.rt.DefaultDestinationManager.getDestinationInstance(DefaultDestinationManager.java:90)
        at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:61)
        ... 82 more
    See full exception chain for details.
    Failed to process request. Please contact your system administrator.
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.3)
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Java Applets enabled
    Accessibility mode disabled
    Rendering engine: Lightspeed
    Inline CSS:  enabled
    Validate by rendering:  enabled
    Server
    Web Dynpro Runtime vendor: 'sap.com', name: 'tc/wd/webdynpro', location: 'SAP AG', counter: '7.1100.20081021173332.0000', change number: '28470', codeline: NW711_00_REL
    J2EE Engine 7.11.3710.27866.20080910102732
    System ID (SID) PID
    Server Node ID |1698650|16986|Server 00 00_16986|sappidev01.xtium.com/10.255.30.89|SERVER|RUNNING
    Java VM SAP Java 64-Bit Server VM, version:5.1.027, vendor: SAP AG
    Operating system Windows 2003, version: 5.2, architecture: amd64
    Application
    Java EE Application (deployable object) demo.sap.com/pegatest
    Web Dynpro Application Pegatestappli
    Request URI /webdynpro/dispatcher/demo.sap.com/pegatest/Pegatestappli
    Version vendor: 'demo.sap.com', name: 'pegatest', location: 'localDevelopment', counter: '20100112141118', change number: 'null'
    Session & Other
    Session Locale en_US
    Session Timezone Pacific Standard Time
    Time of Failure Tue Jan 12 00:39:45 PST 2010 (Java Time: 1263285585307)
    Session User ClientUser(id=USER.R3_DATASOURCE.J2EE_ADMIN, name=J2EE_ADMIN)
    Client Session Id bxuvisJvMVwF2Jn5_M0-ODXALydDRLAhJgFa6xkA_SAP
    Client Window Id 09190ac2ff5611dea2480050568315be
    Application Session Id 09190ac3ff5611dea70e0050568315be
    Web Dynpro Code Generation Infos
    demo.sap.com/pegatest
    Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session ApplicationSession(id=09190ac3ff5611dea70e0050568315be, name=com.sap.demo.pegatest.pegatestappli.Pegatestappli). The causing exception is nested. RID=09190ac0ff5611deb9b80050568315be
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:680)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:239)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:258)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:202)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:92)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:104)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
      at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:240)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:457)
      at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
      at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
      at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Caused by: com.sap.tc.webdynpro.progmodel.context.DictionaryException: InvocationTargetException
      at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getDataType(DictionaryHandler.java:192)
      at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:434)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:978)
      at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:294)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:950)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:954)
      at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:69)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:205)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:552)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1296)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoPreprocessing(AbstractExecutionContextDispatcher.java:146)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppPreprocessing.doService(DispatchHandlerForAppPreprocessing.java:35)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoPreprocessing(ExecutionContextDispatcher.java:100)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:74)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:571)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:602)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:252)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:677)
      ... 48 more
    Caused by: com.sap.dictionary.runtime.DdException: InvocationTargetException
      at com.sap.dictionary.runtime.ProviderFactory4J7.getProvider(ProviderFactory4J7.java:36)
      at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:96)
      at com.sap.dictionary.runtime.DdDictionaryPool.makeDictionary(DdDictionaryPool.java:75)
      at com.sap.dictionary.runtime.DdDictionaryPool.makeDictionary(DdDictionaryPool.java:63)
      at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:224)
      at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler._getScalarType(DictionaryHandler.java:462)
      at com.sap.tc.webdynpro.progmodel.context.DictionaryHandler.getDataType(DictionaryHandler.java:171)
      ... 67 more
    Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at com.sap.dictionary.runtime.ProviderFactory4J7.getProvider(ProviderFactory4J7.java:21)
      ... 73 more
    Caused by: com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination DEV_ECC6_220_METADATA does not exist
      at com.sap.mdi.jco7.Factory.makeException(Factory.java:41)
      at com.sap.mdi.jco7.Destination.<init>(Destination.java:35)
      at com.sap.mdi.jco7.Destination.make(Destination.java:21)
      at com.sap.mdi.jco7.Factory.getDestination(Factory.java:28)
      at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:115)
      ... 78 more
    Caused by: com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination DEV_ECC6_220_METADATA does not exist
      at com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:163)
      at com.sap.conn.jco.rt.DefaultDestinationManager.searchDestination(DefaultDestinationManager.java:292)
      at com.sap.conn.jco.rt.DefaultDestinationManager.getDestinationInstance(DefaultDestinationManager.java:90)
      at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:61)
      at com.sap.mdi.jco7.Destination.<init>(Destination.java:32)
      ... 81 more
    Caused by: java.lang.NullPointerException
      at com.sap.conn.jco.rt.DefaultDestinationManager.checkProperties(DefaultDestinationManager.java:405)
      at com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:142)
      ... 85 more

    yes, you are getting Cross Origin Problem .So, you need to disable the web security for chrome.
    Go to properties of chrome , and add this after path of chrome.
    --disable-web-security
    After this restart the chrome.
    Please follow the below link for reference.
    windows - Is it possible to run Chrome with and without web security at the same time? - Super User
    Regards
    Sridevi

  • Help. Windows 7: The application was unable to start correctly (0xc0150002).

    I just got a new computer. Windows 7. Toshiba. Intel 13-3110M Processor. 6GB DDR3 Memory. 1TB 5400rpm Hard Drive. Intel HD Graphics 4000. 2.40 GHz. 64-bit operating system.
    I installed CS5 Creative Suite on it (which worked perfectly fine on my two previous computers--Windows 7 and Windows 8). Since then Photoshop and Illustrator have been giving me the same error message. "The application was unable to start correctly (0xc0150002). Click OK to close the application." The programs still open and remain open after pressing okay, but the message comes back every minute or so.
    Then, with InDesign, the program won't open at all. It gives me the error message of "Cannot load the PDF.RPLN plug-in. It is dependent on the EPS PAGE ITEM.RPLN plug-in, which failed to load. Please check documentation for the EPS PAGE ITEM.RPLN plug-in." Then InDesign stops responding and closes itself.
    I have to live with this computer for two more weeks (and then I go home and can use my old one again/return this current laptop), and I have schoolwork that counts on me being able to use these programs. If anybody could help me, I would be super grateful!
    Oh, and I've already tried installing and uninstalling it.

    Without system information nobody can say anything. also check the logs in the Event Viewer.
    Mylenium

  • Copy file from mounted DMG to the Applications folder?

    I'm wanting to copy file (application) from a mounted DMG to the Applications folder. Something like:
    tell application "Finder"
    try
    copy "Volumes:Dropbox Installer:Dropbox.app" to folder "Volumes:Macintosh HD:Applications"
    end try
    end tell
    (But that doesn't work).
    Preferably overwriting the existing application in that folder. Any help would be greatly appreciated.

    tell application "Finder"
        duplicate file "Volumes:S001TEST:S001-S001c-TEST.zip" to folder "Volumes:Macintosh HD:Applications" with replacing
    end tell
    I tried this principle in Applescript (Mavericks) and received error...
    Finder got an error: Can’t set folder "Volumes:Macintosh HD:Applications" to file "Volumes:S001TEST:S001-S001c-TEST.zip".
    "001TEST" is a disk image with filename of "S001TEST.dmg"
    Any ideas why this won't work?

  • I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    The following previous discussion has a solution that worked for a variety of people with the -1712 error on a variety of applications and may help: The application Safari can't be opened -1712

  • Report Generation for Excel does not work after using the Application Builder

    I have a VI that writes data to an Excel file using the Report Generation Toolkit. I recently compiled the VI into a single Application (EXE) using the Application Builder. My VI runs its tests properly, but no data is written to Excel. What could be the cause? I don't receive any error messages.

    Hi
    I usually build exe-files, which sometimes also have report functionality.
    Open the Application Builder and check the following things:
    1. Add the following vis: _Word Dynamic VIs.vi, _Excel Dynamic VIs.vi They should be located in the directory ..\LabVIEW X.X\vi.lib\addons\_office in the llbs _wordsub.llb and _exclsub.llb (report1.jpg)
    2. If you use an Installer, go to the Advanced Settings. There you can select some things to include in the Installer. Check if "NI Reports Support" is selected. (report2.jpg)
    These are the things I always do, if I need reports and I never had problems up to now. I made two screen-shots of these settings.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    report.zip ‏25 KB

  • Report Generation Toolkit producing error -2147417842, "The application called an interface that was marshalled for a different thread."

    Hi everybody,
    I've got an application that logs data to an Excel spreadsheet using the Report Generation Toolkit.  My VI's have worked fine in the past using Excel XP, but since I've upgraded to Excel 2007, I am getting COM errors like this one:
    "Error -2147417842 occurred at The application called an interface that was marshalled for a different thread. in Excel_Insert_Text.vi"  That is the exact wording, even with the weird punctuation and capitalization.
    The first occurrence of the error is not determinate.  Sometimes, up to 10 logging sessions, involving a new .xls file, can occur before this error pops up.  Once this error occurs, I must quit LabVIEW to resolve it.  If I try to do anything with Excel, I always get this error, although sometimes it comes out of different source VIs.  Excel_Open.vi is another.
    These logging VIs have worked just fine until upgrading to Excel 2007.  I checked, and I was using a really old version of the Report Generation Toolkit, v1.0.1.  I read the documentation and had a big sigh of relief when I realized I needed to upgraded to v1.1.2 to get Excel 2007 support.  However, even after upgrading, I'm still getting the same errors.  I'm using LabVIEW 8.0.1, and I'm also building these VIs into an application.   The error occurs both in the LabVIEW IDE and in the built application.  Does anybody out there have any idea what I can do to fix this?  I googled a little, and discovered this is a COM error, but I can't find any references to the Report Generation Toolkit specifically.
    Thanks,
    Phil
    Solved!
    Go to Solution.

    Hi Christian,
    I do not see that exact option listed, do you mean "user interface"?  I recognize the "Run in UI Thread" option, it's on the Call Library Function Node.
    I checked, and my top-level VI has "same as caller" set, and I believe all my VIs are set to "same as caller".  Are you suggesting I change my top-level VI preferred execution environment to "user interface", or just the logging sub-VIs that use the Report Generation Toolkit?
    Thanks,
    Phil
    Attachments:
    VI_properties.png ‏15 KB

  • "open project was cancelled or the application was unable to load database for..."

    I'm doing a project for my Professional Writing course and I
    have to use RoboHelp to create an online help document. The
    professor provided templates for us to use but when I go to open
    the project file I get the following error: "open project was
    cancelled or the application was unable to load database
    for....(then the directory)"
    I know the project file isn't corrupted because the members
    of my class are using the same one without issue. I tried
    re-downloading the file, I also re-installed the program itself,
    still with no luck. I'm using a Trial Version of RoboHelp 6.0 .
    The only other suggestions I have seen are that I don't have
    edit perms for the system, but it's my personal laptop and I have
    full admin privs. I thought at first that the folder was read-only,
    but when I opened it up all it displays is the little green box in
    the checkbox (which doesn't mean the folder is read-only, it's just
    some stupid windows default, it's only read-only if the box is
    actually checked). I tried making the entire directory read-only
    and then turn it off but still get the same error.
    Any suggestions?

    There's a topic on my site about Opening Projects that
    includes the method of deleting the CPD and XPJ files but I didn't
    cover that as the project is good for everyone else. Anything is
    worth a try at the moment though.
    Another thing to try is to rename the course folder, then
    create a new folder with the same name plus all sub folders. Then
    move the files across. That will ensure the folder properties are
    good and not read only. Yes I know what you said but again anything
    is worth a try.
    Also, in the last post you are saying the directory is not
    read-only. I assume the files are all good?
    Ref my previous post, is it the case that now you are getting
    an error before the original error would have popped up?

  • TS3147 After installing Mountain Lion, I tried to scan from my Canon MX870 and received the message: "MP Navigator EX quit unexpectedly. Click Reopen to open the application again. A report will be sent to Apple,"

    After installing Mountain Lion, I tried to scan from my Canon MX870 and received the message: "MP Navigator EX quit unexpectedly. Click Reopen to open the application again. A report will be sent to Apple,"  This problem happened right after I installed Mountain Lion. I then downloaded Canon's upgraded software and drivers for the MX 870 and the problem was resolved. Now one month later, the problem has returned.

    rjliii wrote:
    Solved problem with original Canon software.  When I downloaded Canon software upgraded for OS X 10.8, I got all by Navigator Ex. Noticed that on Canon's site, the upgraded version is 3.1; my app was 2.1. Upgraded to 3.1 for Nav. Ex, and it works.
    You should still use Image Capture IMHO.  If it was my gear, that's what I would do.  No need to worry about software upgrades.

  • How to see the file at the application server

    HI TO ALL SDNERS ,
                                 THIS IS MY CODE WHERE TO CHECK THE DOWNLOADED FILE AT THE APPLICATION SERVER.IN TCODE AL11 I HAVE SEEN THERE IS NO FILE GETTING CREATED.WHEN TRANSFERRING THE SY-SUBRC VALUE IS ZERO.
    Program Name        : ZME11_BDC.
    Title               : PURCHASE INFORMATION RECORD LOAD PROGRAM
    Program Objective   : THIS PROGRAM READS IN THE PURCHASE
                          INFORMATION FILE. IT CREATES A BDC SESSION TO
                          USE TO LOAD THE PURCHASE INFORMATION RECORDS
                          INTO SAP using the ME11 Transaction.
    REPORT  ZME11_BDC no standard page heading MESSAGE-ID ZHNC line-size 55.
                constants declaration
    constants: c_x value 'X',
               c_sess type apqi-groupid value 'zcustomer',
               c_xd01 type tstc-tcode value 'ME11'.
                  DECLARING VARIABLES
    DATA: V_MSG(255),
          V_ERREC TYPE I,"NO OF FAILED RECORDS
          V_LINES."NO OF RECORDS
           FLAG DECLARATIONS
    DATA: FG_DATA_EXIST VALUE 'X',"CHECK FOR DATA
          FG_SESSION_OPEN VALUE ''.
          STRUCTURES AND INTERNAL TABLE DECLARATIONS
    TYPES :BEGIN OF TY_PIR,
             LIFNR TYPE EINA-LIFNR,
             MATNR TYPE EINA-MATNR,
             EKORG TYPE EINE-EKORG,
             WERKS TYPE EINE-WERKS,
             VERKF TYPE EINA-VERKF,"sales person
             TELF1 TYPE EINA-TELF1,"telephone
             URZLA TYPE EINA-URZLA,"country
             REGIO TYPE EINA-REGIO,"region
             APLFZ(5),"plan deleivery time
             EKGRP TYPE EINE-EKGRP,"purchase group
             NORBM(13),
             NETPR(13),
         END OF TY_PIR.
    DATA : IT_PIR TYPE TABLE OF TY_PIR,
           WA_PIR LIKE LINE OF IT_PIR.
    DATA: BEGIN OF IT_BDCDATA.
    INCLUDE STRUCTURE BDCDATA.
    DATA END OF IT_BDCDATA.
    DATA : BEGIN OF IT_BDCMSG.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA END OF IT_BDCMSG.
                      SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : FNAME TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
                           AT SELECTION ON VALUE REQUEST
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
       FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = FNAME.
                             START OF SELECTION
    START-OF-SELECTION.
    PERFORM F_GET_DATA USING FNAME
                       CHANGING IT_PIR.
    PERFORM F_GENERATE_DATASET USING FNAME
                               CHANGING IT_PIR WA_PIR.
    *&      Form  F_GET_DATA
          text
         -->P_V_FNAME  text
         <--P_IT_PIR  text
    FORM F_GET_DATA  USING    P_FNAME LIKE FNAME
                     CHANGING P_IT_PIR LIKE IT_PIR.
    DATA: LV_FILE TYPE STRING.
    LV_FILE  = FNAME.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = LV_FILE
       FILETYPE                      = 'DAT'
      HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = P_IT_PIR
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF P_IT_PIR IS INITIAL.
    FG_DATA_EXIST = ''.
    ENDIF.
    ENDFORM.                    " F_GET_DATA
    *&      Form  F_GENERATE_DATASET
          text
         -->P_V_FNAME  text
         <--P_IT_PIR  text
    FORM F_GENERATE_DATASET  USING    P_V_FNAME LIKE FNAME
                             CHANGING P_IT_PIR LIKE IT_PIR
                                      P_WA_PIR LIKE WA_PIR.
    MESSAGE I001(ZHNC).
    *OPENING FILE AT THE APPLICATION SERVER FOR WRITING
    OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC  EQ 0.
    MESSAGE I002(ZHNC).
    LOOP AT P_IT_PIR INTO P_WA_PIR.
    SPLIT P_WA_PIR AT '*' INTO P_WA_PIR-LIFNR
                               P_WA_PIR-MATNR
                               P_WA_PIR-EKORG
                               P_WA_PIR-WERKS
                               P_WA_PIR-VERKF
                               P_WA_PIR-TELF1
                               P_WA_PIR-URZLA
                               P_WA_PIR-REGIO
                               P_WA_PIR-APLFZ
                               P_WA_PIR-EKGRP
                               P_WA_PIR-NORBM.
    *TRANSFER THE FILE FROM INTERNAL TABLE TO APPLICATION SERVER
    MESSAGE I003(ZHNC).
    TRANSFER P_WA_PIR TO FNAME.
    ENDLOOP.
    *CLOSING THE FILE AT THE APPLICATION SERVER
    CLOSE DATASET FNAME.
    ENDIF.

    Hello,
    I made a similar program. You can have a look at it.
    *&      Form  write_to_app_server
          text
    -->  p1        text
    <--  p2        text
    FORM write_to_app_server.
    To get filename
      PERFORM get_filename.
    To write into the application server
      OPEN DATASET g_filename_with_path FOR OUTPUT IN TEXT MODE.
      IF sy-subrc = 0.
        LOOP AT <l_table> INTO <l_line>.
          TRANSFER <l_line> TO g_filename_with_path.
        ENDLOOP.
        CLOSE DATASET g_filename_with_path.
      ELSE.
        CLOSE DATASET g_filename_with_path.
      ENDIF.
    To send mail
      PERFORM send_mail.
    ENDFORM.                    " write_to_app_server
    *&      Form  get_filename
          text
    -->  p1        text
    <--  p2        text
    FORM get_filename.
      DATA : l_log_path TYPE  filepath-pathintern
                          VALUE 'Y28M_DOWNLOADS_BACKGROUND' .
      CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
           EXPORTING
                client                     = sy-mandt
                logical_path               = l_log_path
                operating_system           = sy-opsys
                file_name                  = p_fname
           IMPORTING
                file_name_with_path        = g_filename_with_path
           EXCEPTIONS
                path_not_found             = 1
                missing_parameter          = 2
                operating_system_not_found = 3
                file_system_not_found      = 4
                OTHERS                     = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " get_filename
    You may find it useful.
    Regards,
    Karuna.

  • How to delete the record in the file present in the application server?

    Hi,
      I have two questions.
      i) How can I delete a record based on some condition in the recordx in the file that is present in the application server?
      ii) How can I lock the users whiel one user is accessing the file on the application server?
    Thanks in advance.
    Suvan

    Hi,
    If u want a frequent deletion this approach to delete a record from a file will havee unnecesary copy of records from one file to another and deletion of one file and renaming activities.
    Instead what u can do is Add and field del_flag to ur record structure.
    If u want to delete the record from a file just mark this del_flag as 'X'.
    While processing u can have a loop like
    loop at it_XXX where del_flag <> 'X'.
    endloop.
    This will logically delete the record.
    When u r to finish the application at that time only perform this copying / deleting / and renaing activity
    Hope this helps.
    Cheers,
    Nitin

  • Error message when installing iTunes on my PC:  This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that  this is a valid Windows installer package

    Error message when trying to install iTunes on my Pc:
    Using Windows 7, had to replace hard drive.  HELP!!
    This installation package could not be
    opened. Verify that the package exists
    and that you can access it, or contact
    the application vendor to verify that
    this is a valid Windows installer package

    Hello JAH1961,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • LSMW for uploading data in MM01

    Hi,        I have never used LSMW.I have to upload data for material master for MM01 Fields are MATNR MTART LGORT MEINS etc from MARA MARC and MAKT table.I have the records in text file for uploading.                   Could you please tell me which

  • Confused.

    I'm having a problem with my vector of train cars... RailCar = Base Class > Boxcar > PassengerCar (Derived classes) I Initialize the train here: public void readInput()           Scanner keyboard = new Scanner(System.in);           System.out.println

  • Whatsapp update on nokia n8 anna

    Hello, I am using Whatsapp, and there is an update option from with in the app.  When I try it - it asks to close whatsapp, then starts to install, but just hangs.  tried rebooting the phone... I suspect it is because Whatsapp never really closes on

  • Oracle ADF Graph

    Dear Experts, Please tell me the solution of the bar graph in oracle adf. when we create the bar graph from the master details table then this show the error 'please enter at least one numeric data point on the<bars:>edge. Thanks in advance.

  • IP10 - Behaviour of "Start in cycle"

    Hi experts! We have a Maintenance plan where we have Scheduled  Calls every month. We have made several changes in routing and instead of modify the routing of every order generated in order to update the orders we have set status TECO (Technically c