Problem with Stack

Hi,
I need a stack implementation of an stack. I found some code on http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/10_objs.htm (see chapter Object Type Example: Stack), but I don't know how to handle it.
When I try
declare
  s Stack;
begin
  s.INITIALIZE;
end;I get an ORA-30625
ORA-30625: Methoden-Dispatch mit Argument NULL SELF ist nicht zulässig
ORA-06512: in Zeile 4can somebody please help me and show me where's the problem or how I have to handle this object?
Thanks

can somebody please help me and show me where's the problem or how I have to handle this object?
SQL>  create type intarray as varray (25) of integer;
Type created.
SQL>  create type stack as object (
   max_size   integer,
   top        integer,
   position   intarray,
   member procedure initialize
Type created.
SQL>  create type body stack
as
   member procedure initialize
   is
   begin
      top := 0;
      /* call constructor for varray and set element 1 to null. */
      position := intarray (null);
      max_size := position.limit;               -- get varray size constraint
      position.extend (max_size - 1, 1);         -- copy element 1 into 2..25
   end initialize;
end;
Type body created.
SQL>  declare
   s   stack := stack (null,null,null);
begin
   s.initialize;
end;
PL/SQL procedure successfully completed.

Similar Messages

  • Chart - problem with stack

    Hello,
    Ive got 3 problems with stack plots:
    1. In the legend, the first value of table is the last one, why?
    2. Always when i remove one value(in this case i turn off button), the last chart is remove
    3. When I turn off the second button(rest is on), the plot name in legend is doubled.
    Does anyone have an idea what i can do with this?
    thanks for any answers.
    Solved!
    Go to Solution.
    Attachments:
    Desktop.zip ‏24 KB

    Well, you simply need to code it differently.
    Try this:
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    top-levelMOD2.vi ‏13 KB

  • Problem with Stacked Bar Chart

    I have a problem with a stacked bar chart in Numbers 09. My chart is a single series with 6 categories. All of the categories have different values. The first 5 categories display correctly. However, the last category does not display in the color its supposed to, but rather shows up as white/background instead of the grey color shown on the legend. However, the value label is displayed in the proper place.
    When I select other chart types (pie, regular bar, or regular column) the category shows up like it's supposed to.
    This is kind of annoying since I would rather use stacked bar instead of a pie chart. Is there an upper limit on the number of values it can display as a stacked bar chart? Is this just a bug? Thanks!

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • Problem with Stacked Columns in Business Graphics

    Hi,
    Has anyone used the stacked columns chart type in business graphics?  Am facing a problem with this.
    I am using the SimpleGraphics example demo with 2 dataseries, the values ranging from 0-10.  It works fine if the chart type is Columns (this is default).  When I change the chart type to stacked_columns, the graph goes for a toss.  The y-axis range automatically changes to 0-1 (values as 0, 0.2, 0.4 ... 1.0) and it does not display stacked columns as expected.
    Is there any specific property(s) that need to be set for this chart type?
    Appreciate any quick response.
    cheers,
    Vittal

    Hi friend,
    See the link below it is having the solution of hiding the columns in smart forms
    Hide table columns in smart form?
    Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
    I think this will solve your issue if you still have queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • EHP4 installation - problem with stack files

    Hello all,
    I installed ERP 6.0 EHP4 ready and would like to install EHP4 with sapehpi.
    I have a problem with my XML stack files because it contains kernel 69 for all os and db.
    This stack file has been generated in the MOPZ and MOPZ don't ask me to select kernel files.
    I don't see the option Select OS/DB-dependent files in MOPZ.
    Solution Manager version is 7.01 SPS23
    What would be the solution?
    Thanks in advance.
    Best Regards,
    Olivier

    Hello Markus,
    Thanks for your answer.
    I fixed the problem by executing once again the following activity in spro. Really strange because I already did it and got the message that the activation was successfull. Anyway if someone encounter this problem, please do the following:
    1. Perform IMG activity "Configuration of Extended Functions" (IMG Activity Key: SOLMAN_MOPZ_SLM_CONF), which is delivered as of ST400 SP15.
    a) Call transaction code SPRO.
    b) Click button "SAP Reference IMG"
    c) Use CTRL+F and input "Configuration of Extended Functions" to search for the IMG activity
    Noet this: as from ST 400 SP19, use CTRL+F and input "Maintenance Optimizer" to search the IMG activity group, under this group, there is the IMG activity "Configuration".
    d) Perform it.
    e) If this IMG activity is not available due to a low support package level, see SAP Note 1090202 for manual configuration.
    Best Regards,
    Olivier

  • Problem with Stacked area chart

    Hi all,
    I'm working on delivery data according to month having input(combo) as the year. I'm trying to display the data in percentages in Stacked area chart having series as ontime delivery, 1 week late, 2 weeks late,........5 weeks late and category labels as months. The problem is when I take the Preview of data I get to see the data for ontime, 1 week , 2 week as it should be but when I hover the mouse over the 2 weeks data area  mouse over values shows 5 weeks data(0 %) where as in reality the colored area belongs to 2 weeks data. I tried to delete 5 weeks series data and now it shows as 4 weeks data.
    What could be the problem ?
    Thanks

    >
    Raghavendra Gadhamsetty wrote:
    > Did you try adding the formula year(datefield) in X axis by removing the existing datefield?
    >
    > Regards,
    > Raghavendra
    Thanks for the answer regarding dates. I'm still awaiting an answer on the following part of my question:
    "My problem is that I am trying to configure a stacked area chart to show various related financial figures over the period of a year or more. My problem with a regular stacked area chart is that because of the large number of data points (daily) the X axis becomes far too chaotic with the large number of labels. The obvious option seems to be to use the "Show time scale" option in axis settings, however when you chose this option the "Date axis area" chart type is automatically chosen and this chart type doesn't seem to allow stacking. Can anybody help?"
    Thanks in advance for your help.
    Kind Regards,
    Mark

  • Problems with Stack 27 for Solution Manager

    We are trying to install the stack 27 ,on Solution Manager based on Nw 701, but despite we downloaded all the packages listed with the MOPZ  the SPAM transaction continue to arise consistency problems with the queue.
    The package affected seems to be the SAPKITL437, but it's not clear why.
    I'm not able to find any Oss notes for that.
    Any advise ?

    Hi,
    Did you check SAP Note No. 1274287 at section for your ST 400 version?
    Attention: The Prerequisites for Managing sytem from
    SAP Note No. 1274287 must be fulfilled at any time.
    Regards,
    Aidan

  • Problems with stacked bar chart in Java SDK and CRDesigner

    Hi @ll,
    I have an issue with the rendering of stacked bar charts through the Java SDK and the CRDesigner. unfortunately, my research in this forum and with the help of aunt google didn't lead to success.
    These are my problems:
    I have a  stacked bar chart which, when datasets/stacks increase in number per bar, displays errors:
    1.)  the single stacks of the bar merge together randomly and form bigger stacks with the sum of the singles. the information of  single stacks gets lost in the bar.
    2.)  the total sum of all singles is bigger than the maximum value on the y-axis displays. thus, the scaling is wrong.
    1.) appears in the CRDesigner as well as in the Java SDK
    2.) only occurs in the Java SDK
    Is there any trick to turn the random merging of slices off?
    Is the false scaling a known issue and is there a bugfix/workaround?
    many thanks for all advice
    Tom

    hi folks,
    i found the answer to the above problems:
    when you specify the recordfields that are responsible for the change to the next stack or bar, the 'stack' fields have to be unique.
    in my case i evaluated durations in msec (as stacks) from different devices (as bars). randomly i had the same durations for one device. what happens is, that CR does not notice a change and accumulates to the first stack with the same duration.
    surprisingly this also seems to derange the axis scaling. fix the problem by simply using an overall unique recordfield like rownum or a formula that forms the current timestamp to text as identifier for the stacking.
    cheers
    .t

  • Problem with Stacked Bar

    I need to show details about messages transactions.
    I decided to use a Stacked Bar chart to view present number of trans' of different types by their date.
    I use this query in all the series:
    select null link, sd label, c value
    from (select trunc(STARTDATE) sd, count(TRANS_ID) c
    from TRANSACTION
    where ERROR = 'OK' and MSGTYPE = 'THE_MSG_TYPE_VALUE'
    group by trunc(STARTDATE)
    order by trunc(STARTDATE) )
    the chart is presented, and i thought it's correct. apparently not.
    in some msg types it placed its colored column in wrong date (i think it's because it's the only type that has transaction/s in this date). it simply was added to the other columns serially.
    the correct (and expected) result was to place it in separate column and not to add it to the other series.
    maybe i should add something in the query. if someone encountered this problem, i'd be happy to take advices.

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • Problem with Stacked Canvas

    Hi,
    I have prepared a stacked canvas on a content canvas.
    Both content and stacked canvas are based on the same data block. In the data block 2 items are on content canvas and the remaining are on stacked canvas. I have also a scroll bar on the content canvas so that we can scroll to the right as there are many items on it.
    so 1st and 2nd fields are on the content canvas and remaining ones are on stacked canvas.when i tab out of the 1st field stacked canvas goes invisible, but when i tab out of the 2nd field stacked canvas again comes back.
    How can i avoid this?
    I want the stacked canvas always to be displayed when i tab out from any where.
    One more problem is, when i click on the 2nd field the stacked canvas goes invisible too
    Your suggestions are greatly appreciated.
    Thanks
    Sandeep

    Check if the second item overlaps the area of the stacked canvas. Forms always makes the current item be displayed fully and therefore hides all areas which would overlap the item.

  • Problem with Stack XML file

    Hello,
    We have an ECC 6 system with EHP 4 SPS 5 and we watn to install a new Technical Usage (IS-OIL, IS-PRA and IS-UT)
    In order to do that I have to supply an xml file created by the MOPZ.
    I created a new MOPZ transaction, in the phaze "Update Options" I selected : Enhancement Package Installation,
    Afterwards I selected in Target Enhancment package stack : SAP ERP Enhanecment Package 4 on NW7.01 - SP Stack 05
    We do not want to upgrade the Stack to a latter one.
    I have selected Oil & Gas with Utilities and continued.
    The Sack XML that was created contained SAP-APPL, SAP-BASIS and SAP-ABA in patch level 8. we do not want to upgrade these components.
    Is there a way to install a new Technical Usage without upgrading these components?
    and if there is how can I create XML file suited for this situation?
    Please Advice,
    Zvi Gilinsky

    Hello,
    There is an equivalence of Support Package levels between EHP stacks and baseline ERP 6 stacks. Note 1064635 has a list of these equivalences.
    In any case, stack 5 for EHP4 of ERP should include stack 5 of NW 701.
    By your description it looks like you are having a Maintenance Optimizer issue. What is the Maintenance Optimizer stack level?
    Best regards,
    Miguel Ariñ

  • Problem with Stacked Percentage Bar

    Hello,
    We are having a lot of trouble with the Stacked Percentage Bar chart. Our chart has 2 series, one for Yes values, and one for No values. The query for each series is a PL/SQL returning a SQL query. Right now, nothing shows up on the graph. It is just an empty area. Here are the queries for the 2 series:
    YES SERIES:
    DECLARE
    tmpSQL varchar2(2000);
    BEGIN
    -- CONSTRUCT SQL STATEMENT
    tmpSQL :=
    'select null link,
    FIELD1 label,
    COUNT(' || :P23_ITEM1 || ') value
    from
    TABLE1, TABLE2
    where
    TABLE1.ID = TABLE2.ID
    AND
    (' || :P23_ITEM1 || ' = 1 ) group by '
    || :P23_ITEM1 || ', FIELD1 ';
    return tmpSQL;
    end;
    NO SERIES
    DECLARE
    tmpSQL varchar2(2000);
    BEGIN
    -- CONSTRUCT SQL STATEMENT
    tmpSQL :=
    'select null link,
    FIELD1 label,
    COUNT(' || :P23_ITEM1 || ') value
    from
    TABLE1, TABLE2
    where
    TABLE1.ID = TABLE2.ID
    AND
    (' || :P23_ITEM1 || ' = 2 ) group by '
    || :P23_ITEM1 || ', FIELD1 ';
    return tmpSQL;
    end;
    We'd appreciate any help.
    Thanks,
    Nora

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • Problem with stacked bar query

    Hello,
    I tubbing a while on this already and probably the answer is right there.
    I have table with date,product,qty column and I want a stacked bar with the sum of quantity for each product for a certain period.
    so period is the label but how can I created the sum(qty) for each item and display it in a stacked bar?
    Thanks for the help

    Hi Irvine,
    If you want to try and make a stacked bar chart, you will need to add a new serie for each product you'd like to see in your chart. I don't see any other way to make this generic for each product in your products table.
    But if you like to make a new serie for each product i'll give you a small example on how you can do this.
    First create your chart and fill in a query for your first product:
    example:
    select product,substr(p_date,4,3),sum(quantity)
    from table
    where lower(name) = 'keyboard'
    group by product,substr(p_date,4,3)
    This will give you as result: the sum of the quantity for a certain month for the product 'keyboard'. This will be your first serie.
    Now go to the chart attributes and choose 'add series', now you can add the serie for the next product, f.e.:
    select product,substr(p_date,4,3),sum(quantity)
    from table
    where lower(name) = 'mouse'
    group by product,substr(p_date,4,3)
    Do this for every product you'd like to add to your chart.
    Grtz,
    Tuur
    Message was edited by:
    HENDRTU

  • Problem with stacked bar chart label

    Hi,
    According to page export sql file I'm using APEX version 2.0.0.00.49.
    I'm trying to make stacked bar chart but no matter what I do I can't have series label to be displayed within the chart area.
    Is it a bug fixed in a latter version of APEX ? Is there something particular to do (for example an option to thick) to have them displayed ?
    thank you for help.

    The answer is yes there is something particular to do.
    If you want your stacked bar chart to display well all series have to be the same and not null.
    So you must write outer joined queries with nvl in the select.

  • Simple Problem with Stacked Canvas, I hope

    Hello all,
    I am become a bit frustrated with what I thought would be a simple form development solution. I am trying to create a form with a stacked canvas that will display about 20 fields that can be scrolled through. This is the detail
    Total of 25 fields
    5 Fields on the content canvas
    20 Fields on the stacked canvas
    I created the first canvas that originally contained all 25 fields. Then I created the stacked canvas and moved the appropriate fields to the stacked canvas. Using the forms builder editor, I positioned my stacked canvas as such so that it would not overlap the last field on the content canvas or visa versa. This is a form being developed for Oracle EBus. Whenever I run the form in the apps, the stacked canvas is not visible. It only becomes visible when the 1st field on the canvas has focus. When the stacked canvas becomes visible, it shows all of the items of the stacked canvas and not just the ones that I included in the viewpoint. Once I tab through the last field of the stacked canvas, it goes back to the first field on the content canvas and the stacked canvas disappears. At this point I am not doing anything complicated, but for whatever reason this just is NOT working. Any advice anyone can provide, I would very much appreciate it. This is VERY frustrating.
    Thank you in advance.

    Step No. 1
    Set the STACKED CANVAS's property VIEWPORT WIDTH AND VIEWPORT HEIGHT
    This property determines what viewable width and height of the stacked canvas at runtime.
    Set SHOW HORIZONTAL SCROLL BAR or SHOW VERTICAL SCROLL BAR or BOTH as YES so that you can scroll down to view all the items in the CANVAS.
    Step NO.2
    In your WHEN-NEW-FORM-INSTANCE trigger, write the code to make the canvas visible
    SHOW_VIEW('stack_canvas_name');

Maybe you are looking for