In a small bowl, mix the soy sauce, sesame oil, and rice. Set aside.
In a large skillet or wok heat oil over medium-high heat, heat vegetable oil and add onion. Cook until just tender.
Move onions off to the sides of pan to form a circle and pour egg in middle. Begin scrambling the egg, and when they begin to solidify, add the rice mixture and cook 1-2 minutes.
Add ham, bean sprouts (if using). Toss to combine ingredients and heat through. Serve immediately with garnish of freshly chopped green onions.