Haworth projections are most commonly used for carbohydrates and their derivatives that are capable of forming a cyclic hemiacetal or a hemiketal. Lactone derivatives of carbohydrates can also be represented with Haworth projections.
Your opening post mentioned ribosic and arabinosic acid, which are both carboxylic acid derivatives. However, the product of your scheme cannot be either of these two molecules for two reasons. One, the product is an amide, which is related to but not identical to a carboxylic acid. Two, ribosic and arabinosic acids are derived from ribose and arabinose via the oxidation of carbon-5. The product you drew could be derived from ribose or arabinose by oxidation of plus addition of an amine group to carbon-1, which is at the opposite end of the molecule. I am having a difficult time relating what you wrote to what you drew.