Designer 6i: Generate table API

During compilation of the package created, I got de following melding:
"Creating API Package Body for Table 'Table_name' Warning: Package Body created with compilation errors."
In the package body the table API generates "TYPE sqlInd_type IS RECORD"
without comma's between de columns.
Please help.
M. Moussa

There are no any reserved words in the table definition.
The complete TYPE declaration:
TYPE sqlInd_type IS RECORD ( OPE_MACHTIGING INTEGER := 0 OPE_STATUS INTEGER := 0 OPE_WIJZE_VAN_BETALING INTEGER := 0 OPE_STATUS_BETALING INTEGER := 0 );
Thank you in advance.
Moussa

Similar Messages

  • Merge API stub for 'Generate Table API...'?

    Hi,
    Has there been a request for a stub in the menu option 'Generate Table API...' that creates a merge procedure? If it generated the MERGE command for a given table that would be great and even better than trying to call the UPD procedure, trap the does not exist error and then call the INS procedure.
    The key to making this work is by passing the parameters for the actual match to the MERGE statement via the DUAL table in the source definition of USING clause. By doing this via the primary key of the table drives the cost for this procedure to unique scan via the PK which is 1 (one) logical I/O for the lookup and the decision to do an insert or update. The overall cost should be around 4.
    Thanks,
    ScottK
    The general pattern could be:
    PROCEDURE mrg (
    p_pk_col_1 IN table_name.pk_col1%type
    ,p_pk_col_n IN table_name.pk_coln%type
    ,p_non_pk_col1 IN table_name.non_pk_col1%type
    ,p_non_pk_coln IN table_name.non_pk_coln%type
    ) IS
    BEGIN
    MERGE INTO table_name target
    USING (SELECT
    p_pk_col1 alias_pk_col1
    ,p_pk_coln alias_pk_coln
    FROM dual) source
    ON ( source.alias_pk_col1 = target.pk_col1
    and source.alias_pk_coln = target.pk_coln)
    WHEN MATCHED THEN UPDATE
    SET target.non_pk_col1 = p_non_pk_col1
    ,target.non_pk_coln = p_non_pk_coln
    WHEN NOT MATCHED THEN INSERT
    column list
    VALUES
    parameter list
    END;
    Edited by: ScottK on Aug 11, 2011 3:17 PM
    Edited by: ScottK on Aug 11, 2011 3:48 PM
    Edited by: ScottK on Aug 11, 2011 3:49 PM

    You can always request this at the SQL Developer Exchange, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • Generate Table API

    Is it possible to modify/customize the code generated by the 'Generate Table API' menu path, so as to add additional functionality etc.
    Thanks
    Paul

    There are no any reserved words in the table definition.
    The complete TYPE declaration:
    TYPE sqlInd_type IS RECORD ( OPE_MACHTIGING INTEGER := 0 OPE_STATUS INTEGER := 0 OPE_WIJZE_VAN_BETALING INTEGER := 0 OPE_STATUS_BETALING INTEGER := 0 );
    Thank you in advance.
    Moussa

  • Settings for generating table APIs

    HI i was wondering if there are settings for Designer for generating the table APIs, that determine which error messages are handled by cg$errors and which are not.
    For 2 of my tables in Designer the messages for the foreign key constraints are omitted when I generate the table API.
    I am talking about the procedure err_msg, some of the foreign keys are checked but some are not, code that looks like this is generated:
    ELSIF (con_name = 'AGR_ICO_CPY_FK') THEN
    cg$errors.push(nvl(AGR_ICO_CPY_FK
    ,cg$errors.MsgGetText(cg$errors.API_FK_CON_VIOLATED
                             ,cg$errors.APIMSG_FK_VIOLAT
    ,'AGR_ICO_CPY_FK'
    ,'INTERNATIONAL_COLL_PARTIES')),
    'E',
    'API',
    cg$errors.API_FK_CON_VIOLATED,
    loc);
    but code that should look like this is not:
    ELSIF (con_name = 'AGR_AGT_CPS_FK' AND type = cg$errors.ERR_DELETE_RESTRICT) THEN
    cg$errors.push(cg$errors.MsgGetText(cg$errors.API_DEL_RESTRICT, cg$errors.ERR_DEL_RESTRICT, 'INTERNATIONAL_COLL_PARTIES', 'AGREEMENTS'),
    'E',
    'API',
    cg$errors.API_DEL_RESTRICT,
    loc);
    I am not very familiar with table APIS so I don't know which type of foreign key would lead to the first bit of code and which type would lead to the second bit. In Designer I see no difference.....
    Can anyone help me?

    Hi Wendy,
    "The code for the foreign keys that point to me is not generated".
    That code must be visible in the TAPI of the other table.
    Just checking: Do you see in Designer some foreign keys in your table for which there is no code generated in the TAPI (part err_msg)?
    What packages do you see where "the code for those foreign keys that point to me" is visible? I suppose that is TAPI of the other table, isn't it?
    Anyway: in Designer there are not that much options for TAPI generation. I do not know whether this has been changed in the last Designer versions.
    Good luck,
    Lennart

  • Designer Table APIs

    Hi All,
    Anybody has done projects using Designer Table APIs? We are currently in dilemma if we would implement the Table API or just create our own database triggers. We'll be deploying oure application thru 9iAS.
    What are the advantage and disadvantages with the Table APIs?
    Any feedback would be highly appreciated.
    TIA,
    Remar

    I have recently completed a large project for a government department using Design with the Table API (TAPI). While this approach has many advantages, there are some problem spots. The main one is that error handling performed by cg$errors package is not very intuitive. It can be difficult to troubleshoot code imbedded in the TAPI.
    That being said, I do like using the TAPI, I could not imagine coding for a large project that is Designer based without it now. It just may not be for everyone.
    Steve Brown

  • TABLE APIs in Jdeveloper

    Jdeveloper 10g on Windows XP
    Very new to this tool and exploring it for DB model/db design functionality. Coming from designer background, is there a way to generate Table APIS for the generated entities in Jdeveloeper? I searched this forum, but one solution was where the author talked about redoing the plsql api package in Java. Thats not what I am looking for. I would prefer to have the plsql api package generated via Jdeveloper?
    (As much little that I know about this, I think Jdeveloeper does support plsql)
    If so, how can we do this..If not, whats the alternative? Would appreciate some pointers where I can read/dig this further.
    Thanks
    SR

    SR,
    No, there is not really any function in JDev to generate PL/SQL table API's. I did see a paper presented at the UKOUG earlier this year where someone had used ADF Business Components with table API's, but they had done that by writing a code generator that generated all of the java code (much like what you've already found).
    John

  • Table API Extension for Oracle SQL Developer

    I just created small project [Table API Generator for Oracle|http://code.google.com/p/tapig/].
    Idea is to only maintain tables and generate table API (TAPI) packages for data manipulation.
    Generated:
    - insert, update, delete, querying procedures
    - documentation based on table columns comments
    Do you think it will be useful to have custom Table API Generator as extension for Oracle SQL Developer?

    Never used them myself and quite legacy, but I'm sure there's still a lot of people using them and the basic idea is quite nice.
    This would also qualify perfectly as a User Defined XML Extension for sqldev; little work but big results. Even if you were the only one using it, it would still pay off.
    Have fun,
    K.

  • Table api generation

    I like "Generate Table API" functionality.
    However your code is not sorted by column_id it looks you forgot order by. It's very important to have all sorted by definition of columns in table.
    I suggest to add extra new "sel" API which returns record by PK and stores it in rec type.
    Regards
      Tomasz

    Hi
    If you are testing billing holds which were created by billing extension, I suggest you start with removing those extensions. Run GDi and release the invoice.
    Now go to Expenditure inquiry and select unbilled EI, put it on one time hold.
    Run GDI again, and release the draft invoice. Check to verify that the EI is not on hold any more.
    After that go back to your extension and verify it has the code to put EI on one time billing hold. assign the ext to the GDI and run GDI again. Release the draft invoice and look to verify that the EI is not on hold.
    Dina

  • Ever used the Designer Table API (TAPI) with object type in the DB?

    Hi all,
    We are trying to generate the Oracle Designer table API of a table that has a column defined by an object type. It works without problems if that column always has a value (is instantiated in object term). The problem is when we update a row where the column is null (all attributes of the object are null thus the object is not instantiated).
    The "before update row" trigger of the Table API fails with error "ora-30625-method dispath on NULL SELF argument is disallowed".
    The code that fails is the following:
    cg$ind.TFO_DESCRIPTION :=(:new.TFO_DESCRIPTION IS NULL AND :old.TFO_DESCRIPTION IS NOT NULL )
    OR (:new.TFO_DESCRIPTION IS NOT NULL AND :old.TFO_DESCRIPTION IS NULL)
    OR NOT(:new.TFO_DESCRIPTION = :old.TFO_DESCRIPTION) ;
    In this example, cg$ind.TFO_DESCRIPTION is a boolean and the TFO_DESCRIPTION column is based on an object type.
    Thanks for any feedback or suggestions

    For a solution to this problem: I set down to write a relatively simple and small piece of code that we can use as post compiler or post generator. After we generated one or more TAPIs, we can run this post compiler to remedy the problem the TAPI has with Merge operations. The post compiler will fix the PL/SQL inside the database. It reads the TAPI objects using dbms_metadata, makes the simple change by manipulating the PL/SQL source and then recreates the objects using execute immediate. Using this post compiler, it takes but a few seconds to fix the merge flaw in all TAPIs in your application.
    http://technology.amis.nl/blog/index.php?p=842

  • Capture customizations to a trigger or table API in designer

    Have a table with a column value (inv.inv_id) that is produced by a sequence. I would like to be able to know the inv_id of the recently added record to the table without re-querying the table. As an initial hack of the AIR trigger on the table (produced by Designer), I am capturing the new inv_id as records are added to the inv table by calling my own package interface that I plan to use in the application:
    -- Application_logic Post-After-Insert-row <<Start>>
    gid_inv.SET_ID (cg$rec.INV_ID) ;
    -- Application_logic Post-After-Insert-row << End >>
    I cannot figure out where to capture this customization in Designer so that I can automate the generation of this trigger. I would be happy to move the customization to the table API, again, if I could find a logical place to place and capture the customization. I have briefly looked at capturing database objects in Designer via the declaration, OS file method, free format method, and declarative method, but they do not appear to be the choice for Designer-generated objects like the table API or table triggers.
    Any ideas? Thank-you in advance!
    null

    I think it might not be efficient,Try it, it will be as efficient as any trigger. There are also workspace features built in to Oracle that do this kind of thing.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14253/long_intro.htm#ADWSM010

  • Table API and Generated forms

    I have been told that Oracle Designer Table API (Application
    Programmer Interface) disables default functionality of querying
    records in a Headstart generated form, due to limitations with
    Designer. I am unable to find a bug number for this fault and was
    wondering if you could please point me in the right direction.
    Thank you
    Afe Ogun
    null

    Afe,
    The Oracle Designer Table API can be used as both the data target
    (INS, UPD, DEL) and data source (QRY). You do this by setting
    the data target and data source to 'Procedure' (instead of
    table). When it is used as the data source, you cannot enter
    query criteria in your form. You might want to use 'Procedure'
    as your data target, but continue to use 'Table' or 'View' as
    your data source. This is not a bug, but is just how the various
    options work together. It also has nothing to do with
    Headstart.
    You might want to look into the Oracle Designer online help or
    contact the Designer discussion group on Metalink.
    Regards,
    Lauri
    Afe Ogun (guest) wrote:
    : I have been told that Oracle Designer Table API (Application
    : Programmer Interface) disables default functionality of
    querying
    : records in a Headstart generated form, due to limitations with
    : Designer. I am unable to find a bug number for this fault and
    was
    : wondering if you could please point me in the right direction.
    : Thank you
    : Afe Ogun
    null

  • Can Designer 9i generate Workspace Manager versioned tables?

    All,
    I am exploring the use of the Oracle 9i feature Workspace Manager.
    Can Designer 9i generate versioned tables for a Workspace Manager enabled instance. I know that the tables could be generated to scripts and then edited to properly alter versioned tables. However manually editing each script is not a long term solution. I have read through the application help, newsgroups, and this discussion group and did not find any information.
    I welcome any input you have to offer,
    Doug

    Hi Steve,
    I'm the Product Manager. Feel free to contact me directly at [email protected] to discuss your auditing requirements.
    In general, yes, Workspace Manager can maintain a history of changes to a table.
    It can make a timestamped copy of a row every time a change to it is committed. The GotoDate command allows the user to set session context to a particular point in time to see the database (including the changed rows) as it was at that time.
    DML doesn't need to change (unless hints are needed to optimize performance). All historical copies of the rows are kept in the same table as the original row.
    Best Regards,
    Bill

  • How to get SQL script for generating table, constraint, indexes?

    I'd like to get from somewhere Oracle tool for generating simple SQL script for generating table, indexes, constraint (like Toad) and it has to be Oracle tool but not Designer.
    Can someone give me some edvice?
    Thanks!
    m.

    I'd like to get from somewhere Oracle tool for
    generating simple SQL script for generating table,
    indexes, constraint (like Toad) and it has to be
    Oracle tool but not Designer.
    SQL Developer is similar to Toad and is an Oracle tool.
    http://www.oracle.com/technology/products/database/sql_developer/index.html

  • Permission to change the design of a table

    Hi,
      We are having Sql server 2008 in clustered environment. I logged in and tried to change the design of the table. I have
    the rights as a database owner for my login. But when I tried to change the design of the table in SSMS I got the following error-:
    Saving changes not permitted. The change you have made require the table to be dropped or recreated. You either
    made changes to a table that can't be recreated or enabled the option prevent saving changes that require table to
    be recreated.
    How to overcome the problem?

    You overcome the problem by staying out of the table designer. The reason that the roadblock is there is that the code that generates the table changes by creating a new instance of the table and copy data over has some very fundamental bugs and you should
    absolutely not use it. And least of all in a cluster, that is, in production! It's a toy tool, and Microsoft should have taken it out long ago. As just one example: the tool will only use ALTER TABLE in situations where it would work on SQL 6.5!
    So use SQL scripts to make your table changes. Preferably with ALTER TABLE. Writing scripts where you copy all data is doable, but it requires a good understanding of what can go wrong. Or a long maintenance window that permits you to restore a backup if
    things go south.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Designer BC4J Generator Extension creates wrong order by clause

    Hi,
    Just tried out the new Designer BC4J Generator Extension and it creates a wrong order by clause. I have a List of values in Designer with one table usage. There is a bound item based on a columnname CODE and has the name L_CODE. The order by sequence is 1 and ascending. After generating it in JDeveloper the generated query is:
    SELECT PrjEntityUsage.CODE,
    PrjEntityUsage.NAAM
    FROM X_PROJECTEN PrjEntityUsage
    ORDER BY LCODE
    So there are two problems:
    1) If the name property in designer is different from the column name the select in the SQL query in JDeveloper needs an alias with the name property from Designer.
    2)If there is an _ in the name it is ignored in the order by clause in JDeveloper.
    I do not know where to report the bug so i placed it here.
    Regards,
    Andre Jochems

    Andre,
    Thanks for notifying us about these. There are indeed bugs which we have logged and scheduled for a fix.
    Regards
    Sue Harper

Maybe you are looking for

  • Move to another computer?

    I want to purchase the Student Edition of the Creative Suite Standard on bahalf of our children (whom we homeschool).  We are starting with an older iMac (~2008) and I need to be sure that if I purchase a newer, more powerful, Mac in the future that

  • Bandwidth utilised for dialog users and VPN encryption for ERP 6.0 ABAP

    Hi all, I have 30 users coming from remote locations to SAP system using centrally connected VPN server which is running with 2 mbps leased line bandwidth. what is the bandwidth taken for every dialog user on a average 3 sessions always connected.(ER

  • Is doing configuration for FB60 using customer field a core mod?

    Hello, For our project, a customer field 'ZZAPPROVER' was added in FB60 transaction code. It is possible through configuration through the following path:- SPRO --> Financial Accounting (New) --> Financial Accounting Global Settings (New) --> Ledgers

  • Java.lang.IllegalStateException when attempting to create a UserTransaction

    I'm using Weblogic Portal 8.1 SP3 with Toplink 9.0.4.2. Due to the fact that we're deploying our application on a Weblogic cluster, we need to "pin" our data access on servers in our cluster. According to Oracle, this can be done through the use of j

  • Regarding Returning Parameter and Static method

    Hi frnds, I am learning oops ABAP. I want to use returning parameters in method and also STATIC METHOD. If any example it will be more helpful regards, satya