Rinse green beans thoroughly with water and cut the edges from both sides. Chop the beans into ¼ inch long pieces. Set aside.
Heat oil in a pan and add red dry chillies and mustard seeds. After mustard seeds start crackling, add urad dal and asafoetida. Sauté for few seconds or until urad dal starts getting golden brown.
Then add washed, drained and chopped beans, mix well. Add salt to taste and 2tbsp water. Mix and cover the pan with lid and keep the flame on low to medium. Let it cook until beans are soft, tender and cooked thoroughly. Make sure to stir in between. Cooking time will be anywhere between 15-20 minutes, depending on the type of beans.
Once beans are cooked, add chilli powder and sambar powder. Mix well and add grated coconut. Mix and let it cook for a minute. Adjust salt, if needed. Garnish with chopped coriander and serve hot with Roti.