Where warning msg & error  msg are maintained in SPRO

Dear All,
                          pl give the menu path to know that Where warning msg & error  msg are maintained in SPRO.
regards
sap11

Hi,
In case of Purchasing, the path to maintain warning & error messages is:
Material Management->Purchasing->Environment Data->Define Attributes of System Messages
In case of Inventory Management,
Material Management->Inventory Management and Physical Inventory->Define Attributes of System Messages
In case of External Service Management,
Material Management->External Services Management->Define Attributes of System Messages
In case of Logistics Invoice verification,
Material Management->Invoice Verification->Logistics Invoice Verification->Define Attributes of System Messages
In case of Material Master,
Logistics - General->Material Master->Basic Settings->Define Attributes of System Messages
Then, for eash message no., Maintain whether the message is to be shown as warning or error or information message.
Reward if useful.
Thanks & Regards,
Komal

Similar Messages

  • Where Valuation Modifier are maintained in SPRO.?

    Dear All ,
                               pl help me how to see the valu. modifier are maintained in SPRO as i am drop down the valu. modifier in t.code = OBYC, so no details are coming,  only an info box opens displays = " The system cannot dispalys possible entries here . " , kindly guide where to check the same .
    regards & thanx in adv.
    sap11

    hi
    generaly valuation modifier is used to group valuation area for G/L accounts
    for ex : if u have for palnts say then u want 3plants to be maintained 1G/L account, another plant another G/L account.
    go to obyc then enter chart of account INT r else what ever u maintained chart of account. select GBB,..etc..ther u will find valuation mod
    regards
    ram

  • Change Warning to Error MSG in Sales Order for a KMAT

    I'm using variant configuration with a business conector (WEB-->SAP) to create a Sales Order.
    How can I change the message that appears when a material doesn´t can be adopted in the bill of materials because of the Distribution Channel status from warning to error? (Functional Area V2, N° Message: 003).
    Or an alternative is about doing something that makes unable to save the Sales Order when a material can't be added (from the characteristics) because of the status.

    V2003 message is a hardcoded information message, not even a warning, just information with a recommendation in its long text, this message cannot be turned into an error message without modification.

  • SUS Quantity tolerance for confirmation -How to set an warning or error Msg

    Hello All,
    Does anyone knows how do i configure SUS, so the system will check quantity tolerance in PO confirmation so the Supplier can knows that he is within or over the tolerance?
    I would like to set an error message so the supplier will confirm the PO within the tolerance or will reject it.
    Thanx a lot,
    Sheila Silva

    try the following:
    in transaction SPRO
    goto supplier relatioship management-> cross application basic settings ->set tolerence checks ,
    create a new tolerence group, for this group assign the folowing tolerence keys as required.
    PM: Quantity variance (converted to currency amount) - <b>this is the one relevant for you i guess.</b>If a confirmation is expected for a purchase order item, the system calculates the purchase order confirmation net price multiplied by the purchase order confirmation quantity. The system compares this sum with the defined upper and lower limits. You can also define percentage limits for the quantity variance check. Then the percentage variance from the expected quantity calculated - independent of the purchase order price - and this is compared with the defined percentage limits.
    PZ: Time overrun compared to purchase order
    The system determines how many days the delivery date has exceeded the planned time interval by. If the delivery date of the purchase order confirmation is earlier than the delivery date of the purchase order, the system takes the purchase order date - the confirmation date; If the delivery date of the purchase order confirmation is later than the delivery date of the purchase order, the system takes the purchase order confirmation date - the purchase order date. The system compares the number of days with the defined absolute upper limit.
    PR: Price variance (value variance from expected value)
    Here the variance between the purchase order confirmation and the purchase order price is checked. The system determines for the items the price variance as the product of the quantity in the purchase order confirmation multiplied by the price in the purchase order confirmation, and it compares this variance with the defined percentage and absolute upper and lower limits.
    then
    in transaction PPOMV_BBP, search for teh relevant vendor,
    assign the attribute "tolerence group"(TOG) to the newly created tolerence group for the relevent vendor.
    Regards,
    Chander

  • Query error msg

    Hi Guru's.
    when i'm trying to run a query on 0COOM_CO2 cube, the system is throwing a error msg.
    error msg:
         No value could be determined for variable 0P_FVAEX.     
         Message no. BRAIN632     
         Diagnosis     
         This error diagnosis is specific only to the variables 0P_FVAEX or
         0P_CTPCA !
         Termination message BRAIN 632 appears:
         Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
         System response     
         1.  Operation method of SAP-Exit-Variables 0P_FVAEX or 0P_CTPCA
         With queries from the CO application, both SAP-Exit-Variables look for
         an entry for 'controlling area'. With this controlling area from the
         selection screen, the SAP-Exit-Variables program reads the attributes
         for InfoObject 0CO_AREA (controlling area).
         With queries from the FI application, the SAP Exit Variable 0P_FVAEX
         looks for an entry for 'company code'. With this company code from the
         selection screen, the SAP Exit Variables program reads the attributes
         for InfoObject 0COMP_CODE (Company Code).
         0P_FVAEX determines the fiscal year variant (attribute 0FISCVARNT) from
         the attributes for 0CO_AREA (CO queries) or 0COMP_CODE (FI queries).
         0P_CTPCA determines the currency type of the profit center local
         currency (attribute 0CURTP_PCA) from the attributes for 0CO_AREA.
         2.  Cause of Error
         The attributes for the controlling area (InfoObject 0CO_AREA) or company
         code (InfoObject 0COMP_CODE) were not loaded into the BW system, or the
         attributes for the controlling area are not active in the BW system.
         Check whether this is the cause of the error in your BW system. Display
         the contents of table /bi0/mco_area or /bi0/mcomp_code using transaction
         se16.
         Application CO:
         Check whether the attributes 'fiscal year variant' (field FISCVARNT) and
         'profit center local currency currency type' (field CURTP_PCA) are
         filled in the 'A' version (field OBJVERS) for the selected controlling
         area. If the fiscal year variant in the OBJVERS = 'A' is empty, then the
         error is with variable 0P_FVAEX. If the currency type of the profit
         center's local currency in OBJVERS = 'A' is empty, then the error is
         with variable 0P_CTPCA.
         Application FI:
         Check whether or not the attribute 'fiscal year variant' (field
         FISCVARNT) is filled in the 'A' version (field OBJVERS) for the selected
         controlling area. If the fiscal year variant is empty in OBJVERS= 'A',
         then the error is with variable 0P_FVAEX.
         Procedure     
         Using InfoSource 0CO_AREA, load the attributes for the controlling area
         or company code into your BW system.
         Afterwards, activate the attribute changes in your BW system. To do
         this, use transaction rsa1, path 'Tools > Hierarchy/Attribute changes',
         functions button 'InfoObject list'. Choose InfoObject 0CO_AREA or
         0COMP_CODE from this list, and activate the attribute changes.
         Procedure for System Administration     
    where do i start to debug it.
    Thanks in advance,
    Mav

    The variable 0P_FVAEX fills the fiscal year variant based on the following checks in the order:
    1. If you have a variable for 0CO_AREA the system looks into the first entry and determines the attribute 0FISCVARNT of 0CO_AREA.
    2. The same for 0COMP_CODE.
    3. Check if there is a variable for IM Program hierarchy and look for 0FISCVARNT.
    4. Check project data for fiscal year variant.
    5. Check CO area of the asset.
    6. Get Fiscal Year variant from Oracle company(!)
    7. Get FY variant from Oracle company code.
    8. Get FY variant from Oracle organization.
    So you need to use one of these info Objects in your variables.
    Best regards
       Dirk

  • Firefox will often close in the middle of use with no error msg. How do I fix this?

    I currently use an aspen a701 tablet. When I first open firefox it takes over a minute to load the first website or two then works fine. After a few minutes of surfing firefox will just close with no warning or error msg and when I reopen it, it opens to the home page and not my previously viewed page before it closed. Can you fix the loading speed and sudden closing? thank you for your time and help

    Type '''about:crashes''' in URL and provide the crash id starting with "bp-"
    try with firefox beta
    *https://play.google.com/store/apps/details?id=org.mozilla.firefox_beta

  • Disgrace: no error msg when GB fails to export to mp3

    Gb does not create the mp3 file when exporting to mp3 and does not give any warning or error msg.
    Trying to find why this is so, I see several posts in several forums, I believe the oldest I saw dates back 2007.
    I think it's a disgrace! This problem exists for so long. It costs so many people so much time. It is such a clear sign of poor listening to customers and poor testing.
    I used to be a Mac/Apple fan, dating back to mid-1980's as Apple user.
    But this is so infuriating! It's plainly disrespectful.
    Yes, now I know, I read the thread. "I think it is 27 characters max file name but not sure"
    Why do we not get an error msg when the file can not be saved?
    Give me any valid reason to create so much trouble for so many customers! (non-technical reason I mean, I know the techy problems that may make this more
    difficult than it looks on the surface...)
    This is especialy wrong since it is by no means anything esotheric. Right the first project you do, without doing anything fancy or weird. Just type normal descriptive name and it fails. Without warning or error.
    AAAARRRGGGG!
    Shame on you Garageband team!

    I just came in here to report the very same thing, except in my case it may be due to the very large number of (approx 1000) frames in the movie I've created.
    I successfully did smaller versions of the same thing (a series of same size/format logos) but it just goes through the motions (saying it is creating a 9.8mb movie) and saves nothing.
    Is there some unstated upper limit on the number of frames when making a slideshow?
    I've said it before but Quicktime is the one of the most poorly written and documented Apple apps I've encountered. The amount of time I have wasted on doing even the simplest things...

  • Warning to Error Message while creating Shopping cart

    Hi,
    How to make a warning message to error message while creating a SC against the Cost Center when the cost center is closed in SRM 4.0.
    Currently we are running on SRM 4.0 with ECC 5.0 as back end and user are able to raise a SC and POs even the cost center is closed.We want to make it as error message and stop users to create a SC /PO against those closed Cost centers.
    Thanks and Appreciate your inputs.
    Regards,
    RK

    Hi Richy,
    The cost centre which you have maintained is locked for postings. Try to change the cost center and the warning message  should be gone.
    If you still want to chnage the message from warning to error,you can do in SPRO-->img->SRM->SRM Server -> Cross app basic settings->message control -> Influence message ctl.
    If an entry doesnt exist for this message in SPRO,make an entry in view BBPV_PDMSG (Tranx: SM30).
    See these related threads for more pointers:
    Re: Error Messages in BBP_PD
    Re: How to change an error message to a warning message in SRM
    Re: Where can I change type of message BBP_PD 083 from warning to error
    BR,
    Disha.

  • KEPM: Error msg if plan selling price is not maintained in VK11

    Hi
    I am using KEPM (COPA Planning tool)... I am entering my sales qty plan in KEPM and then valuating my plan sales qty to get Sales Revenue and Std cost for the Qty entered
    If the std cost is not released, system gives an error based on my settings in the costing key.. Similarly, i want an error, if the selling price is not maintained for the material in VK11
    In the IMG step "Define Valuation Strategy", I have assigned a SD Pricing Procedure for Valuation Strategy 002, Application Type "V" and Qty Field as ABSMG.... This Pricing procedure has a condition type named ZPLN
    I entered sales plan for 10 materials but Plan Price is maintained in VK11 for ZPLN only for 9 materials... But system did not give any error and posted the sales revenue as zero for one material
    I believe, currently I have not done any setting to issue any such error msg.. Can this be done??
    Rgd, Ajay

    Hi Kamala,
    I would kindly ask you to check transaction OKEQN with your relevant planning version you are using in KEPM and where the above error occurs.
    The system checks within derivation (where the error comes from) if the characteristic value is valid for a specific date set within the version (thus trans. OKEQN). If you have PRCTR '1000 102C511' not valid for the date set in the version within OKEQN, then this error message is justified, as the system realises that the PRCTR was not valid by that time.
    Could you please check this? If the profit center is not valid for this date please adjust the date to a more recent one.
    Best Regards,
    Abhisek Patnaik

  • I have an error msg:  Warning!! iOS Crash Report

    I just got this error msg.
    Warning!!  iOS Crash Report.   Due to a third party application in your phone, iOS is crashed.  Contact Support for an Immediate Fix.
    There is a 1-800 number noted.  Is this legit or this this a virus?  We have tried shutting down the ipad and re-setting but nothing seems to work.  This error message keeps popping up.  Anyone got any ideas?

    Please tell me that it has NEVER been jailbroke.  If it has never been jailbroke, here are some standard repair procedures:
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore (or it doesn't help), go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without being charged again.  Also, read this.

  • A/c doc not created and error msg "Business Area Miss-Match Check input"

    Hi,
    After creation of new Plant and Business area create a invoice , But my accounting document does't created and error msg show "Business Area Miss-Match Please Check Your Input". plz suggest me.
    Regards,
    Sohail

    Dear Sohail Rahman,
    Looks like the Business area has not been properly assigned.
    Business area can be created for three combinations:
    1. Business area by sales area
    2. Business area by plant and division
    3. Business area by plant and item division
    In your case, check whether the business area is maintained for the combination of plant/division and plant/item division.
    Hope this helps
    Thanks
    Murtuza

  • What to do about error msg: Warning: SUID file "System/Library/Core/Services/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDA gent"has been modified and will not be repaired" on MacBook Air.

    What to do about error msg in Disk Utility on MacBook Air:
    Warning: SUID file “System/Library/Core/Services/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDA gent"has been modified and will not be repaired.”

    As long as the report ends up with 'Permissions repair complete' then, as far as permissions go, you are fine. You can ignore the various statements in the report:
    Permissions you can ignore on 10.5 onwards:
    http://support.apple.com/kb/TS1448
    Using 'should be -rw-r--r-- , they are lrw-r--r--' as an example, you will see the that the permissions are not changed, but the | indicates a different location. This is because an update to Leopard onwards changed the location of a number of system components.
    Poster rccharles has provided this description of what it all means:
    drwxrwxrwx
    d = directory
    r = read
    w = write
    x = executeable program
    drwxrwxrwx
    |  |  |
    |  |   all other users not in first two types
    |  | 
    |  group

    owner

  • Error msg at launch says "Registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. ... Please reinstall iTunes."

    Each time I launch iTunes (latest version) on Windows 7 (w/ latest system updates) I receive the following error msg:
    "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software.  Please reinstall iTunes."
    When I click on "OK" iTunes completes the launch process and the application functions properly.  This error msg appears without fail every time I launch the app.
    I have reinstalled iTunes four times and continue to receive this message.  iTunes is set in the system Control Panel as the default program for all functions that iTunes uses.  I never burn CDs or DVDs and have never attempted to do so on this machine.  I have had iTunes on this computer since I bought it last November and never had a problem with it until 2 months ago when this message began popping up.  I did not notice any action I took that caused this, in terms of creating conflicts.
    I hope someone can assist me in finding a way to stop this annoying error!  Thanks!
    David

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Error msg: ZFI999:Maintain price for the material 254600254 in plant 1000

    Hi gurus
    18.02.2009 i created one STO PO. but material price in the accounting view the price was "Zero" in plant 1000. In plant 2000 the price has already maintained.
    But today i updated the material price like Rs 200/- through MR21 for plant 1000.
    After that while i transport the material through MB1B (351 mvt type) plant 1000 to 2000, i got the following error msg.
    "ZFI999:Maintain price for the material 254600254 in plant 1000".
    Regards
    Amsi

    Hi Amsi
    the message no is not standard i think there has been a new message created. please check with your ABAPer about the message.
    just want some clarification. you are doing STO from plant 1000 to 2000. the price should be picked for that material maintained in plant 2000.
    in case of queries please revert back
    Adwait Bachuwar

  • Error msg pointing to nonexistent var (WARNING: LONG POST)

    I'm sorry to have to post my entire program, but I keep getting an error msg that points to a variable that is NOWHERE in my code. The var is called PwChar. It's mentioned in the error msg, but is nowhere in my code. This is even after saving and recompiling it THREE TIMES. Please, someone, tell me where this error appears in my code, if you even can. Your help will be greatly appreciated. Here is the error msg:
    C:\jdk1.2.1\bin>javac PwGenerator.java
    PwGenerator.java:228: Incompatible type for =. Can't convert java.lang.Character
    to char.
    pwChar = new Character((char) (newAsciiRange));
    ^
    PwGenerator.java:234: Incompatible type for =. Can't convert java.lang.Character
    to char.
    pwChar = new Character((char) (newAsciiRange[0]));
    ^
    2 errors
    Now here is my code (sorry for the length):
    // My Javafied Password Generator
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class PwGenerator extends JApplet
    private String pw;
    private JPanel centerPanel, northPanel, southPanel;
    private JComboBox numchars;
    private JCheckBox lettersUpper, lettersLower, numbers, specialChars;
    private JButton generate, reset;
    private JTextField textfield;
    private int asciiRange[], newAsciiRange[];
    private String pwLength[] = {"6", "7", "8", "9", "10", "11", "12"};
    private int lengthSelected;
    private JLabel pwLabel, numCharLabel;
    private boolean wantSpecialchars, wantNumbers, wantUppercase, wantLowercase;
    public void init()
    // instantiate widgets
    asciiRange = new int[94];
    numCharLabel = new JLabel("Number of characters for password");
    numchars = new JComboBox(pwLength);
    lettersUpper = new JCheckBox("Uppercase letters");
    lettersLower = new JCheckBox("Lowercase letters");
    numbers = new JCheckBox("Numbers");
    specialChars = new JCheckBox("Special characters");
    generate = new JButton("Generate password");
    reset = new JButton("Clear");
    textfield = new JTextField(12);
    pwLabel = new JLabel("Your new password is: ");
    // add widgets to the content pane
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    centerPanel = new JPanel();
    centerPanel.setLayout(new GridLayout(3, 2));
    centerPanel.add(lettersUpper);
    centerPanel.add(lettersLower);
    centerPanel.add(numbers);
    centerPanel.add(specialChars);
    centerPanel.add(generate);
    centerPanel.add(reset);
    c.add(centerPanel, BorderLayout.CENTER);
    northPanel = new JPanel();
    northPanel.setLayout(new FlowLayout());
    northPanel.add(numCharLabel);
    northPanel.add(numchars);
    c.add(northPanel, BorderLayout.NORTH);
    southPanel = new JPanel();
    southPanel.setLayout(new FlowLayout());
    southPanel.add(pwLabel);
    southPanel.add(textfield);
    c.add(southPanel, BorderLayout.SOUTH);
    } // end init
    public void start()
    // connect event handlers to the widgets
    numchars.addItemListener(new ItemListener() {
         public void itemStateChanged(ItemEvent e)
         lengthSelected = Integer.parseInt(pwLength[numchars.getSelectedIndex()]);
    CheckBoxHandler handler = new CheckBoxHandler();
    lettersUpper.addItemListener(handler);
    lettersLower.addItemListener(handler);
    numbers.addItemListener(handler);
    specialChars.addItemListener(handler);
    generate.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         setAsciiRange();
         trimAsciiRange();
    reset.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         textfield.setText("");
    } // end start
    public void setAsciiRange()
    int numRange[] = new int[10];
    int uppercaseRange[] = new int[26];
    int lowercaseRange[] = new int[26];
    int specialcharRange[] = new int[32];
    System.out.println("Welcome to setAsciiRange!");
    if (!wantSpecialchars && !wantNumbers && !wantUppercase && !wantLowercase)
    JOptionPane.showMessageDialog(this, "You must make a selection", "Error", JOptionPane.ERROR_MESSAGE);
    if (wantNumbers)
    for (int i=0, j=48; i<numRange.length; i++, j++)
         numRange[i] = j;
    System.out.println("Number " + i + " is " + j +"\n");
    } // end for
    } // end if
    if (wantUppercase)
    for (int i=0, j=65; i<uppercaseRange.length; i++, j++)
         uppercaseRange[i] = j;
         System.out.println("Uppercase letter " + i + " is " + j + "\n");
    } // end for
    } // end if
    if (wantLowercase)
    for (int i=0, j=97; i<lowercaseRange.length; i++, j++)
         lowercaseRange[i] = j;
    System.out.println("Lowercase letter " + i + " is " + j + "\n");
    } // end for
    } // end if
    if (wantSpecialchars)
    for (int i=0, j=33; i<15; i++, j++)
    specialcharRange[i] = j;
         System.out.println("Special char " + i + " is " + j + "\n");
    for (int i=15, j=58; i<22; i++, j++)
    specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j + "\n");
    for (int i=22, j=91; i<28; i++, j++)
         specialcharRange[i] = j;
         System.out.println("Special char " + i + " is " + j + "\n");
    for (int i=28, j=123; i<specialcharRange.length; i++, j++)
         specialcharRange[i] = j;
         System.out.println("Special char " + i + " is " + j + "\n");
    } // end if
    if (numRange != null)
    System.arraycopy(numRange, 0, asciiRange, 0, numRange.length);
    if (uppercaseRange != null)
    System.arraycopy(uppercaseRange, 0, asciiRange, firstEmptyElement(), uppercaseRange.length);
    if (lowercaseRange != null)
    System.arraycopy(lowercaseRange, 0, asciiRange, firstEmptyElement(), lowercaseRange.length);
    if (specialcharRange != null)
    System.arraycopy(specialcharRange, 0, asciiRange, firstEmptyElement(), specialcharRange.length);
    for (int i=0; i<asciiRange.length; i++)
    System.out.println(asciiRange[i]);
    private int firstEmptyElement()
    int i;
    for (i=0; i<asciiRange.length; i++)
    if (asciiRange[i] == 0)
         break;
    return i;
    private void trimAsciiRange()
    newAsciiRange = new int[firstEmptyElement()];
    for (int i=0; i<newAsciiRange.length; i++)
    newAsciiRange[i] = asciiRange[i];
    System.out.println("newAsciiRange element " + i + " is " + newAsciiRange[i]);
    public void generatePw (int selectedLength)
    int randomNum;
    char pwChar;
    pw = "";
    for (int i=0; i<=lengthSelected; i++)
    randomNum = 1 + (int) (Math.random() * newAsciiRange.length);
    try {
         pwChar = new Character((char) (newAsciiRange[i]));
         pw += pwChar;
         System.out.print(pwChar + " ");
    catch(ArrayIndexOutOfBoundsException e) {
         System.out.print("Setting out-of-bounds index to 0");
         pwChar = new Character((char) (newAsciiRange[0]));
         pw += pwChar;
         System.out.print(pwChar + " ");
    System.out.println(pw);
    textfield.setText(pw);
    private class CheckBoxHandler implements ItemListener
    public void itemStateChanged(ItemEvent e)
    if (e.getSource() == specialChars)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantSpecialchars = true;
         else
         wantSpecialchars = false;
    } // end outer if
    if (e.getSource() == numbers)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantNumbers = true;
         } // end if
         else
         wantNumbers = false;
         } // end else
    } // end if
    if (e.getSource() == lettersUpper)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantUppercase = true;
         else
         wantUppercase = false;
    } // end if
    if (e.getSource() == lettersLower)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantLowercase = true;
         else
         wantLowercase = false;
    } // end if

    I'm sorry to have to post my entire program, Ok - but next time please use code tags (even though it makes it easier this time, it makes it so much easier to read)
    but I
    keep getting an error msg that points to a variable
    that is NOWHERE in my code. Does your editor have a "find" function? In Notepad it's CTL-F
    The var is called
    PwChar. no, it's called pwChar
    It's mentioned in the error msg, but is
    nowhere in my code. This is even after saving and
    recompiling it THREE TIMES. Please, someone, tell me
    where this error appears in my code, if you even can.
    Your help will be greatly appreciated. Here is the
    e error msg:
    C:\jdk1.2.1\bin>javac PwGenerator.java
    PwGenerator.java:228: Incompatible type for =. Can't
    convert java.lang.Character
    to char.
    pwChar = new Character((char)
    r((char) (newAsciiRange));
    ^
    PwGenerator.java:234: Incompatible type for =. Can't
    convert java.lang.Character
    to char.
    pwChar = new Character((char)
    r((char) (newAsciiRange[0]));
    ^
    2 errors
    Now here is my code (sorry for the length):
    // My Javafied Password Generator
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class PwGenerator extends JApplet
    private String pw;
    private JPanel centerPanel, northPanel,
    l, southPanel;
    private JComboBox numchars;
    private JCheckBox lettersUpper, lettersLower,
    r, numbers, specialChars;
    private JButton generate, reset;
    private JTextField textfield;
    private int asciiRange[], newAsciiRange[];
    private String pwLength[] = {"6", "7", "8", "9",
    ", "10", "11", "12"};
    private int lengthSelected;
    private JLabel pwLabel, numCharLabel;
    private boolean wantSpecialchars, wantNumbers,
    s, wantUppercase, wantLowercase;
    public void init()
    // instantiate widgets
    asciiRange = new int[94];
    numCharLabel = new JLabel("Number of characters
    ters for password");
    numchars = new JComboBox(pwLength);
    lettersUpper = new JCheckBox("Uppercase
    case letters");
    lettersLower = new JCheckBox("Lowercase
    case letters");
    numbers = new JCheckBox("Numbers");
    specialChars = new JCheckBox("Special
    cial characters");
    generate = new JButton("Generate password");
    reset = new JButton("Clear");
    textfield = new JTextField(12);
    pwLabel = new JLabel("Your new password is: ");
    // add widgets to the content pane
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    centerPanel = new JPanel();
    centerPanel.setLayout(new GridLayout(3, 2));
    centerPanel.add(lettersUpper);
    centerPanel.add(lettersLower);
    centerPanel.add(numbers);
    centerPanel.add(specialChars);
    centerPanel.add(generate);
    centerPanel.add(reset);
    c.add(centerPanel, BorderLayout.CENTER);
    northPanel = new JPanel();
    northPanel.setLayout(new FlowLayout());
    northPanel.add(numCharLabel);
    northPanel.add(numchars);
    c.add(northPanel, BorderLayout.NORTH);
    southPanel = new JPanel();
    southPanel.setLayout(new FlowLayout());
    southPanel.add(pwLabel);
    southPanel.add(textfield);
    c.add(southPanel, BorderLayout.SOUTH);
    } // end init
    public void start()
    // connect event handlers to the widgets
    numchars.addItemListener(new ItemListener() {
         public void itemStateChanged(ItemEvent e)
    lengthSelected =
    d =
    Integer.parseInt(pwLength[numchars.getSelectedIndex()]
    CheckBoxHandler handler = new CheckBoxHandler();
    lettersUpper.addItemListener(handler);
    lettersLower.addItemListener(handler);
    numbers.addItemListener(handler);
    specialChars.addItemListener(handler);
    generate.addActionListener(new ActionListener()
    er() {
         public void actionPerformed(ActionEvent e)
         setAsciiRange();
         trimAsciiRange();
    reset.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         textfield.setText("");
    } // end start
    public void setAsciiRange()
    int numRange[] = new int[10];
    int uppercaseRange[] = new int[26];
    int lowercaseRange[] = new int[26];
    int specialcharRange[] = new int[32];
    System.out.println("Welcome to setAsciiRange!");
    if (!wantSpecialchars && !wantNumbers &&
    s && !wantUppercase && !wantLowercase)
    JOptionPane.showMessageDialog(this, "You must
    u must make a selection", "Error",
    JOptionPane.ERROR_MESSAGE);
    if (wantNumbers)
    for (int i=0, j=48; i<numRange.length; i++,
    ; i++, j++)
         numRange[i] = j;
    System.out.println("Number " + i + " is " + j
    is " + j +"\n");
    } // end for
    } // end if
    if (wantUppercase)
    for (int i=0, j=65; i<uppercaseRange.length;
    ength; i++, j++)
         uppercaseRange[i] = j;
    System.out.println("Uppercase letter " + i + " is "
    " + j + "\n");
    } // end for
    } // end if
    if (wantLowercase)
    for (int i=0, j=97; i<lowercaseRange.length;
    ength; i++, j++)
         lowercaseRange[i] = j;
    System.out.println("Lowercase letter " + i +
    " + i + " is " + j + "\n");
    } // end for
    } // end if
    if (wantSpecialchars)
    for (int i=0, j=33; i<15; i++, j++)
    specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j
    j + "\n");
    for (int i=15, j=58; i<22; i++, j++)
    specialcharRange[i] = j;
    System.out.println("Special char " + i + " is
    i + " is " + j + "\n");
    for (int i=22, j=91; i<28; i++, j++)
         specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j
    j + "\n");
    for (int i=28, j=123;
    j=123; i<specialcharRange.length; i++, j++)
         specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j
    j + "\n");
    } // end if
    if (numRange != null)
    System.arraycopy(numRange, 0, asciiRange, 0,
    ge, 0, numRange.length);
    if (uppercaseRange != null)
    System.arraycopy(uppercaseRange, 0, asciiRange,
    Range, firstEmptyElement(), uppercaseRange.length);
    if (lowercaseRange != null)
    System.arraycopy(lowercaseRange, 0, asciiRange,
    Range, firstEmptyElement(), lowercaseRange.length);
    if (specialcharRange != null)
    System.arraycopy(specialcharRange, 0,
    ge, 0, asciiRange, firstEmptyElement(),
    specialcharRange.length);
    for (int i=0; i<asciiRange.length; i++)
    System.out.println(asciiRange[i]);
    private int firstEmptyElement()
    int i;
    for (i=0; i<asciiRange.length; i++)
    if (asciiRange[i] == 0)
         break;
    return i;
    private void trimAsciiRange()
    newAsciiRange = new int[firstEmptyElement()];
    for (int i=0; i<newAsciiRange.length; i++)
    newAsciiRange[i] = asciiRange[i];
    System.out.println("newAsciiRange element " + i
    " + i + " is " + newAsciiRange[i]);
    public void generatePw (int selectedLength)
    int randomNum;
    char pwChar;
    pw = "";
    for (int i=0; i<=lengthSelected; i++)
    randomNum = 1 + (int) (Math.random() *
    om() * newAsciiRange.length);
    try {
         pwChar = new Character((char) (newAsciiRange));
         [b]pw += pwChar;
         System.out.print(pwChar + " ");
    catch(ArrayIndexOutOfBoundsException e) {
    System.out.print("Setting out-of-bounds index to
    o 0");
         pwChar = new Character((char) (newAsciiRange[0]));
         pw += pwChar;
         System.out.print(pwChar + " ");
    System.out.println(pw);
    textfield.setText(pw);
    private class CheckBoxHandler implements
    ts ItemListener
    public void itemStateChanged(ItemEvent e)
    if (e.getSource() == specialChars)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantSpecialchars = true;
         else
         wantSpecialchars = false;
    } // end outer if
    if (e.getSource() == numbers)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantNumbers = true;
         } // end if
         else
         wantNumbers = false;
         } // end else
    } // end if
    if (e.getSource() == lettersUpper)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantUppercase = true;
         else
         wantUppercase = false;
    } // end if
    if (e.getSource() == lettersLower)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantLowercase = true;
         else
         wantLowercase = false;
    } // end if

Maybe you are looking for

  • XML publisher : Error oracle.xml.parser.v2.XMLParseException: Expected ';'

    I am trying to output a customer list containing customer number and customer name using 11i ( 11.5.10 CU2) with latest XML publisher patches on. How do I debug the following error in OPP log: [UNEXPECTED] [72156:RT1088889] oracle.xml.parser.v2.XMLPa

  • Mail Name Problem

    Hi to all. I have installed SLS 10.6.2 in a mini Mac. My hostname is macsvr.pss.mx My domain is pss.mx. My primary zone is pss.mx When registering a new user his direction of mail appears to me [email protected] instead of [email protected]. Can you

  • Problem with external Lacie disk

    Hi! I have some serious problems with my Lacie 250GB Porche disk. The disk shows up on my desktop but it does not allow me to read and write to it. Apple's disk tool does not manage to fix the disk. I have tried running Diskwarrior, but it gives me a

  • Cannot download the Exchange Server 2013 SP1 ISO file from Microsoft Website.

    Hello Guys, I cannot download the Exchange 2013 or Exch 2013 SP1 ISO file from the Microsoft Website. Before downloading i have register on the Site. Purpose of downloading the ISO is to upgrade the Active Directory Schema before installing exch serv

  • Making buttons for an ArrayList

    I am in a hurry as this program has to be handed in tomorrow so quick replys would be helpful. I dont know how to make buttons in my GUI for an ArrayList and have it respond individualy with the name of the button i.e. i want to make it so that when