@DavidD66
If you enter code P it's not going to work because P is for prior, and that would be 2022.
You correctly said it should go on your 2023 tax return.
cc: @radzik