Urgent! Stall problem

Hello! I had a problem with my nissan micra k11 1.3 automatic. It stalls when i change gears from R or N when i put at D. It stalls only when i put on D it doesnt stalls when is on on N R and P. It stalls when is warm and only a few times not in regular i had to switch on and off a few times to drive. What can be the cause? The gears working fine and oil gears it is better no sign of burning or dark. Some people said that may be transmission problem? Is it true? Do i need a new transmission?