WRT160N static IP trouble. Help Needed!

I am having some trouble with my linksys WRT160Nv3 router. I am trying to set a static IP address up so I can port forward and host some games so I can play with my friends online (minecraft, gmod, etc).
I tried doing this and it will not work (though I am connected to the internet with it)
http://puu.sh/2vV7U (image link)
(192.168.1.19 is my default settings thing btw, in replacement of 192.168.1.1)
I try port forwarding and stuff on it..just doesn't work at all and the ports remain closed.
I think I noticed the problem, my ROUTER settings didn't have a static IP.
http://puu.sh/2vVaw (image link)
So when I select it^, and press Save Changes, I am unable to connect to the internet and that page itself and I had to reset my router and change it back to auto..(did that 10 mins ago)
I don't know what I'm doing wrong. I tried lots of ways, googling solutions, but I couldn't find any. That's why I came here.
Please, if you can, help me with this issue because I desperately need this!
ISP: TbayTel

In dealing with online games, assigning static ip address on the pcs will help and this how to do it for windows pcs like xp, vista windows7 and windows. Just go to the local area connection or wireless connection properties and look for IP v4 TCP/IP protocol and click it and then hit properties and select the second option: “use the following IP address”. Enter the IP address that you want and the recommended IP range e.g. it will be the 192.168.1.5 to 192.168.1.99. For wireless computer same thing just go the wireless network connection properties. This link might help you:Assigning static IP on PC
Once you have the ports for online games entered on your router under port range forwarding then you should be good to go.
This link might help you as well
Port forwarding

Similar Messages

  • Real Trouble Setting Up New WRT160N Router...Help Needed

    Current configuration is as follows:
    Motorola DSL modem paired with a Netgear Wireless-G router. Works fine, I have a connection.
    There is a problem, though, accessing the router's browser interface. This has happened since I reformatted my PC from Vista back to XP Pro SP3. My computer came with Vista. The drivers for my "1394 Network Interface" are generic, and I am afraid that although the blinking green light fuctions when an ethernet cable is connected (router to PC), somehow something is not right. The router access address is not working (192.168.2.1). Perhaps I am entering it wrong? Do I need a port number? I run my PC wirelessly to the internet via a Netgear wireless PCI card that I have installed. It works fine.
    My objective is to set up/configure my new Linksys/Cisco Wireless-N router (WRT160N). After I insert the included CD to begin the setup process, the setup process itself fails due to an error. The setup program tells me that it is unable to detect an ethernet port, and to enable it if it is disabled. Well, I do have one, and it has a driver, albeit probably not the correct one. But it is there, and the setup program won't let me continue because it can't see it. Here is where the fun begins.
    I have already tried reinstalling the ethernet driver. I downloaded a PC information program like CPU-Z and it revealed my ethernet connector's manufacturer whose name escapes me at the moment. Since the PC came with Vista, I cannot readily find any XP drivers that will suit it. In a desperate yet feeble attempt I downloaded and paid for a driver-updater program, to no avail. My motherboard is an ASUS NodusM3. I have also tried to connect the WRT160N to my PC to check for any viable communication. None.
    So in a nutshell I can't get the router's setup program to believe that I have a viable ethernet connection, in which case I may not because I can't get the PC to run off the router via an ethernet cable. I can't even access  the router via the browser. In this case will I need new drivers? If so, where do I find them? How can this issue be resolved. It really sounds like a driver issue to me.

    The router uses no drivers.  Connect at 192.168.1.1 not .2.1.  Reset router by pressing reset button for 30 seconds.  Release and wait 10 seconds, and power cycle.  Connect to the correct IP of 192.168.1.1. via cable.

  • WRT160N Version 3; SERIOUS HELP NEEDED FOR SETUP PLZ??!?!?!

    I bought this router probably around 3 weeks ago. 
    The following is a list of chronological scenarios that i have tried in order to install it and everything during the first week that i got it:
    1. I followed the CD's instructions, got LELA, but then when i used LELA to 'add another computer' it just gave an error, and then after this i could not be screwed using LELA anymore and so i uninstalled it, and then went online to 192.168.1.1 to configure the settings of the router, SSID, password and security which i put was WPA2 etc.
    BUT THIS DID not work at all, i have 2 laptops, 1 of them which is new, and the other which was a couple of years old, they could not detect anything.
    2. I then did some internet research, and read on these forums that i needed to change some of its advanced wireless settings, i did that. And then I could actually connect......and was extremely happy at this moment, BUT the next day i noticed, that even though i was about a metre away from the router, my speed was varying BADLY, initially when i first connect with my new laptop which has a Intel Wifi 5100AGN adapter it has a speed of 144mbps, but when i open internet explorer, i see the speed going slower and slower, until it is 1mbps, and sometimes the wireless just cuts out. This happened to my other laptop as well.
    3. I then called for technical assistance, spent so much time talking trying to solve, and downloaded the latest firmware, reflashed the router, but still it has this problem of slowing speeds which is really frustrating.
    And doing some more talking and following more instructions from the person on the phone, both my laptops could not connect to the router, even though it can see it at 'Excellent' connectivity.
    4. And so, the person on the phone concluded that i should exchange the router with new one, which i am planning to do, and will probably get it tomorrow. But i am also thinking to myself whether or not to get a different one.
    SOME NOTES:
    -When it is wired the internet works fine
    -the adapter in the older laptop is a intel 2200BG, so i know that it would probably go at a max speed of 54mbps
    -when i said changing advanced wireless settings, i meant changing frequency/RTS/beacon levels etc to the values i have seen on these fourms.
     CURRENTLY, since i am exchanging i have gone back to the old ASUS router which is G. and it connects well with the old laptop with a constant speed of 54mbps, but havent tried the new laptop as i can not be bothered. Also my main reason of getting a N router is just for range, because with the current one, i just cannot detect the router when i am in my bedroom, which is less than 20m, even if i can detect it is is very poor connectivity, WHERE AS with the WRT160n before i exchanged it, i could detect at first with Excellent connectivity, but as i said, the problems with speed and wireless cutting out etc is what results from this router.
    I guess my main point is that, i want to ask any of you have used the VERSION 3 of WRT160N, and is currently working very well wirelessly. Can u please tell me the step-by-step instructions to help me set this router perfectly?
    regards

    Try updating both of your laptops wireless cards that could fix the problem (you know may not be compatible with your WRT160N).
    I know you said you changed the channel your router broadcasting in but do you have a lot of other wireless networks in your area???
    GoodLuck
    Matt

  • Ipod mini troubles: Help Needed

    I really need help with ipod mini troubleshooting..
    I've had my Ipod mini for about 3 years now and lately have been running into a few problems.
    In the past few months:
    -My Ipod's "battery meter" has been acting really strange, one second it may be reading as 3/4 full, and the next it shuts down saying that my battery has depleted, then a few minutes later it will be reading full again. And just to let you know, I always charge it overnight to avoid having a dead battery, and I always make sure to properly shut it off using "hold".
    Resetting my ipod works sometimes, but other times doesn't..
    Yesterday:
    My Ipod is no longer responding at all, and I'm pretty sure I know why: Some careless person spilled some water near and on my ipod, I dried it off as soon as I could. It was working properly shortly afterwards, but a few hours later, it shut off saying that the battery was dead again, and a picture of a "cartoon ipod" with dead eyes("XX") appeared on my screen, and it said under the picture to go to "www.apple/support/ipod". This was when it wasn't connected to a power source. When I connected my ipod to my computer via USB, my itunes does not recognize that it is connected ("Do not disconnect" does not appear on my ipod) and a picture of a "dead battery" has appeared on my screen, it is not in the "recharging mode" either (with the picture of the battery moving).
    I tried re-setting it numourous times, and always end up with either the "dead battery" picture, or the "dead cartoon ipod" picture on it.
    Help would be greatly appreciated, as I use my ipod everyday for school and leisure.
    Thanks.

    I've tried that several times without luck.

  • Help need setting up remote desktop (on a router)

    hey networking pros,
    I have major trouble setting up remote login (remote desktop).
    Specification : OSX tiger, LINKSYS
    now i have managed to use tightVNC and manage remote desktop BUT that was when i was on the same network. Now my laptop lies at home and at school (work) i have windows running and want to access my mac at home. I cant manage to do that. Since i am on a different network and that i have router at home and also i do not use air port express (i use a linksys)
    I need a static ip which in need to know the DNS servers (adelphia dosent give that to me since i am not a business customer). I have enabled port forwarding (5900) i have even set up an an account with dysDNS.org (i dunno how that helped).
    can some one please give me with step by step instruction.
    thanks

    You already have most of what you need, but you do need a little more understanding of what you're doing.
    Keep in mind that the Microsoft Remote Desktop Connection client is one-way only. You can connect from a Mac to a Window XP Professional computer, but not from Windows XP Pro to Mac OS X. What I describe below is how to connect from a Mac on the Internet to a Windows XP Pro computer at home.
    First, Remote Desktop may look like VNC, but it's not the same thing. Therefore, port 5900, which works with VNC, won't work for Remote Desktop. You'll want to port forward 3389 to make this work. When you go to your router and make this port forward entry, you'll enter the IP address of the machine you want to direct all RDC traffic to. This gets the RDC traffic from your router to your computer.
    You went to DynDNS.org to help you find your router on the Internet. The IP address, as you've researched, can change. But if you set up your router to report its IP address to DynDNS then you can always connect to your router by name. You don't have to keep track of your IP address changing. DynDNS will do this for you. This gets the RDC traffic from you to your router.
    So, the steps are:
    1. Set up a DynDNS.org account and you'll give yourself a name such as "myrouter" so that you can use a name like "myrouter.homeip.net" to connect to your home network.
    2. On your router, port forward all incoming Internet 3389 traffic to the IP address and port 3389 of your computer.
    3. On your Windows XP Pro computer (you can't do this with Windows XP Home) enable the Remote Desktop Connection software (right-click My Computer --> Properties --> Remote tab --> select the second checkbox).
    4. From a Mac somewhere on the Internet, open the RDC client and enter the DynDNS name you gave yourself and click the Connect button.
    5. Your Mac will contact DynDNS and get your current IP address.
    6. Your Mac will then connect to your home router, which will forward all RDC traffic (coming in on port 3389) to your Windows computer in your home.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.4)  

  • HELP NEEDED PLEASE

    Hi everyone
    Programming help needed here. Any advice would be greatly appreciated!!!
    I have been assigned some work for a program called Processing 1.0 availale at http://processing.org/download
    I was give the 9 individual programs I needed to make however they were converted to Java files from .pde files. The program is based on Java but only runs .pde files and NOTHING else!
    I decompiled the files and got the source code, but it is a slight variation of the original someone made in processing, and needs some tidying to get it to run.
    I think the programs are very simple for a programmer, although I AM NOT.
    CODE is BELOW
    // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 02/05/2009 13:15:00
    // Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: Assign2_1.java
    import processing.core.PApplet;
    public class Assign2_1 extends PApplet
    public Assign2_1()
    SquareSide = 20;
    Rank = Nums.length;
    Side = SquareSide * Rank;
    Green = color(0, 255, 0);
    Yellow = color(255, 255, 0);
    BG = Yellow;
    public void setup()
    size(Side, Side);
    background(BG);
    fill(Green);
    for(int i = 0; i < Rank; i++)
    rect(i * SquareSide, 0.0F, SquareSide, SquareSide * Nums);
    public static void main(String args[])
    PApplet.main(new String[] {
    "--bgcolor=#ece9d8", "Assign2_1"
    int Nums[] = {
    6, 14, 8, 9, 2, 3, 4, 2, 8, 3,
    9, 2, 0, 5
    int SquareSide;
    int Rank;
    int Side;
    int Green;
    int Yellow;
    int BG;
    Edited by: chevy1 on May 2, 2009 7:32 AM

    HELP NEEDED PLEASEShouting is a good way ensure you don't get help. Also you should give a meaningful subject.
    Any advice would be greatly appreciated!!!I suggest you ask a question after providing enough information to be able to answer it.
    Also use CODE tags when posting code as it make the code more readable.
    We are more likely to help people who are trying to learn Java rather than someone who might be looking for an easy way out of doing an assignment.

  • After Effects SWF file appears black with no image. Only 2 layers in AE file (one that moves the other static). Please help!

    After Effects 5.5.
    I need this file as a swf but it appears black when I export.
    Only 2 layers in AE file (one that moves the other static). Please help!
    Thank you!

    Thanks for your response. Is there no other way to get the swf file to work properly from After Effects?
    What is the best way to go about using the MP4, F4V or FLV formats to save as a swf in Flash?
    Can you advise how I can save it to MP4, F4V or FLV from After Effects Creative Cloud? they don't seem to be visible (I also have creative cloud)
    Thank you very much

  • SQL Server2008 help needed

    Having trouble with SQLServer 2008 (not MySQL) and my database connection in Dreamweaver CS6.  My document type is set as .asp using VBScript.  I can list the table information  but cannot use the insert wizard to add new records.  I don't get any errors after creating the insert form, but no records get inserted.  I'm not a VBScript expert, but do I have to manually write some code to insert records?  How do I attach it to a button?

    Thanks for the quick reply.  I won't be back in the office for a few days, but I'll try to post it when I get back in.  It's pretty much the code generated from the Dreamweaver Insert Record wizard.  I see where the submit button is created and the value is set but the action on the form is set to MM_insert, so I don't see where the submit code is actually called.
    Date: Wed, 3 Oct 2012 12:06:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: SQL Server2008 help needed
        Re: SQL Server2008 help needed
        created by bregent in Dreamweaver General - View the full discussion
    This post should be moved to the app dev forum.  Please post the code from your form and the insert script pages.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4746757#4746757
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4746757#4746757
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4746757#4746757. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • JCmboBox setSelectedIndex help needed !!!!!!!!!!!!

    hi,
    I hope it's a trivial question but I am not able to solve it so need your help plz. I have a demo program if you run it you will see what I mean. Actually I am adding items to my JComboBox dynamically. My problem is that if I add the items with the same name and then explicitly set them selected my first item with same name is always highlighted and selected even though I say to select the last item which I add. But when I pull down the comboBox my first item with the same name is selected and highlighted not the last one. Please run the program and see. How can I solve this problem help needed.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ComboBoxDemo extends JPanel {
    JButton picture;
    public ComboBoxDemo() {
    String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };
    // Create the combo box, select the pig
    final JComboBox petList = new JComboBox(petStrings);
    picture = new JButton("ADD");
    picture.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    petList.addItem("TEST ");
                   int nodeTotal =     petList.getItemCount();
                   petList.setSelectedIndex(nodeTotal-1);
    setLayout(new BorderLayout());
    add(petList, BorderLayout.NORTH);
    add(picture, BorderLayout.SOUTH);
    setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
    public static void main(String s[]) {
    JFrame frame = new JFrame("ComboBoxDemo");
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}
    frame.setContentPane(new ComboBoxDemo());
    frame.pack();
    frame.setVisible(true);
    I want to select the last item I add even if there exists an item with same name.
    Any help is greatly appreciated.
    Thanks.

    never mind I got the answer.
    Tnaks

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • Help needed! Raid degraded again!

    Hi!
    Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
    What am I doing wrong!
    T: Ekku
    K8N Neo4 Ultra
    AMD 64 4200+
    2 Gb RAM
    2 x 250 Gb HDD (Maxtor)
    nVidia RAID (in mb)
    P.S. I wery SORRY with my poor language!

    I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
    Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
    LPB

  • HELP NEEDED WITH ADDAPTER-DVI TO VGA.

    PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
    ......THIS ENSURES NO SMOKE!!!                                                                                           
    THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
    ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!

    Quote from: BOBHIGH on 17-December-05, 09:21:31
    Get over it mate !
    I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
    And why bother to reply...some people have nothing better to do.
    Yes there chep and easy to come by...Ive already got a new one.
    All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
    NO NEED TO A WANKA !!
    I feel a bann comming up.
    Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
    Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
    You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
    Google = your friend.
    Quote from: BOBHIGH on 17-December-05, 09:21:31
    it was a simple question and required a simple answer
    Simple for who ? you (buying a new one) ? me ? we ?   .really...........
    Quote from: Dynamike on 16-December-05, 04:11:48
    1: There are allot of diffrent types of those adapters.
    If any of the mods have a problem about my reply.. please pm me.

  • Help needed for grouping.

    Hi,
        Help needed .
    I have an internal table having 6 .
    Ex :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  10    10
    a     aa    12    p1  20    20
    b     aa    11    p2  30    30
    b     aa    12    p2  40    30
    Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
    To Display :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  30    30.
    b     aa    11    p2  70    60.
    can anyone help me.How to do this..?
    Thanks

    Here you go
    DATA:
      BEGIN OF cur_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(2)     TYPE c,
        f6(2)     TYPE n,
      END OF cur_tab.
    DATA:
      BEGIN OF sum_tab OCCURS 0,
        f1        TYPE c,
        f4(2)     TYPE c,
        f5        TYPE p,
        f6        TYPE p,
      END OF sum_tab.
    DATA:
      BEGIN OF final_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(5)     TYPE c,
        f6(5)     TYPE c,
      END OF final_tab.
    START-OF-SELECTION.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '10'.
      cur_tab-f6 = '10'.
      APPEND cur_tab.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '20'.
      cur_tab-f6 = '20'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '30'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '40'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      LOOP AT cur_tab.
        MOVE-CORRESPONDING cur_tab TO sum_tab.
        COLLECT sum_tab.
      ENDLOOP.
      LOOP AT sum_tab.
        READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
                                    f4 = sum_tab-f4.
        IF sy-subrc NE 0.
          WRITE:/ 'Something went very wrong'.
          CONTINUE.
        ENDIF.
        MOVE-CORRESPONDING cur_tab TO final_tab.
        MOVE-CORRESPONDING sum_tab TO final_tab.
        APPEND final_tab.
      ENDLOOP.
      LOOP AT final_tab.
        WRITE:/1 final_tab-f1,
              AT 5 final_tab-f2,
              AT 10 final_tab-f3,
              AT 15 final_tab-f4,
              AT 20 final_tab-f5,
              AT 25 final_tab-f6.
      ENDLOOP.
    and the output
    a   aa   11   p1     30   30  
    b   aa   11   p2     70   60  

Maybe you are looking for