Switch structure HELp!!!

     Really nid help in this probelm...dont know how to use switch and Text Field please help ...
Mail order house sells 5 different product..prod1-$2.98, prod2-$4.50, prod3- $9.98, prod4- $4.49 and prod 5- $6.87..Write an application that reads a series of pairs of numbers as follows:
a)Product number
b)Quantity sold for one day
Program should use a switch structure to help determine the retail price for each product.Your program should calculate and display total retail value of all product sold last week. Use a TextField to obtaimn the product number from the user. Use sentinel -controlled loop to determine when the product should stop looping and display final results.
.....Help will ne greatly appreciate guys..Ive been doing this for 2 days..dont know where to place diffrent controls...send source code if possible thank you..

class Sale{
   double total=0;  //total sales
public int addSale(int product,int amount){ //amount is the num of product saled
    switch(product){
       case 1: total+=(2.98*amount);
               break;
       case 2: total+=(4.50*amount);
               break;
       case 5: total+=(6.87*amount);
               break;
       default:System.out.println("no such product!");
               break;
}

Similar Messages

  • Difference between Switching Structure in CCA and Transfer Structure in PC

    Hi experts,
    Could anybody define the difference between Switching Structure in CCA and Transfer Structure in CO-PCP? I can't also define when we create Primary Cost Component Split, do we use only range of Primary Cost Elements in the Cost Components for the Primary Cost Component Structure? Thanks for the help!
    Best Regards,
    Georgi

    This has been discussed please check it in forum
    https://forums.sdn.sap.com/click.jspa?searchID=480466&messageID=114309
    https://forums.sdn.sap.com/click.jspa?searchID=480466&messageID=1419481
    https://forums.sdn.sap.com/click.jspa?searchID=480466&messageID=1479212
    Shortly:
    Append structures are used for enhancements that are not included in the standard. An append structure is a structure that is assigned to exactly one table or structure. There can be more than one append structure for a table or structure.
    http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Includes are used to group fields, an include structure can be assigned to many tables. If you add a fields to an include structure, all tables/structures, which contain that include structure, will be updated too.
    http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ea6a446011d189700000e8322d00/content.htm
    Regards,
    Santosh

  • Structuring Help for Many Apps and Agile Development

    Hi Guys
    I am starting to evaluate RH9 (with server) and am lookign for seom advice on structuring help.
    We produce a management information system, which comprises 17 apps.
    We have major release versions: e.g. 4.9, 5.0 and then sub builds (e,g. 4.9.0.23)
    Most sub builds contain new features that require documentation. We do agile dev, so we are producing new builds every few weeks. This means we can't just produce documentation for major releases (e.g. v4 and v5). This is waht we do right now, but it means it's always out of date
    My initial project is to setup the master pages and css and import the Word manuals into RH and do any necessary cleanup. We will initially publish web help and "printed" (PDF) documentation from this, but eventually want to link into our applications (initially on the help menu and them adding context sensitive help).
    So if a user is running 5.0.0.23 of Inventory Management and goes to the help menu, I want them to be able to get to the documentation for that specific build.
    So, from a documentation point of view, how do I manage all of this?
    Do I put it all under one project or one project per app or per major version or build? My main concern is that we can literraly have 100's of different builds in use by customers, so if we change the documentation for feature X, all users on relevent builds get the updated documentation.
    We are keen to get user feedback and improve areas that require improvement, so let's say a user says the documentation for setting up warehouse locations is not very good. This feature has been around since version 1.0, so we want to update it's documentation and have it available to all current versions (4.x and 5.x). Is there a way to setup the documentation such that I can flag parts of it to specific versions. Using the above example, I want users on all versions and all builds to get the updated version; however, if we change the way locations are managed in 5.0.0.23, how do I ensure that everyone on 5.0.0.22 and below gets version A and everyone on 5.0.0.23 and above gets version B? Clearly, I don't want an entire project for each build (e.g. 5.0.0.23); otherwise, I'd have to make the smae update dozens of times if it's documentation on an existing feature .
    One other thing to consider: related topics can be in other apps. For example in App 1, a related topic might be something in App 2.
    Any pointers greatfully appreciated
    Regards
    Mark

    What you describe is similar to what we are doing currently, with a few notable exceptions. Two of us maintain a large number of online user's guides that are published both as Webhelp (25 projects merged into one parent help system) and as standalone .docx and .pdf files. We are also using Agile. Our company offers two or three major releases per year (2011.1, 2011.2, 2011.3) with one or two patch releases for each major release (2011.1.1, 2011.1.2, etc).
    Our customers also use different versions--some are still on last year's release (possibly earlier), while others install the latest version as soon as it's available.
    A few things you may want to consider:
    1. We've had limited success importing Word documents directly into Robohelp--the HTML invariably gets screwed up with a bunch of extra codes from Microsoft. We've found we have better control over the help files if we simply copy the Word text to Notepad and then copy and paste the stripped-down text to Robohelp, where we create topics, apply styles, insert hyperlink, and import images. This method of converting text from Word to RH takes longer initially, but seems to work better in the longer term, especially if the original document had nested lists or complex tables. FWIW, doing the conversion is relatively mindless work--the kind of task that is great to do at the end of a long week when your mind is numb from writing.
    2. The start pages for each of our 25 projects are linked to their corresponding modules in the software (users can click the Help icon or press F1 to see the online help for the module or to access the entire help system). However, we do not offer true context-sensitive help.
    3. We use the same source control system that is used by our software developers and check our Robohelp files into the same mainline code branch--this means that up-to-date documentation accompanies each release from mainline. Typically, we do not update the help files in our patch branches, since this would mean duplicate work (after updating the help in the patch branch, we'd have to make the same updates to the mainline branch). Instead, we use release notes to document any user interface or functional changes in patch releases. That said, the majority of our patch branches are for bug fixes, not enhancements, so they require only limited changes to the help.
    4. Our entire help system is automatically generated during our nightly software build using the RHCL batch command. When customers install a new release of our software, the latest help files are automatically written to their computers.
    5. After major releases only, we generate a revised Word/PDF file for each project and post those files on our customer support portal. Other than that, we make no attempt to provide improved documentation to customers who are using downlevel software. That is, if we need to rewrite the basic instructions for some task, we update the mainline branch for use with the next software release and all subsequent releases. I guess we figure that if our customers are interested in the latest and greatest instructions, they should spring for the cost of a software upgrade.

  • FM to get the date specific structural help

    I am working on structural help for Org id  for a selection screen parameter.
    I am using  FM RH_OBJID_REQUEST. It is giving the structure valid ion today. My requirement is to get the structure valid on given period in the above selection field.
    Please let me know is there any other way(other FM) to get the date specific structural help.

    Pass your dates to ORGBEG     & ORGEND                                                                               
    Description                                                                               
    This parameter only applies to the search function.                                                                               
    The parameters ORGEND and ORGBEG together determine the period in which          
         the organizational assignment data for positions is read. The entry in           
         ORGBEG specifies the start of the search period.                                                                               
    Value range                                                                               
    Allowed values are all dates smaller than the date in ORGEND.                                                                               
    Default                                                                               
    The default value is the smallest system date.                                                                               
    Function Module                                                                      
    ^Saquib

  • Structure help

    Hi
    When I go to transaction ppocw I get a screen which has position , job ,person,user etc.
    When we expand the pull downs of position,person and user we get sturcure help but when we expand job there is no structure help.
    This is with many screens I think we have to attach structure help to job.
    How to create structure help and how attach them to job.

    Hi Asad,
    Never done this before but I think this is possible. In IMG follow the path given below.
    Personnel Management
       --> Organizational Management
            --> Hierarchy Framework
                  --> Object Manager
                         --> Define Your Own Scenario
                         --> Define Your Own Search Node
                         --> Customize Search Area
                         --> Redefine Column Headings
                         --> Display Your Own Column Group in Selection Area
    If this helps, please reward and close the post.
    Regards,
    Srinivas

  • Switch structure

    Hi all,
    I am having the following problem. I have written the program below which I want to work as follows. The user will enter a letter between A and J, which then will be checked using a switch structure for a valid input.
    System.out.println("Please enter the first letter of your guess, then press enter: ");
              letter1 = console.next();
              if (letter1 >= 'A' && letter1 <= 'J')
                   switch (letter1)
                   case 'A':
                   case 'B':
                   case 'C':
                   case 'D':
                   case 'E':
                   case 'F':
                   case 'G':
                   case 'H':
                   case 'I':
                   case 'J': return true;
              else
                   System.out.println("Invalid selection. Please try again");
              System.out.println("Please enter the second letter of your guess, then press enter: ");
              letter2 = console.next();
    ___However when I try to compile it the following errors occur;___
    Gameoutput2.java:43: operator >= cannot be applied to java.lang.String,char
    if (letter1 >= 'A' && letter1 <= 'J')
    ^
    Gameoutput2.java:43: operator <= cannot be applied to java.lang.String,char
    if (letter1 >= 'A' && letter1 <= 'J')
    ^
    Gameoutput2.java:45: incompatible types
    found : java.lang.String
    required: int
    switch (letter1)
    ^
    Gameoutput2.java:56: cannot return a value from method whose result type is void
    case 'J': return true;
    Can anyone see any problems?

    * You check whether the letter is valid, but if it's not, you just print a message, you don't make them enter a new one before moving on to the second letter.
    Okay so far I have done the following;
    System.out.println("Please enter the first letter of your guess, then press enter: ");
              char myChar = letter1.charAt(0);
              if(myChar >= 'A' && myChar <= 'J')
                   case 'A':
                   case 'B':
                   case 'C':
                   case 'D':
                   case 'E':
                   case 'F':
                   case 'G':
                   case 'H':
                   case 'I':
                   case 'J': return true;
              else
                   System.out.println("Invalid selection. Please try again");
              System.out.println("Please enter the second letter of your guess, then press enter: ");
    How can I make the 'if' structure "loop" back to make the user re-enter a valid char?

  • Case structure help

    Rusty with labview and need help.
    Each value (13 total) from an array is selected one at a time to form part of a command which is sent to test equipment.
    The first frame of the stacked sequence structure should execute all of the array values then move to frame 2. 
    Note: The only difference in each frame is a value of a channel card, channel "1"  is selected first then channel "2" is selected in the second frame.
    My problem is the frame doesn't execute all the values in the first frame before moving to frame 2.  
    If there is a simpler way of doing what I am trying to do please let me know.
    Mike 
    Attachments:
    test 71.vi ‏66 KB

    I am planning to expand the test capability of my first test program I created in LabView a few years ago. Back then it was my first shot using LabView so my final version of this test program became a monster. I have a chose to start from scratch and put together a new, more creative and mainly more efficient program or modify the beast of a program I already have. I'm not sure what direction to go right now. I am not an expert using LabView by no means; this is basically my first and last test program I created. This test program does the following:
    I push the start button on the front panel
    LabView commands the data switch (34970) to output a logic high to switch a multi-channel RF relay. This relay is a one in, 12 out coaxial relay with 12 logic terminals for switching the relay.
    So, one at a time the relay switches in and out depending on the logic line selected from LV (array). Each of the twelve coaxial outputs from the relay is connected to the device under test (DUT). The RF input port of the relay is connected to a network analyzer (also under the command of LV) to measure VSWR. 
    When all connected and test program is running, each of the 12 DUT's are measured at room temperature. Then the temp chamber (not under command of LV but running in auto mode) goes to 100 deg and soaks for one hour.
    After one hour all 12 DUT's are re-measured. The process is repeated when the temp chamber goes cold.
    There are 15 temperature cycles total. At the end of each half cycle data or VSWR is measured and stored as a *.png file within the network analyzer.
    m

  • Macbook battery not working - computer switching off - help!

    My Macbook has suddenly started switching off when the power supply is disconnected, even though the battery should be charged.
    This happened after buying a new macbook AC adaptor. My old 60watt adaptor has been getting quite hot, so I did a bit of reading on the web and bought a new 85watt adaptor, which is supposed to resolve the problem. I bought one off ebay - had no idea what I doing really so may have bought a dodgy one? It was £30 which I've been told (now!) is suspiciously cheap! I plugged it in once and all seemed fine then when I removed the magsafe adaptor for a moment my computer just sort of died, well, switched off. I now can't restart it from the battery at all. It works fine with the adaptor (I'm using my old 60watt one again now.) In the moment before I remove my adaptor, the battery looks 'fully charged' then just switches off.
    I tried downloading BatteryUpdate 1.2 but it has made no difference.
    What have I done?? Can it be fixed? Please help!
    PS. Here is my info from the 'power' section within 'About This Mac':
    Battery Information:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 4146
    Remaining Capacity (mAh): 4146
    Amperage (mA): 0
    Voltage (mV): 12592
    Cycle Count: 236
    AC Charger Information:
    Connected: Yes
    Charging: No

    yea just made an appointment right now. kind of upset that this has happened. long time mac user and really haven't had issues with hardware. just can't wait to get my macbook working again! thanks again.

  • Switcher needs help in buying

    Folks,
    I am planning to switch to a Mac this year for many common Windows reasons. I like the new intel iMac, but I have the following questions though:
    1. Since this is going to be my first Mac, is it worth buying the iMac now or wait for few more models - iBook , Mac Mini or any other "Magic" Mac that Steve might pull out? I like the iMac for the power that it has on a consumer desktop, So I feel even if there are other Mac models that might come out for consumers, iMac will probably the best in terms of speed. What do you all say?
    2. I've clearly read all the specs of the iMac and the one thing that i really liked is the extended desktop. I have a question though - Does this mean, I can connect my iMac to my TV and watch a DVD while I still rest my iMac on the coffee table and work on other apps ?
    3. The DVD camcorders record video in MPEG2, will the iMovie be able to recognize it and edit the content ? or should I use only miniDV camcorders. This will help me decide which camcorder I can buy.I like the Panasonic 3CCD model, but Sony's DVD camcorder with Dolby digital audio recording is tempting.
    Any other ideas, suggestions and comments will really help me in buying my new Mac. Thank you all!
    HP Pavillion   Windows XP  

    Hi Dineshbabu
    1. Since this is going to be my first Mac, is it
    worth buying the iMac now or wait for few more models
    - iBook , Mac Mini or any other "Magic" Mac that
    Steve might pull out? I like the iMac for the power
    that it has on a consumer desktop, So I feel even if
    there are other Mac models that might come out for
    consumers, iMac will probably the best in terms of
    speed. What do you all say?
    It's always going to get better, faster cheaper no matter when you buy
    Rev B will be better than Rev A.
    Buy when you want one... they're all gonna depreciate like crazy anyway - but you'll still have the same great machine you always had, won't you ?
    2. I've clearly read all the specs of the iMac and
    the one thing that i really liked is the extended
    desktop. I have a question though - Does this mean, I
    can connect my iMac to my TV and watch a DVD while I
    still rest my iMac on the coffee table and work on
    other apps ?
    That's not really what it's for. The second monitor is a 'normal computer-type' monitor (although there are bits and pieces that'll get you there if you really want to).
    3. The DVD camcorders record video in MPEG2, will the
    iMovie be able to recognize it and edit the content ?
    or should I use only miniDV camcorders. This will
    help me decide which camcorder I can buy.I like the
    Panasonic 3CCD model, but Sony's DVD camcorder with
    Dolby digital audio recording is tempting.
    3CCD DV is a vastly superior choice to anything that stores its Vid in MPEG2 or similar.
    You can shoot and edit/build Broadcast-quality material from properly-shot DV.
    MPEG2 is very much a delivery format only - i.e. it's what you convert footage too when you've finished the editing & production stages - not for the start. [They might look the same to you - the MPEG2 may even look Great to you -it's supposed to - but the differences are huge. Trust me™ ]
    Any other ideas, suggestions and comments will really
    help me in buying my new Mac. Thank you
    all!
    Yes, get ready to fall in love and be prepared to buy an extra Mac within a year or so grin
    Best wishes - they're terriic, elegant systems.
    Enjoy.

  • Switcher needs help

    I helped someone switch this weekend (she bought a new intel imac, nice), who was previously a windows user.
    I transferred her songs over to the new mac, and also made a copy of the itunes library file, and the xml file and brought them over, in addition to 'previous itunes libraries' folder.
    Now itunes sometimes will not launch properly for her. It shows as active in the dock, but won't bring up the itunes window, and you can't force quit it.
    Here's my theory - that on the way through, I think bringing over her windows xml file and library file has caused issue with the imac. It can't be much else as she really has nothing else on the machine yet other than itunes and office.
    Is there a way I can just trash these data files and have the imac 'rebuild' them in clean native mac format?

    This may possibly fix it:
    How to re-create your iTunes Library
    http://docs.info.apple.com/article.html?artnum=93313
    Or you could try going to home > library > preferences, trashing the com.apple.itunes plist file, logging out/in, and launching iTunes.
    Good luck!

  • Deep structure help

    hi
    I am trying to insert values from a deep structure into a database table.
    if I have a structure xixi_stvalues which has
    id which is of type char7
    type of type char20
    results of type xixi_ttresults <- this is a table, implying that the xixi_stvalues is a deep structure
    Now...I want to save both id and type into xixi_dbvalues
    I tried this:
    Insert into xixi_dbvalues values xixi_stvalues-id xixi_stvalues-type.
    this tells me thatexpects a '.' after
    I HAVE ALREADY TRIED USING HELP.
    Thanks

    Hi charla6,
    For example there is a 3D internal table (it_tab) like this....
    Name
    Age
    Address --> houseno, street1, street2. (type table field)
    vehicle 
    now create a data like this
    DATA: it_add like line of it_tab-address.
    loop at it_tab-address into it_add.
    "this will give u  all the field values like it_add-houseno, it_add-street1, it_add-street2.
    endloop.
    like this u can read all the 3D internal tables
    Do reply if still problem persist.
    Thanks
    Rohit G
    Edited by: Rohit Gaharwar on Aug 12, 2009 12:06 PM

  • Iphone 5 in recovery, cannot switch on, help!

    Please help my iphone 5 won't switch on - the screen displays a lead and an arrow pointing to the iTunes icon! I cant recover my serial number from my itunes account - not sure what my next steps should be...??

    Restore your iPhone to Factory Settings using iTunes.
    Recovery Mode : http://support.apple.com/kb/ht1808
    As your Device is already in Recovery Mode just connect to iTunes and Restore it.

  • Recordset Structure Help

    Hi.
    I'm new to XI and I'm currently trying to build a simple File to File scenario. I have a flat file that looks like:
    name,address,id,age,....
    name....
    so each element is comma seperated and each record is on a new line.
    I have a DT that looks like:
    DT_Flat_File
    -name
    -address
    -id
    etc
    I am currently building the Comunication Channel for the pickup and i dont know what to put into the "Recordset Structure" field.
    Any help would be appreciated, and maybe a summary of what can go into this field also.
    Thanks
    Gareth

    make the DT as
    DT_Flat_File
    -Root
    name
    address
    id
    etc
    so that name, id etc comes under root
    Now your recordset is root.
    In the other case;
    DT_Flat_File
    -name
    -address
    -id
    you will not be able to provide a recordset and it wudnt be possible to read the file using content conversion.

  • Simple switch program help

    I'm trying to prompt the user for a pattern they would like to see, then display the pattern.
    Here is the code I have:
    import java.util.Scanner;
    public class AsteriskPatterns
         public static void main (String[] args)
              char choice;
              Scanner scan = new Scanner (System.in);
              System.out.println ("Enter the pattern would you like to see a, b, c, or d: ");
              choice = scan.nextChar();
              switch (choice)
                   case a:
                        System.out.println ("**********");
                        System.out.println ("*********");
                        System.out.println ("********");
                        System.out.println ("*******");
                        System.out.println ("******");
                        System.out.println ("*****");
                        System.out.println ("****");
                        System.out.println ("***");
                        System.out.println ("**");
                        System.out.println ("*");
                        break;
                   case b:
                        System.out.println ("         *");
                        System.out.println ("        **");
                        System.out.println ("       ***");
                        System.out.println ("      ****");
                        System.out.println ("     *****");
                        System.out.println ("    ******");
                        System.out.println ("   *******");
                        System.out.println ("  ********");
                        System.out.println (" *********");
                        System.out.println ("**********");
                        break;
                   case c:
                        System.out.println ("**********");
                        System.out.println (" *********");
                        System.out.println ("  ********");
                        System.out.println ("   *******");
                        System.out.println ("    ******");
                        System.out.println ("     *****");
                        System.out.println ("      ****");
                        System.out.println ("       ***");
                        System.out.println ("        **");
                        System.out.println ("         *");
                        break;
                   case d:
                        System.out.println ("     *    ");
                        System.out.println ("    ***   ");
                        System.out.println ("   *****  ");
                        System.out.println ("  ******* ");
                        System.out.println (" *********");
                        System.out.println (" *********");
                        System.out.println ("  ******* ");
                        System.out.println ("   *****  ");
                        System.out.println ("    ***   ");
                        System.out.println ("     *    ");
                        break;
                   default:
                        System.out.println ("You didn't enter a valid choice!");
    }I'm getting 5 errors when I try to compile?
    AsteriskPatterns.java:15: cannot find symbol
    symbol : method nextChar()
    location : class java.util.Scanner
    choice = scan.nextChar();
    ^
    Then 4 errors under my switch command saying:
    cannot find symbol
    symbol : variable a, b, c, and d
    location: case a, case b, case c, and case d
    Any help would be greatly appreciated

    AsteriskPatterns.java:15: cannot find symbol
    symbol : method nextChar()
    location : class java.util.Scanner
    choice = scan.nextChar();
    cannot find symbol means there is no such method. Check for yourself: Scanner does not have a nextChar method:
    [http://java.sun.com/javase/6/docs/api/java/util/Scanner.html]
    As for you other errors, you need to write
    case 'a':not
    case a:

  • Error message on 4500 switch please help me rectify this issue .

    LLog Buffer (4096 bytes):
    valid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    4d15h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 2 times)Packet recei                                                                                                                               ved with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    4d21h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 5196 times)Packet re                                                                                                                               ceived with invalid source MAC address (00:00:00:00:00:00) on port Po1 in vlan 1
    5d04h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 58415 times)Packet r                                                                                                                               eceived with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vla                                                                                                                               n 1
    5d10h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 44163 times)Packet r                                                                                                                               eceived with invalid source MAC address (00:00:00:00:00:00) on port Po1 in vlan                                                                                                                                1
    5d17h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 18786 times)Packet r                                                                                                                               eceived with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vla                                                                                                                               n 1
    5d23h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 4897 times)Packet re                                                                                                                               ceived with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan                                                                                                                                1
    6d06h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 7 times)Packet recei                                                                                                                               ved with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    6d14h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 16 times)Packet rece                                                                                                                               ived with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    6d22h: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 8 times)Packet recei                                                                                                                               ved with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w0d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 6 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w0d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 6 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w0d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 27713 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w1d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 89677 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w1d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 38722 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w1d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 7 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w1d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 22133 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w2d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 46596 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w2d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 11 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w2d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 10 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w2d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 26497 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Po1 in vlan 1
    1w3d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 61085 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w3d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 5 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Gi2/1 in vlan 1
    1w3d: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 11 times)Packet received with invalid source MAC address (00:00:00:00:00:00) on port Po2 in vlan 1
    1w3d: %C4K_REDUNDANCY-5-CONFIGSYNC: The private-config has been successfully synchronized to the standby supervisor
    1w3d: %C4K_REDUNDANCY-5-CONFIGSYNC: The startup-config has been successfully synchronized to the standby supervisor
    1w3d: %SYS-5-CONFIG_I: 
    Please help me with trouble shooting steps and also commands..........

    Hi,
    Please ask  the question in LAN SWITCHING community for speedy response but it looks like a message indicating that Switch is seeing a packet with src mac 00.00.00.00.00.00 which obviously is Invalid. Switch learns the mac from src in the frame and it is wrong. Looks like Mac-spoofing.
    Regards,
    KANWAL

Maybe you are looking for