Former Australian soldier Ben Roberts-Smith will on Wednesday appear in court for the first time after being charged with alleged war crimes.