Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TABSPACE between FIELDS in BARCODE

Former Member
0 Likes
1,613

Hi Experts,

I am printing a barcode label containing multiple fields through smartform.

I want to separate fields to be displayed with TAB space.

i tried with cl_abap_char_utilities=>HORIZONTAL_TAB.

but the output which is getting scanned is showing ' # ' in between the fields and i want tabspace.

Any suggestions friends?

Thanks in advance.

Srikanth.

2 REPLIES 2
Read only

Former Member
0 Likes
590

In the Paragraph Format tab, create a new paragraph format. In the "Tabs" Tab, enter the tab position and the alignment for the fields.

You can define as many tab positions as you require for each paragraph format. The text can be aligned in different ways:

Left-aligned with LEFT

Right-aligned with RIGHT

Centered with CENTER

At the sign with SIGN

At the comma or decimal point with DECIMAL

You can control the tab feed in a paragraph with tab positions. The tab stops you define in the paragraph format replace the tab spacing you defined in the header data of the form. However, this depends on the extent to which you have defined tab stops in the paragraph format. If there are fewer tabs in the paragraph formats than in the header data, the tab stops of the header data are used for the rest of the line. The tab stops are represented as, , in the text editor.

You can use different units of measurement to define a tab position:

CH Characters

CM Centimeters

MM Millimeters

PT Points

TW Twips (1/20 point)

The unit of measurement CH is converted to an absolute unit of measurement using the CPI value (characters per inch) from the header data of the form.

Read only

Former Member
0 Likes
590

Dear Srikanth,

   For putting TAB and NEWLINE in Barcode we can use Hexa Decimal. I am giving example , i am using ~ tiled sign for field seperation, this can be used as per required guide line.:

   CONCATENATE g_docno '~' exdat_c '~' blwbno '~' j_1iexchdr-exnum  '~' exdat_c '~' '\0x09' '\&' 

                             vbak-bstnk '~' poitem '~' barcodeqty '~' 'TO' '~' lips-aeskd '~' batchno '~' manufdate_c '`'

  INTO barcodetext.

Please Note that:

1. This Hexa decimal '\0x09' is used for TAB definition

2.  '\&' is used for new line feed, this is basically (Carriage Return + Newline) as per SAP Note 645158 - New bar code technology.

   On place of '\&' we can use these two code with togather '\0x0D' '\0x0A' which means we give instruction first do Carriage Return ('\0x0D') then feed the New line '\0x0A' .But intresting part is that UNIX based system understand '\0x0A' means (Carriage Return + Newline) where as window based system does not so we have to give to Hexa decimal like '\0x0D' '\0x0A' together.

I have seen This class cl_abap_char_utilities=>HORIZONTAL_TAB does not work properly nither for TAB nor For NEWLINE.

Hope this will help to many who got problem with BARCODE (NEWLINE and TAB)

Regards

Vinod K Dwivedi

Message was edited by: Vinod Dwivedi