Watchpoint for a variable in an undefined program

Hello,
I'd like to ask for your help. I'm debugging a program and would like to find a root cause of an issue. My main problem is that i know what variable i'd like to look for in a watchpoint, however i don't know in what sub-program or function does this variable exists. Is there a possibility to create such watchpoint or maybe breakpoint for a variable without defining the program name?
Thank you.

Hi,
how is it possible that you know the variable name but not the program in which the variable is defined?
If you really are in that kind of situation you could use debugger scripting to beark the program if a variable of a certain name exists. If you are new to debugger scriptin have a look at Stephen Pfeiffers excellent introduction blogs:
ABAP Debugger Scripting: Basics
ABAP Debugger Scripting: Advanced
Christian

Similar Messages

  • Variable SERVERNAME is undefined in CFIDE after applying security patch for APSB09-12

    We attempted to apply the hotfixes available for ColdFusion and JRun released August 17, 2009 on our ColdFusion v8.0.1 and now are not able to connect to the ColdFusion administrator page.
    This is the link to the securty update:
    http://www.adobe.com/support/security/bulletins/apsb09-12.html
    We receive the login screen, enter our user/pass and are then presented with the following error message:
    The web site you are accessing has experienced an unexpected error.
    Please contact the website administrator.
    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request
    Variable SERVERNAME is undefined.
    The error occurred in index.cfm: line 22
    -1 : Unable to display error's location in a CFML template.
    Resources: Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
    Remote Address 
    127.0.0.1
    Referrer 
    http://127.0.0.1/CFIDE/administrator/index.cfm
    Date/Time 
    01-Sep-09 04:59 PM
    Stack Trace
    at cfindex2ecfm274406133.runPage(E:\cf8_final\cfusion\wwwroot\CFIDE\administrator\index.cfm: 22)                 
    coldfusion.runtime.UndefinedVariableException: Variable SERVERNAME is undefined.
         at coldfusion.runtime.CfJspPage._get(CfJspPage.java:325)
         at coldfusion.runtime.CfJspPage._get(CfJspPage.java:287)
         at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1405)
         at cfindex2ecfm274406133.runPage(E:\cf8_final\cfusion\wwwroot\CFIDE\administrator\index.cfm:22)
         at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
         at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
         at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
         at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:288)
         at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
         at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
         at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
         at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
         at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
         at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
         at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
         at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
         at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
         at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
         at coldfusion.CfmServlet.service(CfmServlet.java:175)
         at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
         at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
         at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
         at jrun.servlet.FilterChain.service(FilterChain.java:101)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
         at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    This was caused by the Adobe patch, we removed the patch and applied the newly provided hot fix 3 and that resolved the issue.

  • Trace For -Loop variable

    I am trying to trace for-loop . The counter variable does not show the last value in the stack frame variables. For example if my code is as:
    public class ForCounter
    public static void main(String args[])
    for (int i =0;i<=5;i++)
    System.out.println(i);
    }My output is as:
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    Event Location =ForCounter:7
    ForCounter.java:7 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 0
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 0
    Event Location =ForCounter:7
    ForCounter.java:7 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 1
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 1
    Event Location =ForCounter:7
    ForCounter.java:7 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 2
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 2
    Event Location =ForCounter:7
    ForCounter.java:7 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 3
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 3
    Event Location =ForCounter:7
    ForCounter.java:7 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 4
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 4
    Event Location =ForCounter:7
    ForCounter.java:7 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 5
    Event Location =ForCounter:5
    ForCounter.java:5 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    int i = 5
    Event Location =ForCounter:10
    ForCounter.java:10 in method main() ****
    java.lang.String[] args = instance of java.lang.String[0] (id=38)
    *{color:#ff0000}the variable i doesnt get the value 6 as I expected in the comparison process? Any idea How can I see that?*
    *As I understood , the variable i values incremented and at the last step when the comparison failed the body of the for loop doesnt execute. ( 6 is not <= 5){color}*

    I am posting the code here to see what I mean. I need to compare these 2 programs that produces the same output. The stack frame trace must be the sme, but when I run the code on them. it doesn't work. I wish to know why in the for loop the value of i doesn't reach the value 4 as it showes in normal debugging. I am really thanx for your help.
    The two programs that I am comparing is:
    1-
    public class WhileCounter
         public static void main(String args[])
              int i = 0;
             while ( i <= 3)
                   System.out.println(i);
                  i++;
    and
    2-
    public class ForCounter
         public static void main(String args[])
              for (int i =0;i<=3;i++)
                   System.out.println(i);
    The Trace program that I am using is :
    // ****** Trace.java ******
    import java.io.*;
    import java.util.*;
    import com.sun.jdi.*;
    import com.sun.jdi.request.*;
    import com.sun.jdi.event.*;
    import com.sun.jdi.connect.*;
    class Trace {
        // Running remote VM
        private final VirtualMachine vm;
        // Thread transferring remote error stream to our error stream
        private Thread errThread = null;
        // Thread transferring remote output stream to our output stream
        private Thread outThread = null;
         * main
        public static void main(String[] args) {
         new Trace(args);
         * Launch target VM.
         * Generate the trace.
        Trace(String[] args) {
         PrintWriter writer = new PrintWriter(System.out);
         // Launch target VM - Foo is the class to be executed
            vm = launchTarget("WhileCounter");
            generateTrace(writer);
         * Generate the trace.
         * Enable events, start thread to display events,
         * start threads to forward remote error and output streams,
         * resume the remote VM, wait for the final event, and shutdown.
        void generateTrace(PrintWriter writer) {
            vm.setDebugTraceMode(VirtualMachine.TRACE_NONE);
            EventThread eventThread = new EventThread(vm, writer);
            eventThread.start();
            redirectOutput();
            vm.resume();
            // Shutdown begins when event thread terminates
         try {
             eventThread.join();
             errThread.join(); // Make sure output is forwarded
             outThread.join(); // before we exit
         } catch (InterruptedException exc) {
             // we don't interrupt
         writer.close();
         * Launch target VM.
         * Forward target's output and error.
        VirtualMachine launchTarget(String mainArgs) {
         LaunchingConnector connector = findLaunchingConnector();
         Map arguments = connectorArguments(connector, mainArgs);
            try {
             return connector.launch(arguments);
            } catch (IOException exc) {
                throw new Error("Unable to launch target VM: " + exc);
            } catch (IllegalConnectorArgumentsException exc) {
                throw new Error("Internal error: " + exc);
            } catch (VMStartException exc) {
                throw new Error("Target VM failed to initialize: " +
                       exc.getMessage());
        void redirectOutput() {
            Process process = vm.process();
            // Copy target's output and error to our output and error.
            errThread = new StreamRedirectThread("error reader", process.getErrorStream(), System.err);
            outThread = new StreamRedirectThread("output reader",process.getInputStream(), System.out);
            errThread.start();
            outThread.start();
         * Find a com.sun.jdi.CommandLineLaunch connector
        LaunchingConnector findLaunchingConnector() {
            List<Connector> connectors = Bootstrap.virtualMachineManager().allConnectors();
            for(Connector connector: connectors)
                if (connector.name().equals("com.sun.jdi.CommandLineLaunch"))
                    return (LaunchingConnector)connector;
            throw new Error("No launching connector");
         * Return the launching connector's arguments.
        Map connectorArguments(LaunchingConnector connector, String mainArgs) {
            Map arguments = connector.defaultArguments();
            Connector.Argument mainArg =
                            (Connector.Argument)arguments.get("main");
            if (mainArg == null) {
                throw new Error("Bad launching connector");
         mainArg.setValue(mainArgs);
         // Need a VM that supports watchpoints
         Connector.Argument optionArg = (Connector.Argument)arguments.get("options");
         if (optionArg == null) {
             throw new Error("Bad launching connector");
         optionArg.setValue("-classic");
         return arguments;
    import java.io.*;
    import java.util.*;
    import com.sun.jdi.*;
    import com.sun.jdi.request.*;
    import com.sun.jdi.event.*;
    import com.sun.jdi.connect.*;
    class EventThread extends Thread {
        private final VirtualMachine vm;   // Running VM
        private final PrintWriter writer;  // Where output goes
        private boolean connected = true;  // Connected to VM
        private boolean vmDied = true;     // VMDeath occurred
        // Maps ThreadReference to ThreadTrace instances
        private Map traceMap = new HashMap();
        EventThread(VirtualMachine vm, PrintWriter writer) {
            super("Event-Handler");
            this.vm = vm;
            this.writer = writer;
         * Run the event handling thread.
         * As long as we are connected, get event sets off
         * the queue and dispatch the events within them.
        public void run() {
            EventQueue queue = vm.eventQueue();
            while (connected) {
                try {
                    EventSet eventSet = queue.remove();
              for(Event e: eventSet)
                  handleEvent(e);
                    eventSet.resume();
                } catch (InterruptedException exc) {
                    // Ignore
                } catch (VMDisconnectedException discExc) {
                    break;
         * This class keeps context on events in one thread.
         * In this implementation, context is the indentation prefix.
        class ThreadTrace {
            final ThreadReference thread;
         ThreadTrace(ThreadReference thread) {
                this.thread = thread;
                // Create step event which will step through all lines
                EventRequestManager mgr = vm.eventRequestManager();
                StepRequest req = mgr.createStepRequest(thread,
                                                        StepRequest.STEP_LINE,
                                                        StepRequest.STEP_INTO);
                req.setSuspendPolicy(EventRequest.SUSPEND_ALL);
                 req.addClassFilter("WhileCounter");
                req.enable();
         private void println(String str) {
             writer.println(str);
         void printStackFrame(StackFrame sf) {
             try {
              for(LocalVariable localvar: sf.visibleVariables()) {
                  println("Local variable: " + localvar.name() + " = "+sf.getValue(localvar));
             } catch(AbsentInformationException e) {
              println("Got AbsentInformationException");
         void stepEvent(StepEvent event)  {
             try {
              if(!event.thread().frame(0).location().sourceName().equals("WhileCounter.java"))
                  return;
             } catch(Exception e) {
              return;
             try {
              StackFrame sf = event.thread().frame(0);
              println("\n**** " + sf.location().sourceName() +
                   ":" + sf.location().lineNumber() +
                   " in method " + sf.location().method().name() + "() ****");
              for(StackFrame s: event.thread().frames()) {
                  printStackFrame(s);
             } catch(Exception e) {
              //foo
         * Returns the ThreadTrace instance for the specified thread,
         * creating one if needed.
        ThreadTrace threadTrace(ThreadReference thread) {
         return (ThreadTrace)traceMap.get(thread);
         * Dispatch incoming events
        private void handleEvent(Event event) {
         if (event instanceof StepEvent) {
             stepEvent((StepEvent)event);
         } else if(event instanceof VMStartEvent) {
             startEvent((VMStartEvent)event);
        // Create entry in traceMap
        private void startEvent(VMStartEvent event) {
         traceMap.put(event.thread(), new ThreadTrace(event.thread()));
        // Forward event for thread specific processing
        private void stepEvent(StepEvent event)  {
         threadTrace(event.thread()).stepEvent(event);
    import java.io.*;
    import java.util.*;
    import com.sun.jdi.*;
    import com.sun.jdi.request.*;
    import com.sun.jdi.event.*;
    import com.sun.jdi.connect.*;
    * StreamRedirectThread is a thread which copies it's input to
    * it's output and terminates when it completes.
    class StreamRedirectThread extends Thread {
        private final Reader in;
        private final Writer out;
        private static final int BUFFER_SIZE = 2048;
         * Set up.
         * @param name  Name of the thread
         * @param in    Stream to copy from
         * @param out   Stream to copy to
        StreamRedirectThread(String name, InputStream in, OutputStream out) {
         super(name);
         this.in = new InputStreamReader(in);
         this.out = new OutputStreamWriter(out);
         setPriority(Thread.MAX_PRIORITY-1);
        public void run() {
            try {
             char[] cbuf = new char[BUFFER_SIZE];
             int count;
             while ((count = in.read(cbuf, 0, BUFFER_SIZE)) >= 0) {
              out.write(cbuf, 0, count);
                out.flush();
         } catch(IOException exc) {
             System.err.println("Child I/O Transfer - " + exc);
    The output from WhileCounter.java
    --------------------Configuration: <Default>--------------------
    Warning: classic VM not supported; client VM will be used
    0
    1
    2
    3
    **** WhileCounter.java:5 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    **** WhileCounter.java:6 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 0
    **** WhileCounter.java:8 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 0
    **** WhileCounter.java:9 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 0
    **** WhileCounter.java:6 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 1
    **** WhileCounter.java:8 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 1
    **** WhileCounter.java:9 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 1
    **** WhileCounter.java:6 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 2
    **** WhileCounter.java:8 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 2
    **** WhileCounter.java:9 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 2
    **** WhileCounter.java:6 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 3
    **** WhileCounter.java:8 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 3
    **** WhileCounter.java:9 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 3
    **** WhileCounter.java:6 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 4
    **** WhileCounter.java:12 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 4
    Process completed.
    The output for ForCounter.java is
    --------------------Configuration: <Default>--------------------
    Warning: classic VM not supported; client VM will be used
    0
    1
    2
    3
    **** ForCounter.java:5 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    **** ForCounter.java:7 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 0
    **** ForCounter.java:5 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 0
    **** ForCounter.java:7 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 1
    **** ForCounter.java:5 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 1
    **** ForCounter.java:7 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 2
    **** ForCounter.java:5 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 2
    **** ForCounter.java:7 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 3
    **** ForCounter.java:5 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Local variable: i = 3
    **** ForCounter.java:10 in method main() ****
    Local variable: args = instance of java.lang.String[0] (id=29)
    Process completed.

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Overflow for arithmetical operation (type P) in program.

    Hi experts..
    I had developed a report for showing total receipt and issues and confirmed issue.
    of PQ.
    For all the plant is running fine but only for one plant 2050 its going into dump and error is "Overflow for arithmetical operation (type P) in program." and the code line is
    T_EKET-MNG02 = T_EKET-MNG02 * ( t_mdbs-umrez / t_mdbs-umren ).
    MNG02 IS OF TYPE  Data : "Quan", length =13 , decimal = 3.
    initially : value in Mng02 is =  10       and ratio is 11/8 = 1.375
                  and in the debugging the value is   10*1.375 = 13.75
    but... when i am executing it .. its going into dump and after again checking the MNG02 is showing valude --9765133613.881  and the above error.
    what should i do....
    please help..
    i will award the points for every help...
    thanks

    Hi,
    Are you doing any other calculation for field MNG02 in your program?
    I created a small program with the field and values you have mentioned and it gave me the result 13.75 and no short dump.
    Please check following things:
    When short dump occurs, it shows at which line it has occured. Is it showing that the shortdump has occurs on the line you are talking about here or it is somewhere else.
    Also, when shortdump occurs, it shows a "debugging" button at the top. Hit that button and it will show you exactly where the short dump has occured. What ever this statement is, check what are the values of different variables here.
    Check all these and you might get the answer. Let me know if you still have problem.
    Regards,
    RS

  • How to use shared variables with native c programs

    Hello
    What is the way to use shared variables with native c programs?
    I have a c/c++ program that uses the NIDAQmx C-API to perform measurements. Now I want to communicate to a LabVIEW program via shared variables.
    Is there a C-API for shared variables as there is for the NIDAQmx functionality? Where can I find further documentation? The document "Using the LabVIEW Shared Variable" mentions that one "can read and write to shared variables in ANSI C", but there are no hints about how and where to look.
    Thanks in Advance

    Hi user42,
    with CVI 8.0, you cannot create or configure shared variables. However, you can read or write to an already configured LabVIEW 8.x shared variable from CVI using the DataSocket API.
    In order to do this you need to have and DataSocket 4.3 or higher installed.
    Here's a forum post about using the DataSocket functions a LabVIEW Shared Variables:
    http://forums.ni.com/ni/board/message?board.id=180&message.id=24569&requireLogin=False
    With CVI 8.1 and Measurement Studio 8.1 it's possible to use Shared Variables via the Network Varaiable Library (check out the end of the "Network-Published Shared Variable" section within the "Using the LabVIEW Shared Variable" documentation and the following link).
    Datasocket with LabWindows/CVI and LabVIEW Real-Time:
    http://digital.ni.com/public.nsf/allkb/CC4343488413A2F586256E6200099638?OpenDocument
    Daniel
    NIG

  • Set a value for a variable of type exit

    Hello,
    I am filling some variables with multiple values in user exit.
    Now, i would like to place some of these characteritics in Header area. It's of course impossible because there is multiple values but ...
    I will put dropdown box in the web application for these chars. The problem is that by default, any value is assigned to the dropdwom ( any variable value is set).
    Do you know how i can set a value for theses variable after filling all values by the user exit. SO that only one value is selected for the header and all others values available in the dropdown ?
    Regards,
    Jarod

    Hi,
    Off late, this seems to be a usual requirement.
    Just create a Z program to call the FM API_SEMBPS_VARIABLE_SET and then call the FM API_SEMBPS_POST.
    you should be preparing the content/set value to pass to the FMs. check the whereused list to see how this FMs can be used/called.
    finally, run this program for your variable, after the loading/filling the exit variable. Please note that to set 'exit' variables, the sourcing variable's content need to be read/set first before setting the exit varible.
    HTH,
    Regards,
    Nataraj.

  • Passing  variable val to UPC_BUNDLE_EXECUTE_STEP program in prc chain

    Hi
        i have a problem regarding background sheduling of Global Planning Sequence using Process chain.This Global sequence should run for different values of a char.In my level i restricted that Char with a variable which is ready for input.In process variant i maintained the values of Char to be Executed.When i am running the Process chain it is giving the following Error message.
    Characteristic XS_CRCLR must be ready for input in package XPPWLN05 .
    I tried to remove the variable in level and made it as selection and tried to select a variable in Packge .It is not allowing me to select a variable.
    1.Is there any way to Solve this Problem?
    2.and i am thinking of passing variable value through ABAP program in process chain after every execution. will this work? 
    Is there any document regarding Background scheduling of global Sequence?
    any suggestions will be appreciated.
    Thanks
    Suresh

    Hi Suresh,
       I felt links may be better useful fro you...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/help/sdn_nw04/saphelp_nw04/helpdata/en/80/a22130f6fc4264a822e9895468f3f5/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/forums/sdn_jive_forums/thread{74687265616449443d3534353238}.jspa
    Thanks,
    Raj

  • How can i find name of the variable used in the program and assign to a str

    double width= .333;
            int i;
            for (i = 0; i <=2; i ++){
                segment[i] = i+1;
            }is a bit of code...Is there anyway using which I can find out the variable names and assign them to string variables so that i can match them with another table ....
    That is I want the "width", "segment[0]", "segment[1]" and "segment[2]"...
    pls help...

    I am trying to find out the variable names in the program so that they can be matched against a given table for availability. I want to do that so that i can send the name, its type and value as a data packet to another node...I am not familiar with this...pls..would you give me a sample code

  • What is the include for text variable?

    Dear Friends
    I am trying to add a customer exit for text variables.
    I have done variable exits for things like fiscal period but not for customer exit TEXT variables.
    I could not find any text variable code in the include ZXRSRU01  .
    Please advise what should be the program name?
    Is it found in a different include?
    regards
    Bass

    Hi Bass,
    Customer exit for text variables is also the same how we create customer exits for characterisitics variable. As per the clarity what i got from ur question.
    I'll just explain a small program in customer exits which will act as a text variable.
    Go to SE38 -->
    Display the program ZXRSRU01 --> (This can be done only if you have added the enhancement of the system from CMOD)
    Then add ur following case statement to the existing code.
    After all the data declarations start ur main program
    when 'YEAR_CUST'.
      if i_step = 2.
        l_year1 = sy-datum+2(2). //Data declaration
        l_mon1 = sy-datum+4(2).  // Data Declaration
       l_date1 = sy-datum+6(2). // Data Declaration
         case l_mon1. //case statement which has the technical name of ur Exit variable
         when  '01'. // This statement generally checks the whether the given variable entry has a value '01' then enters the statement here and returns the value as JAN //
              CONCATENATE 'JAN' l_year1 into dat.
              l_s_range-low = dat.
              l_s_range-high = l_s_range-low.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
              endcase.
             ENDIF.
    Hope this helps u and have given the explanation as per the understanding of your questionand can give more clarity to you.

  • How to set variable default value by program?

    Dear all,
    We would like to set a BW variable default value by program (not using query designer).
    Do you have any ABAP sample code for this? I'm really new in ABAP programming.
    we are using BI 7.0
    Thank you for your help!
    Olivier DESFOUR

    Hi Olivier,
    FOllowing is the code which defaults calmonth to first month of the year to current month - 1.
    Data : input1(4) TYPE n,
           input3(2) TYPE n.
    WHEN 'YQV_FD'.
      if i_step = 1.
      input1 = sy-datum+0(4).
      concatenate input1 '01' into l_s_range-low.
      input3 = sy-datum+4(2) - 1.
      concatenate input1 input3 into l_s_range-high.
      l_s_range-sign = 'I'.
      l_s_range-opt = 'BT'.
      APPEND l_s_range TO e_t_range.
      endif.

  • Support for Shared Variables in Third Party XP embedded based TPC's?

    I have deployed an application in an XP embedded based Touch Panel (Third party). The application is working fine, but the shared variables hosted on an RT (sbRIO Board) are not getting updated in the application on TPC
    1. The TPC is part of the project as Windows XP Embedded Touch Panel
    2. NI TPC Service has been installed on the TPC and the application can be deployed remotely from the development PC through ethernet. (Hence network connections and communications are OK)
    3. By using Distributed Systems Manager in the development computer, I can see that the shared variables are getting updated on the network
    I believe that the problem can be solved if the following programs are installed on the TPC
    A. Support for shared variables for XPembedded
    B. Shared Variable engine
    I have tried installing support for shared variables from Program Files > National Instruments > Labview 8.6 > PDA > Utilities > Variables > x86 - but am getting an installation error "Unable to find application manager for Pocket PC applications".
    Shared variable engine has been installed from ve220 folder. The program is getting installed. But the Variable Engine is not started Control Panel > Administrative tools > Services in Xpe, the service is stopped and cannot be started. When I try to start the service, I am getting the following error on TPC
    "Could not start the National Instruments Variable Engine Service on the local computer.
    Error 1053. The service did not respond to the start or control request in a timely fashion."
    Please suggest solutions for the above or alternate locations for the following:
    1. Support for shared variables for XP embedded TPC's
    2. Shared Variable engine installer program.
    Thanks
    Krish
    Solved!
    Go to Solution.

    Problem solved!
    Update for interested folks working on XP Embedded TPC's
    Just to make sure that Shared Variables were indeed accessible to the TPC, I wanted to install Distributed Systems Manager 8.6 on the TPC. However since the TPC was having only 1 GB of DOM (Disk on Memory) and with all the software I had tried, there were only a few Megabytes left on the system. I had to add another DOM of 2 GB.
    All the products of the Installation went fine, with the exception of NI Logos (Version 5.0). NI Logos installation failed repeatedly.  I tried installing NI Logos separately, with the same results. Then I had this gut feeling that NI Logos had something to do with the issue.
    I then downloaded the new version of NI DSM 2009 SP1. Although this was supposed to get installed on any fresh system without Labview, the installation would not proceed beyond the setup stage. I tried installing NI Logos from the products folder on the new download separately and it worked like magic!
    Once the new Logos (Ver 5.5) got installed, the Shared Variable Engine started automatically and the Shared Variables were finally unleashed - free to rise and shine! Thank God Almighty!!
    On the lighter side, come to think of it - for running an application of around 400KB, we need XP embedded, NI Run Time, Logos, DSM ..........  (all around 900MB). Can we make it any simpler?!!  Inviting your comments .......
    Thanks
    Krish

  • Is IN OUT for Cursor variable mandatory?

    Hi all:
    I have a stored procedure which will just return a boolean value after the task is done. And i'm using more than 1 cursor variables in that stored procedure. What my question is
    "Is IN OUT for Cursor variable mandatory from the PROCEDURE i have written?".
    Because in the manual they mentioned that IN OUT should be there for a cursor variable. My PROCEDURE declaration is as below:
    TYPE emp_det IS REF CURSOR;
    PROCEDURE <proc_name>(startdate VARCHAR2, enddate VARCHAR2, ids VARCHAR2, taskdone OUT BOOLEAN,emp IN OUT emp_det);
    Is there any modification in the above declaration if i'm using one cursor and NOT returning that cursor back to the called program. I don't to get returned.
    Hope i made it clear.
    Thanks,
    - Venu

    Venu:
    As far as I know you don't need In Out unless
    you are using that variable to pass values between the two procedures.
    It is so easy to try it , so I suggest you write two small procedures to check this.It should only take a couple of minutes.
    Hope this helps.

  • Variable CFHTTP is undefined

    Hello folks,
    I have a script that uses the CFHTTP tag to send in some XML to a url, which returns a code back to my script.
    01.    <cftry>
    02.        <cfhttp
    03.             url="http://the.url.to.post.to"
    04.             port="443"
    05.             method="post"
    06.             resolveurl="yes"
    07.             throwOnError="Yes"
    08.             timeout="5"
    09.             charset="utf-8">
    10.             <cfhttpparam type="header" name="Accept-Encoding" value="*">
    11.             <cfhttpparam type="Header" name="TE" value="deflate;q=0">
    12.             <cfhttpparam type="formField" name="xmlBody" value="#toString(generateRequestXml)#">
    13.      </cfhttp>
    14.
    15.      <!--- if http request was complete, and "ok" --->
    16.      <cfif structkeyexists(cfhttp,'statuscode') and listfirst("#cfhttp.statuscode#",' ') eq 200>
    17.           <!--- hooray, the http request worked fine --->
    18.           <cfset theVariable = cfhttp.returnedVariable>
    19.
    20.      <!--- else, something went wrong --->
    21.      <cfelse>
    22.           <!--- oh no - something went wrong with the request --->
    23.           <cfthrow />
    24.      </cfif>
    25.
    26.      <cfcatch type="any">
    27.           <cfset logError(cfcatch)>
    28.      </cfcatch>
    29. </cftry>
    Most of the time, the script works fine, except now and then, it throws an error on line 16 saying that "Variable CFHTTP is undefined". It's as if the cfhttp tag has not finished processing in order to create the "CFHTTP" variable. This sounds a bit like the problem that Charlie Arehart blogged a while back about CF not waiting on some elements - or am I just presuming here?
    Anyway - some help would be really useful here, as I'm really scratching my head on this one. I've even tried replicating the error with a CFHTTP url which takes a while to return a response - but no joy.
    Help me Adobe Community - you're my only hope....
    (heh, I just made that up!! - you can use it)
    Cheers,
    Phil

    I don't know if the problem is caused by the CFHTTP tag not being finished yet, although that seems as possible as anything else I guess. If that's the problem, though, you could address this by creating a loop with a condition, then within the loop you could test for the existence of CFHTTP, and if it doesn't exist you could put the thread to sleep for a few milliseconds and check again after that. Once it does exist, you could exit the loop.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Variable HEADER is undefined

    Hello,
    Getting an error when sending a draft for review in CPS
    Files involved
    index.cfm calls <cfinclude template="#header#">
    located in application.cfm
    application.cfm calls <cfparam name="Header"
    default="header.htm">
    header.htm contains header info
    When I click "send for review "the draft process will load
    however it displays the following. Of course I could resolve the
    issue by placing the header and application files in
    D:\website\htdocs\MMWIP\ but I have hundreds of headers for
    different subsites. Does anyone know why this is not working or how
    I could resolve it. Thank you for your time.
    "Variable HEADER is undefined.
    The error occurred in
    D:\website\htdocs\MMWIP\1d1b9120930c0cc0\dbc8a513baa56a79.cfm: line
    18
    16 :
    17 : <!--- Display header file from main folder, set in
    application file. loop through folder path and if there is a
    subheader file display by replacing extra data in path and add to
    file name--->
    18 : <cfinclude template="#header#">
    19 : <cfoutput>
    20 : <cfset varpath=#Left(Main,Len(Main)-1)#>

    It can be mostly due to any one of following reasons:-
    It is missed to be defined in code.
    This global variable may not be accessible.
    Page defining it is missing.
    Page defining it may not be accessible due to slow server performance issue.

Maybe you are looking for

  • Authorisation of the static resources OAS10g R2

    Hi, I have some static resources (folders with html and image files) referenced in the web server of my OAS 10g release 2. The alias 'myalias' is defined in the oas10gr2/Apache/Apache/conf/httpd.conf <IfModule mod_alias.c> /myAlias/ "/folder_root/fol

  • Rescue CD UEFI

    hello,I am doing a follow up of the threat https://community.f-secure.com/t5/Security/Rescue-CD-scanning-failed/td-p/33171   I have a computer that is only able to boot with UEFI.it seems impossible to boot the rescue CD as it is only for BIOS... is

  • Copy table from Ms SQL Server 2005 to Oracle with SSIS package

    Hi all I am witting an SSIS package to copy 2 tables from Ms SQL Server 2005 to an Oracle 10g database. Problem: I can only see the Microsoft OLDB Provider for Oracle and it is too slow. How can I use the Oracle ODBC in aMs SQL Server 2005 or buildin

  • What to do if row chaining is found?

    Hello Alls, If i found rows chaining in my table then what i have to do? also in my database there is one table which contain the 2,00,00,000 of records so it is advisable to make partition of this table for faster searching? and how to check perform

  • What is summary level concept in data warehousing?

    I am new to data warehousing. can anybody explain about the summary level and higher level concepts in data warehousing?