12-29-2005 5:39 PM
Hello everyone,
I have a Form that will output a bar code. That bar code is composed of 4 fields from a table that are concatenated into a string. The problem is that the client wants to read the bar code and have an output with 4 distinct lines on screen.
So, i need to add to my result string 3 carriage returns/line feeds. How do i do that ?
12-29-2005 5:45 PM
Hi Nuno,
When you concatenate try using the abap char utility for newline as well.
i.e CL_ABAP_CHAR_UTILITIES=>NEWLINE.
concatenate field1
CL_ABAP_CHAR_UTILITIES=>NEWLINE
field2
CL_ABAP_CHAR_UTILITIES=>NEWLINE
field3
CL_ABAP_CHAR_UTILITIES=>NEWLINE
field4
into v_result.
Regards,
Ravi
12-29-2005 5:45 PM
Hi Nuno,
When you concatenate try using the abap char utility for newline as well.
i.e CL_ABAP_CHAR_UTILITIES=>NEWLINE.
concatenate field1
CL_ABAP_CHAR_UTILITIES=>NEWLINE
field2
CL_ABAP_CHAR_UTILITIES=>NEWLINE
field3
CL_ABAP_CHAR_UTILITIES=>NEWLINE
field4
into v_result.
Regards,
Ravi
12-29-2005 5:48 PM
Hi
See the BARCODE you need by trx SE73.
So you should use that barcode as chararcter type when you print your output.
Max
12-29-2005 6:00 PM