As long as they're from a '79 or later with electronic ignition, they'll work fine. I wouldn't use one from a '78 or earlier points ignition because the primary winding has a higher resistance value. Points coils are around 4 ohms while the electronic ignition coils are around 1.7 ohms. Use the former on the latter and you'll lose output voltage.
Are you sure the coils are bad on your bike? The magnetic pickup coils (where the old points fit) have a bad habit of failing. I've been through several on my 1000. To check the coils, place the spark plugs on the engine, disconnect the hot wire to each coil (both coils have the same color hot wire) and with a jumper wire attached to the positive battery post, touch the coil hot wire. With the coil ground wire disconnected, momentarily touch the frame with it and the coil should fire. If it does, reconnect the hot wires and with the ignition switch on, again touch the ground wire and see if it sparks. If the coil is good, the plug should fire. If not, make sure the coils are being energized when the switch is on.
If the coils are ok, to check the pickups, turn the ignition on and use a metal screwdriver to momentarily touch the small metal protrusion on the inside of the pick. Each time you tap it, that particular coil should fire. However, it's unlikely that both pickups would fail simultaniously.
If the ignition coils are good and are being energized, then check the wire connectors between the pickups and the igniter. If the connector is clean, to check the igniter, turn the ignition on and touch a 12V + jumper wire to the blue wire on the igniter side while having the black wire connected to the ground. One ignition coil should fire. Then do the same with the yellow wire (12V+) and the red (ground) and other coil should fire.