Copy paste of a package to another user gives error ..

Hi,
I have created a package having procedures in a user .Now when i copy and paste that package in another server user,that is giving error . When i separatelly run the code where error is shown, then is ran successfully.
All the errors says that "table or view does not exist" ,even the table exists ,since they are saying about system tables.
The error code is ORA-00942
What is this problem ?
Thanks.
Edited by: user12222356 on Jun 14, 2010 10:04 AM

ok,this is the exact package code.
i am using Oracle 10g
CREATE OR REPLACE PACKAGE BODY GKP020 AS
PROCEDURE TABLE_NAME (tb_cursor OUT md_cursor)
AS BEGIN
OPEN tb_cursor FOR SELECT DISTINCT UPPER(TABLE_NAME) FROM DBA_CONSTRAINTS WHERE owner='GIUSR'
                AND CONSTRAINT_TYPE = 'P' AND table_name IN (SELECT OBJECT_NAME
               FROM dba_objects WHERE owner = 'GIUSR' AND object_type = 'TABLE'
               AND object_name NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG') AND object_name LIKE ('%YKPI_%')) MINUS SELECT DISTINCT TABLE_NAME
               FROM DBA_CONSTRAINTS WHERE owner='GIUSR' AND CONSTRAINT_TYPE = 'R'
               AND table_name IN (SELECT OBJECT_NAME FROM dba_objects WHERE owner = 'GIUSR'
               AND object_type = 'TABLE' AND object_name NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG')) UNION
               (SELECT OBJECT_NAME FROM dba_objects WHERE owner = 'GIUSR' AND object_type = 'TABLE'
               AND object_name NOT LIKE ('%_BKP')  AND object_name NOT LIKE ('%_LOG') AND object_name LIKE ('%YKPI_%')MINUS (SELECT DISTINCT TABLE_NAME FROM DBA_CONSTRAINTS
               WHERE owner='GIUSR' AND CONSTRAINT_TYPE = 'P' AND table_name IN (SELECT OBJECT_NAME
               FROM dba_objects WHERE owner = 'GIUSR' AND object_type = 'TABLE' AND object_name
               NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG')) MINUS SELECT DISTINCT TABLE_NAME FROM DBA_CONSTRAINTS WHERE owner='GIUSR'
               AND CONSTRAINT_TYPE = 'R' AND table_name IN  (SELECT OBJECT_NAME FROM dba_objects
               WHERE owner = 'GIUSR' AND object_type = 'TABLE' AND object_name NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG'))))
               MINUS ( SELECT DISTINCT origtab FROM (SELECT a.owner ORIGOWNER, a.constraint_name ORIGCONS,
               a.constraint_type ORIGCONSTYP,  a.table_name ORIGTAB, b.column_name ORIGCOL,
               b.position ORIGCOLPOS, a.r_owner FKOWNER, a.r_constraint_name FKCONS, c.Table_name FKTABS,
               c.column_name FKCOL, c.position FKCOLPOS FROM dba_constraints a, dba_cons_columns b,
               dba_cons_columns c WHERE a.owner='GIUSR' AND a.table_name IN (SELECT OBJECT_NAME
               FROM dba_objects WHERE owner = 'GIUSR' AND object_type = 'TABLE' AND object_name
               NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG')) AND a.constraint_type='R' AND a.owner=b.owner AND a.table_name=b.table_name
               AND a.CONSTRAINT_NAME = b.CONSTRAINT_NAME AND a.owner=c.owner
               AND a.r_constraint_name = c.constraint_name AND b.position = c.position) aa
               LEFT OUTER JOIN (SELECT DISTINCT TABLE_NAME FROM DBA_CONSTRAINTS    WHERE owner='GIUSR'
               AND CONSTRAINT_TYPE = 'P' AND table_name IN (SELECT OBJECT_NAME FROM dba_objects
               WHERE owner = 'GIUSR' AND object_type = 'TABLE' AND object_name NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG'))
               MINUS SELECT DISTINCT TABLE_NAME FROM DBA_CONSTRAINTS WHERE owner='GIUSR'
               AND CONSTRAINT_TYPE = 'R' AND table_name IN (SELECT OBJECT_NAME FROM dba_objects
               WHERE owner = 'GIUSR' AND object_type = 'TABLE' AND object_name NOT LIKE ('%_BKP') AND object_name NOT LIKE ('%_LOG'))) bb
               ON aa.FKTABS=bb.TABLE_NAME WHERE bb.TABLE_NAME IS NULL);
END TABLE_NAME;
PROCEDURE COLUMN_NAME (tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT column_name FROM dba_tab_columns
               WHERE owner='GIUSR' AND table_name= tab_name
               AND column_name NOT LIKE ('%_MANDT') AND column_name NOT LIKE ('%_CRT_ID')
               AND column_name NOT LIKE ('%_CRT_TS') AND column_name NOT LIKE ('%_UPD_ID')
               AND column_name NOT LIKE ('%_UPD_TS') AND column_name NOT LIKE ('%_FL_ACTIVE')
               AND column_name NOT LIKE ('%_DEFN') AND column_name NOT LIKE ('%_PIC');
END COLUMN_NAME;
PROCEDURE PRMKY_COL (tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT COLUMN_NAME FROM dba_cons_columns a, dba_constraints b
                   WHERE a.table_name = tab_name AND a.OWNER = 'GIUSR' AND b.constraint_type = 'P'
                      AND a.table_name = b.table_name AND a.owner = b.owner
                   AND a.CONSTRAINT_NAME = b.CONSTRAINT_name MINUS
                   SELECT COLUMN_NAME FROM dba_cons_columns a, dba_constraints b
                   WHERE a.table_name = tab_name AND a.OWNER = 'GIUSR' AND b.constraint_type = 'R'
                   AND a.table_name = b.table_name AND a.owner = b.owner
                   AND a.CONSTRAINT_NAME = b.CONSTRAINT_name;
END PRMKY_COL;
PROCEDURE ALL_PRMKY_COL (tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT DISTINCT COLUMN_NAME FROM dba_cons_columns a, dba_constraints b
                   WHERE a.table_name = tab_name AND a.OWNER = 'GIUSR' AND b.constraint_type = 'P'
                   AND a.table_name = b.table_name AND a.owner = b.owner
                   AND a.CONSTRAINT_NAME = b.CONSTRAINT_name;
END ALL_PRMKY_COL;
PROCEDURE DDL_COL (tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT COLUMN_NAME FROM dba_cons_columns a, dba_constraints b
                 WHERE a.table_name = tab_name AND a.OWNER = 'GIUSR' AND b.constraint_type = 'R'
                 AND a.table_name = b.table_name AND a.owner = b.owner AND a.CONSTRAINT_NAME = b.CONSTRAINT_name;
END DDL_COL;
PROCEDURE HEADER_NAME (col_name IN VARCHAR2, tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT INITCAP(a.COLUMN_NAME), INITCAP(COMMENTS)
            FROM dba_tab_columns a LEFT OUTER JOIN DBA_COL_COMMENTS c
            ON a.OWNER = c.owner
            AND a.table_name = c.table_name
            AND a.column_name = c.column_name
            WHERE a.table_name =  tab_name
            AND a.OWNER = 'GIUSR'
            AND a.column_name IN (col_name);
END HEADER_NAME;
PROCEDURE DDL_REF_TBL (col_name IN VARCHAR2, tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT DISTINCT c.COLUMN_NAME, c.TABLE_NAME  FROM dba_cons_columns c,
                   (SELECT a.table_name, a.OWNER, b.constraint_type, a.constraint_name,
                   b.R_constraint_name, a.COLUMN_NAME FROM dba_cons_columns a, dba_constraints b
                   WHERE a.table_name = tab_name AND a.OWNER = 'GIUSR' AND b.constraint_type = 'R'
                   AND a.table_name = b.table_name AND a.OWNER = b.OWNER
                   AND a.constraint_name = b.constraint_name
                   AND a.COLUMN_NAME = col_name ) d
                   WHERE c.owner=d.owner AND c.constraint_name=d.R_Constraint_Name
                   AND SUBSTR(c.column_name, 4, LENGTH(c.column_name)-3) = SUBSTR(d.column_name, 4, LENGTH(d.column_name)-3);
END DDL_REF_TBL;
PROCEDURE DDL_REF_CLMN (tab_name IN VARCHAR2, tb_cursor OUT md_cursor)
AS
BEGIN
OPEN tb_cursor FOR SELECT DISTINCT COLUMN_NAME, TABLE_NAME FROM DBA_COL_COMMENTS
               WHERE OWNER = 'GIUSR' AND Comments='Description' AND table_name =tab_name;
END DDL_REF_CLMN;
END GKP020;The error list is:
>
LINE/COL ERROR
4/20 PL/SQL: SQL Statement ignored
6/21 PL/SQL: ORA-00942: table or view does not exist
38/20 PL/SQL: SQL Statement ignored
38/44 PL/SQL: ORA-00942: table or view does not exist
49/20 PL/SQL: SQL Statement ignored
49/64 PL/SQL: ORA-00942: table or view does not exist
61/20 PL/SQL: SQL Statement ignored
61/73 PL/SQL: ORA-00942: table or view does not exist
70/20 PL/SQL: SQL Statement ignored
70/64 PL/SQL: ORA-00942: table or view does not exist
77/20 PL/SQL: SQL Statement ignored
LINE/COL ERROR
78/52 PL/SQL: ORA-00942: table or view does not exist
90/20 PL/SQL: SQL Statement ignored
92/80 PL/SQL: ORA-00942: table or view does not exist
103/20 PL/SQL: SQL Statement ignored
103/65 PL/SQL: ORA-00942: table or view does not exist
>
Edited by: user12222356 on Jun 14, 2010 11:45 AM

Similar Messages

  • How do I copy & paste from an email to another web site?

    How do I copy & paste from an email to another web site?

    Hello, not quite sure what it is you want to do.
    In Mail you can copy something by highlighting it & CMD+c, or Mail>Edit>Copy, but whether you can paste it to a website, not sure, but you could say paste in in a Reply here...
    Re: Grey Screen with spinning gear
    reply from duwatucan in Mac mini - View the full discussion
    Congratulations, your post has solved duwatucan's question.
    Learn more about the Apple Support Communities Reputation System
    Did this help? Go to the message, sign in, and reply
    Start a new discussion in the same community

  • I am working in windows 7 and I am trying to enable the copy/paste and I can not find user.j file in the profile and I am not real sure how to create a file, I can create a folder .

    I am trying to copy text from a word document and paste it into my web builder and it says that firefox does not support copy/paste from clipboard. Went to your site and it tells me to open the user.j file in my profile. This file does not exist and I am not real sure how to create that file so I can paste the fix from your site into it.

    I went to that link and added to firefox add on but it still does not work. I went to the add on option button for this but it told me that my MYSIWG widget was disabled. Does this have something to do with it not working and if so how do you enable it.

  • Copying contents of 1 package to another

    heyy guys,
    Can we copy all the components of one package to another on the same server and same application?
    if yes, then how?

    Hi
    If your need is only to change the package you can do this by se03 -> chage object directory entries-> enter package name -
    > execute  -
    >select each object -> change object dir> assign new package----.
    But above procedure dont have a copy in source package as it moves the object from source to target.
    If u need in both u have to create each object by copying from existing and assigning to new package which is time consuming process.
    regards
    sateesh

  • Cannot open .odc files created by another user - Unexpected error

    I have exported an .odc file from Excel into a shared Data Connection Library. The connection file works fine for myself and the data refreshes, however when another user tries to either open the .odc file direct from the Library or refresh
    the data from the excel file they receive an error.
    I have checked the Sharepoint permissions and all the users attempting to access the connection file have the same as myself. The library has also been saved as a Trusted Location by each user and the Excel Services Authentication when the .odc
    file was created was set as the standard Windows Authentication.
    I asked a user to create another .odc file for the same data and they were able to save this into the connection library. However the same error occurs when I try to access this new file. The error I recieve is 'An unexpected error has occured. Changes to
    your data cannot be saved'. I can open the connection files that I have created but not ones that others have.
    I am only an end user so I don't have access to Central Administraion to configure the Unattended Account in the Excel Service Administration page as suggested in another post.
    So is there any other way around this issue?
    Thanks.

    Hi,
    An ODC file is just a txt file and can be opened with notepad to edit. A Data Connection Library needs to be Trusted via Central Administration, Manage Service Applications, Excel Services Application, Trusted Data Connection Libraries, Click Add Trusted
    Data Connection Library. However, you should still be able to  open someone else's ODC file unless its been saved as a draft?
    -Ivan

  • Add group to AD user gives errors

    Hi,
    I have AD 9.1.1.5 connector installed in our environment and adding AD group to the user gives the below error:
    ERROR,28 Sep 2011 04:31:59,280,[OIMCP.ADCS],================= Start Stack Trace =======================
    ERROR,28 Sep 2011 04:31:59,280,[OIMCP.ADCS],com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController : hashTableEnvForDirContext
    ERROR,28 Sep 2011 04:31:59,280,[OIMCP.ADCS],
    ERROR,28 Sep 2011 04:31:59,280,[OIMCP.ADCS],Description : null
    ERROR,28 Sep 2011 04:31:59,280,[OIMCP.ADCS],java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:396)
    at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.hashTableEnvForDirContext(Unknown Source)
    at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.connectToAvailableAD(Unknown Source)
    at com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController.getAttributeValues(Unknown Source)
    at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.addUserToGroup(Unknown Source)
    Thanks!

    Run OIM under debugger, set a breakpoint at tcADUtilLDAPController.hashTableEnvForDirContext(). Check that the map in the hmConstantsLookUp instance field has the following attributes set:
    "SCONTEXTFACTORY"
    "ATT_BINARY"
    "LDAP_OBJECT_GUID"
    "SSL"
    check also that the following instance fields are not null:
    sPrincipal
    sPassword

  • Why when i copy paste documents from download to another folder,then i delete them from the downloads ,it will be erased at all?

    I dl a file it goes to my doenload folder,then i copy it to another folder for example document,then when i delete it from download it will erase at all? why?
    is it ok to have the file in both downloads and document? it will not be more size?

    If you copy it to another folder, e.g., Documents, and you can see it in the Downloads folder then you now have two copies of the file. If you delete one copy, the other stays intact. If you keep both, there is no harm, although the amount of disk space used is twice as big as when you only keep one copy.

  • Can't copy past to desktop on Terminal server user profile

    Hi,I have a problem that I've seen posted in the forums but can not find a solution.  I am using windows 2008 r2 Terminal servers to log user on to the environment.  My users can't create/Copy/save files/shortcuts to the desktop.  My Terminal
    server profile path is filled out correctly and each user has full access to respective profile folder.
    Any help would be very much appreciated. 
    Thank you. 

    Hi,
    Thank you for posting in Windows Server Forum.
    Which client RDP version using for your environment?
    Please make sure that you not enabled “Do not allow clipboard redirection” in GPO setting under below mention path.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection
    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection
    More information.
    Make Local Devices and Resources Available in a Remote Session
    http://technet.microsoft.com/en-us/library/cc770631.aspx
    Also see that you have enable clipboard redirection. On client side please check following setting:
    1.  On Windows client machine, type mstsc.exe and press Enter.
    2.  Click the Options button, click Local Resources tab and make sure that the
    Clipboard check box has been selected.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Copy files in home folder to another user?

    Hi,
    I recently underwent a name change.
    So, I set up a new admin user account with my new name/new short name. How do I give my new self access to exactly the same desktop/stuff my old self had access to?
    Thanks,
    Shambhavi (formerly known as Lalita)

    If you log in to your root account you should be able to transfer any files from the old account's folders into those of the new account. Just be very careful about what you do while logged in to the root user account.
    If you have no idea what the "root user" is, read this:
    http://docs.info.apple.com/article.html?artnum=106290
    Hope this helps.
    Darren

  • Package/Import statements - javac gives errors while Netbeans does not

    I do not know why, but when I compile/run my code with the statements
    package TavisProject;
    import TavisProject.LabelAndButtonFrame;
    in Netbeans, everything works properly as it should. However, if I try to compile the SAME files with javac at the cmd line, I get the errors:
    C:\FinalProject\src\TavisProject>javac Main.java
    Main.java:22: cannot find symbol
    symbol : class LabelAndButtonFrame
    location: class TavisProject.Main
    LabelAndButtonFrame labelAndButtonFrame = new LabelAndButtonFram
    e(); // Instantiates/calls labelAndButtonFrame
    ^
    Main.java:22: cannot find symbol
    symbol : class LabelAndButtonFrame
    location: class TavisProject.Main
    LabelAndButtonFrame labelAndButtonFrame = new LabelAndButtonFram
    e(); // Instantiates/calls labelAndButtonFrame
    ^
    2 errors
    Also, if you comment out the statements in both files, everything compiles fine with javac. Also, please note that LabelAndButtonFrame.java is in the same folder as Main.java.
    I'm trying to get a batch file to work properly that will compile/create javadoc, but I can't get it to work without figuring
    out what the deal is with those package/import statments causing problems.
    Thanks,
    Tavis
    The main code is as follows:
    package TavisProject;
    import TavisProject.LabelAndButtonFrame;
    import javax.swing.JFrame;
      * @author Tavis Curry
      * @version 1.0
      * This Class is called MainMethod. It instantiates/calls labelAndButtonFrame.
      * Uses javax.swing.JFrame
    public class Main
           * Main method
              * This method will call labeAndButtonFrame, set the default close op,
              * set the size of the jframe, and set the jframe to visible
            public static void main(String args[]){
                    LabelAndButtonFrame labelAndButtonFrame = new LabelAndButtonFrame(); // Instantiates/calls labelAndButtonFrame
              labelAndButtonFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); // LabelAndButtonFrame will Exit when the X-button is clicked
                    labelAndButtonFrame.setSize( 550, 70 ); // Sets frame size - width by height
                    labelAndButtonFrame.setVisible(true); // Shows LabelAndButtonFrame
         } // End main method
    } // End class LabelAndButtonFrameMessage was edited by:
    TC10284

    Thanks much. That worked.
    I had EVERYTHING working except this little thing.
    I'm a little confused on why it makes a difference if
    I set this however. Why can the compiler not find the
    files if they're in the same dir?Because it doesn't find files - it finds classes.
    The fact that it can use directories to organize the hierarchy is misleading. That is an easy convention but it doesn't alter the fact that it uses the class path itself along with other rules to find classes (not files.)
    >
    Also, now that I have to set the classpath, how would
    I get this to work inside a batch file that uses env.
    variables to locate the base project?
    Both the java compiler and the java vm tools support a command line option which allows you to fully specify the class path.

  • Data Pump - Trying to Export to *Another Server* Gives Error

    hi experts,
    I'm using 10.2.0.4 on Windows.
    I want to create a Scheduler job to periodically refresh my test database from my production database which resides on a different Windows server.
    Using the Database Control GUI to create the Export job, if I specify a Directory that is on the other server, the job fails to create and I get this error:
    Export Submit Failed
    Errors: ORA-39002: invalid operation ORA-39070: Unable to open the log file. ORA-29283: invalid file operation ORA-06512: at "SYS.UTL_FILE", line 488 ORA-29283: invalid file operation Exception : ORA-39002: invalid operation ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79 ORA-06512: at "SYS.DBMS_DATAPUMP", line 2953 ORA-06512: at "SYS.DBMS_DATAPUMP", line 3189 ORA-06512: at line 2
    But if I use a local directory ie one that is on the same server that the export will run on.... no problem - job is created and it executes fine.
    ?? What is required to be able to export to a non-local destination?
    Thanks, John

    Thanks for the replies and ideas.
    This is what the GUI generated:
    declare
    h1 NUMBER;
    begin
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'DP_EXPORT_SSU', version => 'COMPATIBLE');
    end;
    begin
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    end;
    begin
    dbms_datapump.add_file(handle => h1, filename => 'EXPSSU.LOG', directory => 'DP_FROMULTRAPRD', filetype => 3);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    end;
    begin
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''SSU'')');
    end;
    begin
    dbms_datapump.add_file(handle => h1, filename => 'EXPSSU%U.DMP', directory => 'DP_FROMULTRAPRD', filetype => 1);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    end;
    begin
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    end;
    begin
    dbms_datapump.detach(handle => h1);
    end;
    end;
    After I finally got the job to execute (by specifying a local path), the export completed successfully.... BUT the job does not appear as a Scheduler Job. I expected to see it there. In reading it seems that, to execute a DP job, you first have to attach it, then run dbms_datapump.start_job - is that correct?
    ** How can I see the data pump jobs that exist?
    I will create a database link and tweak my tnsnames file.
    Steve, I prefer to drive this from the Production server so I will use a Network Export from that server going to dump files on the Test server.
    ** But I'm confused by your statement saying "in either case, the job will run on the test server". ??
    2 years from now, when I have forgotten about all of this, I want to only have to look at the scheduled jobs on the Production server to determine all the jobs that depend on that server.
    I'll post back with the results of my little "experiment". Thanks for your suggestions.
    John - Memphis TN USA
    Edited by: user629010 on Dec 23, 2008 3:08 PM

  • Grant permission to all packages in another schema

    Is there a way I can grant access to all the packages in another user's schema?
    Please guide me.
    Thanks!

    The one way is to use cursor :
    BEGIN
      FOR Rec IN (SELECT object_name, object_type FROM all_objects WHERE owner='SOURCEUSER' AND object_type IN ('PACKAGE')) LOOP
          EXECUTE IMMEDIATE 'GRANT EXECUTE ON SOURCEUSER.'||Rec.object_name||' TO TARGETUSER';
        END IF;
      END LOOP;
    END;Edited by: Radrigez on 13.07.2011 21:38

  • Error "Compile error: Invalid character" after copy paste operations in VBE 6.5 PowerPoint 2011

    This is a weird problem with the VBE 6.5 in Office 2011, running natively on a Mac.
    Sometimes, yet often, when I select a word by double clicking on it or a line by highlighting that line in the editor and then copy/paste it somewhere else in the code, the compiler throws the error "Compile error: Invalid character"
    The thing is, what I see has been pasted is exactly the same as the source text. However, if I then paste the same clipboard item to a text editor, I can see that there is an 'invisible' character at the end of the string which is counted in the text editor
    where the cursor is shifted past it but does not shown on the screen!!!
    Back in the VBE, if I select a line that is dubious and drag it, the semi transparent dragged text has a '>' character on a new line.
    In some copy/paste cases, the compiler doesn't see an error but the code doesn't work as expected and I have spent hours debugging stuff that has invisible characters in it (the hardest debugging I've ever had to do!).
    I'm not sure if this example will paste correctly into the forum but this looks like 19 characters but is in fact 20 as there is the offending copy/paste invisible character between 'Test' and '.'
    <code>Test.Value = False</code>
    This seems to be a major oversight in the code of the VBE 6.5 so are Microsoft aware of this and when is it due to be fixed?
    Jamie.

    I had this exact issue.  This is a terrible bug.  The code looks perfect, but there are hidden characters that throw compiler errors.  Thanks for the quick fix, Microsoft.

  • ALV report - copy layout to another user

    Hello,
    I have a question about ALV reports.
    In ALV we have option to select layout and save it by user-specific.
    How to copy this layout to another user?
    Is there some function/Bapi?
    Thanks in advance,
    Michal

    Hi Michael,
    Here are the steps I documented for managing this procedure:
    First Step is to READ the Layout into the Program
         The parameters for the layout can be found in table LTDX
    Goto SE37 and enter: LT_DBDATA_READ_FROM_LTDX
    When (READ) you will input information for the following parameters:
    Report Name
    Handle
    Log Group
    User
    Variant
    Type
    An example is shown below:
    <screen shots didn't load in my response> email if you'd like the document with screen shots>
    Execute.
    Now our next step is to WRITE the information from the program into table: LTDX
    While at the Function Builder Screen enter the new function module: LT_DBDATA_WRITE_TO_LTDX
    When you (WRITE) you will input information for the following parameters:
    Report Name
    Handle
    Log Group
    User
    Variant
    Type
    When completed, your input screen for (WRITE) should look like the screen below:
      <screen shots didn't load in my response> email if you'd like the document with screen shots>
    IMPORTANT     When entering information for IS_VARKEY, remember to use the u201Cnew useru201D ID
    When entering information for IS_VARIANT, remember to enter information exactly as found in table LTDX and remember that the parameter:  DEPENDVARS may be needed to complete your entry
    Now Execute the Function Module.  When completed go to table: LTDX and confirm that your new entry has been added.
    Pre Checklist:
    1.)     Capture entries (users) you want to copy from table: LTDX
    2.)     Make sure you have access to execute function modules/eCATT scripts
    3.)     Make sure you have table display access (needed to find and validate updates)
    If you'd like the documentation with screen shots please reply with your email address.
    Cheers,
    Robert

  • Hello and HELP! Over the years I have saved Invoices in my Documents. I have just tried to open them and all I am getting is " cannot be opened, Invoice**** is used by another user, do you want to make a copy?" That's on all my invoices.

    Can someone help please.
    I have just "lost" ( cannot open) all my saved Invoices in the Document folder.  All I am getting is " cannot open, Invoice ** is used bey another user, do you want to make copy? " That doesn't work either. I can't get anything on the time capsule either. How can I reset to an earlier time? Or what can I do?
    Thank you

    Did you recently reinstall the OS then copy all your files back over? Do a Get info on one of the documents and see if your current UserName is listed and has Read & Write permissions. If not select the Documents folder and check that for Read & Write permissions for your UserName. If it doesn't have R & W permissions Add it so it does.

Maybe you are looking for