Syntax check for PL/SQL code??

is there any tool with which we can check the syntax for code written in Pl/ SQL???
Please help...

Hi,
I think Asit is trying to point you to a product called TOAD (Asit, pls correct if I'm wrong):
http://www.quest.com/toad/
http://www.toadsoft.com/feats.html
http://www.samspublishing.com/articles/article.asp?p=31544&rl=1
Regards,
Ville

Similar Messages

  • Syntax check for a software component

    Hi all,
    is there a way to run a syntax check for all objects of a software component?
    Means triggering the check at software component level.
    Thanks and regards!
    Kerstin

    Hi Kerstin
    I think basis guy should know this, it`s on software component level.
    i know a tcode 'SGEN', but this is used to define a background job then compiling the software component. I`m not sure the background job log whether have this kind of error message if there are SYNTAX error.
    regards,
    Archer

  • Syntax check for inactive programs(object)

    I am having some program in internal table now i have to do syntax check for the programs, actually I can use SLIN but SLIN will not do Syntax check if the object is not active, is there  any way that I can check for many programs one after the other.

    Hi Vikram,
    USe the transaction SAMT.
    Please flooow the link below it will solve u r pblm.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c62223-639e-2a10-dd9a-b1dd9af73aeb
    Thanks

  • How to do UT for pl/sql code?

    Are there some tools for doing Unit Test for PL/SQL code?
    Are there any others tools,except the function of test in pl/sql developer?

    I have defined a package named pkg_utplsql_test with 1 function called btwnstr (taken from utplsql samples).
    This package/function exists in schema1@instance1.
    Now I have schema2@instance2. Here I have defiend my test package called ut_pkg_utplsql_test and this has the setup and tear down
    procs as follows:
    procedure ut_setup
    is
        begin
            null;
        end;
    procedure ut_teardown
    is
        begin
             null;
        end;Now I need to add ut_btwnstr to test the proc defined in schema1@instance1. I have defined a dblink named instance1 to
    access the package from instance2. I am confused about writing ut_btwnstr . Here is what I have done and it does compile.
    PROCEDURE ut_btwnstr IS
       BEGIN
          utAssert.eq (
          'Typical valid usage',
          pkg_utplsql_test.btwnstr@instance1(STRING_IN => 'abcdefg',START_IN => 3,END_IN => 5),'cde');
          end ut_btwnstr; Is this correct?
    And now when I need to test it, how do I call. I am confised:(.
    exec utplsql.test('pkg_utplsql_test.btwnstr@instance1',recompile_in => FALSE)

  • Syntax Check for *.java files

    Hello erveryone,
    I'm wondering if anybody has an advice how to enable (if possible) syntax check in JDeveloper 10.1.2.
    For example:
    public String toString() {
    String result = "test";
    The missing return statement is not shown in the editor. It's only shown by the compiler.
    Thanks in advance
    Alex

    Thanks for your reply,
    I checked out the links you mentioned, but I think the informations about the code editor and the code assist are not very detailed.
    I checked out the tool you mentioned above (PMD) and it was quite fine unsing it for one class. But I tried to check about 300 classes at a time and it hangs after a few minutes.
    So I think it's a little improvement, but I will still look for a tool compareable to eclipse.

  • How to Disable Syntax Checker for DDL Generation

    Would like to include shell script commands before a create table statement. Modified the .xdb but PowerDesigner does not recognize this code as it is not native to the database. Is there a way to disable the syntax check so that the create table script can include these statements rather than a number of errors? Running v15.2 of PowerDesigner. Any feedback would be appreciated!

    Hello. Yes. To be more specific, want to be able to run the create table DDL for Teradata from BTEQ. I added the following statements to a customized version of the Terada .xdb for the table BeforeCreate:
    .logon ${TD_SERVER}/${TD_USERNAME},${TD_PASSWORD}
    select 1
    from dbc.tables
    where DatabaseName =  [%QUALIFIER%]
    and TableName = '%TABLE%'
    .if errorcode > 0 then .goto error
    .if activitycount <> 1 then .goto create_tbl
    drop table %TABLE%;
    .if errorcode > 0 then .goto error
    .label create_tbl
    The DDL shows up with syntax errors as follows. So clearly, there is something that is attempting to validate the code:
    3 error(s), 0 warning(s)
    (1) (Table "DATE_DIM"):
       [syntax error] unknown macro: logon ${TD_SERVER}/${TD_USERNAME},${TD_PASSWORD}
    (8) (Table "DATE_DIM"):
       [syntax error] condition parsing error
    (16) (Table "DATE_DIM"):
       [syntax error] expecting .endif

  • ER: HTML Applet tag syntax warning - or HTML syntax checker for JDEV.

    Hi,
    I just spent ages (an hour or two) debugging an applet and it turned out that I had left a comma "," out of my 'archive=..' parameter of the 'applet' tag in the HTML :-(.
    E.g. I had <applet code="x" archive="a.jar b.jar, c.jar, d.jar"> and IE simply didn't load 'b.jar' so I got the usual 'class not found' exception. After signing every jar and putting every jar in every directory I finally noticed the commas between some of the jars.
    I can understand IE not helping me load an Applet since, from MS's point of view, that is evil Java code, but JDev must know the syntax of a HTML applet tag too so it could highlight the error for me.
    Alternatively does anyone know of a HTML checker plugin for JDEV?
    Regards,
    Simon.

    No comments?
    I've been looking around for a HTML syntax checker and there are plenty around - just google "html validation". None so far have picked up the missing comma in my busted applet tag. I guess with a missing comma it just looks like a file name with a space in it anyway.
    I still think JDeveloper could flag semantic errors like this at development time.
    Cheers,
    Simon.

  • Syntax check for tables and function modules

    Hi,
    I am writing a program that perform syntax check on object such as executable programs , function modules and tables.
    Syntax check works fine for programs, but not for tables.
    How can I perform syntax check on my tables or structures?
    I get my data from the table TADIR. But I don't get my function modules from there. What is the table for this.
    Thanks 4 ur replies.
    Parvez

    hi
    good
    generally in sap while creating a table or structure we get the error and we solved them,but like reports during runtime it is not possible to check the syntax of a table or structure.
    thanks
    mrutyun^

  • Explain plans for PL/SQL code?

    Hi!
    I am pulling SQL statements (select, insert, update, delete, etc.) from PL/SQL code and producing explain plans. Some of the delete statements have "WHERE CURRENT OF" in them which produces an ORA-3001 error (feature not implemented) error. How can I do an explain plan of these statements? Can I replace "WHERE CURRENT OF" with "=" to get a plan? How far off will the plan be? Any suggestions, ideas, etc. greatfully appreciated!
    This is Oracle 9.2.0.4/5 on AIX if it makes a difference.
    Thanks!
    Dave Venus

    WHERE CURRENT OF shouldn't be a problem. Here above an example on 9.2.0.4 on AIX5.2 :
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.4.0 - Production
    SQL> create table TBL_USER_PROFILE_CATEGORY
      2  as
      3  select 654 id_category, 1103 id_user from dual union all
      4  select 654 id_category, 1104 id_user from dual union all
      5  select 18  id_category, 1103 id_user from dual union all
      6  select 629 id_category, 1103 id_user from dual union all
      7  select 110 id_category, 1103 id_user from dual union all
      8  select 110 id_category, 1104 id_user from dual union all
      9  select 18  id_category, 1104 id_user from dual union all
    10  select 37  id_category, 1103 id_user from dual union all
    11  select 24  id_category, 1103 id_user from dual union all
    12  select 7   id_category, 104  id_user from dual union all
    13  select 37  id_category, 1104 id_user from dual union all
    14  select 22  id_category, 1103 id_user from dual union all
    15  select 22  id_category, 1104 id_user from dual union all
    16  select 25  id_category, 1104 id_user from dual union all
    17  select 25  id_category, 1103 id_user from dual ;
    Table created.
    SQL>
    SQL> alter table TBL_USER_PROFILE_CATEGORY add primary key (id_category, id_use
    Table altered.
    SQL>
    SQL> CREATE OR REPLACE
      2  PROCEDURE P$UPDATE_TBL_USER_PROFILE_CAT(p_id_cat_old IN NUMBER) AS
      3    p_id_category number;
      4    p_id_user     number;
      5    cursor mycur is select id_category, id_user
      6                    from TBL_USER_PROFILE_CATEGORY
      7                    where  id_category = p_id_cat_old
      8                    for update of id_category;
      9  BEGIN
    10    open mycur;
    11    LOOP
    12       FETCH mycur INTO p_id_category, p_id_user;
    13       EXIT WHEN mycur%NOTFOUND;
    14       BEGIN
    15 DELETE FROM TBL_USER_PROFILE_CATEGORY
    16 WHERE CURRENT OF mycur;
    17       END;
    18     END LOOP;
    19     CLOSE mycur;
    20     COMMIT;
    21  EXCEPTION WHEN OTHERS THEN rollback;
    22  END;
    23  /
    Procedure created.
    SQL>
    SQL> exec P$UPDATE_TBL_USER_PROFILE_CAT(654)
    PL/SQL procedure successfully completed.
    SQL> select * from TBL_USER_PROFILE_CATEGORY;
    ID_CATEGORY    ID_USER
             18       1103
            629       1103
            110       1103
            110       1104
             18       1104
             37       1103
             24       1103
              7        104
             37       1104
             22       1103
             22       1104
             25       1104
             25       1103
    13 rows selected.
    SQL> Please, paste here what's your code...
    Nicolas.

  • Authority-check for particular comp code

    Hi All,
    when i'm using standard Authority Object F_BKPF_BUK  for a particular standard code say 'CO01'. but it is working for all company code, but i want work for only one company code say 'CO01' ONLY.i'm using in report program (zreport prog)
    I written code as
    AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
        ID 'BUKRS' FIELD 'BE10'
        ID 'ACTVT' FIELD '03'.
    Please can u advice on this .
    Many Thanks in Advance for u r Answer
    Naren

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Reward points if useful
    Regards
    Anji

  • OnClick for PL/SQL Code???

    Hello,
    I created a form and added a button. When that button is pressed, I want to execute PL/SQL code. In the list of JavaScript Event Handlers there is an event 'OnClick'. But I see nothing simular for the PL/SQL Button Event Handler.
    Where do I have to put my code?
    Thanks for your help.
    Nancy.

    I don't know how it is on this special app but what I do know is You have to submit Your form because PL?SQL procedures run only on server
    So You click on a button, link or whatever, PL/SQL procedure runs on the server and generates something to output again to client

  • [SOLVED] vim syntax checker for C++ templates?

    I've started using Syntastic to help improve my productivity when writing C++. However, I cannot seem to get it to work with C++ templates (which are usually defined and implemented in a header file). Is there a way to force Syntastic to do this? If not, does anyone know of a vim syntax checker that will?
    Last edited by bsilbaugh (2012-11-02 22:05:32)

    To enable syntax checking of headers, including templates, it turns out that you just need to add the following to your vimrc:
    let g:syntastic_cpp_check_header = 1
    See ~/.vim/bundle/syntastic/syntax_checkers/cpp.vim for an explanation of additional C++ options.
    (I don't know how I missed this earlier. Sorry for the spurious post.)
    Last edited by bsilbaugh (2012-11-02 22:06:50)

  • Check for the postal code of Belgium

    Hi Expert,
    I have a question with the postal code in the infotype 6.
    Normally the Belgian postal code must be in 5 digits (4 chiffers and one letter).
    But for some reasons, in my society we must use only the postal code on the 4digtis.
    So I know that I must change the custo table V_T5B5C.
    And check all the custo for this.
    But I would like in the infotype 6, enter manually the name of the village.
    Because In belgium, several villages want have the same postal code.
    So I would like remove the check in the infotype 6 on the postal code. So I would like that the system don't return the name of the village related to the postal code.
    Someone can help me on this subject ??
    Thanks in advance,
    Virginie

    Sorry I'm not familiar with IDocs, but you could just update field ORT01 from the new client-specific field in the user-exit "after input" (ZXPADU02) if you want to keep ORT01 correct at all times.
    To create a new field, just create (if not yet done) structure CI_P0006 in transaction SE11, give your field an ID (starting with Z) and a data type (probably the same as ORT01). This will then automatically appear in a new subscreen (of module pool ZP000600) if I remember correctly. Then, you can change your new subscreen if you like using the screen painter (transaction SE51)...

  • Extended syntax check for include structure

    Hello Everyone,
    While declaring the internal table as:
    TYPES: BEGIN OF t_data.
            INCLUDE STRUCTURE mara.
    TYPES: END   OF t_data.
    DATA: it_data TYPE table of t_data.
    When performing extended check, i get following error:
    The current ABAP command is obsolete and problematic, especially so in ABAP
    Objects
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    I am using 4.7 version.
    Any clue how to avoid this error during extended check.
    Regards,
    Tarun

    Tarun,
    With WAS 6.20 you should not declare internal tables with header line or using the old syntax as they are not compatible with OO ABAP.
    So, you either declare a TYPE the way you have done, in case you want additional fields apart from the INCLUDE structure, or declare the table directly like the way I have shown.
    Good thing, you can even specify the type of internal table that you want to create using this - STANDARD, SORTED, HASH. These tables will help you with the performance issues.
    regards,
    Ravi
    Note : Please mark the helpful answers

  • Extended Syntax Check  in abap code

    Hi Guys,
    We are upgrading from 4.6 C to ECC 6.0.  When I do the Extended Syntax check for the custom function module it gives me the following error.  Please help.
    The EXCEPTION "REPORT_NOT_EXISTENT" is not defined in the interface of the function module "RS_VARIANT_CONTENTS" "RS_VARIANT_CONTENTS".  Internal Message Code: MESSAGE G-7. 
    (The message can be hidden with "#EC ARGCHECKED)
    Regards,
    Shankar

    <b>Don't suppress the message. </b> You should only suppress messages if you are aware of why they are appearing, and they are not an error.
    What it means is, that in your custom function module, there is some code like
    CALL FUNCTION 'RS_VARIANT_CONTENTS'
      EXPORTING
        report                     = v_report
        variant                    = v_variant
    EXCEPTIONS
       VARIANT_NON_EXISTENT        = 1
       VARIANT_OBSOLETE            = 2
       REPORT_NOT_EXISTENT         = 3
       OTHERS                      = 4
    But if you look at FM rs_variant_contents, you'll see this exception is not defined.  The correct course of action is to remove it from your call.
    matt

Maybe you are looking for

  • Won't sync after update 11.1.4

    I can now get itunes to recognize my devices but they won't sync properly. There's no error messages. They simply don't do anything during the sync. I've tried restoring my iPod. Adding a playlist, the entire library and nothing works. Help? I'm runn

  • Itunes will not allow home sharing?

    Mac 10.8.5 and Itunes 11.3.1 will not turn on home share on same WiFi network (or using Ethernet).  Both my Windows 7 laptops run Itunes and allow home sharing.  I have uninstalled Itunes, opened all ports, taken down firewalls, and even did an ancie

  • Origin Group as Value field in COPA - Is that Possible

    Hello Gurus, The business requirement is to see all the Origin Groups as Value fields in COPA - Is that Possible? If Yes, Please suggest me the steps to follow. Thanks a lot for your time. Regards, PM

  • Stuck with a horrible phone

    I started a contract with Verizon on the 25th of June, and was told I had two weeks to return the device for an exchange. My Droid 2 is constantly freezing, rebooting, and will stop recieving calls and texts. So when I show up 2 weeks later, they tel

  • 2 cds with computer

    so I just got my computer today and I noticed there are 2 discs with the computer do I upload them or just leave them plz help