Invalid variable declaration:  object 'TIMESTAMP' must be a type or subtype

Message 1: ORA-06550: line 91, column 14:
PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-488: invalid variable declaration: object 'TIMESTAMP' must be a type or subtype
ORA-06550: line 89, column 1:
PL/SQL: SQL Statement ignored
I'm getting above error message when i'm trying to define one cursor from a table which has a column with data timestamp(3) in a cursor i'm not even using a column with data type timestamp .( this tables i created by importing sybase tables into oracle )
SELECT to_char(sysdate) -- trunc(act.date_posted)
INTO v__Data
from cedb.cr_ar_debit_activity act
where rownum < 2 ;
for testing purpose i even removed the cursor and make it shor to above query then also it dosent work and gave the above error . if you know the solution then please let me know . i think i've to do/change database settings but i'm not sure .

the above code is not working but the following code is working if i open cursor from assiging select to variable , why this is happening .
DECLARE
     v_A_REPORT_DT VARCHAR2(100);
ls_sel VARCHAR2(900);
i INTEGER := 1;
TYPE dynamic_cur IS REF CURSOR;
tb_test_cur dynamic_cur ;
TYPE array_date_type IS TABLE OF DATE INDEX BY PLS_INTEGER;
v1 array_date_type ;
BEGIN
     v_A_REPORT_DT := '01-01-2007'/* VARCHAR2(2000) */;
-- this one is not working
SELECT to_char(sysdate) -- trunc(act.date_posted)
INTO v_A_REPORT_DT
from cedb.cr_ar_debit_activity act
where rownum < 2 ;
ls_sel := 'SELECT trunc(act.date_posted)
from cedb.cr_ar_debit_activity act
where rownum < 3 ' ;
OPEN tb_test_cur FOR ls_sel;
LOOP
FETCH tb_test_cur INTO v1(i) ;
EXIT WHEN tb_test_cur%notfound;
dbms_output.put_line(to_char(v1(i)));
i := i + 1 ;
END LOOP;
CLOSE tb_test_cur;
END;

Similar Messages

  • PLS-00488: invalid variable declaration:  object 'SHARED_REC' must be a typ

    Hello,
    I need to pass a plsql table as IN parameter for a procedure which is part of a Package. So, I did following in package spec.
    CREATE OR REPLACE PACKAGE APPS.cxs_source
    AS
    TYPE type_shared_rec IS RECORD (
    total_indexes NUMBER,
    total_tables NUMBER,
    grand_total NUMBER,
    idx_lagnum_diff NUMBER,
    idx_percentincr NUMBER,
    tbl_lagnum_diff NUMBER,
    tbl_percentincr NUMBER,
    tablekount NUMBER,
    indexkount NUMBER
    TYPE shared_batch IS TABLE OF type_shared_rec
    INDEX BY BINARY_INTEGER;
    shared_rec shared_batch;
    procedure generateUTL(p_dir_path in varchar2,
    passTable shared_rec);
    But I am getting PLS-00488 error as mentioned in subject line.
    Where am i doing wrong?
    I am using Oracle 9i EE.
    Thanks,
    R

    shared_rec shared_batch;I think you dont need this variable.
    >
    procedure generateUTL(p_dir_path in varchar2,
    passTable shared_rec);This is not correct you must use the type name and not the variable shared_rec. So your procedure must be
    procedure generateUTL(p_dir_path in varchar2,   passTable shared_batch);

  • Invalid method declaration; return type required

    The code:
              public Reminder(int seconds) {
            timer = new Timer();
            timer.schedule(new RemindTask(), seconds*1000);
        class RemindTask extends TimerTask {
            public void run() {
                System.out.format("Time's up!%n");
                timer.cancel(); //Terminate the timer thread
    public static void main(String[] args)
              JFrame.setDefaultLookAndFeelDecorated(true);
              JDialog.setDefaultLookAndFeelDecorated(true);
              try
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              catch (Exception ex)
                   System.out.println("Failed loading L&F: ");
                   System.out.println(ex);
           new superball();
                    new Reminder(5);
            System.out.format("Task scheduled.%n");
    //= End of Testing =
        }Gives:
    "invalid method declaration; return type required"
    If i add void to public Reminder(int seconds) {It prints:
    cannot find symbol
    symbol : class Reminder
    location: class superball
    new Reminder(5);
    Is it because of the public class?
    public class superball extends JFrameHere is the FULL code:
    /*                      superball                                 */
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.regex.Pattern;
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.*;
    import java.io.*;
    * Summary description for superball
    public class superball extends JFrame
         // Variables declaration
         int ballx;
      int bally;
         int jumpstop;
         int stopper;
         int coin;
         int coinx;
         int coiny;
         int coinvaluex;
         int coinvaluey;
      Timer timer;
      private int value = 0;
         private static Random r = new Random();
         private JLabel jLabel1;
         private JLabel jLabel2;
         private JLabel jLabel4;
         private JLabel jLabel5;
         private JLabel jLabel7;
         private JLabel jLabel9;
         private JLabel jLabel10;
         private JPanel contentPane;
         private JPanel jPanel1;
         // End of variables declaration
         public superball()
              super();
              initializeComponent();
              // TODO: Add any constructor code after initializeComponent call
              this.setVisible(true);
          * This method is called from within the constructor to initialize the form.
          * WARNING: Do NOT modify this code. The content of this method is always regenerated
          * by the Windows Form Designer. Otherwise, retrieving design might not work properly.
          * Tip: If you must revise this method, please backup this GUI file for JFrameBuilder
          * to retrieve your design properly in future, before revising this method.
         private void initializeComponent()
              jLabel1 = new JLabel();
              jLabel2 = new JLabel();
              jLabel4 = new JLabel();
              jLabel5 = new JLabel();
              jLabel7 = new JLabel();
              jLabel9 = new JLabel();
              jLabel10 = new JLabel();
              coin = 1;
              coinx = Math.abs(r.nextInt()) % 460 + 100;
              coiny = Math.abs(r.nextInt()) % 200 + 100;
              ballx = 342;
              bally = 338;
              jumpstop = 0;
              stopper = 13;
              contentPane = (JPanel)this.getContentPane();
              jPanel1 = new JPanel();
              // jLabel1
              jLabel1.setIcon(new ImageIcon("IMG\\coin.gif"));
              jLabel1.setText("0");
              // jLabel2
              jLabel2.setIcon(new ImageIcon("IMG\\logo.PNG"));
              // jLabel4
              jLabel4.setIcon(new ImageIcon("IMG\\black.GIF"));
              // jLabel5
              jLabel5.setIcon(new ImageIcon("IMG\\ballstanding2.gif"));
              // jLabel7
              jLabel7.setIcon(new ImageIcon("IMG\\star-heart.gif"));
              jLabel7.setText(" 100");
              // jLabel9
              jLabel9.setIcon(new ImageIcon("IMG\\coin.gif"));
              // jLabel10
              jLabel10.setIcon(new ImageIcon("IMG\\stage1.GIF"));
              // contentPane
              contentPane.setLayout(null);
              contentPane.setBackground(new Color(255, 254, 254));
              addComponent(contentPane, jLabel5, 342,338,60,18);
              addComponent(contentPane, jLabel1, 561,4,100,18);
              addComponent(contentPane, jLabel2, 2,3,208,24);
              addComponent(contentPane, jLabel7, 495,4,60,18);
              addComponent(contentPane, jLabel9, coinx,coiny,19,18);
              addComponent(contentPane, jLabel2, 2,3,208,24);
              addComponent(contentPane, jLabel10, -2,29,738,412);
              addComponent(contentPane, jPanel1, 79,209,200,100);
              // jPanel1
              jPanel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              jPanel1.setFocusable(true);
              jPanel1.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e)
                        jPanel1_keyPressed(e);
                   public void keyReleased(KeyEvent e)
                        jPanel1_keyReleased(e);
                   public void keyTyped(KeyEvent e)
                        jPanel1_keyTyped(e);
              // superball
              this.setTitle("Superball created by Hannes Karlsson");
              this.setLocation(new Point(0, 0));
              this.setSize(new Dimension(617, 450));
              this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              this.setResizable(false);
         /** Add Component Without a Layout Manager (Absolute Positioning) */
         private void addComponent(Container container,Component c,int x,int y,int width,int height)
              c.setBounds(x,y,width,height);
              container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jPanel1_keyPressed(KeyEvent e)
              System.out.println("\njPanel1_keyPressed(KeyEvent e) called.");
              // TODO: Add any handling code here
              if(e.getKeyCode()==e.VK_LEFT) // when the user enters left
                  jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setIcon(new ImageIcon("IMG\\ballroll.gif"));
                        } // equalling PLAIN_SPEED
                                            if(e.getKeyCode()==e.VK_RIGHT) // when the user enters right
                  jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setIcon(new ImageIcon("IMG\\ballroll.gif"));
                        } // equalling PLAIN_SPEED
                                                                if(e.getKeyCode()==e.VK_UP) // when the user enters up
                  jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setIcon(new ImageIcon("IMG\\balljetpack.gif"));
                        } // equalling PLAIN_SPEED
                                                                                    if(e.getKeyCode()==e.VK_DOWN) // when the user enters up
                  jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setIcon(new ImageIcon("IMG\\ballroll.gif"));
                        } // equalling PLAIN_SPEED     
                        if(bally>=340)
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                                  System.out.println("LOW!!!");
                        if(bally<=-2)
                        jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setLocation(new Point(ballx, bally++));
                        jLabel5.setLocation(new Point(ballx, bally++));
                                  System.out.println("HIGH!!!");
                                            if(ballx>=594)
                        jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setLocation(new Point(ballx--, bally));
                        jLabel5.setLocation(new Point(ballx--, bally));
                                  System.out.println("RIGHT!!!");
                                                                if(ballx<=-3)
                        jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setLocation(new Point(ballx++, bally));
                        jLabel5.setLocation(new Point(ballx++, bally));
                                  System.out.println("LEFT!!!");
                                                                           if (bally==294 && (ballx > 218 && ballx < 274))
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                                                                           if (bally==262 && (ballx > 246 && ballx < 306))
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                                                       if (bally==230 && (ballx > 486 && ballx < 562))
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                                        if (bally==310 && (ballx > 486 && ballx < 594))
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                         if (bally==262 && (ballx > 442 && ballx < 514))
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
          if (bally==294 && (ballx > 378 && ballx < 466))
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                        jLabel5.setLocation(new Point(ballx, bally--));
                   // COIN
                         if ((bally > coiny-10 && bally < coiny+10) && (ballx > coinx-10 && ballx < coinx+10))
                coinx = Math.abs(r.nextInt()) % 617 + 1;
                coiny = Math.abs(r.nextInt()) % 300 + 1;
                   jLabel9.setLocation(new Point(coinx, coiny));
                        System.out.println("Coinx:"+coinx+"");
                        System.out.println("Coiny:"+coiny+"");
                        jLabel1.setText(""+ coin++ +"");
                        System.out.println("Ballx:"+ballx+"");
                        System.out.println("Bally:"+bally+"");
         private void jPanel1_keyReleased(KeyEvent e)
              System.out.println("\njPanel1_keyReleased(KeyEvent e) called.");
              // TODO: Add any handling code here
              jLabel5.setIcon(new ImageIcon("IMG\\ballstanding2.gif"));
         private void jPanel1_keyTyped(KeyEvent e)
              System.out.println("\njPanel1_keyTyped(KeyEvent e) called.");
              // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
    //============================= Testing ================================//
    //=                                                                    =//
    //= The following main method is just for testing this class you built.=//
    //= After testing,you may simply delete it.                            =//
    //======================================================================//
              public void Reminder(int seconds) {
            timer = new Timer();
            timer.schedule(new RemindTask(), seconds*1000);
        class RemindTask extends TimerTask {
            public void run() {
                System.out.format("Time's up!%n");
                timer.cancel(); //Terminate the timer thread
         public static void main(String[] args)
              JFrame.setDefaultLookAndFeelDecorated(true);
              JDialog.setDefaultLookAndFeelDecorated(true);
              try
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              catch (Exception ex)
                   System.out.println("Failed loading L&F: ");
                   System.out.println(ex);
           new superball();
                    new Reminder(5);
            System.out.format("Task scheduled.%n");
    //= End of Testing =
    }

    No, it's because you can't have a constructor called Reminder if you don't have a class named Reminder.

  • Variable declaration in BEx - Business scenario's

    Hi,
        I need some documents about all kind of variable declaration with some example business scenarios in MM, FI-CO modules.
    will assign you a reasonable points
    Regards,
    Pooja.S

    Hi Pooja,
    The processing type of a variable may be varies from business requirement.
    In general we will use the processing type:
    Replacement Path : If you specify a variable as a characteristic value, you do not have to specify a text for the characteristic value right away. Instead, you can fill the text field dynamically and specifically for the characteristic that you use for the variable when you execute the query. To do this, define a text variable with automatic replacement.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/bd/589b3c494d8e15e10000000a114084/content.htm]
    Authorisations: If the user belongs to Asia PAciffic region and he must see only details of his region then we can create a variable Region vt Processing type Authorisations so that he vl able to see only that region's data.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/44/599b3c494d8e15e10000000a114084/content.htm]
    SAP EXIT: If you want to define a query that only ever displays the data from the current month, drag the delivered variable “current month” (technical name 0CMONTH) for the characteristic “calendar year/month” (technical name 0CMONTH) into the query filter.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a5702e09411d2acb90000e829fbfe/content.htm]
    Customer Exit: You want to use one characteristic value to calculate a second characteristic value. The InfoProvider only contains the calendar day. However, you now also want to display the cumulated value for the relevant period (beginning with the first day of a quarter) in a query.
    For the first day of the quarter, use a variable with customer exit processing. If you now enter the current calendar day (for example, 06/19/2000), a start date of 06/01/2000 appears in the customer exit, and the cumulated value of this period can be displayed.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a56f5e09411d2acb90000e829fbfe/content.htm]
    I hope this helps you.

  • Why can't I move a variable declaration from inside a Sub to the Declarations area?

    I'm writing an app and so far, so good. But I need wider access to an array defined in my "Form_Load" sub.
    Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ' Assign checkboxes to an array.
    Dim Checkboxes() As CheckBox = {chkThumb01, chkThumb02, chkThumb03, chkThumb04, _
    chkThumb05, chkThumb06, chkThumb07, chkThumb08, chkThumb09, chkThumb10}
    Moving the declaration ("Dim Checkboxes()...") from "Sub frmMain_Load" up into the Declarations space just above it breaks my program. :(
    I tried putting it in a Module and that fails too. The ONLY place it work's is in Form_Load (it's not related to being an array because at least one standard integer variable declaration has this problem too.)
    I have other variables in the Declarations area that work fine (eg: "Dim bolChanges as Boolean"), but for some reason, I can't move others out into what
    should be a more global namespace.
    Anyone know what's going on? Thx.

    No, because this makes no difference.
    Background #1: If you do not write your own constructor (=Sub New), the VB compiler adds a default constructor. It contains a call to Sub InitializeComponent. In this Sub, the controls are created and assigned to chkThumb01 etc. You see it if you type "Sub
    New[Enter]":
    Sub New()
    InitializeComponent()
    End Sub
    Background #2: If you write
    Public Class Test
    Private values As Integer() = {1, 2, 3}
    End Class
    it is identical to
    Public Class Test
    Private values As Integer()
    Sub New()
    values = New Integer() {1, 2, 3}
    End Sub
    End Class
    As you can see, the assignments that you do to fields of the class in the declaration line are actually executed in the constructor (sub new).
    Now put both backgrounds together. Consequently, this code
    Public Class Form1
    Private buttons As Button() = {Button1, Button2, Button3}
    End Class
    is identical to this one:
    Public Class Form1
    Private buttons As Button()
    Sub New()
    buttons = New Button() {Button1, Button2, Button3}
    InitializeComponent()
    End Sub
    End Class
    Obviously, the assignment to variable "buttons" is done before the call to Sub InitializeComponent. At this point, variables Button1, Button2 and  Button3 are still empty (Nothing) because they will be set in Sub InitializeComponent. Consequently,
    the array buttons contains just {Nothing, Nothing, Nothing}
    In opposite, if the array buttons is set in the Load event, Button1, Button2 and Button3 have already been set before, Consequently, the array buttons correctly contains references to the three buttons.
    Armin

  • Same variable declaration in package

    Hi
    Please go through below lines of code where I have declared same variable 2 times, which got compiled successfully. But If I do the same in stand alone procedure it throws an error. In case of creation of package it says package created. Can anyone justify to this .....
    SQL> create or replace package
    2 may221
    3 as
    4 a number := 10 ;
    5 a number := 20 ;
    6 procedure p1(a number) ;
    7 end ;
    8 /
    Package created.
    SQL> create or replace package body may221
    2 as
    3 procedure p1(a number)
    4 as
    5 begin
    6 dbms_output.put_line(a) ;
    7 end ;
    8 end ;
    9 /
    Package body created.
    SQL> set serverout on
    SQL> exec may221.p1(20);
    20
    PL/SQL procedure successfully completed.
    SQL> begin
    2 dbms_output.put_line(may221.a) ;
    3 end ;
    4 /
    dbms_output.put_line(may221.a) ;
    ERROR at line 2:
    ORA-06550: line 2, column 32:
    PLS-00371: at most one declaration for 'MAY221.A' is permitted in the declaration section
    ORA-06550: line 2, column 4:
    PL/SQL: Statement ignored
    Thanks and Regards
    JC

    > I checked it's working fine.. no errors..
    Oracle version?
    There is an error as there are two definitions of variable a. This will generate a run-time error when that variable is used.
    However, the result of procedure P1 is not an error.
    It is all a matter of scope. Scope determines the resolution of a reference (like a variable name, object name, column name, table name, etc.)
    The scope is first local - which means the local code block is checked for resolution. And the variable a is found. In o-o terms, when you refer to variable a it is first resolved as self.a - and only when that fails, the scope changes to the "encapsulating" unit which is the package.
    The following code illustrates:
    SQL> create or replace package FooPackage is
    2 a number := 10;
    3 a number := 11;
    4
    5 procedure Show( a number );
    6 end;
    7 /
    Package created.
    SQL> show errors
    No errors.
    SQL>
    SQL>
    SQL> create or replace package body FooPackage is
    2 procedure Show( a number ) is
    3 begin
    4 DBMS_OUTPUT.put_line( a ); -- <= resolved as self.a
    5 end;
    6 end;
    7 /
    Package body created.
    SQL> show errors
    No errors.
    SQL>
    SQL>
    SQL> exec FooPackage.Show( 12 )
    12
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_OUTPUT.put_line( FooPackage.a );
    BEGIN DBMS_OUTPUT.put_line( FooPackage.a ); END;
    ERROR at line 1:
    ORA-06550: line 1, column 40:
    PLS-00371: at most one declaration for 'FOOPACKAGE.A' is permitted
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

  • Object Variable vs Object

    I am very confused on this "Object Variable vs Object" thing.
    Pls refer to the code below:
    class Test
           static void show()
              System.out.println("Show method in Test class");
    public class Q2 extends Test
          static void show()
              System.out.println("Show method in Q2 class");
          public static void main(String[] args)
               Test t = new Test();
               t.show();
               Q2 q = new Q2();
               q.show();
               t = q;
               t.show();
               q = t; // line 25
               q.show();
      }The code above should encounter error at line 25, because of incompatible type. The solution is to cast it to type Q2. But, I do not know why should I cast it. I thought:
    t = q; // assign object of type Q2 to variable of type Test, so now
    t is object of type Q2.
    so,
    q = t; // when I assign object of type Q2 to variable of type Q2, I
    thought that is acceptable, but it is not. WHY?
    Thanks!

    Thanks!
    However, there is another question!
    Can I say, after t = q, it is actually becomes
    Test t = new Q2(); ??
    if so, then why when
    q = t; // error?? Isn't this statement indirectly means Q2 q = new Q2()? Is so, why must we cast?
    Thanks again!

  • Binding done at variable declaration

    What is difference between
        int x;
        x=5;
    and
    int x=5;
    What are different binding takes place?
    How Binding differs in both the cases?
    Can anybody please tell me about it.

    Hello Tomasz,
    welcome in the SAP GUI Scripting forum.
    You add at first the SAP GUI Scripting API library as reference to your VBA project from the Tools menu.
    Now you can use this code with explicit variable declaration:
    Option Explicit
    Sub Test()
      On Error Resume Next
      Dim SapGuiAuto As Object
      Dim SAPGUIApp As SAPFEWSELib.GuiApplication
      Dim Connection As SAPFEWSELib.GuiConnection
      Dim Session As SAPFEWSELib.GuiSession
      Set SapGuiAuto = GetObject("SAPGUI")
      If SapGuiAuto Is Nothing Then
        Exit Sub
      End If
      Set SAPGUIApp = SapGuiAuto.GetScriptingEngine
      If SAPGUIApp Is Nothing Then
        Exit Sub
      End If
      Set Connection = SAPGUIApp.Children(0)
      If Connection Is Nothing Then
        Exit Sub
      End If
      Set Session = Connection.Children(0)
      If Session Is Nothing Then
        Exit Sub
      End If
      'Your Code here
    End Sub
    Good luck.
    Cheers
    Stefan

  • AddChild / removeChild variables declaration (when is best?)

    I am putting together my file right now which is now using visual elements purely added and removed via AS3 (addChild / removeChild) methods. My question is just about the proper time / place to declare their variables.
    Can I declare them all at the start of the movie (frame 1) and just call them when I need them, or is it better to declare them on the frames that they are introduced on? I guess the question is really, will I ever lose those variables throughout the movie once they are declared?
    thanks.

    you won't lose variable declarations.  the only thing that could cause a problem was if you referenced an object in a frame where the object doesn't exist.   but you can declare variables to have an object types and do not need to point the variables to objects (until later in your code).

  • Invalid package declaration:

    If you read my post a few messages down, I asked how to add a package in NetBeans. Solved (THANKS).
    But now I get this error when I mouseover the items in the package. Can I get an exact walkthrough on what to do to enable a package to work in NetBeans?
    l'll be more specific. I downloaded the jpb package from http://knking.com/books/java/ (Near the bottom)
    NetBeans saves my projects in C:\Documents and Settings\Administrator. So (In accordance with the instructions given in the book) I made the dir. C:\Documents and Settings\Administartor\jpb and inserted 3 .java files in it (SimpleIO.java Convert.java and DrawableFrame.java). From this point, what do I do so that (in netbeans) I can type import jpb.* and not get any errors?
    THANKS AGAIN FOR EVERYONE WHO HELPS

    You must compile these files, and I suggest you to
    create a jar library:
    New project -> General -> Java Class Library
    Copy your sources in it and build project. This will
    generate a .jar in the dist folder in mounted
    filesystem.
    Now add this builded jar in your project library as
    commented before.
    mariOHey there, I'm also a newb facing a similar error...
    I backed up a package by copy - pasting it and now i mounted it. However, when i mouseover any of its classes it says "Invalid package declaration" and i can't solve it....
    pls help
    THX!!!

  • Unexpected Fortran compiler behavior on variable declarations.

    There are several problems concerning Sun Fortran compiler for Linux, concerning variable declarations:
    (1) A variable can be declared two or more times within the same
    program scope. Surprisingly, the compiler accepts this, without any error or
    warning message. This is clearly a bug.
    (2) There is no warning message if a variable is used but never set, even if the -w4 flag is used. This is a serious bug.
    (3) There is no warning message if a variable is declared but never
    used.
    To illustrate the bugs, compile the following simple program:
    module fooModule
    implicit none
    public :: add
    contains
    function add(x,y)
    real, intent(in) :: x,y
    real :: unused ! This variable is never used and never set; no warning message.
    real :: add
    add=x+y
    end function add
    end module fooModule
    program TryProg
    use fooModule
    implicit none
    real :: x
    integer :: i
    integer :: i ! Duplicated declaration. The compiler accepts this!
    i=3
    print*,i
    print*,add(x,2.0) ! Variable x is used but not set; no warning message.
    end program TryProg
    EXPECTED BEHAVIOR:
    (1) Something like "ERROR: Duplicate declaration of 'i'" or "ERROR:
    Symbol 'i' already has basic type of INTEGER."
    (2) WARNING: Variable 'x' is used but not set.
    (3) WARNING: Variable 'unused' is never used and never set.
    ACTUAL BEHAVIOR:
    No error or warning messages; expected one error and two warnings.
    The bugs appear in all Fortran compilers for Linux, including latest release, SSX2.

    There are several problems concerning Sun Fortran
    compiler for Linux, concerning variable
    declarations:
    (1) A variable can be declared two or more times
    within the same
    program scope. Surprisingly, the compiler accepts
    this, without any error or
    warning message. This is clearly a bug.
    The bugs appear in all Fortran compilers for Linux,
    including latest release, SSX2.You have cited a number of constraint violations. The
    Fortran standard states
    A processor conforms to this standard if
    (3) It contains the capability to detect and report the
    use within a sumitted program unit of an
    additional form or relationship that is not
    permitted by the numbered syntax rules or
    constraints, including the deleted features
    described in Annex B;
    In English, this statement means that a conforming
    implementation must be able to detect and report
    syntax errors and constraint violations. It does not
    mean that it must detect and report them by default.
    Sun f95, like most other Fortran compilers, does not
    give errors or warnings for the use of common
    extensions by default. The option -ansi enables
    the compilation mode that reports such uses.
    For example, when I compile the program
    PROGRAM MAIN
    REAL X
    REAL X
    END
    with the option -ansi, I get
    REAL X
    ^
    "t.f", Line = 2, Column = 1: ANSI: Use of the tab character is an extension of the Fortran standard.
    REAL X
    ^
    "t.f", Line = 3, Column = 7: ANSI: "X" has been given the REAL attribute more than once. This is nonstandard.
    f90comp: 4 SOURCE LINES
    f90comp: 0 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 2 ANSI
    The caret lines up with the identifer X in the output. The column
    number is given as column 7, because the letter X is the seventh
    character in the line.

  • Create directory / object name must NOT be case sensitive

    SQL Dev. 2.1 - the wizard, chosen from the left side navigator, submits a wrong create statement in which the object name becomes case-sensitive. This should not be so! Even if you write the new object name in small letters , the object name must end up in the data dictionary with capitals. kind regards Inger ([email protected])

    Which wizard? If I use a create table wizard, for example, and enter the table in lower case, this is indeed stored in the DB as upper case, as you require.
    Please provide more detail for your problem.
    Sue

  • Using a static variable declared in an applet in another class

    Hi guys,
    I created an applet and i want to use one of the static variables declared in teh applet class in another class i have. however i get an error when i try to do that...
    in my Return2 class i try to call the variable infoPanel (declared as a static JPanel in myApplet...myApplet is set up like so:
    public class myApplet extends JApplet implements ActionListener, ListSelectionListener
    here are some of the lines causing a problem in the Return2 class:
    myApplet.infoPanel.removeAll();
    myApplet.infoPanel.add(functionForm2.smgframeold);
    myApplet.infoPanel.validate();
    myApplet.infoPanel.repaint();
    here are some of the errors i get
    dummy/Return2.java [211:1] package myApplet does not exist
    myApplet.infoPanel.removeAll();
    ^
    dummy/Return2.java [212:1] package myApplet does not exist
    myApplet.infoPanel.add(functionForm2.smgframeold);
    ^
    dummy/Return2.java [213:1] package myApplet does not exist
    myApplet.infoPanel.validate();
    ^
    dummy/Return2.java [214:1] package myApplet does not exist
    myApplet.infoPanel.repaint();
    ^
    please help! thanks :)

    I don't declare any packages though....i think it just doesn't recognize myApplet for some reason..
    other errors i got compiling are:
    dummy/Return2.java [82:1] cannot resolve symbol
    symbol : variable myApplet
    location: class Return2
    updateDesc.setString(3, myApplet.staticName);
    I Don't get why i'm getting this error cuase they worked fine when myApplet was a standalone application, not an applet.
    myApplet is in the same folder as Return2 and it compiles properly.

  • Invalid Variable Name

    Dear Experts,
    In Vendor Liabilities Aging Report PLD Name (Vendor Statement Report) I am getting error as :
    Printing Error:Invalid variable number (RPT -6300) (Field: F_132) Variable '39'  [Message 200-38]
    In Report BP Ref. Field is variable and no. is '39' but when put in PLD its raising above error.
    Plz help. Any help or suggestions will highly appreciated.
    Regards,
    Ravi

    Hi Ravi......
    This will give you the same error again and again if you try to do it with the same way.
    The reason behind it is for this Aging Report couple of fields have same Variable No. so SAP does not recognize to get it print so it gives this error.
    Open PLD and add the DB field on row level and link link this field to Invoice Ref. No.
    you get this Table in Dropdown list of Dababases.....
    Hope this will give you clear picture how it would be done.......
    Regards,
    Rahul

  • Error while reading: 'ungültiges Anmerkungsobjekt' (invalid annotation(al object))

    Dear users,
    I am currently reading and taking notes (highlighting and commentary) on a pdf document.
    Since last week, whenever I open it and reach the page where I stopped reading I get an error:
    'ungültiges Anmerkungsobjekt' (=invalid annotation(al object)). When I click on ok it reappears several times.
    As soon as I scroll it starts over. Other pdf documents works properly.
    What can I do?
    Thanks a lot
    Cristy

    On 3/24/2015 same problems, after Adobe Acrobat 9 pro. crashed while I added text boxes.. When I opened Adobe again, Yes to open the last file which didn't save correctly, then "Invalid Annotation Object" errors on my .pdf file of 96 pages
    - first, I had to acknowledge/click the OK button until all " invalid annotation objects" error pop-up windows are gone
    (for my file with 96 pages, i had to hit the OK button more than hundreds times - need patience)
    - then found out (later) that what I did turn out to be the same steps as following post by davidsdomingo in adobe.forums
    davidsdomingo May 28, 2009 1:39 PM (in response to (Holger_Wulf))
    Here is a technique for identifying all the pages that have invalid annotation objects on them:
    1. Document > Extract Pages ...
    •Select the checkbox for "Extract Pages As Separate Files"
    •Set the destination to a 'dedicated' folder that won't contain any other files -- that way, you can simply delete the folder when this process is done.
    •Click OK.
    2. During the extraction, click OK in all the message boxes that appear.
    3. After the extraction, look in the destination folder to see which pages are missing. Those are the pages that have invalid annotation objects.
    From this point you can try to delete the objects, or simply delete and replace the pages, or implement a different solution. Hope this helps someone.
    - after extract the 96-pages file into individual files into a dedicated folder, only 95 got extracted and page 1 was not/can not be extracted.
    - I then combined the 95 good extracted pages into a new file name .pdf
    - then inserted a good page 1 without error (from the file that was saved previous day, prior to all the changes I made on the corrupted file), re work on page 1
    - delete the bad file.
    Hope this helps someone.

Maybe you are looking for

  • Create table in Database Under Creating Direct Database Request in Answers

    When creating the table, I got the following error: State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError:

  • PDF won't view in safari

    Hi When I try to open or view PDF files on the web with Safari the page wont load. This is a big problem for me as I am a student. any Ideas Thanks

  • How to determine what's using data store temp space?

    How can one determine what's using data store temp space? We are interested to know what structures are occupying space in temp space and if possible what pid/process connected to TimesTen created them. Also, is there a procedure that will work if te

  • DGCserver messages in log... "Tried to renew lease on lost reference"

    Hi,           I am running weblogic server 6.1 and get the following messages           ####<Jan 30, 2002 2:36:55 PM CST> <Info> <DGCserver> <MBarton> <myserver> <ExecuteThread: '12' for queue: 'default'> <> <> <000000> <Tried to renew lease on lost

  • Video clip how do no when they are used

    Can any oneadvise me how you tell when you have used a clip in your time line. i am finding it hard to work out which clips I have used.