This post is just to Thank you all for your help and information.
With your input l got a a better understanding how the check engine light and the code numbers work in relation to faults.
I didn't get the bike into the dealer for the diagnostic, they called me and said that the machine was down for repair and rebooked for the 30th of the month.
So, I had a think about it (it didn't hert to much😂) and the codes that were coming up along with the check engine light coming on with acceleration, I decided that it could be plugs and air filter intake combination.
I went to Harley and got plugs and air filter. I installed them yesterday then took the bike for a run l pushed it harder than l normally would,.... well no check engine light in any gear when I got back home l checked for any codes and all was clear.
I'm back to being a happy rider,....... I wouldn't have been able to sort it with out your help because I didn't understand the codes l think I have a better understanding of them now. Thanks guys