Hi i need the explanation for the code below.

public class RMIClient_CipherKey
public RMIClient_CipherKey()
public boolean changeKey(String s)
int ai[] = new int[s.length()];
for(int i = 0; i < ai.length; i++)
switch(s.charAt(i))
case 65: // 'A'
ai[i] = 1;
break;
case 66: // 'B'
ai[i] = 2;
break;
case 67: // 'C'
ai[i] = 3;
break;
case 68: // 'D'
ai[i] = 4;
break;
case 69: // 'E'
ai[i] = 5;
break;
case 70: // 'F'
ai[i] = 6;
break;
case 71: // 'G'
ai[i] = 7;
break;
case 72: // 'H'
ai[i] = 8;
break;
case 73: // 'I'
ai[i] = 9;
break;
case 74: // 'J'
ai[i] = 10;
break;
case 75: // 'K'
ai[i] = 11;
break;
case 76: // 'L'
ai[i] = 12;
break;
case 77: // 'M'
ai[i] = 13;
break;
case 78: // 'N'
ai[i] = 14;
break;
case 79: // 'O'
ai[i] = 15;
break;
case 80: // 'P'
ai[i] = 16;
break;
case 81: // 'Q'
ai[i] = 17;
break;
case 82: // 'R'
ai[i] = 18;
break;
case 83: // 'S'
ai[i] = 19;
break;
case 84: // 'T'
ai[i] = 20;
break;
case 85: // 'U'
ai[i] = 21;
break;
case 86: // 'V'
ai[i] = 22;
break;
case 87: // 'W'
ai[i] = 23;
break;
case 88: // 'X'
ai[i] = 24;
break;
case 89: // 'Y'
ai[i] = 25;
break;
case 90: // 'Z'
ai[i] = 26;
break;
case 32: // ' '
ai[i] = 27;
break;
case 33: // '!'
case 34: // '"'
case 35: // '#'
case 36: // '$'
case 37: // '%'
case 38: // '&'
case 39: // '\''
case 40: // '('
case 41: // ')'
case 42: // '*'
case 43: // '+'
case 44: // ','
case 45: // '-'
case 46: // '.'
case 47: // '/'
case 48: // '0'
case 49: // '1'
case 50: // '2'
case 51: // '3'
case 52: // '4'
case 53: // '5'
case 54: // '6'
case 55: // '7'
case 56: // '8'
case 57: // '9'
case 58: // ':'
case 59: // ';'
case 60: // '<'
case 61: // '='
case 62: // '>'
case 63: // '?'
case 64: // '@'
default:
key = defaultKey;
return false;
if(ai.length > 0)
key = ai;
else
return false;
return true;
public String encryptLine(String s)
String s1 = "";
int i = 0;
for(int j = 0; j < s.length(); j++)
int k = s.charAt(j) + key;
if(k > 126)
k -= 95;
s1 = s1 + (char)k;
if(++i >= key.length)
i = 0;
return s1;
public String decryptLine(String s)
String s1 = "";
int i = 0;
for(int j = 0; j < s.length(); j++)
int k = s.charAt(j) - key[i];
if(k < 32)
k += 95;
s1 = s1 + (char)k;
if(++i >= key.length)
i = 0;
return s1;
private final int defaultKey[] = {
9, 27, 12, 15, 22, 5, 27, 10, 1, 22,
1
private int key[] = {
9, 27, 12, 15, 22, 5, 27, 10, 1, 22,
1

Hi.
The first method is confusing as most of it doesn't do anything. You could replace it with a one liner. ;)
It returns true if and only if the string has one or more characters and none of those characters are one of the special characters. The special characters include digits but not letters such as [ ] { } \
The second and third methods implement a simple rotation encryption for up to 11 character strings. (Longer strings result in an ArrayIndexOutOfBoundException)

Similar Messages

  • I need the code to delete record in the database not in the form???

    I need the code to delete record in the database not in the form...
    because when i execute a form always insert the datas in the data base but i want insert value on a text file and delete in the data base the record whith this value of text file.
    i'm spanish an my english is bad sorry.
    thank, javier

    Well, I fail to understand why you want to complicate easy things, but anyway you can do that by using TEXT_IO within Forms to create text file (see Forms builder help), and UTL_FILE package to read it within Pl/Sql : you could create a stored procedure, and call it from Forms passing the file name as parameter. See UTL_FILE documentation

  • Could someone show me the correct way to use the Vector in the code below?

    Would someone mind explaining to me why I am getting a NullPointerException when I run the code below? I initialized the vector in the constructor so it should follow through the whole class right? What would be the right way to do it?
    import java.util.Vector;
    public class AlumniDirectory
        private String faculty;
        private static Vector alumni;
        /** Constructor reads faculty Name and inits new vector **/
        public AlumniDirectory(String facultyIn)
            Vector alumni = new Vector();      
            faculty = facultyIn;      
        /** Method adds a new Alumni to the list **/
        public void addAlumnus(Object o)
            alumni.addElement(o);
        /** Method removes a Alumni from the list **/
        public void removeAlumnus(Object o)
            alumni.removeElement(o);      
        /** Method searches for Alumni by last name and graduation year **/
        public void searchAlumnus(String lastNameIn, int years)
          // Code will go here eventually  
        }

    And probably you want a list of Alumni not a vector of Objects. So try this:
    import java.util.List;
    import java.util.ArrayList;
    public class AlumniDirectory{
        private final String faculty;
        private final List<Alumnus> alumni = new ArrayList<Alumnus>();
        /** Constructor reads faculty Name and inits new vector **/
        public AlumniDirectory(String facultyIn)
            faculty = facultyIn;      
        /** Method adds a new Alumni to the list **/
        public void addAlumnus(Alumnus alumnus)
            alumni.add(alumnus));
        /** Method removes a Alumni from the list **/
        public void removeAlumnus(Alumnus alumnus)
            alumni.remove(alumnus);      
        /** Method searches for Alumni by last name and graduation year **/
        public void searchAlumnus(String lastNameIn, int years)
          // Code will go here eventually  
        }-Puce
    Edited by: Puce on Oct 23, 2007 7:43 PM
    Edited by: Puce on Oct 23, 2007 7:46 PM

  • AS3 how to put the buttons always on top of the external swf in the code below?

    how to put the buttons always on top of the external swf in the code below?  I am  beginner use to as3, can someone help me?
    thanks, for all!!
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

    use:
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • Workshop terminates intermittently with the code below. Help!

    I need help/pointer to what is causing this nightmare. This thing terminates so often that its becoming predictable. I cant say of one thing am doing at the time of termination. It could just be in the middle of test run, or just plain old browsing or button click. Hopefully the info below can help since that's the only thing left on exit.
    JVM terminated. Exit code=1 C:/bea/jdk150_11/jre/bin/javaw.exe
    -Xms384m -Xmx768m
    -XX:MaxPermSize=256m
    -Dweblogic.home=C:/bea/wlserver_10.0 -Dosgi.install.area=C:\bea\tools\eclipse32\eclipse
    -Dosgi.instance.area.default=C:/bea/user_projects/w4WP_workspaces/Untitled
    -Dosgi.configuration.area=C:/bea/workshop_10.0/workshop4WP/eclipse/configuration
    -Declipse.product=com.bea.workshop.product.wl.workshop
    -Dosgi.splashPath=file: C:/bea/workshop_10.0/workshop4WP/eclipse/plugins/com.bea.workshop.product.wl_1.0.0
    -DprodMode=preProduction-jar C:\bea\workshop_10.0\workshop4WP\startup.jar
    -0s win32
    -ws win32
    -arch x86
    -launcher C:\bea\workshop_10.0\workshop4WP\workshop4WP.exe
    -name Workshop4WP
    -showsplash 600
    -exitdata 154_64
    -vm C:/bea/jdk150_11/jre/bin/javaw.exe
    -vmargs -Xms384m -Xmx768m
    -XX:MaxPermSize=256m
    -Dweblogic.home=C:/bea/wlserver_10.0
    -Dosgi.install.area=C:\bea\tools\eclipse32\eclipse
    -Dosgi.instance.area.default=C:/bea/user_projects/w4WP_workspaces/Untitled -Dosgi.configuration.area=C:/bea/workshop_10.0/workshop4WP/eclipse/configuration -Declipse.product=com.bea.workshop.product.wl.workshop
    -Dosgi.splashPath=file: C:/bea/workshop_10.0/workshop4WP/eclipse/plugins/com.bea.workshop.product.wl_1.0.0
    -DprodMode=preProduction-jar C:\bea\workshop_10.0\workshop4WP\startup.jars

    Hey Kal, am sorry this problem is still persistent but not as much: Here is a log. Hopefully someone can make meaning out of it:
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x743bac38, pid=8104, tid=7020
    # JRE version: 6.0_21-b06
    # Java VM: Java HotSpot(TM) Client VM (17.0-b16 mixed mode windows-x86 )
    # Problematic frame:
    # C [COMCTL32.dll+0xaac38]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x01b9a000): JavaThread "main" [_thread_in_native, id=7020, stack(0x00260000,0x002b0000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x534d0f1c
    Registers:
    EAX=0x1ed7db2a, EBX=0x002147a0, ECX=0x1efd3046, EDX=0x00215980
    ESP=0x002aeb3c, EBP=0x002aeb6c, ESI=0x534d0f00, EDI=0x534d0f00
    EIP=0x743bac38, EFLAGS=0x00010202
    Top of Stack: (sp=0x002aeb3c)
    0x002aeb3c: 00215980 002147a0 743baa72 002f11e8
    0x002aeb4c: 002aeb5c 00000000 00000005 743baa7d
    0x002aeb5c: 00000000 00000000 00000263 1ed7db2a
    0x002aeb6c: 002aeb94 743cc46e 00215980 534d0f00
    0x002aeb7c: 00000000 00000002 002147a0 00215980
    0x002aeb8c: 00000009 00000005 002aec18 743b9b55
    0x002aeb9c: 5904b938 00000001 002147a0 00000003
    0x002aebac: 00000000 002aec94 0000110b 00000000
    Instructions: (pc=0x743bac38)
    0x743bac28: c2 45 74 33 c5 89 45 fc 8b 55 08 53 56 8b 75 0c
    0x743bac38: 0f b7 5e 1c 33 5d 10 89 55 d8 23 5d 14 75 12 8b
    Stack: [0x00260000,0x002b0000], sp=0x002aeb3c, free space=13a002ae658k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [COMCTL32.dll+0xaac38]
    C [COMCTL32.dll+0xbc46e]
    C [COMCTL32.dll+0xa9b55]
    C [USER32.dll+0x186ef]
    C [USER32.dll+0x18876]
    C [USER32.dll+0x143cf]
    C [USER32.dll+0x143f5]
    C [swt-win32-3235.dll+0x1346]
    J org.eclipse.swt.internal.win32.OS.CallWindowProcW(IIIII)I
    J org.eclipse.swt.widgets.Tree.callWindowProc(IIII)I
    J org.eclipse.swt.widgets.Control.windowProc(IIII)I
    J org.eclipse.swt.widgets.Tree.windowProc(IIII)I
    J org.eclipse.swt.widgets.Display.windowProc(IIII)I
    v ~StubRoutines::call_stub
    V [jvm.dll+0xf3abc]
    V [jvm.dll+0x1865b1]
    V [jvm.dll+0xf3b3d]
    V [jvm.dll+0xfd5cf]
    V [jvm.dll+0xff3f7]
    C [swt-win32-3235.dll+0x2ac96]
    C [swt-win32-3235.dll+0x1f0c1]
    C [USER32.dll+0x18876]
    C [USER32.dll+0x17631]
    C [USER32.dll+0x17695]
    C [swt-win32-3235.dll+0xba46]
    J org.eclipse.swt.internal.win32.OS.SendMessage(IIII)I
    j org.eclipse.swt.widgets.Tree.setSelection([Lorg/eclipse/swt/widgets/TreeItem;)V+144
    j org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.doAttemptSelectionToWidget(Lorg/eclipse/jface/viewers/ISelection;Z)Lorg/eclipse/jface/viewers/ISelection;+490
    j org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.attemptSelection(Z)V+19
    j org.eclipse.debug.internal.ui.viewers.AsynchronousViewer$1.runInUIThread(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+8
    j org.eclipse.ui.progress.UIJob$1.run()V+51
    J org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Z)Z
    J org.eclipse.swt.widgets.Display.readAndDispatch()Z
    J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
    j org.eclipse.ui.internal.Workbench.runUI()I+225
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+76
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
    v ~StubRoutines::call_stub
    V [jvm.dll+0xf3abc]
    V [jvm.dll+0x1865b1]
    V [jvm.dll+0xf3b3d]
    V [jvm.dll+0x1a0ebb]
    V [jvm.dll+0x1a18d6]
    V [jvm.dll+0x11f423]
    C [java.dll+0x7127]
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    V [jvm.dll+0xf3abc]
    V [jvm.dll+0x1865b1]
    V [jvm.dll+0xf3b3d]
    V [jvm.dll+0xfd385]
    V [jvm.dll+0x104fdd]
    C [javaw.exe+0x2155]
    C [javaw.exe+0x8614]
    C [kernel32.dll+0x51194]
    C [ntdll.dll+0x5b495]
    C [ntdll.dll+0x5b468]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J org.eclipse.swt.internal.win32.OS.CallWindowProcW(IIIII)I
    J org.eclipse.swt.widgets.Tree.callWindowProc(IIII)I
    J org.eclipse.swt.widgets.Control.windowProc(IIII)I
    J org.eclipse.swt.widgets.Tree.windowProc(IIII)I
    J org.eclipse.swt.widgets.Display.windowProc(IIII)I
    v ~StubRoutines::call_stub
    J org.eclipse.swt.internal.win32.OS.SendMessageW(IIII)I
    J org.eclipse.swt.internal.win32.OS.SendMessage(IIII)I
    j org.eclipse.swt.widgets.Tree.setSelection([Lorg/eclipse/swt/widgets/TreeItem;)V+144
    j org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.doAttemptSelectionToWidget(Lorg/eclipse/jface/viewers/ISelection;Z)Lorg/eclipse/jface/viewers/ISelection;+490
    j org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.attemptSelection(Z)V+19
    j org.eclipse.debug.internal.ui.viewers.AsynchronousViewer$1.runInUIThread(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+8
    j org.eclipse.ui.progress.UIJob$1.run()V+51
    J org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Z)Z
    J org.eclipse.swt.widgets.Display.readAndDispatch()Z
    J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
    j org.eclipse.ui.internal.Workbench.runUI()I+225
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+76
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x5a577c00 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=4008, stack(0x5afa0000,0x5aff0000)]
    0x5a577800 JavaThread "Timer-4" daemon [_thread_blocked, id=2164, stack(0x58980000,0x589d0000)]
    0x5a577000 JavaThread "Timer-1" daemon [_thread_blocked, id=7300, stack(0x5d770000,0x5d7c0000)]
    0x5a576c00 JavaThread "Timer-0" daemon [_thread_blocked, id=4616, stack(0x5d720000,0x5d770000)]
    0x5a5cc400 JavaThread "org.eclipse.jdt.debug: JDI Event Dispatcher" daemon [_thread_blocked, id=7220, stack(0x5d680000,0x5d6d0000)]
    0x5a5c1400 JavaThread "ServerConnection" [_thread_in_native, id=2572, stack(0x5b160000,0x5b1b0000)]
    0x5a5cbc00 JavaThread "Packet Send Manager" daemon [_thread_blocked, id=5512, stack(0x5d630000,0x5d680000)]
    0x5a5cb800 JavaThread "Packet Receive Manager" daemon [_thread_in_native, id=2756, stack(0x5d5e0000,0x5d630000)]
    0x5a5cb000 JavaThread "Worker-31" [_thread_blocked, id=8160, stack(0x5d590000,0x5d5e0000)]
    0x5a796c00 JavaThread "Worker-30" [_thread_blocked, id=4656, stack(0x5d540000,0x5d590000)]
    0x5a796400 JavaThread "Worker-29" [_thread_blocked, id=5840, stack(0x5d4f0000,0x5d540000)]
    0x5a796000 JavaThread "Worker-28" [_thread_blocked, id=7660, stack(0x5d4a0000,0x5d4f0000)]
    0x5a795800 JavaThread "Worker-27" [_thread_blocked, id=4304, stack(0x5d450000,0x5d4a0000)]
    0x5a795400 JavaThread "Worker-26" [_thread_blocked, id=3152, stack(0x5d400000,0x5d450000)]
    0x5a5c2c00 JavaThread "Worker-25" [_thread_blocked, id=8004, stack(0x5d3b0000,0x5d400000)]
    0x583fb400 JavaThread "Process monitor" daemon [_thread_in_native, id=512, stack(0x5b090000,0x5b0e0000)]
    0x5a315000 JavaThread "Input Stream Monitor" daemon [_thread_blocked, id=6880, stack(0x5aff0000,0x5b040000)]
    0x5a318400 JavaThread "Output Stream Monitor" daemon [_thread_in_native, id=4208, stack(0x59b00000,0x59b50000)]
    0x5a316000 JavaThread "Output Stream Monitor" daemon [_thread_in_native, id=6252, stack(0x587d0000,0x58820000)]
    0x583f9c00 JavaThread "Worker-24" [_thread_blocked, id=7352, stack(0x5af30000,0x5af80000)]
    0x5a317800 JavaThread "Worker-23" daemon [_thread_blocked, id=4120, stack(0x59b50000,0x59ba0000)]
    0x5a5c2000 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=3460, stack(0x58820000,0x58870000)]
    0x5a5c2800 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=6668, stack(0x5b040000,0x5b090000)]
    0x5a318000 JavaThread "Worker-19" [_thread_blocked, id=1204, stack(0x59d20000,0x59d70000)]
    0x5a316800 JavaThread "Worker-17" [_thread_blocked, id=7472, stack(0x59150000,0x591a0000)]
    0x5a315400 JavaThread "Worker-16" [_thread_blocked, id=6464, stack(0x59100000,0x59150000)]
    0x583fcc00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1392, stack(0x5ae60000,0x5aeb0000)]
    0x583da400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=6480, stack(0x59da0000,0x59df0000)]
    0x5835d800 JavaThread "Java indexing" daemon [_thread_blocked, id=5632, stack(0x59cd0000,0x59d20000)]
    0x560b0000 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=5360, stack(0x563f0000,0x56440000)]
    0x560aec00 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=7616, stack(0x563a0000,0x563f0000)]
    0x56076400 JavaThread "State Data Manager" daemon [_thread_blocked, id=4336, stack(0x56350000,0x563a0000)]
    0x01a89000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4440, stack(0x55f20000,0x55f70000)]
    0x01a7ec00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3060, stack(0x55ed0000,0x55f20000)]
    0x01a7dc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=6620, stack(0x55e80000,0x55ed0000)]
    0x01a7ac00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6308, stack(0x55e30000,0x55e80000)]
    0x01a4f000 JavaThread "Finalizer" daemon [_thread_blocked, id=7464, stack(0x55de0000,0x55e30000)]
    0x01a4a400 JavaThread "Reference Handler" daemon [_thread_blocked, id=7996, stack(0x55d90000,0x55de0000)]
    =>0x01b9a000 JavaThread "main" [_thread_in_native, id=7020, stack(0x00260000,0x002b0000)]
    Other Threads:
    0x01a47800 VMThread [stack: 0x003b0000,0x00400000] [id=6328]
    0x01aa3c00 WatcherThread [stack: 0x55f70000,0x55fc0000] [id=7052]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 314560K, used 145265K [0x03ba0000, 0x190f0000, 0x190f0000)
    eden space 279616K, 45% used [0x03ba0000, 0x0b895cd8, 0x14cb0000)
    from space 34944K, 49% used [0x16ed0000, 0x17fb6918, 0x190f0000)
    to space 34944K, 0% used [0x14cb0000, 0x14cb0000, 0x16ed0000)
    tenured generation total 699072K, used 86918K [0x190f0000, 0x43ba0000, 0x43ba0000)
    the space 699072K, 12% used [0x190f0000, 0x1e5d1858, 0x1e5d1a00, 0x43ba0000)
    compacting perm gen total 65024K, used 64937K [0x43ba0000, 0x47b20000, 0x53ba0000)
    the space 65024K, 99% used [0x43ba0000, 0x47b0a6f0, 0x47b0a800, 0x47b20000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00424000      C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe
    0x77380000 - 0x774bc000      C:\Windows\SYSTEM32\ntdll.dll
    0x76340000 - 0x76414000      C:\Windows\system32\kernel32.dll
    0x756c0000 - 0x7570a000      C:\Windows\system32\KERNELBASE.dll
    0x75b10000 - 0x75bb0000      C:\Windows\system32\ADVAPI32.dll
    0x75dc0000 - 0x75e6c000      C:\Windows\system32\msvcrt.dll
    0x75d50000 - 0x75d69000      C:\Windows\SYSTEM32\sechost.dll
    0x772d0000 - 0x77371000      C:\Windows\system32\RPCRT4.dll
    0x75c80000 - 0x75d49000      C:\Windows\system32\USER32.dll
    0x761c0000 - 0x7620e000      C:\Windows\system32\GDI32.dll
    0x76000000 - 0x7600a000      C:\Windows\system32\LPK.dll
    0x75bb0000 - 0x75c4d000      C:\Windows\system32\USP10.dll
    0x75c60000 - 0x75c7f000      C:\Windows\system32\IMM32.DLL
    0x76210000 - 0x762dc000      C:\Windows\system32\MSCTF.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\msvcr71.dll
    0x6d8b0000 - 0x6db57000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\client\jvm.dll
    0x73bd0000 - 0x73c02000      C:\Windows\system32\WINMM.dll
    0x75400000 - 0x7544b000      C:\Windows\system32\apphelp.dll
    0x6d860000 - 0x6d86c000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\verify.dll
    0x6d3e0000 - 0x6d3ff000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.dll
    0x6d340000 - 0x6d348000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\hpi.dll
    0x76010000 - 0x76015000      C:\Windows\system32\PSAPI.DLL
    0x6d8a0000 - 0x6d8af000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\zip.dll
    0x74f30000 - 0x74f46000      C:\Windows\system32\CRYPTSP.dll
    0x74c70000 - 0x74cab000      C:\Windows\system32\rsaenh.dll
    0x74e30000 - 0x74e47000      C:\Windows\system32\USERENV.dll
    0x754d0000 - 0x754db000      C:\Windows\system32\profapi.dll
    0x75450000 - 0x7545c000      C:\Windows\system32\CRYPTBASE.dll
    0x6d6c0000 - 0x6d6d3000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\net.dll
    0x76630000 - 0x76665000      C:\Windows\system32\WS2_32.dll
    0x76670000 - 0x76676000      C:\Windows\system32\NSI.dll
    0x74ef0000 - 0x74f2c000      C:\Windows\system32\mswsock.dll
    0x75040000 - 0x75046000      C:\Windows\System32\wship6.dll
    0x732f0000 - 0x73300000      C:\Windows\system32\NLAapi.dll
    0x74cb0000 - 0x74cf4000      C:\Windows\system32\DNSAPI.dll
    0x71a20000 - 0x71a28000      C:\Windows\System32\winrnr.dll
    0x71a10000 - 0x71a20000      C:\Windows\system32\napinsp.dll
    0x719d0000 - 0x719e2000      C:\Windows\system32\pnrpnsp.dll
    0x74900000 - 0x74905000      C:\Windows\System32\wshtcpip.dll
    0x730f0000 - 0x7310c000      C:\Windows\system32\IPHLPAPI.DLL
    0x730e0000 - 0x730e7000      C:\Windows\system32\WINNSI.DLL
    0x71f60000 - 0x71f66000      C:\Windows\system32\rasadhlp.dll
    0x72c10000 - 0x72c48000      C:\Windows\System32\fwpuclnt.dll
    0x6d6e0000 - 0x6d6e9000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\nio.dll
    0x56620000 - 0x56672000      C:\bea\workshop_10.0\workshop4WP\eclipse\configuration\org.eclipse.osgi\bundles\249\1\.cp\swt-win32-3235.dll
    0x76420000 - 0x7657c000      C:\Windows\system32\ole32.dll
    0x74310000 - 0x744ae000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\COMCTL32.dll
    0x77550000 - 0x775a7000      C:\Windows\system32\SHLWAPI.dll
    0x765b0000 - 0x7662b000      C:\Windows\system32\comdlg32.dll
    0x76680000 - 0x772c9000      C:\Windows\system32\SHELL32.dll
    0x774c0000 - 0x7754f000      C:\Windows\system32\OLEAUT32.dll
    0x75e70000 - 0x75f64000      C:\Windows\system32\WININET.dll
    0x75c50000 - 0x75c53000      C:\Windows\system32\Normaliz.dll
    0x757d0000 - 0x75905000      C:\Windows\system32\urlmon.dll
    0x755a0000 - 0x756bc000      C:\Windows\system32\CRYPT32.dll
    0x75540000 - 0x7554c000      C:\Windows\system32\MSASN1.dll
    0x75910000 - 0x75b09000      C:\Windows\system32\iertutil.dll
    0x63ae0000 - 0x63b01000      C:\Windows\system32\MSVFW32.dll
    0x742d0000 - 0x74310000      C:\Windows\system32\uxtheme.dll
    0x73ea0000 - 0x73eb3000      C:\Windows\system32\dwmapi.dll
    0x562f0000 - 0x562f8000      C:\bea\workshop_10.0\workshop4WP\eclipse\configuration\org.eclipse.osgi\bundles\54\1\.cp\os\win32\x86\localfile_1_0_0.dll
    0x725e0000 - 0x7261c000      C:\Windows\system32\oleacc.dll
    0x566e0000 - 0x566f3000      C:\bea\workshop_10.0\workshop4WP\eclipse\configuration\org.eclipse.osgi\bundles\249\1\.cp\swt-gdip-win32-3235.dll
    0x74140000 - 0x742d0000      C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16385_none_72fc7cbf861225ca\gdiplus.dll
    0x754c0000 - 0x754ce000      C:\Windows\system32\RpcRtRemote.dll
    0x75f70000 - 0x75ff3000      C:\Windows\system32\CLBCatQ.DLL
    0x67740000 - 0x6776e000      C:\Windows\system32\mlang.dll
    0x6d0b0000 - 0x6d1fa000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\awt.dll
    0x72640000 - 0x72691000      C:\Windows\system32\WINSPOOL.DRV
    0x6d2e0000 - 0x6d334000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\fontmanager.dll
    0x68360000 - 0x68365000      C:\Windows\system32\msimg32.dll
    0x72a90000 - 0x72a9d000      C:\Windows\system32\dhcpcsvc6.DLL
    0x72a70000 - 0x72a82000      C:\Windows\system32\dhcpcsvc.DLL
    0x5c530000 - 0x5cfae000      C:\Windows\System32\ieframe.dll
    0x75460000 - 0x754bf000      C:\Windows\system32\SXS.DLL
    0x753e0000 - 0x753fa000      C:\Windows\system32\SspiCli.dll
    0x64340000 - 0x648f5000      C:\Windows\System32\mshtml.dll
    0x6a3f0000 - 0x6a41a000      C:\Windows\System32\msls31.dll
    0x749b0000 - 0x749b9000      C:\Windows\System32\VERSION.dll
    0x74980000 - 0x749a1000      C:\Windows\system32\ntmarta.dll
    0x75d70000 - 0x75db5000      C:\Windows\system32\WLDAP32.dll
    0x64330000 - 0x6433b000      C:\Windows\system32\msimtf.dll
    VM Arguments:
    jvm_args: -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.home=C:/bea/wlserver_10.0 -Dosgi.install.area=C:\bea\tools\eclipse32\eclipse -Dosgi.instance.area.default=C:/bea/user_projects/w4WP_workspaces/Untitled -Dosgi.configuration.area=C:/bea/workshop_10.0/workshop4WP/eclipse/configuration -Declipse.product=com.bea.workshop.product.wl.workshop -Dosgi.splashPath=file:C:/bea/workshop_10.0/workshop4WP/eclipse/plugins/com.bea.workshop.product.wl_1.0.0 -DprodMode=preProduction
    java_command: C:\bea\workshop_10.0\workshop4WP\startup.jar -os win32 -ws win32 -arch x86 -launcher C:\bea\workshop_10.0\workshop4WP\workshop4WP.exe -name Workshop4WP -showsplash 600 -exitdata 1ba4_64 -vm C:/bea/jrockit_150_11/bin/javaw.exe -vm C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe -vmargs -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.home=C:/bea/wlserver_10.0 -Dosgi.install.area=C:\bea\tools\eclipse32\eclipse -Dosgi.instance.area.default=C:/bea/user_projects/w4WP_workspaces/Untitled -Dosgi.configuration.area=C:/bea/workshop_10.0/workshop4WP/eclipse/configuration -Declipse.product=com.bea.workshop.product.wl.workshop -Dosgi.splashPath=file:C:/bea/workshop_10.0/workshop4WP/eclipse/plugins/com.bea.workshop.product.wl_1.0.0 -DprodMode=preProduction -jar C:\bea\workshop_10.0\workshop4WP\startup.jar
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\bea\jrockit_150_11
    CLASSPATH=.;C:\bea\modules\org.apache.ant_1.6.5\lib;C:\src\bea\workspaces\AlibrisDev;C:\src\bea\workspaces\AlibrisDev\AlibrisEar\EarContent\APP-INF\lib
    PATH=C:\Program Files\Java\jdk1.6.0_21\bin;C:\software\apache-ant-1.8.1\bin;C:\oracle\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\WiFi\bin\;c:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\SecureCRT\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\bea\jrockit_150_11\bin;C:\bea\modules\org.apache.ant_1.6.5\bin;C:\Program Files\jZip
    USERNAME=afamo
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows 7 Build 7600
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
    Memory: 4k page, physical 3099820k(957232k free), swap 6197876k(1597716k free)
    vm_info: Java HotSpot(TM) Client VM (17.0-b16) for windows-x86 JRE (1.6.0_21-b06), built on Jun 22 2010 00:56:49 by "java_re" with MS VC++ 7.1 (VS2003)
    time: Mon Aug 23 09:48:31 2010
    elapsed time: 234282 seconds
    Thanks!

  • Need Menu Exit for T-Code ME32K in ECC

    Hello,
    I need Menu Exit for Transaction ME32K in ECC version, It would be helpful if any one could tell me,
    Deserving answer will be rewarded points
    Regards
    Rajesh

    hi
    use this program to search for the BADIS and enhancements
    & Report  ZPJA_PM002 (V2)                                            &
    & Text Elements:                                                     &
    & P_DEVC Show user-exits from development class                      &
    & P_LIMIT Limit submit program selection                             &
    & P_FUNC Show function modules                                       &
    & P_SUBM Show submit programs                                        &
    & S01    Selection data (TCode takes precedence  over program name)  &
    report  zpja_pm002
      no standard page heading
      line-size 158.
    *tables: enlfdir.     "Additional Attributes for Function Modules
    data: tabix      like sy-tabix,
          w_linnum   type i,
          w_off      type i,
          w_index    like sy-tabix,
          w_include  like trdir-name,
          w_prog     like trdir-name,
          w_incl     like trdir-name,
          w_area     like rs38l-area,
          w_level,
          w_str(50)  type c,
          w_funcname like tfdir-funcname.
    constants: c_fmod(40) type c value 'Function modules selected: ',
               c_subm(40) type c value 'Submit programs selected: ',
               c_col1(12) type c value 'Enhanmt Type',
               c_col2(40) type c value 'Enhancement',
               c_col3(30) type c value 'Program/Include',
               c_col4(20) type c value 'Enhancement Name',
               c_col5(40) type c value 'Enhancement Description'.
    Work Areas: ABAP Workbench
    data: begin of wa_d010inc.
    data: master type d010inc-master.
    data: end of wa_d010inc.
    data: begin of wa_tfdir.
    data: funcname type tfdir-funcname,
          pname    type tfdir-pname,
          include  type tfdir-include.
    data: end of wa_tfdir.
    data: begin of wa_tadir.
    data: devclass type tadir-devclass.
    data: end of wa_tadir.
    data: begin of wa_tstc.
    data: pgmna type tstc-pgmna.
    data: end of wa_tstc.
    data: begin of wa_tstcp.
    data: param type tstcp-param.
    data: end of wa_tstcp.
    data: begin of wa_enlfdir.
    data: area type enlfdir-area.
    data: end of wa_enlfdir.
    Work Areas: BADIs
    data: begin of wa_sxs_attr.
    data: exit_name type sxs_attr-exit_name.
    data: end of wa_sxs_attr.
    data: begin of wa_sxs_attrt.
    data: text type sxs_attrt-text.
    data: end of wa_sxs_attrt.
    Work Areas: Enhancements
    data: begin of wa_modsap.
    data: member type modsap-member.
    data: end of wa_modsap.
    data: begin of wa_modsapa.
    data: name type modsapa-name.
    data: end of wa_modsapa.
    data: begin of wa_modsapt.
    data: modtext type modsapt-modtext.
    data: end of wa_modsapt.
    Work Areas: Business Transaction Events
    data: begin of wa_tbe01t.
    data: text1 type tbe01t-text1.
    data: end of wa_tbe01t.
    data: begin of wa_tps01t.
    data: text1 type tps01t-text1.
    data: end of wa_tps01t.
    user-exits
    types: begin of t_userexit,
          type(12) type c,
          pname    like trdir-name,
          txt(300),
          level    type c,
          modname(30) type c,
          modtext(40) type c,
    end of t_userexit.
    data: i_userexit type standard table of t_userexit with header line.
    Function module developmnet classes
    types: begin of t_devclass,
          clas   like trdir-clas,
    end of t_devclass.
    data: i_devclass type standard table of t_devclass with header line.
    Submit programs
    types: begin of t_submit,
          pname     like trdir-name,
          level,
          done,
    end of t_submit.
    data: i_submit type standard table of t_submit with header line.
    Source code
    types: begin of t_sourcetab,                        "#EC * (SLIN lügt!)
            line(200),                                  "#EC * (SLIN lügt!)
          end of t_sourcetab.                           "#EC * (SLIN lügt!)
    data: sourcetab type standard table of t_sourcetab with header line.
    data c_overflow(30000) type c.
    Description of an ABAP/4 source analysis token
    data: i_stoken type standard table of stokex with header line.
    data wa_stoken like i_stoken.
    Description of an ABAP/4 source analysis statement
    data: i_sstmnt type standard table of sstmnt with header line."#EC
    keywords for searching ABAP code
    types: begin of t_keywords,
          word(30),
    end of t_keywords.
    data: keywords type standard table of t_keywords with header line.
    function modules within program
    types: begin of t_fmodule,
          name   like rs38l-name,
          pname  like trdir-name,
          pname2 like trdir-name,
          level,
          bapi,
          done,
    end of t_fmodule.
    data: i_fmodule type standard table of t_fmodule with header line.
    & Selection Options                                                  &
    selection-screen begin of block selscr1 with frame title text-s01.
    parameter: p_pname like trdir-name memory id rid,
               p_tcode like syst-tcode,
               p_limit(4) type n default 100,
               p_devc  like rihea-dy_ofn default ' ',
               p_func  like rihea-dy_ofn default ' ',
               p_subm  like rihea-dy_ofn default ' '.
    selection-screen end of block selscr1.
    & START-OF-SELECTION                                                 &
    start-of-selection.
      if p_pname is initial and p_tcode is initial.
        message e008(hrfpm).  "Make entry on the selection screen
        stop.
      endif.
    ensure P_LIMIT is not zero.
      if p_limit = 0.
        p_limit = 1.
      endif.
      perform data_select.
      perform get_submit_data.
      perform get_fm_data.
      perform get_additional_data.
      perform data_display.
    & Form DATA_SELECT                                                   &
    form data_select.
    data selection message to sap gui
      call function 'SAPGUI_PROGRESS_INDICATOR'
        destination 'SAPGUI'
        keeping logical unit of work
        exporting
          text                  = 'Get programs/includes'       "#EC NOTEXT
        exceptions
          system_failure
          communication_failure
        .                                                       "#EC *
    determine search words
      keywords-word = 'CALL'.
      append keywords.
      keywords-word = 'FORM'.
      append keywords.
      keywords-word = 'PERFORM'.
      append keywords.
      keywords-word = 'SUBMIT'.
      append keywords.
      keywords-word = 'INCLUDE'.
      append keywords.
      if not p_tcode is initial.
    get program name from TCode
        select single pgmna from tstc into wa_tstc-pgmna
                     where tcode eq p_tcode.
        if not wa_tstc-pgmna is initial.
          p_pname = wa_tstc-pgmna.
    TCode does not include program name, but does have refereve TCode
        else.
          select single param from tstcp into wa_tstcp-param
                       where tcode eq p_tcode.
          if sy-subrc = 0.
            check wa_tstcp-param(1)   = '/'.
            check wa_tstcp-param+1(1) = '*'.
            if wa_tstcp-param ca ' '.
            endif.
            w_off = sy-fdpos + 1.
            subtract 2 from sy-fdpos.
            if sy-fdpos gt 0.
              p_tcode = wa_tstcp-param+2(sy-fdpos).
            endif.
            select single pgmna from tstc into wa_tstc-pgmna
                   where tcode eq p_tcode.
            p_pname = wa_tstc-pgmna.
            if sy-subrc <> 0.
              message e110(/saptrx/asc) with 'No program found for: '
    p_tcode."#EC NOTEXT
              stop.
            endif.
          else.
            message e110(/saptrx/asc) with 'No program found for: ' p_tcode.
    "#EC NOTEXT
            stop.
          endif.
        endif.
      endif.
    Call customer-function aus Program coding
      read report p_pname into sourcetab.
      if sy-subrc > 0.
        message e017(enhancement) with p_pname raising no_program."#EC *
      endif.
      scan abap-source sourcetab tokens     into i_stoken
                                 statements into i_sstmnt
                                 keywords   from keywords
                                 overflow into c_overflow
                                 with includes.
                                 WITH ANALYSIS.
      if sy-subrc > 0. "keine/syntakt. falsche Ablauflog./Fehler im Skanner
        message e130(enhancement) raising syntax_error.         "#EC *
      endif.
    check I_STOKEN for entries
      clear w_linnum.
      describe table i_stoken lines w_linnum.
      if w_linnum gt 0.
        w_level = '0'.
        w_prog = ''.
        w_incl = ''.
        perform data_search tables i_stoken using w_level w_prog w_incl.
      endif.
    endform.                        "DATA_SELECT
    & Form GET_FM_DATA                                                   &
    form get_fm_data.
    data selection message to sap gui
      call function 'SAPGUI_PROGRESS_INDICATOR'
        destination 'SAPGUI'
        keeping logical unit of work
        exporting
          text                  = 'Get function module data'    "#EC NOTEXT
        exceptions
          system_failure
          communication_failure
        .                                                       "#EC *
    Function module data
      sort i_fmodule by name.
      delete adjacent duplicates from i_fmodule comparing name.
      loop at i_fmodule where done  ne 'X'.
        clear:   i_stoken, i_sstmnt, sourcetab, wa_tfdir, w_include .
        refresh: i_stoken, i_sstmnt, sourcetab.
        clear wa_tfdir.
        select single funcname pname include from tfdir into wa_tfdir
                                where funcname = i_fmodule-name.
        check sy-subrc = 0.
        call function 'FUNCTION_INCLUDE_SPLIT'
          exporting
            program = wa_tfdir-pname
          importing
            group   = w_area.
        concatenate 'L' w_area 'U' wa_tfdir-include into w_include.
        i_fmodule-pname  = w_include.
        i_fmodule-pname2 = wa_tfdir-pname.
        modify i_fmodule.
        read report i_fmodule-pname into sourcetab.
        if sy-subrc = 0.
          scan abap-source sourcetab tokens     into i_stoken
                                     statements into i_sstmnt
                                     keywords   from keywords
                                     with includes.
          if sy-subrc > 0.
            message e130(enhancement) raising syntax_error.
          endif.
    check i_stoken for entries
          clear w_linnum.
          describe table i_stoken lines w_linnum.
          if w_linnum gt 0.
            w_level = '1'.
            w_prog  = i_fmodule-pname2.
            w_incl =  i_fmodule-pname.
            perform data_search tables i_stoken using w_level w_prog w_incl.
          endif.
        endif.
      endloop.
      if p_devc = 'X'.
        loop at i_fmodule.
          clear: wa_tadir, wa_enlfdir.
          select single area from enlfdir into wa_enlfdir-area
                                where funcname = i_fmodule-name.
          check not wa_enlfdir-area is initial.
          select single devclass into wa_tadir-devclass
                          from tadir where pgmid    = 'R3TR'
                                       and object   = 'FUGR'
                                       and obj_name = wa_enlfdir-area.
          check not wa_tadir-devclass is initial.
          move wa_tadir-devclass to i_devclass-clas.
          append i_devclass.
          i_fmodule-done = 'X'.
          modify i_fmodule.
        endloop.
        sort i_devclass.
        delete adjacent duplicates from i_devclass.
      endif.
    endform.                        "GET_FM_DATA
    & Form GET_SUBMIT_DATA                                               &
    form get_submit_data.
    data selection message to sap gui
      call function 'SAPGUI_PROGRESS_INDICATOR'
        destination 'SAPGUI'
        keeping logical unit of work
        exporting
          text                  = 'Get submit data'             "#EC NOTEXT
        exceptions
          system_failure
          communication_failure
        .                                                       "#EC *
      sort i_submit.
      delete adjacent duplicates from i_submit comparing pname.
      w_level = '0'.
      loop at i_submit where done ne 'X'.
        clear:   i_stoken, i_sstmnt, sourcetab.
        refresh: i_stoken, i_sstmnt, sourcetab.
        read report i_submit-pname into sourcetab.
        if sy-subrc = 0.
          scan abap-source sourcetab tokens     into i_stoken
                                     statements into i_sstmnt
                                     keywords   from keywords
                                     with includes.
          if sy-subrc > 0.
           message e130(enhancement) raising syntax_error.
            continue.
          endif.
    check i_stoken for entries
          clear w_linnum.
          describe table i_stoken lines w_linnum.
          if w_linnum gt 0.
            w_prog  = i_submit-pname.
            w_incl = ''.
            perform data_search tables i_stoken using w_level w_prog w_incl.
          endif.
        endif.
    restrict number of submit program selected for processing
        describe table i_submit lines w_linnum.
        if w_linnum ge p_limit.
          w_level = '1'.
        endif.
        i_submit-done = 'X'.
        modify i_submit.
      endloop.
    endform.                       "GET_SUBMIT_DATA
    & Form DATA_SEARCH                                                   &
    form data_search tables p_stoken structure stoken
                            using p_level p_prog p_incl.
      loop at p_stoken.
        clear i_userexit.
        tabix = sy-tabix + 1.
        i_userexit-level = p_level.
        if i_userexit-level = '0'.
          if p_incl is initial.
            i_userexit-pname = p_pname.
          else.
            concatenate  p_pname '/' p_incl into i_userexit-pname.
          endif.
        else.
          if p_incl is initial.
            i_userexit-pname = p_prog.
          else.
            concatenate  p_prog '/' p_incl into i_userexit-pname.
          endif.
        endif.
    Include
        if p_stoken-str eq 'INCLUDE'.
          check p_level eq '0'.    " do not perform for function modules
    *(2nd pass)
          w_index = sy-tabix + 1.
          read table p_stoken index w_index into wa_stoken.
          check not wa_stoken-str cs 'STRUCTURE'.
          check not wa_stoken-str cs 'SYMBOL'.
          read table i_submit with key pname = wa_stoken-str.
          if sy-subrc <> 0.
            i_submit-pname = wa_stoken-str.
            i_submit-level = p_level.
            append i_submit.
          endif.
        endif.
    Enhancements
        if p_stoken-str eq 'CUSTOMER-FUNCTION'.
          clear w_funcname.
          read table p_stoken index tabix.
          translate p_stoken-str using ''' '.
          condense p_stoken-str.
          if p_prog is initial.
            concatenate 'EXIT' p_pname p_stoken-str into w_funcname
                         separated by '_'.
          else.
            concatenate 'EXIT' p_prog p_stoken-str into w_funcname
                   separated by '_'.
          endif.
          select single member from modsap into wa_modsap-member
                where member = w_funcname.
          if sy-subrc = 0.   " check for valid enhancement
            i_userexit-type = 'Enhancement'.
            i_userexit-txt  = w_funcname.
            append i_userexit.
          else.
            clear wa_d010inc.
            select single master into wa_d010inc-master
                  from d010inc
                     where include = p_prog.
            concatenate 'EXIT' wa_d010inc-master p_stoken-str into
    w_funcname
                   separated by '_'.
            i_userexit-type = 'Enhancement'.
            i_userexit-txt  = w_funcname.
          endif.
        endif.
    BADIs
        if p_stoken-str cs 'cl_exithandler='.
          w_index = sy-tabix + 4.
          read table p_stoken index w_index into wa_stoken.
          i_userexit-txt = wa_stoken-str.
          replace all occurrences of '''' in i_userexit-txt with space.
          i_userexit-type = 'BADI'.
          append i_userexit.
        endif.
    Business transaction events
        if p_stoken-str cs 'OPEN_FI_PERFORM'.
          i_userexit-type = 'BusTrEvent'.
          i_userexit-txt = p_stoken-str.
          replace all occurrences of '''' in i_userexit-txt with space.
          i_userexit-modname =  i_userexit-txt+16(8).
          case i_userexit-txt+25(1).
            when 'E'.
              clear wa_tbe01t.
              select single text1 into wa_tbe01t-text1 from tbe01t
                               where event = i_userexit-txt+16(8)
                                 and spras = sy-langu.
              if wa_tbe01t-text1 is initial.
                i_userexit-modtext = ''.            "#EC NOTEXT
              else.
                i_userexit-modtext = wa_tbe01t-text1.
              endif.
              i_userexit-modname+8 = '/P&S'.                    "#EC NOTEXT
            when 'P'.
              clear wa_tps01t.
              select single text1 into wa_tps01t-text1 from tps01t
                               where procs = i_userexit-txt+16(8)
                                 and spras = sy-langu.
              i_userexit-modtext = wa_tps01t-text1.
              i_userexit-modname+8 = '/Process'.
          endcase.
          append i_userexit.
        endif.
    Program exits
        if p_stoken-str cs 'USEREXIT_'.
          i_userexit-type = 'Program Exit'.
          i_userexit-txt = p_stoken-str.
          replace all occurrences of '''' in i_userexit-txt with space.
          append i_userexit.
        endif.
    Submit programs
        if p_stoken-str cs 'SUBMIT'.
          check p_level eq '0'.    " do not perform for function modules
    *(2nd pass)
          check not p_stoken-str cs '_'.   " ensure not SUBMIT_XXX
          w_index = sy-tabix + 1.
          read table p_stoken index w_index into wa_stoken.
          check not wa_stoken-str cs '_'.   " ensure not SUBMIT_XXX
          replace all occurrences of '''' in wa_stoken-str with space.
          read table i_submit with key pname = wa_stoken-str.
          if sy-subrc <> 0.
            i_submit-pname = wa_stoken-str.
            i_submit-level = p_level.
            append i_submit.
          endif.
        endif.
    Perform routines (which reference external programs)
        if p_stoken-str cs 'PERFORM'.
          check p_level eq '0'.    " do not perform for function modules
    *(2nd pass)
          w_index = sy-tabix + 1.
          read table p_stoken index w_index into wa_stoken.
          if not wa_stoken-ovfl is initial.
            w_off = wa_stoken-off1 + 10.
            w_str = c_overflow+w_off(30).
            find ')' in w_str match offset w_off.
            w_off = w_off + 1.
            wa_stoken-str = w_str(w_off).
          endif.
          check wa_stoken-str cs '('.
          w_off = 0.
          while sy-subrc  = 0.
            if wa_stoken-str+w_off(1) eq '('.
              replace section offset w_off length 1 of wa_stoken-str with ''
              replace all occurrences of ')' in wa_stoken-str with space.
              read table i_submit with key pname = wa_stoken-str.
              if sy-subrc <> 0.
                i_submit-pname = wa_stoken-str.
                append i_submit.
              endif.
              exit.
            else.
              replace section offset w_off length 1 of wa_stoken-str with ''
              shift wa_stoken-str left deleting leading space.
            endif.
          endwhile.
        endif.
    Function modules
        if p_stoken-str cs 'FUNCTION'.
          clear i_fmodule.
          check p_level eq '0'.    " do not perform for function modules
    *(2nd pass)
          w_index = sy-tabix + 1.
          read table p_stoken index w_index into wa_stoken.
         if wa_stoken-str cs 'WF_'.
         if wa_stoken-str cs 'IF_'.
           break-point.
         endif.
          if wa_stoken-str cs 'BAPI'.
            i_fmodule-bapi = 'X'.
          endif.
          replace first occurrence of '''' in wa_stoken-str with space.
          replace first occurrence of '''' in wa_stoken-str with space.
          if sy-subrc = 4.   " didn't find 2nd quote (ie name truncated)
            clear wa_tfdir.
            concatenate wa_stoken-str '%' into wa_stoken-str.
            select single funcname into wa_tfdir-funcname from tfdir
                         where funcname like wa_stoken-str.
            if sy-subrc = 0.
              i_fmodule-name = wa_tfdir-funcname.
            else.
              continue.
            endif.
          else.
            i_fmodule-name = wa_stoken-str.
          endif.
          i_fmodule-level = p_level.
          append i_fmodule.
        endif.
      endloop.
    endform.                        "DATA_SEARCH
    & Form GET_ADDITIONAL_DATA                                           &
    form get_additional_data.
    data selection message to sap gui
      call function 'SAPGUI_PROGRESS_INDICATOR'
        destination 'SAPGUI'
        keeping logical unit of work
        exporting
          text                  = 'Get additional data'         "#EC NOTEXT
        exceptions
          system_failure
          communication_failure
        .                                                       "#EC *
      loop at i_userexit.
    Enhancement data
        if  i_userexit-type cs 'Enh'.
          clear: wa_modsapa.
          select single name into wa_modsapa-name from modsap
                            where member = i_userexit-txt.
          check sy-subrc = 0.
          i_userexit-modname = wa_modsapa-name.
          clear wa_modsapt.
          select single modtext into wa_modsapt-modtext from modsapt
                            where name = wa_modsapa-name
                                         and sprsl = sy-langu.
          i_userexit-modtext = wa_modsapt-modtext.
        endif.
    BADI data
        if  i_userexit-type eq 'BADI'.
          clear wa_sxs_attr.
          select single exit_name into wa_sxs_attr-exit_name from sxs_attr
                                        where exit_name = i_userexit-txt.
          if sy-subrc = 0.
            i_userexit-modname = i_userexit-txt.
          else.
            i_userexit-modname = 'Dynamic call'.                "#EC NOTEXT
          endif.
          clear wa_sxs_attrt.
          select single text into wa_sxs_attrt-text from sxs_attrt
                                         where exit_name =
    wa_sxs_attr-exit_name
                                           and sprsl = sy-langu.
          i_userexit-modtext = wa_sxs_attrt-text.
        endif.
        modify i_userexit.
      endloop.
    get enhancements via program package
      clear wa_tadir.
      select single devclass into wa_tadir-devclass from tadir
                                 where pgmid    = 'R3TR'
                                   and object   = 'PROG'
                                   and obj_name = p_pname.
      if sy-subrc = 0.
        clear: wa_modsapa, wa_modsapt.
        select name from modsapa into wa_modsapa-name
                              where devclass = wa_tadir-devclass.
          select single modtext from modsapt into wa_modsapt-modtext
                              where name = wa_modsapa-name
                                and sprsl = sy-langu.
          read table i_userexit with key modname = wa_modsapa-name.
          if sy-subrc <> 0.
            i_userexit-modtext = wa_modsapt-modtext.
            i_userexit-type = 'Enhancement'.                    "#EC NOTEXT
            i_userexit-modname  = wa_modsapa-name.
            i_userexit-txt = 'Determined from program DevClass'."#EC NOTEXT
            i_userexit-pname = 'Unknown'.                       "#EC NOTEXT
            append i_userexit.
          endif.
        endselect.
      endif.
    endform.                        "GET_ADDITIONAL_DATA
    & Form DATA_DISPLAY                                                  &
    form data_display.
    data selection message to sap gui
      call function 'SAPGUI_PROGRESS_INDICATOR'
        destination 'SAPGUI'
        keeping logical unit of work
        exporting
          text                  = 'Prepare screen for display'  "#EC NOTEXT
        exceptions
          system_failure
          communication_failure
        .                                                       "#EC *
      sort i_userexit by type txt modname.
      delete adjacent duplicates from i_userexit comparing txt modname.
    format headings
      write: 'Enhancements from main program'.                  "#EC NOTEXT
      write: /.
      uline.
      format color col_heading.
      write: /    sy-vline,
             (12) c_col1,                    "Enhanmt Type
                  sy-vline,
             (40) c_col2,                    "Enhancement
                  sy-vline,
             (30) c_col3,                    "Program/Include
                  sy-vline,
             (20) c_col4,                    "Enhancement name
                  sy-vline,
             (40) c_col5,                    "Enhancement description
                  sy-vline.
      format reset.
      uline.
    format lines
      loop at i_userexit.
    set line colour
        case i_userexit-type.
          when 'Enhancement'.
            format color 3 intensified off.
          when 'BADI'.
            format color 4 intensified off.
          when 'BusTrEvent'.
            format color 5 intensified off.
          when 'Program Exit'.
            format color 6 intensified off.
          when others.
            format reset.
        endcase.
        write: / sy-vline,
                 i_userexit-type,
                 sy-vline,
                 i_userexit-txt(40),
                 sy-vline,
                 i_userexit-pname(30),
                 sy-vline,
                 i_userexit-modname(20),
                 sy-vline,
                 i_userexit-modtext(40),
                 sy-vline.
      endloop.
      format reset.
      uline.
    user-exits from development class of function modules
      if p_devc = 'X'.
        write: /.
        write: / 'User-exits from function module development class'."#EC
    *NOTEXT
        write: 157''.
        uline (90).
        write: 157''.
        loop at i_devclass.
          clear wa_modsapa.
          select name from modsapa into wa_modsapa
                       where devclass = i_devclass-clas.
         select single name modtext into corresponding fields of wa_modsapt
                                       from modsapt
                                         where name  = wa_modsapa-name
                                           and sprsl = sy-langu.
            format color 3 intensified off.
            write: / sy-vline,
                     (12) 'Enhancement',
                     sy-vline,
                    wa_modsapa-name,
                    sy-vline,
                    wa_modsapt-modtext,
                    sy-vline.
          endselect.
        endloop.
        uline (90).
        format reset.
      endif.
      describe table i_fmodule lines w_linnum.
      write: / c_fmod , at 35 w_linnum.                         "#EC NOTEXT
      write: 157''.
      if p_func = 'X'.
    display fuction modules used in program
        uline (38).
        write: 157''.
        loop at i_fmodule.
          write: sy-vline,
                 i_fmodule-name,
                 sy-vline,
                 i_fmodule-bapi,
                 sy-vline.
          write: 157''.
        endloop.
        uline (38).
      endif.
      describe table i_submit lines w_linnum.
      write: / c_subm , at 35 w_linnum.                         "#EC NOTEXT
      write: 157''.
      if p_subm = 'X'.
    display submit programs used in program
        uline (44).
        write: 157''.
        loop at i_submit.
          write: sy-vline,
                 i_submit-pname,
                 sy-vline.
          write: 157''.
        endloop.
        uline (44).
      endif.
    issue message with number of user-exits displayed
      describe table i_userexit lines w_linnum.
      message s697(56) with w_linnum.
    endform.                        "DATA_DISPLAY
    reward points if it helps
    gunjan

  • Please explain the code below

    What will be the output of the following code? Can I get some detail explanation?
    class A{
        void show(){
            System.out.println("A");
    interface my{
        public void show();
    class B extends A{
       B(my m){
           m.show();
        public void show(){
            System.out.println("B");
    public class test implements my{
        public void show(){
            System.out.println("test");
        public static void main(String args[]){
          test t=new test();
          B b=new B(t);
          b.show();
    }Thanks

    What will be the output of the following code? Can I
    get some detail explanation?Well, I guess you were not able to figure out HOW you got that output. Should have been a li'l more clear in your question. Never mind now... here is my understanding of the code.
    1) The program starts at main()
    2) creates an object for test called t (does nothing more than this since it does not have a constructor defined by you!!)
    3)creates an object for B whose constructor takes an object argument of type my. you send t becuase test implements my.
    4)calls the show method of m in the constructor.
    5)now, where is the definition of show() for m? Its in test. So now, that show() is executed and hence "test" is printed first.
    6)all done, it comes back to the main() to go to the next statement.
    7)calls the show() of b.
    8)this version of show asks to print "B" and hence the output.
    Was this detailed explanation enough? I hope so... ;-)

  • Need some help for this code.

    Hi Everyone,
    I've test codes for east region and west region.
    I've a requirement to replace the west test id with east test id.
    That mapping has been done by the onshore team, I've got the mapping doc.
    But updating these details is a tricky part. It's nothing like direct update and replace those test codes.
    As per the mapping if it's
    In case of one to one (East - West) mapping which going to affect only a single row, I’ll have to update there,directly.
    In case of one – many (East - West) mapping and which is going to affect multiple rows, I’ll have to update the latest one and rest will be deleted only in that group. To identify the latest we have to check the latest order detail for that test.
    Suppose I've a west code named W123 and it has to be replaced with E123, in this case direct update.
    But now I've a transaction table where a patient has ordered multiple tests, In this case suppose the
    patiend id is P123 and ordered tests are W123, W234, W345; I'll have to update W123 as E123 and rest
    should not be deleted.
    But if I'll get multiple west code mapped towards single east code, the latest record as per the order detail needs
    to be updated and rest needs to be deleted if mapped with multiple west test codes, for single record and group record as well. Some thing like this.
    E123 - W123, W234 so I'll have to find out the latest and update there accordingly for single record and now
    patient has orderd multiple tests and the group record is like P123(patient) -----has orederd for W123, W234, W345.
    Now only the lastest test code suppose W234 has to be replaced with E123 and W123 has be deleted and W345
    should be there with E123.
    Now please see the code.
    CREATE OR REPLACE
    PROCEDURE P_UPDATE_TEST_ID AS
    V_EAST_TEST_ID            TEST_CODE_CONVERSION.EAST_TEST_ID%TYPE;
    V_ARRAY                   VARCHAR2(4000);
    V_COUNT                   NUMBER := 0;
    BEGIN
      FOR I IN (SELECT EAST_TEST_ID
                      ,STRAGG(WEST_TEST_ID) AS V_STRING
                FROM TEST_CODE_CONVERSION
                GROUP BY EAST_TEST_ID)
      LOOP
        V_EAST_TEST_ID            := I.EAST_TEST_ID;
        V_ARRAY                   := I.V_STRING;
        V_COUNT                   := V_COUNT+1;
        DBMS_OUTPUT.PUT_LINE('EAST_TEST_ID = ' ||V_EAST_TEST_ID|| ' || '||
                             'WEST_TEST_ID = ' ||v_array);
        Now after this I need to segregate the string values and check individual record
        and group record as well, for update. Now If I'll add the regexp_substr, then how
        to map those extracted values for checking.
      END LOOP;
      DBMS_OUTPUT.PUT_LINE('v_count = ' ||V_COUNT);
    END P_UPDATE_TEST_ID;Please suggest something.
    Regards,
    BS2012.
    Edited by: BS2012 on May 23, 2013 4:40 PM

    Hi Bawer,
    Thanks for your interest, but I've done that yesterday.
    Bawer wrote:
    Sorry, but
    >
    Here I'll have to check which one is the latest and update that with relative east test id ...
    >how do you describe the *'latest'* and *'relative east'* ?We have one more template table where we'll have to take the max of template_test_id to figure out "which one is the latest?" To identify the relative east we have a parent table named "test" from there we can find the relative test ids by the column name called East_west_ind (indicator); as per the mapping.
    and depending to this,
    >
    ... rest one has to be deleted and other should be untouched.
    >which one is here, in your sample to be deleted and which should be untouched?
    (maybe a sample after-update output?)If you see the patient id 93, we have number of tests has been ordered. But 3257, 3515 test ids are same as per the mapping. So we need to check the max of template_test_id to figure out "which one is the latest?" as we have one entry in template table always for a new order. In terms of that I'll have to update 3257 as it's the latest entry and 3515 has to be deleted and rest of the test ids should be untouched. I did it yesterday, but i couldn't respond you. Thanks once again for your interest.

  • I need some advices for FLASH code optimisation...

    Hi All,
    Lat me explain what im doing right now for a better picture -
    My project was previously done in Director >> Im
    reengineering it in flash. Im using a lot of scenes for different
    pages. Every pages have buttons and hell lot of audio and MC's. I
    have my own script on every scene, frame1. Is this right? most of
    the codes are redundant. I cannot access variables and functions
    from a different Scene right? (please correct me if im wrong).
    And till today I have a huge pile of code. Is there any
    concept of Header files like in MFC. If i make an .as file, can i
    embed it inside the .fla and use the variables which are there?
    Because I dont need an extra .as file along with the
    swf(REQUIREMENTS!!).
    Please give me an insight on this kind of optimization, i.e
    using a concept of header files, #define and stuff.
    Another thing is that - there is a MFC program which loads my
    SWF file and plays it. The swf loads an image from the harddisk
    using the image loader component. Is there any way i can flush the
    image data from the RAM or CACHE after the work is over? Or can
    this be handled by MFC?
    Can MFC unload the flash after its loaded? We are unable to
    find a unload option in MFC side for flash OCX controls.
    It would be great if someone could help me with this.
    Regards
    Roshan Kolar

    I already know how to get the path of the class file.
    I just want to know {color:#ff0000}why I can run the the code in a single class file rather than run it inside a jar file{color}?
    Thank you
    Edited by: willnzy_cn on Oct 2, 2007 3:24 AM

  • I need some help for my code,  I lost my way

    Hi, all, I got a little problem when I try to compile my project(jdk1.6/winXP pro),
    I try to get the current file path by the following code(I know this is not the correct way to do it) . The wired thing is that:
    When I try to run these code with my Eclipse(or just run this single class file), it works.
    when I jar this class into jar file and try to run the jar file, then it doesn't, and reported the error "java.lang.NullPointerException at Test1.main".
    Is there any friend can help me to explain why this happened?
    its really appreciated.
    public class Test1
    public static void main (String[] args)
         String user_directory = null;
         try
         user_directory = Test1.class.getResource(".").getPath();
         user_directory = java.net.URLDecoder.decode(user_directory,"UTF-8");
    System.out.println("\n >>> " + user_directory + "\n" );
         catch (Exception e)
         e.printStackTrace();
    }

    I already know how to get the path of the class file.
    I just want to know {color:#ff0000}why I can run the the code in a single class file rather than run it inside a jar file{color}?
    Thank you
    Edited by: willnzy_cn on Oct 2, 2007 3:24 AM

  • Re: using windows 7 in two Macs  I have a Mac book Pro with parallels and windows 7 installed but I left my windows 7 dvd in Dubai and I am in NY. If I want to migrate windows 7 to my I mac, will I need the code or key to enter?

    I have two Macs and one windows but I left the disk along with the key code in Dubai. If I want to use windows 7 on bootcamp on my other mac, and do a migrate, will I have to use the key code at some point?
    if do do I have to buy a new windows 7?

    There is no system like Acronis for the Mac platform. You can try using the buiilt in Disk Utility to create an Image of the complete Mac drive but I have found that this does not work very well as on tryiing to restore it gives errors sometimes.
    You can use SuperDuper or Carbon Copy Cloner to create a bootable Clone of your system partition. But that is only for the System partition and not the complete drive.
    If you use Boot Camp to install Windows on your Mac neither of those two programs will clone the Windows side.
    Neither will Disk utility as Mac's can not create or write to a NTFS partition. So some other program is need for that.

  • I do not have the scratch off area on my light room box where I need the code. I had this problem before with photoshop

    I'm trying to figure out where I type in the product code. I do not have the starting number I have to stretch off.

    rjcurtis wrote:
    ---Need  to get this info to check with Apple and see if this phone indeed has this draining  battery issue and get it repaired.
    What “draining issue”?
    The iPhone 5 has a battery replacement program but it does not include the 5S.
    I can't get the entire serial number off the phone after going to GENERAL,ABOUT, and down to serial number. I only get the first nine letters and number with three ...---
    See this -> Find the serial number and other information for your iPhone, iPad, and iPod touch - Apple Support
    "On most iOS devices, you can tap Settings > General > About to see your device's serial number, IMEI/MEID, and ICCID. If you're using iOS 6 or later, you can tap and hold on the number to use the copy option, then paste this information into Apple registration or support forms."

  • Got Interface; now need the code

    Hello everyone,
    I have recently created an interface using Interface Builder provided by the latest xCodes. As pretty as my interfaces look; their useless without the coding that make all those fancy buttons work. I got a one day project and I need someone who knows how to use xCode to help finish it. Would anyone be willing to volunteer to do this?
    Btw: This is a freeware type application.
    Here is the jist of the application: (Along with some pics)
    1- There is a brief setup process for EV(CON) Plugin Manager. The user will be asked to locate three files; EV folder, EVO folder, and the EVN folder. If you only have one of the games you will obviously only need to browse and find the one you have. Once that is done, EV(CON) Plugin Manager will be ready to start organizing your plugins for all three EV games. The user need only fill out the "Game Finder" preference. The "Plugin Storage" preference doesn't need to be changed or edited by the user to make EV(CON) Plugin Manager work.
    http://www.ambrosiasw.com/forums/index.php?act=Attach&type=post&id=1563
    2- User acquires a Nova Plugin. He/she selects the "EV Nova" tab at the top right hand corner of the main window. He/she drags and drops the EVN plugin into the organizing box that is inside the EV Nova tab. EV(CON) Plugin Manager will then create a read-only copy of the plugin and put it into the "~/Library/Application Support/EV(CON) Plugin Manager/EVN Plugins" folder. It will then show up in the box to be enabled or disabled. He/she decides to enable the plugin. EV(CON) Plugin Manager will then copy the corresponding file in the Application Support folder into the EVN plugin folder. He/she decides to test the plugin out; so he/she selects "EV Nova" in the "Select Game" box in the upper left hand corner of the main window. He/she then presses "Start Game" and it will start the EVN game. He/she does not like the program and decides to disable it. When he/she disables the plugin, EV(CON) Plugin Manager will erase the corresponding plugin in the EV Nova plugins folder. Note that it will not delete that same plugin in the "~/Library/Application Support/EV(CON) Plugin Manager/EVN Plugins" folder. That way if the user ever wanted to play it again; he/she could.
    http://www.ambrosiasw.com/forums/index.php?act=Attach&type=post&id=1562
    3- User acquires a Override Plugin. He/she selects the "EV Override" tab at the top right hand corner of the main window. He/she drags and drops the EVO plugin into the organizing box that is inside the EV Override tab. EV(CON) Plugin Manager will then create a read-only copy of the plugin and put it into the "~/Library/Application Support/EV(CON) Plugin Manager/EVO Plugins" folder. It will then show up in the box to be enabled or disabled. He/she decides to enable the plugin. EV(CON) Plugin Manager will then copy the corresponding file in the Application Support folder into the EVN plugin folder. He/she decides to test the plugin out; so he/she selects "EV Override" in the "Select Game" box in the upper left hand corner of the main window. He/she then presses "Start Game" and it will start the EVO game. He/she does not like the program and decides to disable it. When he/she disables the plugin, EV(CON) Plugin Manager will erase the corresponding plugin in the EV Override plugins folder. Note that it will not delete that same plugin in the "~/Library/Application Support/EV(CON) Plugin Manager/EVO Plugins" folder. That way if the user ever wanted to play it again; he/she could.
    4- User acquires a EV classic Plugin. He/she selects the "EV Classic" tab at the top right hand corner of the main window. He/she drags and drops the EV plugin into the organizing box that is inside the EV Classic tab. EV(CON) Plugin Manager will then create a read-only copy of the plugin and put it into the "~/Library/Application Support/EV(CON) Plugin Manager/EV Plugins" folder. It will then show up in the box to be enabled or disabled. He/she decides to enable the plugin. EV(CON) Plugin Manager will then copy the corresponding file in the Application Support folder into the EV plugin folder. He/she decides to test the plugin out; so he/she selects "EV Classic" in the "Select Game" box in the upper left hand corner of the main window. He/she then presses "Start Game" and it will start the EV game. He/she does not like the program and decides to disable it. When he/she disables the plugin, EV(CON) Plugin Manager will erase the corresponding plugin in the EV plugins folder. Note that it will not delete that same plugin in the "~/Library/Application Support/EV(CON) Plugin Manager/EV Plugins" folder. That way if the user ever wanted to play it again; he/she could.
    5- The reason EV(CON) Plugin Manager creates a read-only copy of the plugin and places it in the Application Support folder is because if anything happened to the plugin in the EV plugins folder, got corrupted or anything, it wouldn't want to re-copy the bad version into the Application Support Folder. If you were a developer; you could go to the preference menu in EV(CON) Plugin Manager and select "Plugin Storage." This would allow you to pick a different folder other than Application Support to copy and organize the files.
    http://www.ambrosiasw.com/forums/index.php?act=Attach&type=post&id=1564
    6- When a newer version of a plugin comes out. All the user has to do is download it, and just do the normal instal procedure into EV(CON) Plugin Manager. EV(CON) Plugin Manager will automatically replace the older buggy version of the plugin in the Application Support folder.
    *Please note that the Preference Panes now are titled such instead of "Window"
    *Please note I have only created the interface for this application and the guidelines on how it should act. I used xCodes Interface Builder to create the interface. I estimate it would only take a day for someone to fill in the blanks (code) to get all my fancy buttons to work. Mostly; it is just copy pasting of files.
    This application complements a loved game series called Escape Velocity. It is available via Ambrosia's website. It is a plugin manager for the game.

    Hi,
    in event PBO of SAPLXM02 create a module and move the value of T499S-stand to EBAN-stand.
    PBO
    module eban_stand.
    EBAN-STAND = T499S-stand .
    endmodule.
    Regards,
    Pavan

  • Need the code to make these to new objects in BW world, please help...

    I have two fields that I get from the source (to DSO):
    CREATE_DATE (YYYYMMDD)
    REPORT_MONTH (YYYYMM)
    First I want to make a infoobjects (called CREATE_MONTH) that takes the YYYYMM from the CREATE_DATE.
    The I also want to make an indicator (called MONTH_IND) that have a test on infoobjects called CREATE_MONTH and REPORT_MONTH.
    The logic should be something like this:
    If CREATE_MONTH is 3 month earlier than REPORT_MONTH the indicator should say ‘over 2 month
    If CREATE_MONTH is 4 month earlier than REPORT_MONTH the indicator should say ‘over 3 month
    Etc….
    Conclution:
    Need two new objects:
    1. CREATE_MONTH
    2. MONTH_IND
    Can someone give me some help on how to do this Please?

    Hi Elaine!
    First of all I´d like to thank your answer.
    I know what you mean; I had a gif animated file in my web site and I converted it in a swf file, that is the reason why I couldn´t do the correct to make the link. I thought that I could make the link with a simple code but thanks to this foro, now I know that it is a bit more complicated.
    Anyway, I think that it is better if I read the tutorial to know how this work.
    Thank you again and have a nice day!
    afp5trip

Maybe you are looking for

  • Cannot install/uninstall/debug my app

    Hi, when I was trying to install my app from Store yesterday, WP8.1 Silverlight app on Lumia 1520 with 8.1 Dev Preview, the installation got stucked and I had to restart my phone. After the restart I can no longer install this app from Store, it alwa

  • MDX Generation Issues (using Evaluate) in OBIEE Analysis Report

    Hello Everyone, I am trying to use Evaluate function in MDX (on a OBIEE 11g Analysis report) to restrict the number of values that i am pulling from the Essbase cube. The MDX Evaluate syntax looks something like this EVALUATE('TOPCOUNT(%1.members,100

  • Copying Mac App Store Apps may cause Time Machine to fail

    Hey folks, My Time Machine backups started failing the other day with the "error occurred while copying files" error (asking me to run Disk Utility). I ran DU and the drive checked out fine. I eventually checked the backupd logs (Console> filter "bac

  • 23" Cinema HD display and new MacBook Pro

    I bought my G5 and HD Cinema display in 2005 and am thinking of switching out the G5 for a MacBook Pro. Is there an adapter I can get to allow me to plug in my display to the new MacBook Pro? Thanks Q

  • "Flash has quitted unexpectedly" - Please help!

    Hi there, I'm relatevely new to Flash CS4 - I am using it to create (hand-drawn) animations mostly. However, since I started using the IK function to animate my characters (instead of frame by frame) the file I am working on 'quit unexpectedly' often