Using getter/setter for returing a string variable to display on an Applet

have two classes called, class A and class testA.
class A contains an instance variable called title and one getter & setter method. class A as follow.
public class A extends Applet implements Runnable, KeyListener
     //Use setter and getter of the instance variable
     private String title;
     public void init()
          ASpriteFactory spriteFactory = ASpriteFactory.getSingleton();
          // Find the size of the screen .
          Dimension theDimension = getSize();
          width = theDimension.width;
          height = theDimension.height;
          //Create new ship
          ship = spriteFactory.createNewShip();
          fwdThruster = spriteFactory.createForwardThruster();
          revThruster = spriteFactory.createReverseThruster();
          ufo = spriteFactory.createUfo();
          missile = spriteFactory.createMissile();
          generateStars();
          generatePhotons();
          generateAsteroids();
          generateExplosions();
          initializeFonts();
          initializeGameData();
          //Example from Instructor
          //setMyControlPanel( new MyControlPanel(this) );
          // new for JDK 1.2.2
          addKeyListener(this);
          requestFocus();
     public void update(Graphics theGraphics)
          // Create the offscreen graphics context, if no good one exists.
          if (offGraphics == null || width != offDimension.width || height != offDimension.height)
               // This better be the same as when the game was started
               offDimension = getSize();
               offImage = createImage(offDimension.width, offDimension.height);
               offGraphics = offImage.getGraphics();
               offGraphics.setFont(font);
          displayStars();
          displayPhotons();
          displayMissile();
          displayAsteroids();
          displayUfo();
          //displayShip();
          //Load the game with different color of the space ship          
          displayNewShip();
          displayExplosions();
          displayStatus();
          displayInfoScreen();
          // Copy the off screen buffer to the screen.
          theGraphics.drawImage(offImage, 0, 0, this);
     private void displayInfoScreen()
          String message;
          if (!playing)
               offGraphics.setColor(Color.white);
               offGraphics.drawString("\'A\' to Change Font Attribute", 25, 35);
               offGraphics.drawString(getTitle(), (width - fontMetrics.stringWidth(message)) / 2, height / 2
                         - fontHeight);
               message = "The Training Mission";
               offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2);
               message = "Name of Author";
               offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2
                         + fontHeight);
               message = "Original Copyright 1998-1999 by Mike Hall";
               offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2
                         + (fontHeight * 2));
               if (!loaded)
                    message = "Loading sounds...";
                    int barWidth = 4 * fontWidth + fontMetrics.stringWidth(message);
                    int barHeight = fontHeight;
                    int startX = (width - barWidth) / 2;
                    int startY = 3 * height / 4 - fontMetrics.getMaxAscent();
                    offGraphics.setColor(Color.black);
                    offGraphics.fillRect(startX, startY, barWidth, barHeight);
                    offGraphics.setColor(Color.gray);
                    if (clipTotal > 0)
                         offGraphics.fillRect(startX, startY, (barWidth * clipsLoaded / clipTotal), barHeight);
                    offGraphics.setColor(Color.white);
                    offGraphics.drawRect(startX, startY, barWidth, barHeight);
                    offGraphics
                              .drawString(message, startX + 2 * fontWidth, startY + fontMetrics.getMaxAscent());
               else
                    message = "Game Over";
                    offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4);
                    message = "'S' to Start";
                    offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4
                              + fontHeight);
          else if (paused)
               offGraphics.setColor(Color.white);
               message = "Game Paused";
               offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4);
     public String getTitle() {
          System.out.print(title);
          return title;
     public void setTitle(String title) {
          this.title = title;
}displayInfoScreen method in class A calls out for getTitle( ) to be displayed on an applet as an initial display string for the application.
The instance variable title is set by setTitle method which is called out in class testA as follow,
public class testA extends TestCase
      * testASprite constructor comment.
      * @param name
      *          java.lang.String
     public testA(String name)
          super(name);
      * Insert the method's description here.
      * @param args
      *          java.lang.String[]
     public static void main(String[] args)
          junit.textui.TestRunner.run(suite());
          // need to figure out how to get rid of the frame in this test
          System.exit(0);
     public static Test suite()
          return new TestSuite(testA.class);
      * Basic create and simple checks
     public void testCreate()
          A theGame = new A();
          assertNotNull("game was null!", theGame);
      * Basic create and simple checks
     public void testInit()
          A theGame = new A();
          Frame gameFrame = new Frame("THE GAME");
          gameFrame.add(theGame);
          int width = 640;
          int height = 480;
          gameFrame.setSize(width, height);
          // must pack to get graphics peer
          gameFrame.pack();
          theGame.resize(width, height);
          theGame.setTitle("TEST THE GAME");
          theGame.init();
          assertEquals("ASprite width not set", A.width, width);
          gameFrame.dispose();
          gameFrame.remove(theGame);
}Basically, class testA invokes the init( ) method in class A and start the applet application. However, it displays a white blank display. If I change the getTitle( ) in the displayInfoScreen method to a fixed string, it works fine. Did I forget anything as far as using getter & setter method? Do I have to specify some type of handle to sync between setter and getter between two classes? Any feedback will be greatly appreciated.
Thanks.

Your class A extends runnable which leads me to believe that this is a multi-threaded application. In that case, title may or may not be a shared variable. Who knows? It's impossible to tell from what you posted.
Anyway, what is happening is that your applet is being painted by the JFrame before setTitle is called. After that, who knows what's happening. It's a complicated application. I suspect that if you called setTitle before you added the applet to the frame, it would work.

Similar Messages

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Maximum number of characters for a BPEL string variable

    Hi,
    What is the maximum numbers of characters that a string variable in BPEL process can hold??.
    Is there any document which describes the datatypes in BPEL.
    Regards
    V Kumar

    Trick question - with or without the use of the FM GUI?
    1. Via the FM interface to define a variable, FM will only save the first 1022 characters of your variable definition - if you dare try to enter that many via the GUI dialogue slot.
    2. Importing a variable via MIF, adds virtually any length - I've tested out 2510 characters. HOWEVER, FM will only display the first 1023 characters of this string.
    If you save the file to MIF, you can still see the original length of the variable. The other caveat is that if you touch any of these long variables via the FM GUI (Edit Variables), then FM will truncate it down to 1022 characters - regardless of how you save (binary or MIF).
    FWIW - Klaus Daube lists (see: http://daube.ch/docu/fmaker25.html ):
    Until FM 7.2: up to 255 characters including meta-notations (such as <Default ¶ Font> or \t - this counts as 16 resp. 2 characters). See also note Variables below
    From FM 8.0: up to 2023 Windows Codepage characters or up to 2022 UTF-8 characters
    I'd say that this is not quite correct. You could enter more than 255 prior to FM 7.2 as well, but again the display issue via the GUI kicked in and truncated down to 255. The newer versions only display 1022/1023 but you can enter more than 2510 characters (which in this case is futile anyway).

  • Material getting set for Batch Management in O/B delivery

    Hi Folks,
    For a material which is not batch managed, I created an outbound delivery.
    For some reason, the material is getting set as 'BatchManagement' even though the Batch Management indicator is not set.
    Due to this PGI is not possible.
    Any thoughts on why the 'Batch Management' indicator has been set and how to resolve this?
    Regards,

    Hi Jürgen  ,
    I am unable to replicate this problem in Q. Its occuring only in P while doing a goods issue.
    Message is
    "The batches are not defined for delivery item XXXXXX".
    As I said earlier, we have not set the batch management check box in MM.
    However the outbound delivery has the batch management check box selected .
    Anything I missed to check? Q is almost identical to P. But still issue is only in P.
    Regards,

  • How is it possible to use Index Seek for LIKE %search-string% case?

    Hello,
    I have the following SP:
    CREATE PROCEDURE dbo.USP_SAMPLE_PROCEDURE(@Beginning nvarchar(15))
    AS
    SELECT * FROM HumanResources.Employee
    WHERE NationalIDNumber LIKE @Beginning + N'%';
    GO
    If I run the sp first time with param: N'94', then the following plan is generated and added to the cache:
    SQL Server "sniffs" the input value (94) when compiling the query. So for this param using Index Seek for AK_Employee_NationalIDNumber index will be the best option. On the other hand, the query plan should be generic enough to be able to handle
    any values specified in the @Beginning param.
    If I call the sp with @Beginning =N'%94':
    EXEC dbo.USP_SAMPLE_PROCEDURE N'%94'
    I see the same execution plan as above. The question is how is it possible to reuse this execution plan in this case? To be more precise, how
    Index Seek can be used in case LIKE %search-string% case. I expected that
    ONLY Index Scan operation can be used here.
    Alexey

    The key is that the index seek operator includes both seek (greater than and less than) and a predicate (LIKE).  With the leading wildcard, the seek is effectively returning all rows just like a scan and the filter returns only rows matching
    the LIKE expression.
    Do you want to say that in case of leading wildcard, expressions Expr1007 and Expr1008 (see image below) calculated such a way that
    Seek Predicates retrieve all rows from the index. And only
    Predicate does the real job by taking only rows matching the Like expression? If this is the case, then it explains how
    Index Seek can be used to resolve such queries: LIKE N'%94'.
    However, it leads me to another question: Since
    Index Seek in
    this particular case scans
    all the rows, what is the difference between
    Index Seek and Index Scan?
    According to
    MSDN:
    The Index Seek operator uses the seeking ability of indexes to retrieve rows from a nonclustered index.
    The storage engine uses the index to process
    only those rows that satisfy the SEEK:() predicate. It optionally may include a WHERE:() predicate, which the storage engine will evaluate against all rows that satisfy the SEEK:() predicate (it does not use the indexes to do this).
    The Index Scan operator retrieves
    all rows from the nonclustered index specified in the Argument column. If an optional WHERE:() predicate appears in the Argument column, only those rows that satisfy the predicate are returned.
    It seems like Index Scan is a special case of Index Seek,
    which means that when we see Index Seek in the execution plan, it does NOT mean that storage engine does NOT scan all rows. Right?
    Alexey

  • Change the properties of a field dynamically using Getter/Setter methods

    Thanks
    Raj
    Edited by: RajICWeb on Aug 12, 2009 4:31 AM

    Hi Harshit
    Thanks for the reply. Like you suggested, I redefined the get_i_zfield( ) method. But the program is not going through this method.
    FYI.....I created the getter/setter methods manually for my zfield. Plz let me know if I am missing anything. Your help will be greatly appreciated.
    Below is my requirement:
    I need to add an additional column (zfield) to a tree view. The name of the component is BTRESTREE. (there is only one view in this component- this view is having only one context node).
    I tried adding my zfield to the attributes (of the context node) through the wizard by right clicking on the 'Attributes'. But I am not getting the 'Create' Option.
    I posted a thread few days back regarding the same problem. One of the experts (Vikash Krishna) suggested me to add some my zfield by redefining the 'GET_TABLE_LINE_SAMPLE' method. As per his suggestion, I was finally able to see my zfield in
    the configuation tab.
    Now, I have to change the properties of my zfield (make this column editable) in the tree view. For that, the only option that I can see is to change the get_i_zfield( ) method (here we have 'rv_disabled') for my zfield. For this, first I need to add my zfield to the Attributes. To achieve this, I added getter/setter methods manually in the Proxy class.
    Thanks
    Raj

  • How i pass table column  value to string variable or return to java applete

    Hi Master,
    How do I pass a table column value into string variable. See my code below:
    import java.sql.*;
    public class Waheed {
    public Waheed() {
    public static void main (String args [])
    String s = "9 23 45.4 56.7";
    System.out.println ("going for connection");
    // DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select accid from accbal");
    System.out.println ("going for connection");
    while (rset.next())
    s= rset.getString("accid"); this line give me error
    System.out.println (rset.getString("accid"));
    System.out.println (s);
    catch(Exception e){
    e.printStackTrace();
    This line give me an error:
    s= rset.getString("accid");
    s is string variable
    Plese give me an idea how I can pass accid in s variable.
    Thanks.
    Aamir

    See the code sample in the following thread (try using upeercase).
    JDBC  connection
    Kuassi

  • HT4110 What is the best battery setting for the MacBook Pro 13 Retina display?

    I want to know the best setting for the battery for the MacBook Pro 13 Retina display.

    To add just a little
    Keep it plugged in when near a socket so you keep the charging cycles down on your LiPo (lithium polymer) cells / battery, but not plugged in all the time. When not being used for several hours, turn it off.
    And best "tip" is if its near a socket,...plug it in as long as you can (especially at home) since cycle count on the battery are the "miles that wear out the tires (battery)", however again, not plugged in all or most of the time.
    http://www.apple.com/batteries/notebooks.html
    "Apple does not recommend leaving your portable plugged in all the time."
    General rule to remember of Lithium batteries is:
    Never drain them LOW  & dont always/often store them HIGH
    While cycle count is commonly seen to be the “miles” on your Lithium Ion pack cell in your Macbook, which they are, this distinction is not a fine line at all, and it is a big misconception to “count charge cycles”
    *A person who has, for example, 300 charge cycles on their battery and is recharging at say 50-60% remaining of a 100% charge has better battery usage and care than another person who has 300 charge cycles at say 15% remaining on a 100% charge. 
    DoD (depth of discharge) is far more important on the wear and tear on your Macbook battery than any mere charge cycle count.  *There is no set “mile” or wear from a charge cycle in general OR in specific.    As such, contrary to popular conception, counting cycles is not conclusive whatsoever, rather the amount of deep DoD on an averaged scale of its use and charging conditions.
                              (as a very rough analogy would be 20,000 hard miles put on a car vs. 80,000 good miles being something similar)
    *Contrary to some myths out there, there is protection circuitry in your Macbook and therefore you cannot overcharge it when plugged in and already fully charged
    *However if you don’t plan on using it for a few hours, turn it OFF (plugged in or otherwise) ..*You don’t want your Macbook both always plugged in AND in sleep mode       (When portable devices are charging and in the on or sleep position, the current that is drawn through the device is called the parasitic load and will alter the dynamics of charge cycle. Battery manufacturers advise against parasitic loading because it induces mini-cycles.)
    Keeping batteries connected to a charger ensures that periodic "top-ups" do very minor but continuous damage to individual cells, hence Apples recommendation above:   “Apple does not recommend leaving your portable plugged in all the time”, …this is because “Li-ion degrades fastest at high state-of-charge”.
                        This is also the same reason new Apple notebooks are packaged with 50% charges and not 100%.
    LiPo (lithium polymer, same as in your Macbook) batteries do not need conditioning. However...
    A lot of battery experts call the use of Lithium cells the "80% Rule" ...meaning use 80% of the charge or so, then recharge them for longer overall life.
    Never let your Macbook go into shutdown and safe mode from loss of power, you can corrupt files that way, and the batteries do not like it.
    The only quantified abuse seen to Lithium cells are instances when often the cells are repeatedly drained very low…. key word being "often"
    Contrary to what some might say, Lithium batteries have an "ideal" break in period. First ten cycles or so, don't discharge down past 40% of the battery's capacity. Same way you don’t take a new car out and speed and rev the engine hard first 100 or so miles.
    Proper treatment is still important. Just because LiPo batteries don’t need conditioning in general, does NOT mean they dont have an ideal use / recharge environment. Anything can be abused even if it doesn’t need conditioning.
    From Apple on batteries:
    http://support.apple.com/kb/HT1446
    http://www.apple.com/batteries/
    Storing your MacBook
    If you are going to store your MacBook away for an extended period of time, keep it in a cool location (room temperature roughly 22° C or about 72° F). Make certain you have at least a 50% charge on the internal battery of your Macbook if you plan on storing it away for a few months; recharge your battery to 50% or so every six months roughly if being stored away. If you live in a humid environment, keep your Macbook stored in its zippered case to prevent infiltration of humidity on the internals of your Macbook which could lead to corrosion.
    Considerations:
    Your battery is subject to chemical aging even if not in use. A Lithium battery is aging as soon as its made, regardless.
    In a perfect (although impractical) situation, your lithium battery is best idealized swinging back and forth between 20 and 85% SOC (state of charge) roughly.
    Further still how you discharge the battery is far more important than how it is either charged or stored short term, and more important long term that cycle counts.
    Ultimately counting charge cycles is of little importance.  Abuse in discharging (foremost), charging, and storing the battery and how it affects battery chemistry is important and not the ‘odometer’ reading, or cycle counts on the battery. 
    Everything boils down to battery chemistry long term, and not an arbitrary number, or cycle count.
    Keep your macbook plugged in when near a socket since in the near end of long-term life, this is beneficial to the battery.
    Peace

  • Not getting sets for jsp:useBean bean when in request scope

    I have a JSF (JSP) page in which I have a bean that I declare using jsp:useBean.
    The bean implements Map. I have a h:inputText and an h:inputHidden with a value referencing the bean.
    The odd thing is that if in jsp:useBean, I set the scope to session, everything works as I expect. However, if I change the scope to request, the put method on the bean never gets called.
    Can anyone explain why this is happening?
    Thanks,
    ken clark

    Yes, I understand that old data I had is gone -- that is fine, I expect that.
    My question is, why do I not get calls on the put method of my Map implementation when the screen is submitted? (I have a breakpoint in the method in the debugger, so I know when I get hit.)
    If the scope is session, I get put calls (yes, the old data is there, it gets overwritten).
    If the scope is request though, I simply never see the calls made at all, and my application errors out for lack of data.

  • How to use ApplicationModuleImpl.createViewObject for VO with bind variable

    I need to implement a AM method to create VO instance from a generic VODef with bind variables.
    The createViewObject() will trigger the executeQuery of the VO before I can set up the bind variables for the query.
    What is the proper way to create view object instance with bind variables?

    I am using JDeveloper 11.1.1.2.
    I have a ViewObjectA declared with some bind variables which determine what business data to be retrieved at runtime via a service method of the ApplicationModule.
    As the ViewObjectA is only referenced internally within ApplicationModule and I need more than one instance of the ViewObjectA for different conditions at runtime,
    I use ApplicationModuleImpl.createViewObject() to create an instance of ViewObjectA instead of adding ViewObjectA to the data model of the ApplicationModule.
    Currently, when the ViewObjectA is instantiated, it also trigger an executeQuery() which will not retrieve correct data until I set up the bind variables.
    However, the createViewObject() method doesn't let me pass in the values of the binding variables.
    Currenlty, I just call the createViewObject() and then set the binding variables values and call executeQuery() again.
    Just checking if there is a better way to do so...

  • Use SubForm Set for a choice in XML Schema

    I have questions on subformset, the parameter to the 'setInstances' method and the use of 'intial' attribute of 'occur' element of XFA. <br /><br />In XML schema, sometimes there are exclusive choice. In my example, user has to choose between a customer number and postal-address (name, address, city, state...). I use a check box in the form, so either the customer number or postal address subform can be shown, but not both at the same time. I have no problem displaying them on the form. The problem is when I export the XML data from it. It does not work after user clicks on the check box once. If I use button instead of check box, user can press the button no more than twice. Then only the data of the first element in posta-address are exported.<br /><br />I use setInstances(1) and setInstance(0), but I could not find any documentation on the description of the parameter of setInstances.<br />Anyone can take a look at it and help?<br /><br />Thanks. <br /><br />Hongwei Li<br /><br />I would like to post the XDP file. But it is too long (1000 lines) to fit here. So I post javascript and the XML Schema.<br />==========================================================================<br /><event activity="change"><br />                     <script contentType="application/x-javascript">if(this.rawValue==true){<br /><br />_customerNumber.setInstances(1);<br />_correspondenceAddress.setInstances(0);<br />}<br />else{<br /><br />_customerNumber.setInstances(0);<br />_correspondenceAddress.setInstances(1);<br />}</script>   <br /><br />          <br /><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="XFASchemaXSD3"><br />   <xsd:element name="us-correspondence-address"><br />      <xsd:complexType><br />         <xsd:choice><br />            <xsd:sequence><br />               <xsd:element ref="name-1"/><br />               <xsd:element ref="name-2" minOccurs="0"/><br />               <xsd:element ref="us-postal-address"/><br />            </xsd:sequence><br />            <xsd:element ref="customer-number"/><br />         </xsd:choice><br />      </xsd:complexType><br />   </xsd:element><br />   <xsd:element name="name-1" type="xsd:string"/><br />   <xsd:element name="name-2" type="xsd:string"/><br />   <xsd:element name="us-postal-address"><br />      <xsd:complexType><br />         <xsd:sequence><br />            <xsd:element ref="address-1"/><br />            <xsd:element ref="address-2" minOccurs="0"/><br />            <xsd:element ref="city"/><br />            <xsd:element ref="state" minOccurs="0"/><br />            <xsd:element ref="postcode" minOccurs="0"/><br />            <xsd:element ref="country"/><br />            <xsd:element ref="email" minOccurs="0" maxOccurs="unbounded"/><br />            <xsd:element ref="phone" minOccurs="0" maxOccurs="unbounded"/><br />            <xsd:element ref="fax" minOccurs="0" maxOccurs="unbounded"/><br />         </xsd:sequence><br />      </xsd:complexType><br />   </xsd:element><br />   <xsd:element name="customer-number" type="xsd:string"/><br />   <xsd:element name="address-1" type="xsd:string"/><br />   <xsd:element name="address-2" type="xsd:string"/><br />   <xsd:element name="city" type="xsd:string"/><br />   <xsd:element name="state" type="xsd:string"/><br />   <xsd:element name="postcode" type="xsd:string"/><br />   <xsd:element name="country" type="xsd:string"/><br />   <xsd:element name="email" type="xsd:string"/><br />   <xsd:element name="phone" type="xsd:string"/><br />   <xsd:element name="fax" type="xsd:string"/><br /></xsd:schema>

    Jimmy,
    Sorry about the negligence. Thanks a lot!
    This time I can not even export the data of member number for once. Actually I tried different hierarchies (the default by designer is using subformset and useoneof, I have to make changes in XDP to mark both of the min attribute to '0' and one of the branch intitial attribute of occur element to '1'). I had no no luck.
    I think this is an Acrobat 7.0 bug. Or in another word, Acrobat 7.0 is not ready to handle XML schema when the content model is more complex. I will have to wait until we go documentation on setInstances() method. I guess the reason of the bug (if it is) is because when you do the setInstances(0), the branch of data DOM was set to NULLType and could not recover back when you click the checkbox to reactivate this portion again.
    Hongwei li

  • JDev 10.1.3 generates incorrect getter/setter for CMP EJB 3.0 - Please help

    Hi,
    I am using JDev 10.1.3 Production and using the EJB3.0 CMP wizard to generate the code from a MySQL database. No matter what type I specify for my database columns in schema, code generator always generates the properties of type String only. e.g if a column called Age is specified as Integer in schema, the generator generates setters/getters with String type.
    Can somebody please help me.
    Regards
    Vimal

    I was able to reproduce the problem and logged bug 5035459 for now. -- thanks

  • Batch Management Indicator not getting set for material master

    Hi,
    In one of the material we need to mark the Batch Management Indicator in Material MAster. We had removed all the stocks from the material. But still we are getting error, Stock exists for the material in Plant XXX and Sloc YYY.
    I checked in MARD table and MMBE that for this maaterial there are no stock for said Sloca and Plant.
    One thing which I noticed in the Material Master and MARDH table that there exists some stock in Previous persiod for the said Sloc and Plant.
    Need to know is this error is due to stock shown in previous period. Why system is checking the previous period stock.
    How can we resolve our issue and check this Indicator.
    Please let me know as earliest as possible.
    Thanks
    SG

    Hi,
    Refer OSS Note 30656 - Change base unit of measure/batch mngt requirement
    Following are the details of this note;
    Symptom
    When maintaining a material master record, you change the base unit of measure or the batch management requirement indicator or the valuation category. The system then tells you that this change is not possible since stocks still exist. However, no stocks are shown for the material in the stock overview.
    Reason and Prerequisites
    The message that stocks still exist refers not only to stocks in the current period, but also to stocks in the previous period.
    The reason for checking previous period stocks is that postings can also be made to the previous period when entering goods movements. This would result in inconsistencies if the base unit of measure had meanwhile been changed.
    Solution
    Please check whether stocks still exist for the previous period by displaying, for example, the plant stock view or storage location stock view of the material. You do this by selecting "Extras -> Previous period -> Prev. pd SLoc. stock or Prev. pd plant stock".
    If previous period stocks exist, you can make a withdrawal posting as follows:
          1. Post the same amount to current period stock (for example, using movement type 561) so that previous period stock and current period stock are identical.
          2. Make a withdrawal posting in the previous period for the stock together with posting date (for example, using movement type 562).
    You can now try again to change the base unit of measure or the batch management requirement indicator.
    Since the posting of the previous period values to zero is identical with posting to the stocks of the current period, you should reverse the above stock postings (i.e. the stock from the previous period should be booked in again) to make sure that the stock values from the previous and the current periods correspond to the state before the change. Please note, however, that the postings are then carried out using the changed master data from the current period (e.g. account determination, etc.)
    Regards,

  • Scenerios for using I_STEP parameter for creating customer exit variables.

    Hi All,
    I need to create a customer exit variable.
    Please explain the different scenerios for using each i_step parameters.
    For eg. in which practical scenerio i_step 3 is used?

    Hi Shobhit,
    You can find plenty of info on this in the forums, So i suggest you to do a small search with imp Key words. Anyways below is the std usage of I_STEP
    I_STEP = 1
    Call takes place directly before variable entry. Can be used to pre populate selection variables
    I_STEP = 2
    Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
    I_STEP = 3 In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor. This is where you want to put the mod for populating the authorization object.
    This is basic info from help.sap.com.
    regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 4, 2011 2:18 PM

  • I can't switch to 'use custom setting for history' it will only let me choose 'remember' or 'dont remember' history

    Some pages tell me I don't have cookies enabled, I get the same message with IE and I do have IE set to accept all cookies

    See also:
    * http://kb.mozillazine.org/Cookies
    * http://kb.mozillazine.org/Websites_report_cookies_are_disabled
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • My ipod touch is not showing up

    help- Ipod touch (2 versions) is not showing up to synch in iTunes when I plug it in with USB cord. 

  • What does it take to make and sell single apps witth DPS

    Allow me one question, please If I have one cloud membership suscription and one Windows 7 PC, and I buy one Mini Mac Would I be able/entitled to...? : 1. Load the CS6 suite in both machines and run them legally (but not concurrently?)? 2. Make the w

  • Plug-ins for RealServer 8 and Oracle 9i

    We are in the process of figuring out what we need to stream video stored in 9i with InterMedia using RealServer 8 on Solaris. Oracle says that there is no plug-in for Oracle 9i yet. All the plug-ins I found on OTN, even the 8i ones refer to RealServ

  • HT4623 When is the iOS 7 update going to be released?

    Wanted to know when in the new ios7 going to be released for iPhone.

  • Yellow Badge showing up in imported library

    I recently imported a managed library from a MBP to a Mac Pro, and roughly 10-15% of images are now showing the yellow badge w/ exclamation point. Images have always resided in a managed library on MBP. I understand what the badge signifies, but need