How you achieve this can vary depending on how you’re presenting the data to the user in an MEP App.
If you’re using a Form to present the information, the text box control has a multiline option you can enable which should allow CR/LF characters to split lines, if this is where you’re placing the scanned text. As long as you don’t have a keypress option on the textbox checking for an enter key, you can scan the entire barcode into the textbox (single line or multiline). Optionally, you can make the text box contents read-only or allow users to edit the text.
Of course, there are a lot more options on the text box control. More about the Forms Text Box control is published in our docs pages, which you can access through registration OR the help icon from your MEP Application Studio.
If you’re using a standard screen item, for a simpler prompt and response App, then you will need to substring segments of the text and assign each segment to a line on the screen element. You will want to use a substring count to account for the number of columns your users Mobile Client screen settings are configured to and likely want to account for things like spaces, so you don’t split a word across lines. Conditionally adding hyphens if you do wish to and have to split words across lines also makes scripting for this a bit more challenging. Unfortunately, I don’t have any samples to demonstrate this here.