About 20,000 members will take strike action on 26 August and 2 September over pay and conditions.