AMDP call to Procedure: "SQLScript message: insufficient privilege: Not authorized"

Hi!
the syntax check in SE24 reports an error in line 1 in method MY_HANA_PROCEDURE (pls see first screenshot below). If I remove the call to procedure ZTEST in line 247 the syntax check is successfull. Development in SE24 is performed by user ABAPDEVELOPER whilst the procedure ZTEST has been created by user HANADEVELOPER which has been assigned the schema (the procedure is not in schema HANADEVELOPER) to which the procedure belongs the procedure being called (ZTEST) to the 'Object Privileges' (pls see second screenshot below).
Any ideas out there?

Hi,
please check if all necessary authorizations have been granted to SAP<SID> using report RS_AMDP_SICK.
Is the procedure you want to execute in the catalog, i.e. "_SYS_BIC" schema? Otherwise, you will have to grant the necessary authorizations to SAPHANAABAP (the DB user) for the schema.
Best,
Jasmin

Similar Messages

  • AMDP syntax call to external procedure: "SQLScript message: insufficient privilege: Not authorized"

    I am getting the message "SQLScript message: insufficient privilege: Not authorized" in the syntax check in SE24 for an AMDP call to an external procedure which is not located in the default schema (located in schema MYSCHEMA).
    With DB_DBUSER & DB_DBSCHEMA I have confirmed the default user and schema to both be SAPHANAABAP.
    In HANA Studio the owner of schema MYSCHEMA has granted the following privileges:
    grant debug  on schema MYSCHEMA to SAPHANAABAP;
    grant select on schema MYSCHEMA to SAPHANAABAP;
    grant update on schema MYSCHEMA to SAPHANAABAP;
    grant delete on schema MYSCHEMA to SAPHANAABAP;
    grant insert on schema MYSCHEMA to SAPHANAABAP;
    grant attach debugger to SAPHANAABAP;
    What is the missing piece in this puzzle?

    Thanks

  • SAP DBTech JDBC: [258]: insufficient privilege: Not authorized - SAP HANA

    Dear All,
    We are getting the below error when we tried to call procedure ART_PROC using the SYSTEM user in SAP HANA Studio,
    Could not execute 'call "TESTECC"."ART_PROC"'
    SAP DBTech JDBC: [258]: insufficient privilege: Not authorized
    Kindly provide your suggestions on the same.
    Thanks
    Arun R

    Hello Arun,
    Firstly it is **not** recommended to use SYSTEM for anything other than management tasks.
    My Assumptions
    * the procedure ART_PROC was not created by the SYSTEM user
    Solution : you need to give EXECUTE privileges on the procedure to SYSTEM
    How: Only the user who created the procedure or who has been give grant privilege can give the EXECUTE privilege. SYSTEM cannot give itself this privilege
    For the Grant command check out sec 1.8.6.17 of the http://help.sap.com/hana/SAP_HANA_SQL_Script_Reference_en.pdf
    OR
    in the HANA Studio
    in the System tab expand the system with the log in user as the owner/grantor of the privilege
    here you will see a node called Security.
    Right-click and choose 'Find User/Role'
    Type System in the search dialog that opens - double click on SYSTEM user displayed below
    System user opens up - Navigate to Object Privileges tab
    here using the green '+' button  search for ART_PROC and then on the right side tick the 'Execute' checkbox
    click on save.
    Warm regards
    aadi

  • Insufficient privilege: Not authorized at ptime/query/checker/query_check.cc on hdbsequence

    Hi All,
    I am currently trying to create a table (TOPIC) and a sequence (SEQ_TOPIC_ID) in HCP, and a XSJS service on top of it to insert a entry to the table.
    In my XS project, I placed a TOPIC.hdbtable and SEQ_TOPIC_ID.hdbsequence in it. Both table and sequence are generated correctly in my trial account schema in the hana db.
    Then,in order to grant the access to the table and sequence , I also placed a file model_access.hdbrole in the project folder.
    The content looks like follow:
    role i065831trial.bubuwork.TopicCenter::model_access {
        application privilege: i065831trial.bubuwork.TopicCenter::Basic;
        sql object i065831trial.bubuwork.TopicCenter::TOPIC : SELECT,INSERT;
        sql object i065831trial.bubuwork.TopicCenter::SEQ_TOPIC_ID : SELECT, DROP;
    The issue is, when I call the XSJS service from the web url, I will facing below error:
    Error while executing query: [dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2547]
    the role has been granted to my account, and I am able to insert to the table TOPIC without sequence with above role setting, but If I try to read the SEQ_TOPIC_ID, an insufficient privilege will shown up.
    My question is: Is following line correct to grant the privilege to a role for sequence ? It does not seem to work for sequence  !
    sql object i065831trial.bubuwork.TopicCenter::SEQ_TOPIC_ID : SELECT, DROP;
    Thanks very much!

    Thanks Thomas for your reply, firstly I tried to embed my sequence in the insert SQL, as the problem happened. I pulled out the sequence into a single query string, like blow:
    var select_topic_next_val = "select \"i065831trial.bubuwork.TopicCenter::SEQ_TOPIC_ID\".nextval as seqid from dummy";
    function close(closables) {
        var closable; 
        var i; 
        for (i = 0; i < closables.length; i++) { 
                  closable = closables[i]; 
                  if(closable) { 
                            closable.close(); 
    function insertTopic(xargs){
        var connection = $.db.getConnection(); 
        var statement = null;
        var resultSet = null;
        try{
            //get next sequence id
            statement = connection.prepareStatement(select_topic_next_val);
            resultSet = statement.executeQuery();
            while(resultSet.next()){
                var seqId = resultSet.getString(1);
                break;
    //        statement = connection.prepareStatement(insert_topic_sql);
    //        statement.setString(1,seqId);
    //        statement.setString(2,xargs.owner);
    //        statement.setString(3,xargs.approver);
    //        statement.setString(4,xargs.name);
    //        statement.setString(5,xargs.status);
    //        statement.setString(6,xargs.description);
    //        //statement.setTimestamp(6,xargs.lastModify);
    //        statement.setTimestamp(7,null);
    //        statement.setDate(8,xargs.begda);
    //        statement.setDate(9,xargs.endda);
    //        statement.setString(10,xargs.keyword);
    //        statement.executeUpdate();
        }finally { 
            close([resultSet, statement, connection]); 

  • SAP DBTech JDBC: [258]: insufficient privilege: Not authorized

    I am using SAP HANA Cloud Trial; I created Analytic View based on two table dimension table and fact table, I can display content from both tables, but I can not display data preview from my Analytic View, getting authorization message;SAP DBTech JDBC: [258]: insufficient privilege: Not authorized.

    Hi,
    Please post this issue under SAP HANA Cloud Platform space. The platform experts should be able to help with that.
    Regards,
    Ifat.

  • While running tcode vn01, getting message you are not authorized

    Hi friends,
    one of the end while running tcode vn01 is getting message you are not authorized to use this function, earlier it was working fine and still it is working fine in quality, so please suggest what might be the problem,
    Regards,
    Tarun

    Dear Friends,
    Thanks a lot for your help, my problem has been resolved.
    let me once again explain you what was the problem and how it got resolved.
    Problem: when user was running tcode vn01, he use to enter the very first screen of vn01 but with pop up that u are not authorized to use this function.
    although he was having the authorization for this tcode.
    Solution: i gave sap_all to the user and after giving sap_all his problem got resolved, so it become confirmed that its only authorization problem
    then i removed sap_all, checked related object of vn01 i.e s_number and its calling snum, i gave the authorization for snum and rnro but still he was facing the same problem
    Then i created new role with only vn01 and assigned to my user id it was working fine, so i assigned the same role to that user but again his problem didn't resolved, then i created the copy of user and started removing roles one by one, other and for the role having vn01 authorization, by doing this problem got resolved and the role which was blocking vn01 to run come into picture, so i thought some tcode might be blocking this but it was not the case the role itself was blocking that tcode because i created the copy of the same role which was blocking vn01 and assinged to user then it was working fine and problem got resolved.
    so what it concluded that might me the profile of that role was not created properly or may be it got corrupted or might be bug in ecc6.0
    Thanks to all friends who contributed for the same.
    i am posting one more question, please help me out in that also
    i

  • Getting error message " You are not authorized to access the migration tool "

    One of the users is noticed with error message " You are not authorized to access the migration tool " in SAP Cloud for Customer tenant. thanks

    Hello Raj,
    It seems that this user does not have proper authorization to perform Data Migration.
    You need to go to the WorkCenter View Assignment for this user under his access rights & need to assign him the workcenter "Business Configuration" & under it, also assign him relevant access to Data Migration.
    This shall fix the issue & the user shall not get this error while trying to perform Data Migration.
    Steps:
    1. Go to Workcneter: "Application and User Management => Business Users => Seerach for the suer who gets this error => Edit-> Access Rights => Click on Workcenter view Assignment tab & assign the above mentioned worokcenter access and save."
    Let me know for any further queries.
    BR
    Ankur

  • ORA-01031: insufficient privileges - NOT TRUE

    Oracle: 10.2.0.2.0
    Os: Solaris 10 (10/08 s10x_u6wos_07b X86)
    When I try to connect to db with sqlplus and not indicating SID it connets OK.
    -bash-3.00$ sqlplus sys/qaz123 as sysdba
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 00:53:34 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.2.0 - Production
    SQL>...but if I indicate SID name it returns me error: ORA-01031: insufficient privileges
    -bash-3.00$ sqlplus sys/qaz123@eric1 as sysdba
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 00:44:13 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01031: insufficient privilegesSo it cant be insufficient privileges because, as u all see above, sys is able to connect. So whats wrong ?
    Edited by: user639256 on Jun 1, 2010 3:57 PM

    Hi Hemant,
    You didn't specify SID, you specified the TNS connection. A SYS (SYSDBA) connection via TNS is a REMOTE_LOGIN that requires additional configuration -- viz REMOTE_LOGIN_PASSWORDFILE.
    Please lookup the documentation.
    Hemant K Chitaleare sure this is true for connecting on local server?
    SQL> conn / as sysdba
    Connected.
    SQL> show parameter remote
    NAME                                 TYPE        VALUE
    remote_archive_enable                string      true
    remote_dependencies_mode             string      TIMESTAMP
    remote_listener                      string
    remote_login_passwordfile            string      EXCLUSIVE
    remote_os_authent                    boolean     FALSE
    remote_os_roles                      boolean     FALSE
    SQL> conn sys/oracle@orcl as sysdba
    Connected.
    SQL> alter system set remote_login_passwordfile=none;
    alter system set remote_login_passwordfile=none
    ERROR at line 1:
    ORA-02095: specified initialization parameter cannot be modified
    SQL> alter system set remote_login_passwordfile=none scope=spfile;
    System altered.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size                  1253124 bytes
    Variable Size             251658492 bytes
    Database Buffers          813694976 bytes
    Redo Buffers                7135232 bytes
    Database mounted.
    Database opened.
    SQL> show parameter remote
    NAME                                 TYPE        VALUE
    remote_archive_enable                string      true
    remote_dependencies_mode             string      TIMESTAMP
    remote_listener                      string
    remote_login_passwordfile            string      NONE
    remote_os_authent                    boolean     FALSE
    remote_os_roles                      boolean     FALSE
    SQL> conn sys/oracle@orcl as sysdba
    Connected.
    SQL> conn sys/oracle@navneet as sysdba
    Connected.
    SQL>Regards

  • Error message -42408--computer not authorized

    I upgraded my iphone software and now when i connect my ipod, the computer is no longer authorized. when i try and authorize i get message "We could not copmoete your itunes store request. an unknown error occured (-42408). There was an error in the itunes store. Please try again later."
    I have tried for 2 days, including "fixes" offered by itunes support to no avail.

    I'm having the same problem with iTunes 9.0.3 and my 2nd Gen Nano (running 1.1.3).
    The problem is with the few (5) protected tracks that I have left in my library (m4p files that have not been offerred as iTunes Plus upgrades). I do not know exactly when the problem started; my Nano syncs to a smart playlist that rotates its contents on the basis of what has not played recently; it may have started anytime within the last 2-6 weeks, and I first noticed the problem one week ago.
    The problem started once these files were rotated onto the Nano: after they had been moved onto the Nano originally, upon each subsequent sync, when the Nano and iTunes connect to each other, iTunes tells me, even though my computer is authorized, that
    "This computer is no longer authorized to play purchased items that are on the iPod. Would you like to authorize this computer for items puchased from the iTunes store?"
    I click the "Authorize" button and, for the most part (at least for the first few days), iTunes would allow me to enter my password and then tell me that the computer was already authorized. Then, today, I too began getting the special -42408 message that loops me back to the original prompt.
    I have no problems playing the m4p files on the Nano or on iTunes. So long as I can get it out of the 42408 loop that sends me back to the "Authorize" or not menu, the Nano will sync fine. Moreover, the same files will sync and play without any problems whatsoever to my iPhone 3G (3.1.3).
    I have seen the relevant help article at I have seen the relevant help article at
    http://support.apple.com/kb/TS1389
    and have tried all it suggests, but nothing has helped the problem.
    iTunes Store Customer Support advised me to deauthorize iTunes, delete iTunes Helper, delete iTunes, reinstall, and go, but this did nothing.
    I did deauthorize and reauthorize iTunes about two weeks ago for an unrelated reason, and I do wonder if that could have triggered something. Again, I can't be certain, but this problem seems to have started after 9.0.3.

  • I get the message you are not authorized to purchase. In the uk I must fist switch to the us

    I get the message "I must first switch to us store to purchase  because I'm not authorized to purchase in the uk.  How do I switch?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • I have spent dozens of hours over the last years trying to find out why I get the error message "...not authorized to copy" when I try and drag a download from ADE to my nook.  Why is this simple procedure not foolproof.  There are hundreds of people sear

    Typical - what on earth am I doing at this page and why was I sent here
    Now I get a message saying there is an error and my content could not be saved
    What is wrong with you people?
    How can you make such a simple operation so complicated that it is festooned with error messages
    LEARN THE MEANING OF FOOLPROOF YOU IMBICILES

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

  • HT204074 new iphone giving message it is not authorized to access my library.  how can I fix this??? SO annoying.  "manage devices" doesn't give me an option to add the new phone.

    I made an insurance claim and had to get a new iPhone.  I have the 5, not the newest 5s or 5c, the previous 5.  When I am NOT plugged into my MacBook I cannot access "my library" of songs that are on my macbook.  I can play them through my new phone if the phone is plugged into my macbok but not if I unplug the phone and try to play the songs while I'm away from home.  Help!!!  I do not see my new phone in the "managed devices".  I've restarted the phone and macbook and upgraded to OS7.  Nothing is working.

    Hello myvinoveritas,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes Store: About authorization and deauthorization
    http://support.apple.com/kb/HT1420
    Best of luck,
    Mario

  • I have music in my itunes library that when I try to transfer them to my ipod, a get the message "You are not authorized to play it on this computer"

    How can I identify these songs in my library and either delete or authorize them?

    Have you seen this article related to your issue?
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    B-rock

  • Import data from local file: insufficient privilege

    As part of a project I'm working on, I have to load data (only a few thousand records) into a HANA Development instance on HCP. Last week I did this several times with no problem using File > Import from HANA Studio and choosing Data From Local File. Yesterday and today I get this message (most of the time, but not all the time): SAP DBTech JDBC: [258]: insufficient privilege: Not authorized.
    Does anybody know why this might be and what do to about it?
    Are there batch alternatives? I have not found any. The INPUT INTO statement also gives authorization problems.

    Thanks for Your replies.
    Jochen - I can't find schema.ini file and your link doesn't work - I mean that site is under construction
    Mahesh - I tried to changed cells' format in excel, but file is saved without changes (as csv).
    Pandey - I read about DTW but I can't find it anywhere. Is there a site where it could be downloaded from?
    Finally I solved this problem. After saving file as xls I could changed cells' format and save with changes. It helped - data '1-10-103' is imported correctly.
    Regards,
    Hmg

  • Insufficient privilege when Activating an attribute view (person responsible for package = SYSTEM)

    Insufficient privilege when Activating an attribute view (person responsible for package = SYSTEM)
    SAP HANA Studio
    Version: 1.0.33
    Build id: 201206301604 (363996)
    Playing with the efashion tutorial with HANA Studio.
    I am SYSTEM user by default when starting the studio.
    -Schema created
    -DDL created
    -Data loaded
    -Attribute views created
    Below an extract of the error log:
    <info>Create Attribute View failed: SQL: transaction rolled back by an internal error: insufficient privilege: Not authorized

    Hello Anooj and Sri,
    Thank you for your answers, I really appreciate your inputs.
    So I executed this:
    "GRANT SELECT ON SCHEMA SYSTEM TO _SYS_REPO WITH GRANT OPTION;"
    Under the Studio SQL GUI and I still have the same error when activating my very simple attribute view.
    I have installed a recent HANA + Studio + Client release on my laptop:
      SAP HANA Studio
    Version: 1.0.33
    Build id: 201207050531 (364183)
    And yes, this is a demo and yes I am logged as the SYSTEM user (default user when stating the studio). For now, I dont know how to connect to another user with the studio and I will search the doumentation.
    Below a copy/past of the error msg.
    Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Attribute View: SQL: transaction rolled back by an internal error: insufficient privilege: Not authorized (ptime/query/plan_executor/ddl/qx_cube.cc:1514) n
    Create view DDL statement: CREATE COLUMN VIEW "_SYS_BIC"."efashion/ATV_OUTLET_LOOKUP" TYPE JOIN WITH PARAMETERS ( joinIndex = "EFASHION_TUTORIAL"."OUTLET_LOOKUP", joinIndexType = 0, viewAttribute = ('SHOP_ID', "EFASHION_TUTORIAL"."OUTLET_LOOKUP", "SHOP_ID", '', 'default', 'attribute', '', 'efashion/ATV_OUTLET_LOOKUP$SHOP_ID'), viewAttribute = ('SHOP_NAME', "EFASHION_TUTORIAL"."OUTLET_LOOKUP", "SHOP_NAME", '', 'default', 'attribute', '', 'efashion/ATV_OUTLET_LOOKUP$SHOP_NAME'), viewAttribute = ('MANAGER', "EFASHION_TUTORIAL"."OUTLET_LOOKUP", "MANAGER", '', 'default', 'attribute', '', 'efashion/ATV_OUTLET_LOOKUP$MANAGER'), viewAttribute = ('ZIP_CODE', "EFASHION_TUTORIAL"."OUTLET_LOOKUP", "ZIP_CODE", '', 'default', 'attribute', '', 'efashion/ATV_OUTLET_LOOKUP$ZIP_CODE'), viewAttribute = ('CITY', "EFASHION_TUTORIAL"."OUTLET_LOOKUP", "CITY", '', 'default', 'attribute', '', 'efashion/ATV_OUTLET_LOOKUP$CITY'), view = ('V_OUTLET_LOOKUP', "EFASHION_TUTORIAL"."OUTLET_LOOKUP"), defaultView = 'V_OUTLET_LOOKUP', 'REGISTERVIEWFORAPCHECK' = '1' )nVersion: 48n
    Thank you.
    Patrick

Maybe you are looking for