Can anybody post me simple programme of finalize() method ?

i have read as theoretically what is garbage collection and using finalize() method one can achieve but as a student i want to know simple program like we had destructor in c++
thank you

The finalize() method is described in the Object's API documentation.
http://java.sun.com/javase/6/docs/api/java/lang/Object.html
What is noticable from that description is how few guarantees the method makes. My advice would be don't use it.
In particular if you try and use finalize() to clean up resources you will face a couple of problems:
(1) Garbage collection might not ever run.
(2) Across multiple objects, finalize order is not predictable.
A better technique for dealing with the "resources" problem - using the finally keyword and an explicit close() method is described here:
http://java.sun.com/developer/TechTips/2000/tt0124.html

Similar Messages

  • Can anybody post a successful Aggregation Proxy setting?

    Hi,
    Can anybody post a successful Aggregation Proxy setting?
    Every time I visit http://myhostname:8888/aggregationproxy/presenceconsumerws/presenceconsumer, it will prompt to enter a username/ password. But I tried all the posibility, it still didn't work.
    Any body can share the idea?
    Thanks and regards

    Hi Adam,
    Thanks for your kindly reply.
    I tried to provision XDMS user account following the admin guide. But when I visit http://myhost:8888/aggregationproxy/presenceconsumerws/presenceconsumer with the provisioned account, there will be a "Can not find server "page saying "The page cannot be displayed." Can you share your idea on this point?
    Besides, I'm now trying to write presence enabler based on OCMS, to access these presence service endpoint if quite important for me.
    Also, I tried to run the example in the doc "ParlayXdeveloper" provided by Oracle,sometimes it's just not able to access the MyPresenceService.jsp page. There are exceptions on the page. There are also "400 Bad request" errors and "URL http://myhost:8888/*****" not available errors on the OCMS console.
    I will appreciate any of your suggestions.
    Thanks and regards
    Yong

  • How can I post a simple message in the User Forum's page, immediately after logging in ?

    I had earlier asked a question re: including Merriam-Webster online dictionary into the list of search engines in the text area to the right of the location bar. I received a very helpful answer from cor-el, using which, I was able to include both the Dictionary and Thesaurus into the said list.
    I WISH TO THANK core-el SINCERELY FOR THIS HELP.
    The question is as follows:
    How can I post such messages directly in the Users Forum's pge?
    - - S.Rajaram

    what is your requirement can you please confirm.
    Regards
    Shobhit S

  • Please can anybody post answers to these questions

    Hai can anybody resolve these issues
    how to import jar files into DC in webDynpro java?
    how to rectify he corrupted code in the DC, i.e how to to get that code into original form?
    default value of singleton
    what is a Model Node in WebDynpro Jaa
    How can you customize the Portal Page
    Regards
    Srinivas

    Wrong forum

  • Does anybody can give me a simple example about the labview programme calling dll ?

      Does anybody can give me a simple example about the labview programme calling dll ?And the dll is also writed  by using labview .I just want to study  the process of the labview programme calling dll file.Thank you!

    Hi,
    Please click on "Find Examples" in the "Getting Started Window"
     A window named "NI Example Finder" will pop up.
     In this go to "Search" tab
    Type "DLLs"
    You will see a lot of examples. 
    If you're online, you'll see user examples too...

  • Can anybody help with this........I've bought a pack of self adhesive lables with a view to printing them via my printer,  However, I can't find a programme that allows me to do this.  Personnel in the MAC shops don't know either!!  I've a IMAC running on

    I've bought a pack of self adhesive labels that I wanted to print up on my IMAC,running on Snow Leopard.  However, I can't find a programme that will do this, nor can the personnel in the MAC shops.  The labels are stuck on a normal sheet od A4, and I just want to print addresses on them.   Can anybody help?

    Are they Avery Labels? If so there are templates here:
    http://www.avery.com/avery/en_us/Templates-&-Software/Templates

  • AS3 sucks !!! Why can't access a simple movieClip ???

    Hi People,
    Please - it's as simple as that:
    I have a stageand there is a movieClip instance called "obiekt" in it. Inside "obiekt" movieClip there are two other clips. One instance is called "z1" and another one is called "z2".
    Presume I have a event listener in "z2" what in case of mouse rollover calls a function what is supposed to set "z1" movieClip 'visible' property to true.
    But why the hell when I code:
    root.obiekt.z1.visible = true;
    I get this error:
    1119: Access of possibly undefined property obiekt through a reference with static type flash.display:DisplayObject.
    Jesus - what's the hell - scripting a simplest thing in AS3 requires definig some bloody classes, extending other, importing whatever packages... Only to accesss a movieclip on the stage!!! If I were to do the thing this way I would rather learn C++ not Flash. Flash was supposed to simplify multimedia not making it worse!
    Can anybody help me here? It's really urgent !!!
    Rgs,
    Ziggi

    Look into event bubbling.
    I posted an example in this thread yesterday:
    http://forums.adobe.com/thread/433959?tstart=0
    http://muzakdeezign.com/cs4/Surrey-florist-gallery3.fla
    Best is to forget about root and trying to access objects in a "parent".
    It's all about event dispatching.

  • Hi all! I was updating the software on i pad to ios6, update was interrupted(apple update server is unavailable...). iTunes Diagnostics shows that "secure link to I tunes store failed". I use Windows 7 Home Premium 64 bit. Can anybody help please?

    Hi all! I was updating the software on i pad to ios6, update was interrupted(apple update server is unavailable...). iTunes Diagnostics shows that "secure link to I tunes store failed". I use Windows 7 Home Premium 64 bit. Can anybody help please?
    The following was done so far:
    1. Windows Firewall - new rule created for itunes.
    2. iTunes - latest version installed.
    3. LAN setting : automatic detection of proxy is enabled;
    4. iTunes diagnostics shows:
    Microsoft Windows 7 x64 Home Premium Edition (Build 7600)
    TOSHIBA Satellite L655
    iTunes 11.0.2.26
    QuickTime 7.7.3
    FairPlay 2.3.31
    Apple Application Support 2.3.3
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.1.0.13
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 003FB880034B7720
    Current user is not an administrator.
    The current local date and time is 2013-04-23 11:01:14.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Intel(R) HD Graphics
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 11.0.2.26 (x64) is currently running.
    iTunesHelper 11.0.2.26 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:          {1CB5BBC2-8124-4664-899A-CE0A4683E3B4}
    Description:          Realtek RTL8188CE Wireless LAN 802.11n PCI-E NIC
    IP Address:          0.0.0.0
    Subnet Mask:          0.0.0.0
    Default Gateway:          0.0.0.0
    DHCP Enabled:          Yes
    DHCP Server:
    Lease Obtained:          Thu Jan 01 08:00:00 1970
    Lease Expires:          Thu Jan 01 08:00:00 1970
    DNS Servers:
    Adapter Name:          {8140112A-43D0-41D6-8B36-BE146C811173}
    Description:          Atheros AR8152/8158 PCI-E Fast Ethernet Controller (NDIS 6.20)
    IP Address:          10.5.7.196
    Subnet Mask:          255.255.0.0
    Default Gateway:          10.5.0.1
    DHCP Enabled:          Yes
    DHCP Server:          172.18.255.2
    Lease Obtained:          Tue Apr 23 10:14:40 2013
    Lease Expires:          Tue Apr 23 22:14:40 2013
    DNS Servers:          121.97.59.7
                        121.97.59.2
                        121.97.59.3
    Active Connection:          LAN Connection
    Connected:          Yes
    Online:                    Yes
    Using Modem:          No
    Using LAN:          Yes
    Using Proxy:          No
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was unsuccessful.
    The network connection timed out.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    The network connection timed out.
    Last successful iTunes Store access was 2013-03-22 10:05:31.
    @@@. iTunes IS ENABLED THROUGH THE FIREWALL , even though diagnostics says "NOT enabled"

    hours after the first post i somehow got this to work. dont know how, but i do tried the dns clear cache, the clear host file, oh and i did the check automatically detech dns AND THEN se-check it again before i got this to work.

  • I am trying to connect to my friend's wifi, i have a very strong signal indicated on my ipad, but cannot connect to the internet.  Yesterday i connected without any problem, can anybody tell me why i cannot connect today?

    i am trying to connect to my friend's wifi, i have a very strong signal indicated on my ipad, but cannot connect to the internet.  Yesterday i connected without any problem, can anybody tell me why i cannot connect today?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Can ANYBODY help me hotsync using OS 10.4.5?

    I recently upgraded my Mac OS from 10.4.4 to 10.4.5, and now I cannot
    hotsync with my Palm Tungsten E. I uninstalled and reinstalled the
    latest Palm Desktop software, and then I reinstalled the Microsoft
    Entourage Conduit. However, when I hotsync, I get an errror message in
    the HotSync log telling me:
    "Before you can synchronize with the applications on this handheld
    device, you must enable synchronization in the Entourage Conduit
    Settings dialog box. For the latest information on compatibility issues
    and solutions, visit the Office 2004 Web Site synchronization failed"
    This is odd, because synchronization is "enabled" in the Entourage
    Conduit Settings dialog box.
    Surely somebody else must have this problem as well? Can anybody offer any advice? I haven't been able to hotsync in two weeks. Posting to the Palm and Microsoft forums was no help.
    Thanks,
    Chuck

    You are aware that permissions repairs & disk repairs are not the same thing, right? The "Repair Disk" step in Disk Utility attempts to repair file system problems, not the permissions of files in the file system. Disk Warrior is also a disk (file system) repair utility, one that uses a different & more powerful method (rebuilding the file system directory from scratch) than Disk Utility does to fix the file system.
    If neither utility can repair your file system, you must (as the instructions in the first few lines of Disk Utility's First Aid tab tell you) back up & erase the disk volume. This will recreate a fresh file system that should be free of problems & allow you to install the OS, restore your user files from backups, & apply any updates to create a trouble free system.
    If this fails, the most likely cause is even more severe problems with your hard drive than erasing a volume can solve. The next step would be to reformat it, & if that fails to replace the drive.
    Before you consider anything as drastic as erasing anything, make sure your problem is not just with permissions but with the disk -- IOW, with the file system.

  • HT1349 I have recently moved home from the UK to the Cayman Islands, my PC in the UK has been destroyed as it was 240v but my ipod will now not sync with itunes on my new laptop can anybody help as my ipod holds all my music files

    Now with a little more space, I believe this to be a simple fix just not for me! I have recently moved from the UK to the Cayman Islands and there lies the problem,  'voltage'  ....
    My UK PC was 240v and has now been destroyed so when I secured a new laptop 110v and downloaded itunes I was told by 'itunes' as my ipod was linked to another PC it would not/could not sync to my ipod. As the ipod holds ALL my music files this is a major drag. Can anybody tell me how to unassociate my ipod with my old PC so I can sync with my new laptop.
    Regards Rob

    All computers sold in the past 10 years are univeral insofar as voltage is concerned, so it may have been destroyed but not because of voltage. The right thing to do is to restore the backup that you must have made of your old PC to your new laptop. Then you will not lose anything when you sync the phone.

  • Hello! I've downloaded the latest version of iTunes, but since then my iPhone wouldn't sync! Can anybody help me out, please? I have a Windows8

    HI! As I've written on the title, since I've downloaded the iTunes latest version, I'm not able to sync my iPhone5 anymore... it just doesn't sync. I've already checked the usb cable, and uninstalled the software and downloaded again... and it's just the same. I have a Window 8 and I'm not receiving a running error problem... so... Can anybody over there, help me, please? I will really appreciate it. Thank you.

    Yes reinstalled itunes a couple of days ago but got it sorted now thanks, the problem was that when i wiped my computer last week and reinstalled everything using the discs the free McAfee anti virus that the computer came with was still in my all programmes list although i aren't using it. This morning i tried unistalling that (didn't think it would make any difference as the programme wasn't active) once uninstalled i pluged the ipod in and hey presto it is now recognised by itunes, THANK GOODNESS. So panick over for now, thank you very much.

  • HT1386 I have an ipod nano and would like to sync it to a new computer but when I try to do it, it tells me that i will loose all my music and pictutes in my nano to be replaced with what I have on itunes.  can anybody help?

    I have an ipod nano and would like to sync it to a new computer but when I try to do it, it tells me that i will loose all my music and pictutes in my nano to be replaced with what I have on itunes.  can anybody help?

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    Basically you will have to transfer its contents to the new computer and then restore the iPod and then resync. An iPod can only sync to one iTunes library.
    BTW you posted in the iPod touch forum.

  • A Problem with the JavaScript Code can anybody help me

    Hi every body,
    I prepared a html page using the following code, which i grab it from some web site, and used it in my web project,
    but the code that is not working and it is showing some javascript error, can anybody correct it for me please, the code is as follows
    <html>
    <head>
    <title>Contact Form</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    // CSS goes here
    </style>
    <script language="JavaScript">
    function checkForm()
       var cname, cemail, csubject, cmessage;
       with(window.document.msgform)
          cname    = sname;
          cemail   = email;
          csubject = subject;
          cmessage = message;
       if(trim(cname.value) == '')
          alert('Please enter your name');
          cname.focus();
          return false;
       else if(trim(cemail.value) == '')
          alert('Please enter your email');
          cemail.focus();
          return false;
       else if(!isEmail(trim(cemail.value)))
          alert('Email address is not valid');
          cemail.focus();
          return false;
       else if(trim(csubject.value) == '')
          alert('Please enter message subject');
          csubject.focus();
          return false;
       else if(trim(cmessage.value) == '')
          alert('Please enter your message');
          cmessage.focus();
          return false;
       else
          cname.value    = trim(cname.value);
          cemail.value   = trim(cemail.value);
          csubject.value = trim(csubject.value);
          cmessage.value = trim(cmessage.value);
          return true;
    function trim(str)
       return str.replace(/^\s+|\s+$/g,'');
    function isEmail(str)
       var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|
    ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|
    bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|
    ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|
    dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|
    gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|
    hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|
    kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|
    ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|
    mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|
    nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|
    re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|
    su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|
    ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|
    zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
    return regex.test(str);
    </script>
    </head>
    <body>
    <form method="post" name="msgform">
    <table width="500" border="0" align="center" cellpadding="2" cellspacing="1" class="maincell">
    <tr>
    <td width="106">Your Name</td>
    <td width="381"><input name="sname" type="text" class="box" id="sname" size="30"></td>
    </tr>
    <tr>
    <td>Your Email</td>
    <td>
    <input name="email" type="text" class="box" id="email" size="30">
    </td></tr>
    <tr>
    <td>Subject</td>
    <td><input name="subject" type="text" class="box" id="subject" size="30"></td>
    </tr>
    <tr>
    <td>Message</td>
    <td><textarea name="message" cols="55" rows="10" wrap="OFF" class="box" id="message"></textarea></td>
    </tr>
    <tr align="center">
    <td colspan="2"><input name="send" type="submit" class="bluebox" id="send" value="Send Message" onClick="return checkForm();"></td>
    </tr>
    <tr align="center">
    <td colspan="2"> </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    function isEmail(str)
       var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|
    ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|
    bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|
    ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|
    dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|
    gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|
    hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|
    kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|
    ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|
    mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|
    nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|
    re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|
    su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|
    ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|
    zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
    return regex.test(str);
    Remove all enter sequences inbetween lines in the above function. It vl work.
    All d Best :-)

  • After add a field catalog,how can I post the field value to IPC??

    Hi,experts,I've created a field catalog "ZPRD_CHANGED"(I  ZPRD_CHANGED D D ZCHG_FLAG(CHAR1))in IMG pricing,and also assigned the value to it
    in method "ITEM_COMMUNICATION_STRUCTURE" in mplementation  "ZCRM_COND_COM_BADI" of BADI "CRM_COND_COM_BADI".
    LIke this:
    DATA: lr_obj type ref to ZL_BT115IT__ITEMS_CN00.
      create object lr_obj.
      CS_ACS_I_COM-ZPRD_CHANGED = lr_obj->zprd_chg_flg.
    After that,in the java codings of user exit in IPC,I add below codings:
    public BigDecimal overwriteConditionValue(
         IPricingItemUserExit pricingItem,
         IPricingConditionUserExit pricingCondition)
      String prodchanged = pricingItem.getAttributeValue("ZPRD_CHANGED");
    But it seems that it doesn't work,variable "productchanged" can not get the value posted from method "ITEM_COMMUNICATION_STRUCTURE" in mplementation  "ZCRM_COND_COM_BADI".
    What's the problem?Can anybody suggest??
    Thanks in advance.
    Jerry.

    Hi Jerry,
    did you register the attribute in the customizing for the user exits? Transaction /SAPCND/UEASS. You need to register the attribute on Implementations and Formula level.
    Best Regards,
    Michael
    P.S. Guess you are already aware of the userexit guide attached to note 809820.

Maybe you are looking for

  • Changing WT to GL mapping

    Dear All I am working in a group of companies and there is a request to change the GL mapping for few wage-types for one particular company.  I am new to this particular area of SAP HR, but I am learning.  By far what I have understood that WT are ma

  • Initial Load Error - No generation performed. Call transaction GN_START

    Hi Folks, We are doing middleware configuration for data migration between R3->CRM.Have followed "Best Practies" configuration Guide. System Using; CRM 2007 and ECC6.0 Issue While performing initial load, system is throwing the error as 001- No gener

  • Sine.vi clicking when used for realtime output with DAQ Assisstant.

    What I'm Trying to Do: Stepped sine analysis. The program outputs from the DAQ device each of the frequencies entered into the array constant on the left (see VI) in order, taking a measurement of the magnitude of the signal input to the DAQ device f

  • Alter table partition based on date and status

    Hi! I have a strange scenario where in 100,000 to 500,000 records are created every day and records are to be maintained for 3 yrs. So to manage this table we have it partitioned based on date (so every day one new partition is created). And any part

  • Does the SQL Server 2012 Express Advance include the Business Intelligence tools?

    I wondered if those tools are included. If so, what's the difference between the express and full version? I only need this for educational purposes.