How to generate "constructor" for parameter object

Hello,
As part of my research project I need to find the "constructor" of a given
parameter object.
For example: Suppose we have the following method -
public void int pop(Stack st) {
//some code...
I want to generate code that calls this method and its parameter with its
constructor. Like -
pop(new Stack(10));
As you can see I need to return a valid instance of the parameter to the
method (null wont do).
I dont know what library or API to use for this purpose.
Your help is highly appreciated.
Thanks,
Fayezin

That's not a great example. If you have a Stack class, then pop() should be a method on that class, not some other class. And if you created a new Stack object, then presumably it would be empty, so popping it should cause an exception.
Anyway, if you want to get the constructor of a class, use Introspection. There may be a better solution though, depending on what you're actually trying to accomplish.

Similar Messages

  • How to generate sitemap for SiteStudio sites. Is   there any component avai

    How to generate sitemap for SiteStudio sites. Is there any component available?
    We want to create xml having list of all site URLS for SEO purpose.
    Is there any way to achieve this ?
    Thanks

    SiteStudio comes with SiteMap fragments. Change the page template so it is a document type XML, add the fragment and you're practiacally done.

  • How  to  generate  Billing   for   Service Order   ?

    how  to  generate  Billing   for   Service Order   ?

    Hello,
    You may do a resource related billing from the service order,  but you need to maintain Resource Related billing profile in Service order --> Control tab. Once it is set you may generate the billing document (debit memo) from service order through DP90, provided the config is right.
    Prase

  • How to generate datasource for inforsource in BW 7

    Hi all:
         Could you please tell me how to generate datasource  for inforsource  in BW7, it seems that the way
    is different from other lower edition BW 3.x.   Should I  choose   Tranformation  ? and then how ?
    Thank you very much!
    Edited by: jingying Sony on May 9, 2009 8:41 AM

    1) First thing is that in BI 7.x the infosource is optional.You can directly create a transformation between datasource and data target (e.g. cube). If you still want to use a infosource then you will require 2 transformations. 1 will act as a transfer rule and other one will act as a update rule. This is a crude example showing the comparision between 3.x and 7.x.
    2) Infopackage in 7.x will load the data only till PSA. From PSA to data target you will need DTP. DTP will load data from PSA to data target. So you need to ensure you create a complete flow from datasource to data target and create infopackage & DTP.

  • How to generate Barcode for Storage Bins

    Hi,
    How to generate Barcode for the all the newly created storage bins in order to get scanned with the RF devices.
    Thanks and regards,
    I.Jacob Milton

    Hello Jacob,
    We generate our barcodes with the help of the PPF action. For example, our labels have the barcodes onto them and when we finish a task that requires packing/unpacking/deconsolidation we have the PPF trigger the printing of the neccesary labels.
    I direct you to the path SCM SPRO - Supply Network Collaboration - Tools - Actions (Post Processing Framework). Here you need to set the action and namely the trigger.
    All the best,
    Claudiu Maxim

  • How to Generate 997 for different trading partner with different Interchang

    How to Generate 997 for different trading partner with different InterchangIDS
    We are planning to use same working “ABC -> XYZ (Host)” 850 “ecs” file even for “EFG -> XYZ (Host)” 850 Transaction. And we have successfully implemented without any issues.
    We wanted to send 997 Acknowledgement in case of “EFG -> XYZ (Host)” 850 transaction.
    In this case also we would like to use same “ecs” file which has been used for “XYZ (Host) -> ABC”.
    After adding the 997 capabilities to Stanley I don’t see any extra capability added to “XYZ (Host)” trading partner.
    The generated 997 for Stanely EDI file doesn’t reflect the “XYZ (Host)” trading partner Interchange ID. It is getting reflected the previous 997 Transaction “XYZ (Host)” Intercahnge ID.
    We use following Interchange ID’s
    ABC = 005381447
    XYZ (Host) = 049894764
    EFZ = SWEOT30013
    XYZ (Host) = 5273851T
    The 997 which is generated has the InterchangeID as this “049894764” instead of “5273851T”
    Regards
    Ravi

    Hi Ravi,
    You have to have the two Delivery Channels under Host TP's communication capability. One host delivery channel should be used with one TP only and will have specific values to that TP.
    Go to the Exchange Protocol Parameters of Host TP (XYZ) delivery channel (which you are using in the agreement with EFZ) and provide the required values here. Revalidate and redeploy the agreements and run a test. Let us know if you still face issue.
    Regards,
    Anuj

  • How to generate report for Service sheet - ECC 6.0

    Hi
    Can anyone let me know regarding how to generate reports for  service sheets entered
    regards
    Sanjay

    Hi,
    Get Service Entry Sheet with following T.codes:
    1.MSRV6
    2.ML84
    Regards,
    Biju K

  • How to generate client for GetFile service of Webcenter Content Management.

    How to generate client for GetFile service of Webcenter Content Management.
    Downloaded file : GetFile.wsdl
    <?xml version="1.0" encoding="utf-8" ?>
    - <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.stellent.com/GetFile/" targetNamespace="http://www.stellent.com/GetFile/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.stellent.com/GetFile/">
    - <s:element name="GetFileByID">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="rendition" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="extraProps" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetFileByIDResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetFileByIDResult" type="s0:GetFileByIDResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:complexType name="GetFileByIDResult">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FileInfo" type="s0:FileInfo" />
    <s:element minOccurs="0" maxOccurs="1" name="downloadFile" type="s0:IdcFile" />
    <s:element minOccurs="0" maxOccurs="1" name="StatusInfo" type="s0:StatusInfo" />
    </s:sequence>
    </s:complexType>
    - <s:element name="GetFileByName">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dDocName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="revisionSelectionMethod" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="rendition" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="extraProps" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetFileByNameResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetFileByNameResult" type="s0:GetFileByNameResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:complexType name="GetFileByNameResult">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FileInfo" type="s0:FileInfo" />
    <s:element minOccurs="0" maxOccurs="1" name="downloadFile" type="s0:IdcFile" />
    <s:element minOccurs="0" maxOccurs="1" name="StatusInfo" type="s0:StatusInfo" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="FileInfo">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dDocName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocTitle" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocAuthor" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dSecurityGroup" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocAccount" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevClassID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevisionID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevLabel" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsCheckedOut" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dCheckoutUser" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dCreateDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dInDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dOutDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dStatus" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dReleaseState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFlag1" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dWebExtension" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dProcessingState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dMessage" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dReleaseDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dRendition1" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dRendition2" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dIndexerState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dPublishType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dPublishState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsPrimary" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsWebFormat" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dLocation" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dOriginalName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFormat" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dExtension" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFileSize" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="CustomDocMetaData" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="StatusInfo">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="statusCode" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="statusMessage" type="s:string" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcPropertyList">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="property" type="s0:IdcProperty" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcProperty">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="value" type="s:string" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcFile">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="fileName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="fileContent" type="s:base64Binary" />
    </s:sequence>
    </s:complexType>
    </s:schema>
    </types>
    - <message name="GetFileByIDSoapIn">
    <part name="parameters" element="s0:GetFileByID" />
    </message>
    - <message name="GetFileByIDSoapOut">
    <part name="parameters" element="s0:GetFileByIDResponse" />
    </message>
    - <message name="GetFileByNameSoapIn">
    <part name="parameters" element="s0:GetFileByName" />
    </message>
    - <message name="GetFileByNameSoapOut">
    <part name="parameters" element="s0:GetFileByNameResponse" />
    </message>
    - <portType name="GetFileSoap">
    - <operation name="GetFileByID">
    <input message="s0:GetFileByIDSoapIn" />
    <output message="s0:GetFileByIDSoapOut" />
    </operation>
    - <operation name="GetFileByName">
    <input message="s0:GetFileByNameSoapIn" />
    <output message="s0:GetFileByNameSoapOut" />
    </operation>
    </portType>
    - <binding name="GetFileSoap" type="s0:GetFileSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <operation name="GetFileByID">
    <soap:operation soapAction="http://www.stellent.com/GetFile/" style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    - <operation name="GetFileByName">
    <soap:operation soapAction="http://www.stellent.com/GetFile/" style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="GetFile">
    - <port name="GetFileSoap" binding="s0:GetFileSoap">
    <soap:address location="http://localhost:7101/_dav/cs/idcplg" />
    </port>
    </service>
    </definitions>

    Hi,
    I would suggest you to check the time recording functionality, see
    details in:
    http://help.sap.com/saphelp_sm70ehp1_sp26/helpdata/en/d5/299631364d4e959
    c6609ca3bc24740/content.htm
    Another possibility is configuring the Service Level Agreement, see
    details in SDN blog:
    Service Desk: SLA configuration hints
    https://weblogs.sdn.sap.com/pub/wlg/24813
    or
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/24813
    Thanks
    Regards,
    Vikram

  • How to generate XML for following?

    Hello Everyone,
    I have following snippet of PLSQL code with for loops and record type arrays. Each loop can return separate number of rows and iterate that many times. For e.g. the for loop tab_rec may fetch 50 rows where as the for loop sql_rec may return 80 rows.
    I need to acoomodate all of these record arrays into a single xml file. Each for loop will repreesent one data set. Something like this.
    <dataset>
    <set value = tab_rec(kounter).tvalue >
    <set value = ?
    </dataset>
    Questions:
    1) How can I dynamically generate just one single XML file for all for loops metnioend below in this message?
    2) How can I dynamically generate tags for e.g. <set> tag above if I put XMLELEMENT() under a for loop kounter. To explain this in a better way consider pseudo code example below.
    for i in 1..kounter loop
    <dataset>
    <set value = tab_rec(i).tvalue >
    *<set value = *?*   -- How do i generate these <set> tags when tebrec(i).value will return many rows?*_
    </dataset>
    Thanks for reading this post. Again, the exmple for loops to generate one single XML file is given below.
    For loops in the issue are mentioned below
    FOR a IN tab_recc
    LOOP
    tab_rec (tab_kounter).tsegment := a.ebs_table;
    tab_rec (tab_kounter).tbytes := a.sizemb;
    tab_kounter := tab_kounter + 1;
    END LOOP;
    FOR b IN sql_recc
    LOOP
    sql_rec (sql_kounter).thash := b.hash_value;
    sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
    sql_kounter := sql_kounter + 1;
    END LOOP;
    FOR c IN sess_recc
    LOOP
    sess_rec (session_kounter).tsid := c.SID;
    sess_rec (session_kounter).tvalue := c.VALUE;
    session_kounter := session_kounter + 1;
    END LOOP;
    FOR d IN user_recc
    LOOP
    user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
    user_rec (dbuser_kounter).tuser := d.username;
    dbuser_kounter := dbuser_kounter + 1;
    END LOOP;
    FOR e IN ebs_user
    LOOP
    ebs_rec (ebs_kounter).tuser := e.user_name;
    ebs_rec (ebs_kounter).ttime := e.rtime;
    ebs_kounter := ebs_kounter + 1;
    END LOOP;

    Sorry for delay in response.
    I have pasted the complete code that will show the relation ship between data and XML. What I am trying to do here is to prepare smal packets of XML through XML element and then roll it up to a final grand CLOB variable. and pass that through XML creation. I have used DBMS_JAVA package to append clobs.
    The issue now I am running into, it generates JUNK in xml. pure junk and nothing else Thanks R,
    FOR a IN tab_recc
    LOOP
    tab_rec (tab_kounter).tsegment := a.ebs_table;
    tab_rec (tab_kounter).tbytes := a.sizemb;
    tab_kounter := tab_kounter + 1;
    END LOOP;
    FOR b IN sql_recc
    LOOP
    sql_rec (sql_kounter).thash := b.hash_value;
    sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
    sql_kounter := sql_kounter + 1;
    END LOOP;
    FOR c IN sess_recc
    LOOP
    sess_rec (session_kounter).tsid := c.SID;
    sess_rec (session_kounter).tvalue := c.VALUE;
    session_kounter := session_kounter + 1;
    END LOOP;
    FOR d IN user_recc
    LOOP
    user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
    user_rec (dbuser_kounter).tuser := d.username;
    dbuser_kounter := dbuser_kounter + 1;
    END LOOP;
    FOR e IN ebs_user
    LOOP
    ebs_rec (ebs_kounter).tuser := e.user_name;
    ebs_rec (ebs_kounter).ttime := e.rtime;
    ebs_kounter := ebs_kounter + 1;
    END LOOP;
    FOR aa IN 1 .. tab_kounter
    LOOP
    if aa = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id1 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (aa AS "Id",
    tab_rec (aa).tsegment AS "value"
    ).getclobval ()
    INTO tablob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR bb IN 1 .. sql_kounter
    LOOP
    if bb = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id2 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (bb AS "Id",
    sql_rec (bb).thash AS "value"
    ).getclobval ()
    INTO sqlob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR cc IN 1 .. session_kounter
    LOOP
    if cc= 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id3 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (cc AS "Id",
    sess_rec (cc).tsid AS "value"
    ).getclobval ()
    INTO sesslob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR dd IN 1 .. dbuser_kounter
    LOOP
    if dd = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id4 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (dd AS "Id",
    user_rec (dd).tuser AS "value"
    ).getclobval ()
    INTO dbulob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR ee IN 1 .. ebs_kounter
    LOOP
    if ee = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id5 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (ee AS "Id",
    ebs_rec (ee).tuser AS "value"
    ).getclobval ()
    INTO ebslob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    SELECT XMLELEMENT
    ("Chart",
    xmlattributes (v_caption AS "caption",
    v_subcaption AS "shownames",
    v_xaxisname AS "showvalues",
    v_yaxisname AS "decimals"
    XMLELEMENT ("categories",
    XMLELEMENT ("category",
    xmlattributes (v_label1 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label2 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label3 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label4 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label5 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label6 AS "label")
    tablob, --clob type
    sqlob, --clob type
    sesslob, --clob type
    dbulob, --clob type
    ebslob --clob type
    ).getclobval ()
    INTO v_top50 --clob type
    FROM DUAL;
    DBMS_LOB.append (v_xmlmessage, v_top50); --both are clob type
    v_filename := 'Top50.xml';
    writexml (p_dir_path => v_dir_path,
    p_filename => v_filename,
    p_xml => v_xmlmessage
    );

  • How do I compensate for display objects jumping when screen scaling

    I am building an application that is to run at 2 difference stage sizes. 960x640 and 1024x768 (for those paying attention, you may note that those are the high res settings for the iPhone and iPad2)
    The app was designed and build to run on a stage of 960x640 and when running at this size, there are no problems.
    When the app loads in the 1024x768 window, it "strechs" the stage to fill the window, but keeps the aspect ratio. Everything looks good and the application runs without any problems expect for one thing.
    Sometimes, display objects on the stage "jitter" when moving or animating. I have discovered that this is because the stage is "scaling" the x and y values, and is not pixel snapping the objects on the screen, even though the x and y values of the display object are indeed whole numbers.
    A prime example of this is I have 2 bitmapData images. bmData_s and bmData_h.
    bmData_s is 192x388 in size.
    bmData_h is created from a copy of bmData_s with a glow filter stroke on it, resulting in a image that is 198x394 (6 pixels bigger due to a 3 pixel stroke)
    I place it on the screen using the following code:
    (Background is a bitmap object that is 960x480 and places at 0,0)
    (ObjOffset is a point in my app data to position the object, it's a point set to 53,195)
    MyObj.x = Background.x + ObjOffset.x + (bmData_s.width/2);
    MyObj.y = Background.y + ObjOffset.y + (bmData_s.height/2);
    now, when the mouse rolls over the object, I have an event listener to change MyObj.bitmapData to bmData_h
    MyObj.bitmapData = bmData_h;
    MyObj.x = Background.x + ObjOffset.x + Math.floor(bmData_h.width/2);
    MyObj.y = Background.y + ObjOffset.y + Math.floor(bmData_h.height/2);
    and back to the _s image on mouse out.
    Now, when the app runs on the iPhone which is a 960x640 screen size, or on the PC which is using a window of similiar size, the image doesn't appear to move at all... the "stroke" appears and disappears exactly as it is suppose to
    However, when I run it in a window that is 1024x768, the _h image appears to "jump" one pixel up.
    I have encountered many other similiar things that only occure when the stage is scaled. There is a spot in the app where I am animating a bitmap by manipulating it's scrollrect x and width (have it's do a wipe in from right to left like a peice of paper unrolling on a table) and due to the scaling, the right edge of the image jumps left and right 1 pixel... but on 960x640 screens, it looks perfect.
    Does anyone know how I can compensate for this effect so that this jumping doesn't occur when the stage is stretched to fit the window it's running in?

    Sounds like a x-browser rendering problem
    my guess would be to scale down the inner div's so they add up to less than 100%.
    If you floated div's and gave them a %, give one of the div's a smaller.
    ie: 2 divs floated in a Header, give one 50% and the other 49.5%

  • How to select data for nested object (Object based on another objects)

    Hi,
    I have written the following code, but I am not able to fetch data as I fetch from normal table, Plz help.
    Following is the sample code -
    CREATE TYPE A_OBJ IS OBJECT (
    A_NAME VARCHAR2 (100),
    A_DESC VARCHAR2 (100)
    CREATE TYPE A_TAB IS
    TABLE OF A_OBJ
    CREATE TYPE B_OBJ IS OBJECT (
    B_NAME VARCHAR2 (100),
    B_DESC VARCHAR2 (100)
    CREATE TYPE B_TAB IS
    TABLE OF B_OBJ
    CREATE TYPE H_OBJ IS OBJECT (
    A A_TAB,
    B B_TAB
    create type H_TAB is table of H_OBJ
    -- Created the function to fill the data into my objects.
    Create or Replace Function ABC RETURN H_TAB IS
         l_data H_TAB := H_TAB();
         v_loop_count BINARY_INTEGER := 1;
         obj1 A_TAB;
         obj2 B_TAB;
    begin
         for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A') loop
              obj1 := A_TAB();
              obj1.extend;
              obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              obj2 := B_TAB();
              obj2.extend;
              obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
              l_data.extend;
              l_data(l_data.last) := H_OBJ(obj1,obj2);
         end loop;
         Return l_data ;
    end;
    -- used this SQL for fetching the data using the function -
    select *
    FROM the ( SELECT cast(ABC ()
    as H_TAB) FROM dual )
    the above SQL not gives me the data in the as a normal table returns, plz suggest me how to write SQL for above case.
    Thanks in Advance,
    Deepak

    First try to move your obj1 and obj2 initialization outside of the for loop. Not sure if this is even the issue, but it can't be helping.
    obj1 := A_TAB();
    obj2 := B_TAB();
    for i in(SELECT AG_PROD_MOD_NR, COMM_NM FROM BV_PRODUCT WHERE AG_PROD_MOD_NR = 'E4440A')
    loop
      obj1.extend;
      obj1(obj1.last) := A_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      obj2.extend;
      obj2(obj2.last) := B_OBJ(i.AG_PROD_MOD_NR, i.COMM_NM);
      l_data.extend;
      l_data(l_data.last) := H_OBJ(obj1,obj2);
    end loop;

  • Multiple constructors for BPM Object

    I need to create BPM object which can have more than one (overloaded) constructors.
    Somehow I am not able to find out a way to create new constructor for a BPM object in Studio.
    I guess if I create a Java class and import it in the project, it may work, but I would prefer to create a BPM object rather than java code so that I can easily modify the code as and when required.
    Can someone help?

    Hi,
    Sorry - there's no way to create multiple constructors for a BPM Object (unless as you mentioned - you create an hier from a Java jar file).
    Dan

  • How to generate csr for third party code signing cert?

    I've been reading about code signing, but can't see how to generate a csr to use with a third party CA. Does someone have a tutorial, link, suggestion?

    Hi,
    Here is an document which discussed on how to implement code signing with using third party certificate for you reference:
    http://download.microsoft.com/download/a/f/7/af7777e5-7dcd-4800-8a0a-b18336565f5b/best_practices.doc
    For further suggestions, it is recommend you to get further support in the MSDN Forum so that you can get the most qualified pool of respondents.
    http://social.msdn.microsoft.com/forums/en-US/categories/
    Thanks
    Tiger Li 
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How To Generate XSL for integration from WSDL

    Hi,
    Can anybody help me to how to generate XSL from WSDL file for Integration.....
    Thanks

    You can use Oracle JDeveloper to general XSL against WSDL or some XML tool like XML Spy. There are lots of XSL tools available to do this (some embedded in Eclipse we well)

  • How to generate license for AIP-SSM without PAK-number?

    Hello! I’m sorry for my English. I have a problem with generating license for AIP-SSM. My contract with SMARTnet service is activated, but I don’t have a PAK-number. How I can generate a license for updating my module?

    Alternatively you can always write an email to [email protected] with your serial number and they should be able to provide you the license for any cisco device.
    Sachin

Maybe you are looking for