Problem With Cutom Configuration with Object Type

Dear Guru's
I am working WebUI, I am facing a problem with Custom Configuration.
1. The initial requirement to control the visibility for a dropdown event in ERP Quotation.
2. To this i copied the default configuration to custom configuration with custom Object type and Subtype.
       CONFIG KEY: ZPJQTN
       OBJECT TYPE: ZOTYP_CONFIG
       OBJECT SUB TYPE:  ZSTYPE_CONFIG1
3. I have created customm fields in enhancement.
4. Now i chosen my new configuration (ZPJQTN,ZOTYP_CONFIG,ZSTYP_CONFIG1), when i click Show available fields, the custom fields are not showing. Instead the created fields are available at other configuration.
5. I am able to control the visibility for the standard available fields.But i am not getting the custom created fields
(Note:  I have created the Object type and Object sub type as follows: SPRO->CRM->UI Framework->Define Object Types
Object type: ZOTYP_CONFIG Callback class: ZCL_CONFIG_CALLBACK
Redifned the method: IF_BSP_DLC_OBJ_TYPE_CALLBACK~GET_OBJECT_SUB_TYPES
Coded as below:
  data: lv_subtype type bsp_dlc_object_sub_type.
  lv_subtype = 'ZSTYP_CONFIG1'.
  append lv_subtype to result.
  lv_subtype = 'ZSTYP_CONFIG2'.
  APPEND lv_subtype to result.
Now Please suggest me how to achieve this.
Also please let me know, whether i am following the correct procedure for controlling the visibility.
Thanks in Advance,
S.Meganadhan.

Hi Harshit,
I added custom fields using AET only.
I am able to see the field got added in the structure. I am able to access GET and SET methods of the field.
But the problem is, it is not getting saved. Am i missed any configuration step?
Please suggest me.
Thanks in advance,
Regards,
S.Meganadhan.

Similar Messages

  • Calling a PL/SQL from VB with IN argument of object type

    I need to call a PL/SQL function in Oracle 8.1.6 from VB. One of the IN arguments is an object type (TYPE). How would I instantiate the variable of Oracle object type on VB side so that it can be passed to the Oracle?
    Thank you

    You have some flaws in your code.
    First - don't use same identifier for pl sql variables ( including parameters) and column names. In your case oracle will evaluate the where clause as where column_name=column_name which is probably not what you want. The next one - you should ensure that select into yields one row , not more, not less, otherwise you 'll run into exception.
    To actually print the desired values, you have to use dbms_output aware client ( sqlplus is such one) and for sqlplus in particular you have to issue set serveroutput on
    Here is a very basic example how can you get it to work:
    SQL> SELECT * FROM V$VERSION;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> CREATE OR REPLACE PROCEDURE FIND_EMPLOYEES
      2  (p_first_name IN VARCHAR2)
      3  IS
      4  LAST varchar2(10);
      5  BEGIN
      6          SELECT LAST_NAME INTO LAST FROM EMPLOYEES WHERE FIRST_NAME = p_first_name;
      7          dbms_output.put_line(LAST);
      8  EXCEPTION
      9    WHEN no_data_found THEN
    10    dbms_output.put_line('There is no one employee with such first name!');
    11    WHEN too_many_rows THEN
    12    dbms_output.put_line('There are many employees with such first name, try with another one!');
    13  END FIND_EMPLOYEES;
    14  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC FIND_EMPLOYEES('Julia')
    There are many employees with such first name, try with another one!
    PL/SQL procedure successfully completed.
    SQL> EXEC FIND_EMPLOYEES('Eugenia')
    There is no one employee with such first name!
    PL/SQL procedure successfully completed.
    SQL> EXEC FIND_EMPLOYEES('Adam')
    Fripp
    PL/SQL procedure successfully completed.Best regards
    Maxim

  • Problem in fetching varray of Object type

    Below are the code,
    where am calling an procedure which returns me Varray of object type test_obj(id number, name varchar2);
    Am facing an problem in get the object(test_obj) from ARRAY object
    the exception is java.lang.ClassCastException: java.lang.Object
    at line number No 12..
    Can anyone suggest me How handle this...
    1. STRUCT test_objStruct ;
    2. ARRAY test_arr;
    3. OracleCallableStatement cs = (OracleCallableStatement)
    4. con.prepareCall("{call test_data(?)}");
    5. cs.registerOutParameter(1,oracle.jdbc.driver.OracleTypes.ARRAY,"TEST_ARR");
    6. cs.execute();
    7. test_arr = (ARRAY)cs.getObject(1);
    8.System.out.println("array varible "+test_arr.getBaseTypeName());
    9. System.out.println("length "+test_arr.length());
    10. Map map = (Map)con.getTypeMap();
    11. map.put("TEST_OBJ", Class.forName("oracle.sql.STRUCT"));
    12. test_objStruct = (STRUCT)test_arr.getArray(1,1);
    13.Object country_attrs[] = test_objStruct.getAttributes();
    14.System.out.println ("ID: " country_attrs[0]);
    15.System.out.println ("Name: " +country_attrs[1]);
    the output is..
    array varible TEST_OBJ
    length 106
    Error java.lang.ClassCastException: java.lang.Object

    Hi,
    The error occurs on line 12, the first time through the loop, when you try to execute:
    vClient(iCounter).ename_obj:=i.ename;
    At that point, vClient (1) is not an Employee object; it's NULL.
    Try this:
    DECLARE
        TYPE tvrEmploy IS VARRAY(10) OF Employee;
        vClient    tvrEmploy;
        iCounter   integer := 1;
        CURSOR client_cursor IS
            SELECT  ename, sal
            ,       empno                                                 -- ADDED
       FROM    scott.emp
       WHERE   rownum < 11;
    BEGIN
        vClient := tvrEmploy (null,null,null,null,null,null,null,null,null,null) ;  
        FOR i IN client_cursor LOOP
            vClient (iCounter) := Employee (i.ename, i.empno, i.sal);     -- CHANGED
            iCounter := iCounter + 1;
       END LOOP;
    FOR I IN REVERSE 1..10 LOOP
           dbms_output.put_line(to_char(I) ||' '|| vClient(I).ename_obj ||' '|| vClient(I).empno_obj ||' '||
          vClient(I).sal_obj);
       END LOOP;
    END ;

  • Problem with route configuration with wireles !

    Dear sir ;
    we have a network consist of a wireless 340 and 2600 router with one ethernet port and a default static route and 2900 catalyst switch with 24 ports , wireless bridge plugged through switch with RJ-45 connector and i would like to connect another wireless circuit through a different location.
    my question is : what kind of route configuration on router should i make to use secondary wireless independent with primary wireless for another network and can i make a configuration for failover ( which means primary line goes down secondary one will be up ) if yes how can i accomplish this ?
    Best Regards

    If I understood correctly you want to have two wireless links to the same location so that if one fails the other will maintain conectivity.
    You can do that two ways.
    1-Configure spanning tree on the wireless bridges and that will shutdown the secondary link until the primary fails.
    2-Another way is to have two routers with two ethernet ports and use a routing protocol so that when one of the links fails all traffic is routed through the other.
    This is a more expensive way but has the advantage of being able to use the bandwidth of both links simultaneosly while in the first case the backup link is shutdown.

  • Problem with SunFileBinding configured with endpoints.xml

    Hello,
    I'm trying to confiugure the SunFileBinding using the endpoint.xml file. The idea is to pikcup a file from the filesystem and pass it to my engine.
    I've checked the samples under ri-components/file-binding and I (think) my descriptors are identical.
    However, I get from OpenESB the following error when deploying my SA:
    Error : Reason : The endpoint described in deployment descriptor jbi.xml was not found in artifacts XML file
    - Endpoint (described as : serviceinterfaceendpointtype). ::: TestSeqEngTestSeqEngIFftpEndpointconsumer   Here are my descriptors:
    <jbi version = "1.0"
         xmlns = "http://java.sun.com/xml/ns/jbi"
    >
        <services binding-component = "true"      xmlns:sns1="http://test.com/testseqeng/wsdl" >
            <consumes service-name      = "sns1:TestSeqEng"
                      link-type         = "standard"        
                      interface-name    = "sns1:TestSeqEngIF"                  
                      endpoint-name     = "ftpEndpoint"
            />
        </services>
    </jbi>
    <endpoint-list
        xmlns="http://www.sun.com/ns/jbi/bindings/filebinding/deploy/endpoint-config"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
        <endpoint>
            <service>
                <namespace-uri>http://test.com/testseqeng/wsdl</namespace-uri>
                <local-part>TestSeqEng</local-part>
            </service> 
            <interface>
                <namespace-uri>http://test.com/testseqeng/wsdl</namespace-uri>
                <local-part>TestSeqEngIF</local-part>
            </interface>         
            <endpoint-name>ftpEndpoint</endpoint-name>
            <endpoint-role>consumer</endpoint-role>
            <input-dir>c:\tmp\jbi_in</input-dir>
            <output-dir>c:\tmp\jbi_out</output-dir>
            <processed-dir>c:\tmp\jbi_processed</processed-dir>
            <input-pattern></input-pattern>
            <operation>   
                <name>
                    <namespace-uri>http://test.com/testseqeng/wsdl</namespace-uri>
                    <local-part>DoTestOP</local-part>
                </name>
                <mep>http://www.w3.org/2004/08/wsdl/in-only</mep>
                <input-message-type>xml</input-message-type>
                <output-message-type>xml</output-message-type>
                <output-file-prefix>pull_out</output-file-prefix>
                <output-file-extension>html</output-file-extension>   
            </operation>
        </endpoint>
    </endpoint-list>Can you please tell me if there's something I'm missing here?
    Thanks

    Hi,
    The FBC cannot recognize namespace prefixes defined inside the services element
    "<services binding-component = "true" xmlns:sns1="http://test.com/testseqeng/wsdl" >"
    so its not able to resolve sns1 and thats why you are getting the error message.
    Please add the namespace prefix sns1 to the root element (jbi) ,this should work
    e.g
    <jbi version = "1.0"
    xmlns = "http://java.sun.com/xml/ns/jbi"
    xmlns:sns1="http://test.com/testseqeng/wsdl"
    >
    Thanks
    -Ramesh

  • Problem related to Configuration of Document Types ?

    Hi All,
    I am going in spro->MM->Purchasing->PO->Define Document Types. In this after clicking job work PO, I am clicking on Link Purchase Requisition,there comes somedata on right. I wanna know the meaning and purpose of each field like (Doc. Type,Description, Item Category Etc Etc.).

    Hi Abhinav
    Dty
    Documnet type
    Diffeent documnet types can be mentioned. On the basis of this document type you can differentiate the purchasing document eg Po, RFQ, SA etc
    Description
    Item category in purchasing document
        Key defining how the procurement of a material or service item is
        controlled.This determines feild d selection
    NAA
    Indicator: No account assignment:Thich check box will specifcy if no account assignment is allowed for PO
    RS
    Indicator: Contract release order/SA delivery schedule
    Indicates whether release orders/releases or delivery schedules are
    possible in purchasing documents such as contracts or scheduling
    agreements.
    DI
    Dialog indicator
      Indicator specifying that the system is to issue a message to the user
      in the event of this combination of document types and item categories.
    Regards
    Vikrant

  • Datagram test shows low success rate with Exalogic configuration (IB)

    The success rate from our Coherence datagram test is kind of low with Exalogic configuration
    ## with IB interface ##
    throughput: 1014 MB/sec
    16236 packets/sec
    received: 300000 of 779167
    missing: 479167
    success rate: 0.38502657
    ## with 1G ethernet ##
    ethernet throughput: 97 MB/sec
    69141 packets/sec
    received: 1600000 of 1885461
    missing: 285461
    success rate: 0.84859884
    The listener Coherence node has
    bond0 Link encap:InfiniBand HWaddr 80:00:00:4A:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    inet addr:192.168.34.91 Bcast:192.168.39.255 Mask:255.255.248.0
    inet6 addr: fe80::221:2800:1a0:ebf9/64 Scope:Link
    UP BROADCAST RUNNING MASTER MULTICAST MTU:65520 Metric:1
    RX packets:23621494301 errors:0 dropped:0 overruns:0 frame:0
    TX packets:23218231154 errors:0 dropped:1779 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:41399991507456 (37.6 TiB) TX bytes:36726866951912 (33.4 TiB)
    The Coherence publisher node has
    bond0 Link encap:InfiniBand HWaddr 80:00:00:4A:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    inet addr:192.168.34.90 Bcast:192.168.39.255 Mask:255.255.248.0
    inet6 addr: fe80::221:2800:1a0:fb55/64 Scope:Link
    UP BROADCAST RUNNING MASTER MULTICAST MTU:65520 Metric:1
    RX packets:23781098798 errors:0 dropped:0 overruns:0 frame:0
    TX packets:24186487356 errors:0 dropped:2229 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:39474424472056 (35.9 TiB) TX bytes:44425819197666 (40.4 TiB)
    Is there anything needs to be tuned/configured to use InfiniBand? Or any suggestions to resolve the issue?
    Thanks in advance.

    Hi,
    Is important that the IB NIC have it's MTU set to the maximum allowed value of just under 64KB to get the best performance.
    Try throttling the test to just under the data rate the test achieved by adding -txRate to the test parameters. You can continue to lower the throttle until packet loss is less then 1%. Coherence will do the same thing automatically to avoid the packet loss. Also you should plan on running a number of nodes on each blade to help spread the network load over more CPUs.
    For further information about the -txRate option, please take a look at http://docs.oracle.com/cd/E18686_01/coh.37/e18679/tune_datagramtest.htm
    Also, as can be seen at http://docs.oracle.com/cd/E18476_01/doc.220/e18480/solaris.htm note that Coherence on Oracle Exalogic dynamically adjusts buffering to the MTU of the interface. To use dynamic buffering, you must run the following parameters:
    ndd -set /dev/ip ip_reass_queue_bytes 16777216
    ndd -set /dev/tcp tcp_max_buf 8388608
    ndd -set /dev/udp udp_max_buf 8388608
    This applied for Linux Exalogic too.
    Hope this helps.
    Thanks,
    Cris

  • Object Type 10 donu00B4t showed in CFL

    Hi all,
    I have a problem with cfl over OCRG (object type 10)
    My code in .srf file is the following:
    <userdatasources>
    <action type="add">
        <datasource uid="udsCliente" type="9" size="254"></datasource>
        <datasource uid="udsCadena" type="1"></datasource>
    </action>
    </userdatasources>
    <item uid="txCliente" ....>
        <AutoManagedAttribute></AutoManagedAttribute>
        <specific TabOrder="0" ChooseFromListUID="cflOCRD" 
                                      ChooseFromListAlias="CardName">
             <databind databound="1" table="" alias="udsCliente"></databind>
         </specific>
    </item>
    <item uid="txCadena" type="16" ....>
        <AutoManagedAttribute></AutoManagedAttribute>
        <specific TabOrder="1" ChooseFromListUID="cflOCRG"  
                                          ChooseFromListAlias="GroupCode">
            <databind databound="1" table="" alias="udsCadena"></databind>
        </specific>
    </item>
    <ChooseFromListCollection><action type="add">
          <ChooseFromList UniqueID="cflOCRD" ObjectType="2" MultiSelection="0" IsSystem="0"></ChooseFromList>
          <ChooseFromList UniqueID="cflOCRG" ObjectType="10" MultiSelection="0" IsSystem="0"></ChooseFromList>
    </action>
    </ChooseFromListCollection>
    Note: In txcliente a cfl works fine (over bussinessPartners), however in txCadena (over BussinesPartner Groups not showed)
    What I´m wrong? (It´s seems a type of udsCadena... i´m trying with several types but still wrong)
    Thanks in advanced and Kinds Regards

    Hi Alejandro,
    I have tried to give it a try and cannot make it work.
    As this object is new maybe there is something missing on it that blocks the CFL from working.
    Please create a message for support asking for it. And if you can share your findings in here.
    Best Regards
    Trinidad.

  • 0crm_complaints_i doesnot extract for few item object types

    Hi Gurus,
    I need to have data records in BI box with respect to item object types BUS2000164 and BUS2000185. I have tried with 0CRM_COMPLAINTS_I. There I have data records corresponding to BUS2000160, BUS2000161 and BUS2000167. But not the above ones. I have checked other relevant datasources as well. But couldn't find one.
    It would be of great help if anybody can provide me the solution or give me some clue.
    Thanks in advance!!!

    I have the same quesiton
    Have you solved this problem?

  • Can you reference package variables in a pl/sql object type

    I'm trying to create an object type and I would like to use a type from a pacakge definition as one of the parameters for a method in the object. I read that types defined inside a PL/SQL package cannot be used as parameter. Does anyone have a workaround for this?

    You could move the type definition out from the package to a schema level object type. Then you should be able to use the schema level object type in both your package and the new object you wish to create.
    Below is a short example of what I mean:
    -- The way I interpreted your question
    CREATE OR REPLACE PACKAGE foo_pkg
    AS
    TYPE foo_obj IS RECORD (
    f1 NUMBER
    ,f2 VARCHAR2 (10)
    in_pkg_foo_obj foo_obj;
    END foo_pkg;
    SHOW errors
    CREATE OR REPLACE TYPE newFooObj IS OBJECT (
    f1 NUMBER
    ,f2 VARCHAR2 (3)
    ,f3 DATE
    ,MEMBER FUNCTION getAllFoos (inFoo IN foo_pkg.foo_obj)
    RETURN NUMBER
    SHOW errors
    CREATE OR REPLACE TYPE BODY newFooObj
    AS
    MEMBER FUNCTION getAllFoos (inFoo IN foo_pkg.foo_obj)
    RETURN NUMBER
    IS
    BEGIN
    RETURN 1;
    END;
    END;
    SHOW errors
    -- Clean up
    DROP PACKAGE foo_pkg;
    DROP TYPE newFooObj;
    -- Now try it with a schema level object type
    CREATE OR REPLACE TYPE foo_obj IS OBJECT (
    f1 NUMBER
    ,f2 VARCHAR2 (10)
    CREATE OR REPLACE PACKAGE foo_pkg
    AS
    in_pkg_foo_obj foo_obj;
    END foo_pkg;
    SHOW errors
    CREATE OR REPLACE TYPE newFooObj IS OBJECT (
    f1 NUMBER
    ,f2 VARCHAR2 (3)
    ,f3 DATE
    ,MEMBER FUNCTION getAllFoos (inFoo IN foo_obj)
    RETURN NUMBER
    SHOW errors
    CREATE OR REPLACE TYPE BODY newFooObj
    AS
    MEMBER FUNCTION getAllFoos (inFoo IN foo_obj)
    RETURN NUMBER
    IS
    BEGIN
    RETURN 1;
    END;
    END;
    SHOW errors
    DROP PACKAGE foo_pkg;
    DROP TYPE newFooObj;
    Bob

  • Fetch into object type

    Oracle 10.2.0.5.0
    Using Pl/SQL Developer
    Hi I'm new to collections, object types etc, so I aologize for any poor wording and missed concepts...
    I need to output a ref cursor from my package (for a summary report in SQL Server Reporting Services 2005). The summary report has two fields that come from the database table and 5 calculated fields. My idea for creating the ref cursor is as follows:
    1. Define an object type at the schema level
    2. Define a table (collection) type at the schema level
    3. Define a ref cursor at the package level
    4. Using dynamic SQL create a sql statement creating virtual columns for the 5 calculated fields
    5. Fetch cursor with dynamic sql into object type one record at a time
    6. Calculate the other five field values and update the object for each record processed
    7. Add the object 'record' to the table (collection) after each record is processed
    8. After the fetch is complete, convert the table to a ref cursor for returning to my application
    Here is what I have so far. I have cut out several of the calculated fields for simplicities sake. It is not complete and I don't know how to fetch the database row into the object, nor convert the collection to a ref cursor.
    Any help would be greatly appreciated.
    create or replace type dlyout.srvCtr_sum_rec_type as object (
                               zoneNo number,
                               zonetx varchar2(15),
                               distNo varchar2(4),
                               distTx varchar2(30),
                               numOccr number,
                               MEError varchar2(1));
    create or replace type dlyout.srvCtr_sum_tbl_of_recs is table of srvCtr_sum_rec_type;
    CREATE OR REPLACE PACKAGE DLYOUT.REPORTS_PKG is
      TYPE CUR IS REF CURSOR; 
    PROCEDURE testABC(startDate IN date,
                           endDate IN date,
                           startTime IN varchar2,
                           endTime IN varchar2,
                           zoneNo IN dlyout.loc.zone_no%type,
                           distNo IN dlyout.loc.dist_cd%type,
                           CUROUT OUT CUR);
    END;
    CREATE OR REPLACE PACKAGE BODY DLYOUT.REPORTS_PKG IS
      PROCEDURE testABC(startDate IN date,
                           endDate IN date,
                           startTime IN varchar2,
                           endTime IN varchar2,
                           zoneNo IN dlyout.loc.zone_no%type,
                           distNo IN dlyout.loc.dist_cd%type,
                           CUROUT OUT CUR) as
      startDateTimeStr varchar2(10) := to_Char(startDate, 'MM/DD/YYYY') ;     
      endDateTimeStr varchar2(10) := to_Char(endDate, 'MM/DD/YYYY');   
      startDateTime date := to_date(startDateTimeStr || ' ' || startTime, 'MM/DD/YYYY HH24:MI:SS');
      endDateTime date := to_date(endDateTimeStr|| ' ' || endTime, 'MM/DD/YYYY HH24:MI:SS');
      distClause varchar2(1000);
      sqls varchar2(2000);
      zoneClause varchar2(1000) :='';
      idx number :=0;
      curSrvCtr cur;
      srvCtrRec srvCtr_sum_rec_type;
      srvCtrTbl srvCtr_sum_tbl_of_recs :=srvCtr_sum_tbl_of_recs();
      BEGIN
        if zoneNo <> 9999 then
            zoneClause := ' and zone_no member of dlyout.reports_common_stuff_pkg.convert_to_collection(zoneNo)';
        end if;
        if distNo <> '9999' then
            distClause := ' and dist_cd member of dlyout.reports_common_stuff_pkg.convert_to_collection(distNo) ';
        end if;
        sqls := 'select distinct l.zone_no zoneNo, l.zone_tx zoneTx,
                l.dist_cd distCd , l.dist_tx distTx, 0 numOccr, '''' MEError       
                from dlyout.loc l
                where l.ts between  :startts and :endts ' ||
                zoneClause ||
                distClause ||
                ' order by l.zone_no, l.dist_tx ';
        open curSrvCtr for sqls using  startDateTime, endDateTime;
        LOOP
          FETCH curSrvCtr INTO srvCtrRec;      --ORA:00932 inconsistent datatype expected - got -
          EXIT WHEN curSrvCtr%NOTFOUND;
            --call other functions to get calculated fields
            srvCtrRec.numOccr := dlyout.reports_common_stuff_pkg.Num_Loc_Exc_Mom(startDateTimeStr, endDateTimeStr, starttime, endTime, srvctrRec.distno);
            srvCtrRec.MEError := dlyout.reports_common_stuff_pkg.ME_Error(startDateTimeStr, endDateTimeStr, starttime, endTime, srvCtrRec.distNo, null);
            dbms_output.put_line(srvCtrRec.distTx || ' ' || srvCtrRec.numoccr|| ' ' || srvCtrRec.MEError);
         end loop;
    end testABC;
    END;
      Then I need to add the object to the table. Something like this?
           -- add object 'record' to table
           srvCtrTbl.extend;
           srvCtrTbl.last := srvCtrRec;
    Then I am not sure how to do the cast to get the table to a ref cursor. Something like this?
    open curout for SELECT *
    FROM TABLE (CAST (srvCtrTbl AS srvCtr_sum_tbl_of_recs))
    ORDER BY zoneNo, distTx;

    Ok, so after more research if seems that in 10.2 you cannot assign an object (SQL) type to a ref cursor (PLSQL). SO i changed my direction and used a global temp table - created at the schema level.
    Create global temporary table dlyout.srvCtr_summary (
                               zoneNo number,
                               zonetx varchar2(15),
                               distNo varchar2(4),
                               distTx varchar2(30),
                               numOccr number,
                               MEError varchar2(1)
    ) on commit delete rows;Here is what the procedure looks like now.
    PROCEDURE testABC(startDate IN date,
                           endDate IN date,
                           startTime IN varchar2,
                           endTime IN varchar2,
                           zoneNo IN dlyout.location.zone_no%type,
                           distNo IN dlyout.location.dist_cd%type,
                           CUROUT OUT CUR) as
      startDateTimeStr varchar2(10) := to_Char(startDate, 'MM/DD/YYYY') ;     
      endDateTimeStr varchar2(10) := to_Char(endDate, 'MM/DD/YYYY');   
      startDateTime date := to_date(startDateTimeStr || ' ' || startTime, 'MM/DD/YYYY HH24:MI:SS');
      endDateTime date := to_date(endDateTimeStr|| ' ' || endTime, 'MM/DD/YYYY HH24:MI:SS');
      distClause varchar2(1000);
      sqls varchar2(2000);
      zoneClause varchar2(1000) :='';
      curSrvCtr cur;
    --Still need the PLSQL record type to put in the cursor for the dynamic SQL
    type srvCtr_sum_rec_type is record (zoneNo dlyout.location.zone_no%type,
                               zonetx dlyout.location.zone_tx%type,
                               distNo dlyout.location.dist_cd%type,
                               distTx dlyout.location.dist_tx%type,
                               numOccr number,
                               MEError varchar2(1));
      srvCtrRec srvCtr_sum_rec_type;
      BEGIN
        --create clauses for dynamic sql by calling other functions
        if zoneNo <> 9999 then
            zoneClause := ' and zone_no member of dlyout.reports_common_stuff_pkg.convert_to_collection(zoneNo)';
        end if;
        if distNo <> '9999' then
            distClause := ' and dist_cd member of dlyout.reports_common_stuff_pkg.convert_to_collection(distNo) ';
        end if;
        --here is the dynamic sql
        sqls := 'select distinct l.zone_no, l.zone_tx,
                l.dist_cd , l.dist_tx, 0, 0,
                0, 0, ''''       
                from dlyout.location l
                where l.enrgz_ts between  :startts and :endts ' ||
                zoneClause ||
                distClause ||
                ' order by l.zone_no, l.dist_tx ';
       open curSrvCtr for sqls using  startDateTime, endDateTime;
        LOOP
          --fetch in part of the record
          FETCH curSrvCtr INTO srvCtrRec;
          EXIT WHEN curSrvCtr%NOTFOUND;
          --do the calculations to get the other field values
            srvCtrRec.numOccr := dlyout.reports_common_stuff_pkg.Num_Loc_Exc_Mom(startDateTimeStr, endDateTimeStr, starttime, endTime, srvctrRec.distno);
             srvCtrRec.MEError := dlyout.reports_common_stuff_pkg.MEC_Error(startDateTimeStr, endDateTimeStr, starttime, endTime, srvCtrRec.distNo, null);
            dbms_output.put_line(srvCtrRec.distTx || ' ' || srvCtrRec.numoccr|| ' ' || srvCtrRec.MEError);
            --add record to GTT
            insert into dlyout.srvCtr_summary(zoneNo, zoneTx, distNo, distTX, numOccr, MEError )
            values(srvCtrRec.zoneNo, srvCtrRec.zoneTx, srvCtrRec.distNo, srvCtrRec.distTX, srvCtrRec.numOccr, srvCtrRec.MEError);
        end loop;
       --open GTT and return ref cursor to app
       open curout for SELECT *
           FROM srvCtr_summary
           ORDER BY zoneNo, distTx;
      end testABC;

  • Error in creation of Object Type from XML passed

    Hi,
    I am facing a problem creating a appropriate a object type for a XML.
    Below are the details:
    XML Passed
    <mer_offer_action_data>
    <form_id>
    134039588
    </form_id>
    <action_cd>
    OA
    </action_cd>
    <offer_decline_reason_cd>
    </offer_decline_reason_cd>
    <start_dt>
    </start_dt>
    <candidate>
    <ds_prs_id>
    109315
    </ds_prs_id>
    <ds_prs_id>
    110534
    </ds_prs_id>
    <ds_prs_id>
    110059
    </ds_prs_id>
    </candidate>
    </mer_offer_action_data>
    Types Declaration
    +CREATE OR REPLACE type MER_OFF_CANDIDATE
    AS
    OBJECT
    DS_PRS_ID NUMBER
    CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
    AS
    TABLE OF MER_OFF_CANDIDATE;
    CREATE OR REPLACE type MER_OFFER_ACT_DATA
    AS
    OBJECT
    FORM_ID NUMBER,
    ACTION_CD VARCHAR2(6),
    OFFER_DECLINE_REASON_CD VARCHAR2(6),
    START_DT VARCHAR2(11),
    CANDIDATE MER_OFF_CANDIDATE_t
    CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
    AS
    TABLE OF MER_OFFER_ACT_DATA;
    CREATE OR REPLACE type MER_OFFER_ACTION_DATA
    AS
    OBJECT
    MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
    /+
    My Declaration
    +merOffActDataXML      xmltype;
    merOffActData     MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
    Inside Pl/SQL block
    +-- Converts XML data into user defined type for further processing of data
    xmltype.toobject(merOffActDataXML,merOffActData);+
    when I run the Pl/Sql block it gives me error
    ORA-19031: XML element or attribute FORM_ID does not match any in type ORADBA.MER_OFFER_ACTION_DATA
    which means the object type mapping is wrong
    I would like to know whether the object type I had created is correct or not.
    Thanks for your help
    Beda

    Bedabrata Patel wrote:
    Below are the details:The details except for a description of the problem
    I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
    Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
    And which version of Oracle you are getting the unknown error creating the unknown problem.

  • Error in creation of Object Type

    Hi,
    I am facing a problem creating a appropriate a object type for a XML.
    Below are the details:
    XML Passed
    <mer_offer_action_data>
         <form_id>
              134039588
         </form_id>
         <action_cd>
              OA
         </action_cd>
         <offer_decline_reason_cd>
         </offer_decline_reason_cd>
         <start_dt>
         </start_dt>
         <candidate>
              <ds_prs_id>
                   109315
              </ds_prs_id>
              <ds_prs_id>
                   110534
              </ds_prs_id>
              <ds_prs_id>
                   110059
              </ds_prs_id>
         </candidate>
    </mer_offer_action_data>
    Types Declaration
    +CREATE OR REPLACE type MER_OFF_CANDIDATE
    AS
    OBJECT
    DS_PRS_ID NUMBER
    CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
    AS
    TABLE OF MER_OFF_CANDIDATE;
    CREATE OR REPLACE type MER_OFFER_ACT_DATA
    AS
    OBJECT
    FORM_ID NUMBER,
    ACTION_CD VARCHAR2(6),
    OFFER_DECLINE_REASON_CD VARCHAR2(6),
    START_DT VARCHAR2(11),
    CANDIDATE MER_OFF_CANDIDATE_t
    CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
    AS
    TABLE OF MER_OFFER_ACT_DATA;
    CREATE OR REPLACE type MER_OFFER_ACTION_DATA
    AS
    OBJECT
    MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
    /+
    My Declaration
         +merOffActDataXML          xmltype;
         merOffActData          MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
    Inside Pl/SQL block
         +-- Converts XML data into user defined type for further processing of data
         xmltype.toobject(merOffActDataXML,merOffActData);+
    Thanks for your help
    Beda
    Edited by: Bedabrata Patel on Jul 12, 2010 5:51 AM

    Bedabrata Patel wrote:
    Below are the details:The details except for a description of the problem
    I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
    Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
    And which version of Oracle you are getting the unknown error creating the unknown problem.

  • Is possible leave  a object type (MIME Repository) of the transport system?

    Hi,
    We'd like use the MIME Repository for storing pictures of our SAP CCM Catalog.
    When we import a new MIME object a order is created. It is possible to avoid this. I mean I'd like to know if we can do this.
    - In a prductive system (closed)
    - Configure an object type to leave the transport system
    Any idea about this?
    Thanks for your attention
    Regards
    Jorge

    Hi
    Your program works fine you need only to write all DEFINITION and then all IMPLEMENTATION:
    *       CLASS one DEFINITION
    CLASS ONE DEFINITION.
      PUBLIC SECTION.
        METHODS: ADDIT IMPORTING ADD_NUM1 TYPE ANY
                                 ADD_NUM2 TYPE ANY
                       EXPORTING ADD_SUM TYPE ANY.
    ENDCLASS.
    *       CLASS two DEFINITION
    CLASS TWO DEFINITION INHERITING FROM ONE.
      PUBLIC SECTION.
        METHODS: OUT IMPORTING OUT_NUM1 TYPE ANY
                               OUT_NUM2 TYPE ANY
                               OUT_SUM TYPE ANY.
    ENDCLASS.
    *       CLASS one IMPLEMENTATION
    CLASS ONE IMPLEMENTATION.
      METHOD ADDIT.
        ADD_SUM = ADD_NUM1 + ADD_NUM2.
      ENDMETHOD.
    ENDCLASS.
    *       CLASS two IMPLEMENTATION
    CLASS TWO IMPLEMENTATION.
      METHOD OUT.
        WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.
      ENDMETHOD.
    ENDCLASS.
    DATA O_ONE TYPE REF TO ONE.
    DATA O_TWO TYPE REF TO TWO.
    DATA: NUM1 TYPE I,
          NUM2 TYPE I,
          SUM  TYPE I.
    START-OF-SELECTION.
      CREATE OBJECT: O_ONE, O_TWO.
      NUM1 = 2. NUM2 = 4.
    *when is called is used EXPORTING
      CALL METHOD O_ONE->ADDIT
        EXPORTING
            ADD_NUM1 = NUM1
            ADD_NUM2 = NUM2
         IMPORTING
            ADD_SUM = SUM.
    *PERFORM addit USING num1 num2 CHANGING sum.
      CALL METHOD O_TWO->OUT
        EXPORTING
           OUT_NUM1 = NUM1
           OUT_NUM2 = NUM2
           OUT_SUM = SUM.
      NUM1 = 7. NUM2 = 11.
      CALL METHOD O_ONE->ADDIT
         EXPORTING
           ADD_NUM1 = NUM1
           ADD_NUM2 = NUM2
      IMPORTING
           ADD_SUM = SUM.
    *PERFORM addit USING num1 num2 CHANGING sum.
      CALL METHOD O_TWO->OUT
        EXPORTING
          OUT_NUM1 = NUM1
          OUT_NUM2 = NUM2
          OUT_SUM  = SUM.
    Max

  • Problem with decimal data visualization in a circular graphic object type

    When we are design a report using Crystal Reports 2008 we found the following problem. When we insert an object of type circle graphic selecting the option in the graphics wizard for view in the legend data both in value and percentage (u2018bothu2019 design) we cant show them in a two decimals format at the same time.
    Using the option u2018number formatu2019 and indicating two decimals only affects the value but not the percentage.
    Show both the value and the percentage with two decimals at same time itu2019s a necessary requirement for our report design.
    Is there any way to show both the value and the percentage in a circle graphic object with two decimals at the same time?
    Thanks.

    hello Jose,
    i am not sure what you mean by "circular graphic object type".
    there's nothing in the standard cr 2008 build that has this that i've ever found that creates a circle other than inserting a box and changing the rounding on the corners. if you're using a 3rd party product or add-on you'll need to contact whoever built it.
    cheers,
    jamie

Maybe you are looking for

  • Authorization on PNP logical database

    My limited understanding of authorization on reports that uses PNP/PNPCE logical database is that if a user who runs the report does not have authorization for any of the declared infotypes then the report stops with message 'no authorization for inf

  • Why is my landline tel number is in use by someone...

    My mother has been with BT for 35yrs with same number. 6 months we moved to talk talk to  avail of  their broadband  deal and we  kept the same number. It's been working fine until Wednesday 22nd Aug when I suddenly lost all phone and internet connec

  • 1 App-v package (5.0) won't start, howto repair (default repair won't work)

    Hi, I have this one App-v applicationon a server that won't start, I get some strange error what doesn't give any results in google. The application works fine on another server so the application itself is fine. I tried to remove the package via pow

  • The secret to getting your CS4 project back to CS3 - AAF or AE export

    Okay you edited a project in CS4 but it won't render an quicktime right or something else, what do you do? The only reason I edit with CS4 is the awesome Media Browser for P2 clips. It does save a bunch of time when working with tapeless media that B

  • How do you paste something in here?

    Sorry that this is off topic, but anyone know how to paste something?  I am trying to paste my code, but there is no paste button.