A total of 120 patients diagnosed endoscopically with non-ulcer dyspepsia with H. pylori infection were randomly assigned into two groups , one treated with amoxicillin 1 g thrice daily plus rabeprazole 10 mg twice daily ( R10A group ) or 20 mg twice daily ( R20A group ) for 14 days .