How to remove extra spaces from Data Matrix Label?

Hi All,
Kindly let me know how we can remove extra spaces from Data Matrix Label.
Suppose we have this following code in SO10.
^FO1380,1879^COY,78^BY4^BXR,6,200^FH^FD[)>_1E06_1DF01001T_1D6JUN&v_huf&&v_hul&_1DV&v_supnum1&_1D16K&v_del&_1D6D&v_flddat1&095_1D2L&v_unload&_1D
P&v_article&_1D4L&v_madein&_1D_1E_04^FS.
Variable have there own value. and the desired result will be shown like the attachment.
But in my code it splits into new line when CMIR value has 3 spaces.
If CMIR value is 1S0 820 355 A . then it creats a new line.
Kindly suggest me any possible solution.
Thanks,
Partha

Hi Gaurav,
In print preview we can't see any space or new line. But when it scanned by TSB (barcode scanner) it will generate a new line when there is 3 space CMIR value.
So where should I write SHIFT CMIR LEFT DELETING LEADING space this code?
Because there is no space coming at the time of debugging or print preview.
And in SO10 the code written as
^FO1380,1879^BY4^BXR,6,200^FH^FD[)>
Here CMIR value is 1SO 820 303 A
and generated output is like this.
And desired output should be like this.

Similar Messages

  • Removing extra spaces from a long document

    Hello
    I have seen a number of find/change and GREP formulas to do similar things. I have NO scripting or coding experience and have labored to understand GREP.
    So I am a little afraid to use it as I don't know what all the modifiers refer to (I do have a printout of some neat GREP cheatsheets like Mike Witherell's that I can absorb until I obtain a good reference )
    I need something I can copy and paste into either find/change or GREP dialog that will do the following in less than 12 steps (hopefully) without doing something catastrophic like removing all of my paragraph marks (which I almost did using someones GREP expression)
    No spaces before any comma, period, exclamation mark, question mark, colon, semicolon
    One space only after any of those
    One Space before any opening parenthesis and one space after the closing parenthesis
    No space after the opening parenthesis or before the closing parenthesis
    Remove any double or extra spaces ( en, em etc.)
    Remove any commas before parentheses
    Remove any spaces after a paragraph mark
    I think that's it
    I did find this one recently (Maybe Jongware?)
    [~m~>~f~|~S~s<~/~,~3~4%]{2
    Which from my dim understanding addresses em, en, flush and hair space ,  nonbreaking space ,figure space,third space--not sure of the rest. Really this is way over my head.
    I know this will be a piece of cake for you guys
    Thanks

A: Removing extra spaces from a long document

Peter is too modest, he's doing just great.
No space BEFORE-One Space after ---period,semicolon,colon, exclamation, question mark,CLOSING Parenth,Bracket,Brace, single & Dbl. quotation marks
Find (\s)([.,;:!\)\]\}~}~]])
Replace with $2
No space AFTER-One Space Before----OPENING bracket,brace,parenthesis,Dbl & single quotes
Find ([\[\{\(~{~[])(\s)
Replace with $1
These remove the space before/after but do not automatically add a space after/before.
In the first case, you could add a space right after the '$2' in the Replace With string, but it already may have a space, in which case you suddenly have two. One alternative is to optionally remove it with the Find string (add it as an optional match) and always add it with the Replace string, but remember that this string will only be found if there is a space preceding it. That way you'd only check the space after in cases where there was a bad space before.
So I propose you add another two find/changes to add the space, only when necessary.
One Space After: find
([.,;:!\)\]\}~}~]])(?!\s)
replace:
$0 [followed by one single space]
One Space Before: find
(?<!\s)([\[\{\(~{~[])
replace:
[one single space] $0
Color-coding with my WhatTheGrep might make it just a tad clearer what's going on in that jumble of codes:
(1 [ .,;:! \) \] \} ~} ~] ] 1) (?!! \s !)
and
(?<!<! \s <!) (1 [ \[ \{ \( ~{ ~[ ] 1)
(Orange is lookahead/lookbehind, blue is a regular escaped character, pink is an InDesign special character, green is normal grouping parentheses, and lavender is a character group.)

Peter is too modest, he's doing just great.
No space BEFORE-One Space after ---period,semicolon,colon, exclamation, question mark,CLOSING Parenth,Bracket,Brace, single & Dbl. quotation marks
Find (\s)([.,;:!\)\]\}~}~]])
Replace with $2
No space AFTER-One Space Before----OPENING bracket,brace,parenthesis,Dbl & single quotes
Find ([\[\{\(~{~[])(\s)
Replace with $1
These remove the space before/after but do not automatically add a space after/before.
In the first case, you could add a space right after the '$2' in the Replace With string, but it already may have a space, in which case you suddenly have two. One alternative is to optionally remove it with the Find string (add it as an optional match) and always add it with the Replace string, but remember that this string will only be found if there is a space preceding it. That way you'd only check the space after in cases where there was a bad space before.
So I propose you add another two find/changes to add the space, only when necessary.
One Space After: find
([.,;:!\)\]\}~}~]])(?!\s)
replace:
$0 [followed by one single space]
One Space Before: find
(?<!\s)([\[\{\(~{~[])
replace:
[one single space] $0
Color-coding with my WhatTheGrep might make it just a tad clearer what's going on in that jumble of codes:
(1 [ .,;:! \) \] \} ~} ~] ] 1) (?!! \s !)
and
(?<!<! \s <!) (1 [ \[ \{ \( ~{ ~[ ] 1)
(Orange is lookahead/lookbehind, blue is a regular escaped character, pink is an InDesign special character, green is normal grouping parentheses, and lavender is a character group.)

  • Why can I not remove extra spaces from Mail when composing?

    I am using Mail Version 8.1 and I cannot find a way to remove extra spaces from between my lines while composing. Every Enter makes the cursor go down two lines and there is no way to type in the space in between. There seems to be now way to see the html or any tags that can be causing this, and I cannot seem to find any setting to change the line spacing either. Does anyone know where to find any of these options so I can simply make the text single space?

    Open a message-editing window. Under the Edit menu, deselect all the options in the Spelling and Substitutions sub-menus. Test.

  • Removing extra spaces from email attachment of text file

    Hi All,
    I am having a question in opening email attachment file in text mode.
    Whenever I am trying to open a CSV file in text mode after each row it adds blank spaces. These blank spaces are to complete the 255 characters on each row I guess.
    My client doesn't want these space. So can anybody tell how to remove those spaces?
    <removed by moderator> response would be helpful.
    Thanks and Regards
    Nishad
    Edited by: Thomas Zloch on Apr 28, 2011 4:02 PM - priority normalized

    Hi,
    There is no solution for this as u know that the data which you r sending in csv its actually getting populated from an internal table.
    You cannot make your internel table dynamic for this requirment.
    It should have a fixed length. Now if the data is less then also the length.
    So u have identified correct that because of 255 the blank space is population, nothing is in your hand.
    U have to convince the client, to make them understand where is the limitation.
    Thanks & Regards
    Prasenjit

  • How to remove extra spaces in a xml formatted string

    Hi,
    I am trying to remove extra spaces between the xml tags. For
    example, if a string is something like
    ' <header 1> <header 2> test </header 2> </header1>'
    I want to get rid of the spaces only between the closing tag of header 1 and opening tag of header 2 and closing tag of header 2 and opening tag of header 1, in short ,I want to remove the extra spaces between the tags if there are no other characters between them. I do not want the remove the spaces between closing tag header 2 and opening tag of header ,as there is occurence of other characters.
    I am aware that this can be done by looping through the string and using instr to identify the characters '<' and '>', but I would like to use it as a last resort only.
    Can anyone suggest me a better way of doing it in a single go by manipulating the data?
    Any help is really appreciated.
    Regards,
    Anil.

    You can use the replace function. If you only expect one extra space, then:
    scott@ORA92> select replace ('<header 1> <header 2> test </header 2> </header1>',
    2      '><', '><')
    3 from dual
    4 /
    REPLACE('<HEADER1><HEADER2>TEST</HEADER2></HEADER
    <header 1> <header 2> test </header 2> </header1>
    If you expect more extra spaces, then you will need to wrap another replace function around it for each space, for example the following will eliminate up to three spaces:
    scott@ORA92> select replace (replace (replace ('<header 1> <header 2> test </header 2> </header1>',
    2      '>     <', '><'), '>     <', '><'), '> <', '><')
    3 from dual
    4 /
    REPLACE(REPLACE(REPLACE('<HEADER1><HEADER2>TEST
    <header 1><header 2> test </header 2></header1>

  • How to remove empty space from a file

    Hi all,
    Can any one help on how to remove the blank spaces from a file.
    I used trim function but unable to remove the spaces.
    I have a file in which there is a name like 'JAIRAM' and am storing this file in a variable FILE_CONTENTS.
    Now am unable to compare FILE_CONTENTS with another value as it is storing empty spaces also from the file.
    Please help on this
    Thanks,
    Srini

    Trim only trim at the beginning or at the end. Can you try using the replace sql function.. see below..
    SQL> select replace('abc def',' ','') from dual ;
    REPLAC
    abcdef
    cheers

  • How to remove white spaces from XML content using Coldfusion?

    Hi,
    Can anybody help me in removing white spaces in between the tags from the below XML content using coldfusion?
    XML content:
    <?xml version="1.0" encoding="UTF-8"?> <chart showdates="true" today="08/12/2009"> <phases> <phase color="CCFFCC" name="Funded"/> <phase color="CDCD67" name="Concept"/> <phase color="99CCFF" name="Feasibility"/> <phase color="0099FF" name="Development"/> <phase color="0099FF" name="Development"/> <phase color="CC99FF" name="Close-out"/> <phase color="909090" name="Sustaining"/> </phases><program name=""> <project enddate=" 30/03/2007 " id="43250" startdate=" 28/02/2006 "> <version enddate=" 30/03/2007 " number=" 1" startdate=" 28/02/2006 "> <phase color="CCFFCC" currentdate="23/03/2006" name="Project Start" plandate="28/02/2006" type="phase"/> <phase color="99CCFF" currentdate="04/04/2006" name="Feasibility Closure" plandate="31/05/2006" type="phase"/> <phase color="0099FF" currentdate="29/03/2007" name="Commercialization" plandate="30/12/2006" type="phase"/> <phase color="CC99FF" currentdate="30/03/2007" name="Project Closed" plandate="30/03/2007" type="phase"/> <phase color="909090" currentdate="" name="Obsolescence" plandate="" type="phase"/> </version> </project> </program> </chart>
    Output I am expecting is like below,
    <?xml version="1.0" encoding="UTF-8"?><chart showdates="true" today="08/12/2009"><phases><phase color="CCFFCC" name="Funded"/><phase color="CDCD67" name="Concept"/><phase color="99CCFF" name="Feasibility"/><phase color="0099FF" name="Development"/><phase color="0099FF" name="Development"/><phase color="CC99FF" name="Close-out"/><phase color="909090" name="Sustaining"/></phases><program name=""><project enddate=" 30/03/2007 " id="43250" startdate=" 28/02/2006 "><version enddate=" 30/03/2007 " number=" 1" startdate=" 28/02/2006 "><phase color="CCFFCC" currentdate="23/03/2006" name="Project Start" plandate="28/02/2006" type="phase"/><phase color="99CCFF" currentdate="04/04/2006" name="Feasibility Closure" plandate="31/05/2006" type="phase"/><phase color="0099FF" currentdate="29/03/2007" name="Commercialization" plandate="30/12/2006" type="phase"/><phase color="CC99FF" currentdate="30/03/2007" name="Project Closed" plandate="30/03/2007" type="phase"/><phase color="909090" currentdate="" name="Obsolescence" plandate="" type="phase"/></version> </project></program></chart>
    Thanks in advance,
    Regards,
    Manoz.

    Daverms,
    Thanks for the quick turn around..
    I have applied the solution what you suggested above (<cfprocessingdrirective suppresswhitespaces="yes"), still whitespaces are existing in my output.
    The output what I am getting is,
    (blue color part is my output & red color indicates whitespaces)
    <?xml version="1.0" encoding="UTF-8"?>
    <chart showdates="true" today="09/12/2009">
    <phases>
    <phase color="CCFFCC" name="Funded"/>
    <phase color="CDCD67" name="Concept"/>
    <phase color="99CCFF" name="Feasibility"/>
    <phase color="0099FF" name="Development"/>
    <phase color="0099FF" name="Development"/>
    <phase color="CC99FF" name="Close-out"/>
    <phase color="909090" name="Sustaining"/>
    </phases>
    <program name="">
    <project enddate=" 01/01/2010 " id="12059" startdate=" 20/06/2003 ">
    <version enddate=" 01/01/2010 " number=" 1" startdate=" 20/06/2003 ">
            <phase color="CCFFCC" currentdate="20/06/2003" name="Project Start" plandate="20/06/2003" type="phase"/>
            <phase color="CDCD67" currentdate="" name="Concept Closure" plandate="" type="phase"/>
            <phase color="99CCFF" currentdate="20/06/2003" name="Feasibility Closure" plandate="20/06/2003" type="phase"/>
            <phase color="F0FF00" currentdate="" name="Alpha Test" plandate="" type="milestone"/>
            <phase color="F0FF00" currentdate="26/07/2004" name="Beta Test" plandate="31/05/2004" type="milestone"/>
            <phase color="0099FF" currentdate="29/06/2005" name="Commercialization" plandate="08/12/2004" type="phase"/>
            <phase color="CC99FF" currentdate="24/02/2006" name="Project Closed" plandate="01/01/2010" type="phase"/>
            </version>
    <subproject enddate=" 16/10/2008 " id="11809" name="espWatcher Pricing Toolkit" startdate=" 01/08/2003 ">
    <version enddate=" 16/10/2008 " number=" 1" startdate=" 01/08/2003 ">
            <phase color="CCFFCC" currentdate="01/08/2003" name="Project Start" plandate="01/08/2003" type="phase"/>
            <phase color="99CCFF" currentdate="" name="Feasibility Closure" plandate="" type="phase"/>
            <phase color="0099FF" currentdate="15/06/2005" name="Commercialization" plandate="08/12/2004" type="phase"/>
            <phase color="CC99FF" currentdate="16/10/2008" name="Project Closed" plandate="16/10/2008" type="phase"/>
            </version>
    </subproject>
    <subproject enddate=" 31/12/2070 " id="35704" name="espWatcher version 2 (2005)" startdate=" 01/01/2005 ">
    <version enddate=" 31/12/2070 " number=" 1" startdate=" 01/01/2005 ">
            <phase color="CCFFCC" currentdate="01/01/2005" name="Project Start" plandate="01/01/2005" type="phase"/>
            <phase color="99CCFF" currentdate="01/07/2005" name="Feasibility Closure" plandate="01/07/2005" type="phase"/>
            <phase color="0099FF" currentdate="31/03/2006" name="Commercialization" plandate="31/03/2006" type="phase"/>
            <phase color="CC99FF" currentdate="31/12/2070" name="Project Closed" plandate="31/12/2070" type="phase"/>
            </version>
    </subproject>
    </project>
    </program>
    </chart>
    However this solution removes most of the whitespaces, I want exact output as flash file is expecting so..
    Where ever I am calling the CF functions, there I am getting the whitespaces. like below cases.
    startdate="#getProjectStartDate(sProjectIdList)#" -> output I am getting for this statement is -> " 12/09/2009 "
    Please assist me...
    Regards,
    Manoz.

  • How to remove time zone from date time column?

    Hello all,
    I have one birthday calendar list where I am showing birthdays of employees in acompany.
    Now when I display Date in a page I am getting the below output:
    Fri Sep 19 2014 00:00:00 GMT-0700 (Pacific Standard Time)
    Here I just want the below thing as an output:
    Fri Sep 19 2014
    the other things like 00:00:00 GMT-0700 (Pacific Standard Time)
    How should I achieve it?
    Thanks in Advance.

    Hi
    you should use XSLT datetime formatting
    http://amavs.wordpress.com/tag/formatdatetime/
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Remove extra space

    Hi master,
    how to remove extra space from the tables and columns
    thanks

    Apparently table and/or column names that have been created don't match those being used in queries.
    This typically happens when you use tools that generate scripts with object (table/column) names in "double-quotes" thus causing them to be CaSe-SeNsItIvE to Oracle.
    See this short demo of sensitive object names :
    SQL> create table "My Table"  (col_1 varchar2(5));  -- Sensitive Name used
    Table created.
    SQL> desc my table 
    Usage: DESCRIBE [schema.]object[@db_link]  -- cannot find an object by the name "my table"
    SQL> desc "My Table"  -- I must explicitly use the Sensitive Name now !!!!
    Name                                                                     Null?    Type
    COL_1                                                                             VARCHAR2(5)
    SQL> desc "MY TABLE"  -- The name does not map across CASE either !
    ERROR:
    ORA-04043: object "MY TABLE" does not exist
    SQL> create table MY TABLE (col_1 varchar2(15));  -- Normally, object names cannot contain spaces !
    create table MY TABLE (col_1 varchar2(15))
    ERROR at line 1:
    ORA-00922: missing or invalid option
    SQL> create table MY_TABLE (col_1 varchar2(15));  --- this is the correct way to name an object.  DON'T USE "double-quotes" ; DON'T USE SPACEs
    Table created.
    SQL> desc MY_TABLE  -- the properly named
    Name                                                                     Null?    Type
    COL_1                                                                             VARCHAR2(15)
    SQL> desc "My Table"  -- the first , Sensitive name
    Name                                                                     Null?    Type
    COL_1                                                                             VARCHAR2(5)
    SQL>Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • How do I remove extra profiles from color mangement in Print Module?

    How do I remove extra profiles from color mangement in Print Module?

    If you're talking about the "short list" then click on other and then uncheck the ones that you don't want displayed. If you're talking about the long list, then you will have to browse to the folder containing the profiles and then delete them manually.

  • How to find the extra spaces from personal computer?

    I cannot update Adobe new items since the box window told me that there were no spaces from my computer. Who can teach me how to find the extra spaces from my computer? Besides, there are 1/3 spaces for IOS, 1/3 spaces for virtual computer and 1/3 spaces for Adobe in my computer. No any photos and movies  in my computer now.

    I do not understand the question... what do you mean by spaces?
    What size is your hard drive, and what does your system tell you about unused hard drive space?

  • Remove extra space value of the field  in text element

    Dear All,
    Can any one please help me out to remove the blank spaces in the text elements of SF.
    we are printing Label in which i want print  quantity of material. and i am using MSEG-MENGE for quantity of maetrial.
    But the issues is when we are printing the label. We are getting spaces  in the Text elements fields &MSEG-MENGE&.
    i am also check menge field within mseg table. in which menge field define as QUAN data type with length 13.
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&          
    UOM:&t_MSEG-MEINS&
    >
    My Output in SF:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:             960
    UOM:LBM
    MIGO.NO.:4900000025
    how to remove extra blank spaces in the text elements ( QTY:             960 )
    guide me.........

    Dear All,
    I am using  code block in SF before text element.
    In  The Text Element ...
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&
    UOM:&t_MSEG-MEINS&
    MIGO.NO.:&t_MSEG-MBLNR&
    PO.NO.:&t_MSEG-EBELN&
    LOCATION:&t_MSEG-WERK&&NAME1&
    >
    In programe Line ( code block )....
    <
    read table t_mseg index w_index.
    qty = t_mseg-menge.
    condense qty.
    SELECT SINGLE name1 FROM t001w INTO name1 WHERE werks = t_mseg-werks.
    SELECT SINGLE maktx FROM makt INTO maktx WHERE matnr = t_mseg-matnr.
    >
    My Output:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:                                                      960
    UOM:LBM
    MIGO.NO.:4900000025
    Only problem in value of Quantity field .
    guide me.........

  • IDCS5-JS:Remove extra space in equation

    How to remove around space [extra space] in equations eps file generated from Mathtype when placing it in InDesign.
    Any suggestions....

    Hello
    The simplest way is...
    Open Windows registry, find key
    HKEY_CURRENT_USER\Software\Design Science\DSMT6\Windows
    Now you can change
    PicturePadding
    The default is 2 (possible points, but I don't sure), but you can change it (0 - to delete all paddings).
    BUTdon't forget to process all your equations (after PicturePadding was changed) in Word (by Format) or in InDesign (by Batch convertion... - it's possible if you use MT-Script for InDesign (www.mtscript.ru))
    And only after that you will see equations without paddings.
    Thank you.

  • How to remove sd card from iMac

    hi how to remove sd card from imac ,thanks

    If your machine is in warranty, be careful not to do anything more that might damage it when removing it from the optical drive.  You might even be able to convince an authorized service technician to carefully remove it under warranty from the optical drive.  It is a design issue that lets people accidentally insert the SD card in the optical drive.   Of course if that's the only copy of your information on the SD card, be sure to let them know that, so they are extra careful not to damage it when removing it.

  • How to remove a node from nlb at runtime?

    hello,
    i need to temporally exclude a node from an nlb.
    May happen that a server is up and working but the web application i'm balancing is out of sinch with the same application in the others nodes.
    Eg. some static variables are not the same of the same static variables of other nodes, because of a timeout, a write error and so on but the server is still working.
    in this case i need to stop the server from nlb because the information in the web application is not in sinch with other nodes.
    I need to prevent users from being serverd from this out to date server, untill it will became updated, but i need to do this programmatically
    how can i do it?

    "DuoMi" <[email protected]> wrote in message
    news:gnojbf$2sg$[email protected]..
    > How to remove a node from XMLList
    >
    > I want remove the first node from XMLList
    >
    >
    > and how to get the combobox all values string:
    >
    > <data>
    > <value>2</value>
    > </date>
    > <data>
    > <value>5</value>
    > </date>
    > <data>
    > <value>8</value>
    > </date>
    >
    > I need a string whit value "2,5,8"
    >
    > thkan you.~
    I think something like
    comboBox.dataProvider..value.toString()
    will work.

  • Maybe you are looking for

    • Quantity transfer one material code to another

      dear all, how i can transfer the quantity and value of same material type and valuation class and same price control from one code to another code same plant same storage location. regards, qsm sap

    • Use of US-prepaid card with german iTunes account

      I'm from Germany and vacationing in the US right now and I'm thinking about buying a pre-paid card for the iTunes Music store. I like the US-store much better (much bigger selection)and I was not able to set up a us account without a us credit card.

    • Safari Crashing for me too!

      I've had issues with Safari crashing upon being launched. The good news, I think, is that when I log into another account Safari works perfectly. I hope someone can help. Here is the the first half of the crash report. Date/Time: 2009-04-16 09:50:24

    • ABAP/4 processor: MESSAGE_TYPE_X while creating bulk shipment cost

      Hi All, while bulk shipment cost creation using SAP program    'ROIGTRSL' in background , some jobs are failing very raarly in prodcution, if i check in job log it's showing message 'ABAP/4 processor: MESSAGE_TYPE_X' how to avoid this error, is there

    • Replace chmod 666 /dev/dri/card0 with udev rule [Solved]

      Hello everyone ! , im configuring my xorg.conf to use 3d, i have a S3 Unichrome Pro (K8M800) chip , and i have it working right now , but in the manual that i read to do this theres a hack that i want to do the right way: Link a. First, the permissio