Bar One and Zebra (Duplicate label issue)

Hello,
Can anyone tell me how to keep the zebra ZM4 from printing a duplicate label when I run my ABAP to print a bar code label it prints two.  Thanks.

Hi Rich here is the SAP Script code.
/:   NEW-PAGE                   
/    ^XA                        
/    ^XFZ_BARO-1.ZPL            
/    FN999FD&V_DATA-LGORT&^FS 
/    FN998FD&V_DATA-LGPBE&^FS 
/    FN997FD&V_DATA-MATNR&^FS 
/    FN996FD&V_MARA-MAKTX&^FS 
/    FN995FD&V_MARA-MFRPN&^FS 
/    ^PQ1,0,1,N                 
/    ^XZ                        
/    ^FX End of job             
Here is the ABAP Code
REPORT ZMMSBARC .
REPORT:              ZMMSBARC
DATE:                08/27/2004
DEVELOPER:           Rashid K
PROGRAM DESCRIPTION: This Program prints Material master
                      information and barcodes on
                      lables using Barone Software for barcoding.
MODIFICATION LOG
DATE        DEVELOPER    CORRECTION  DESCRIPTION
08/27/2004  Rashid K     DEVK907935  Program Creation
TABLES DECLARATIONS
TABLES: MBEW,
        MARD,
        MARA,
        MAKT.
VARIABLE DECLARATIONS
DATA: V_MATNR(18) TYPE C.
INTERNAL TABLE DECLARATIONS
*Table to hold material inventory data
DATA: BEGIN OF V_DATA,
           MATNR LIKE MARD-MATNR,
           WERKS LIKE MARD-WERKS,
           LGORT LIKE MARD-LGORT,
           LGPBE LIKE MARD-LGPBE,
           MFRPN LIKE MARA-MFRPN,
           MAKTX LIKE MAKT-MAKTX,
      END OF V_DATA.
DATA: I_DATA LIKE V_DATA OCCURS 0.
*Table to hold material master information
DATA: BEGIN OF V_MARA,
        MATNR LIKE MARA-MATNR,
        MFRPN LIKE MARA-MFRPN,
        MAKTX  LIKE MAKT-MAKTX,
     END OF V_MARA.
DATA I_MARA LIKE V_MARA OCCURS 0.
*Selection screen.
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-000.
SELECT-OPTIONS: S_MATNR FOR  MARD-MATNR MATCHCODE OBJECT MAT1
                 OBLIGATORY,
                S_BIN FOR  MARD-LGPBE,
                S_WERKS FOR  MARD-WERKS OBLIGATORY,
                S_LGORT FOR MARD-LGORT OBLIGATORY.
PARAMETERS: P_DELETE AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK 1.
EVENT: INITIALIZATION
INITIALIZATION.
EVENT: START-OF-SELECTION
START-OF-SELECTION.
*Select data from inventory table, sto loc level
  SELECT MATNR
         WERKS
         LGORT
         LGPBE
         FROM MARD
         INTO TABLE I_DATA
         WHERE MATNR IN S_MATNR AND
               WERKS IN S_WERKS AND
               LGORT IN S_LGORT AND
               LGPBE IN S_BIN AND
               LVORM = P_DELETE.
  DESCRIBE TABLE I_DATA LINES SY-DBCNT.
  IF SY-DBCNT = 0.
     MESSAGE I001(ZV).
     EXIT.
  ENDIF.
*select material master data
  SELECT MARA~MATNR
         MARA~MFRPN
         MAKT~MAKTX
         INTO TABLE I_MARA
         FROM MARA INNER JOIN MAKT ON
             MARAMATNR = MAKTMATNR
         FOR ALL ENTRIES IN I_DATA
         WHERE MARA~MATNR = I_DATA-MATNR.
EVENT: END-OF-SELECTION
END-OF-SELECTION.
  DATA V_PRINTER LIKE ITCPP.
*open form for writing
  CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            FORM                        = 'Z_INV_LABEL'
       IMPORTING
            RESULT                      = V_PRINTER
       EXCEPTIONS
            CANCELED                    = 1
            DEVICE                      = 2
            FORM                        = 3
            OPTIONS                     = 4
            UNCLOSED                    = 5
            MAIL_OPTIONS                = 6
            MORE_PARAMS_NEEDED_IN_BATCH = 7
            INVALID_FAX_NUMBER          = 8
            OTHERS                      = 9.
  IF NOT V_PRINTER-TDPRINTER CS 'ZLB'.
    MESSAGE I000(ZV) WITH 'Printer'
                           V_PRINTER-TDDEST
                          'is not a label printer.'
           'Choose the correct output device to contiune.'.
    EXIT.
  ENDIF.
Loop at data to write.
  LOOP AT I_DATA INTO V_DATA.
Get material master information
    READ TABLE I_MARA INTO V_MARA WITH KEY
                      MATNR = V_DATA-MATNR.
    CHECK SY-SUBRC = 0. "Ensure material master record exists
*Code to delete leading zeros in material number
IF V_DATA-MATNR(1) CS '0'.
    PACK V_DATA-MATNR TO V_MATNR.
ELSE.
   MOVE V_DATA-MATNR TO V_MATNR.
ENDIF.
    SHIFT V_MATNR LEFT DELETING LEADING SPACE.
    WRITE V_MATNR TO V_DATA-MATNR.
*Write to sap script form
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              WINDOW                   = 'MAIN'
         EXCEPTIONS
              ELEMENT                  = 1
              FUNCTION                 = 2
              TYPE                     = 3
              UNOPENED                 = 4
              UNSTARTED                = 5
              WINDOW                   = 6
              BAD_PAGEFORMAT_FOR_PRINT = 7
              OTHERS                   = 8.
  ENDLOOP.
*close form from writing
  CALL FUNCTION 'CLOSE_FORM'
       EXCEPTIONS
            OTHERS = 1.

Similar Messages

  • IPad2 and iPhone4 upgrade to iOS 5.0.1 and iCloud-- duplicate app issues

    I upgraded my MacBook Pro to lion a while back (have had lots of problems ever since, but that's another story).  Recently synced and upgraded my iPad 2 and iPhone 4 to iOS 5.0.1 and iCloud.  This has resulted in some of my apps on both devices seeming to have duplicates.  How can I determine if these are true duplicates and which can be eliminated?   How do I get rid of apps I don't want?

    The easiest way is in iTunes.
    In your iTunes Library, clickApps on the left hand side. That'll give you the full list, so the first thing you can see is whether you have duplicates in iTunes. I suggest you show the Version and release Date columns (right click a column header and choose them from the list) so you can see whether you have multiple versions.
    If you have 2 the same, one might be for iPad and one for iPhone - not all apps are Universal.
    Once you're happy that list is straight, connect the devices to iTunes, go to the Apps tab for each device, and uncheck the ones you don't want on that device
    Hope that helps

  • Bar one software to design labels

    Hi all,
    Has anyone ever worked with barone software to design labels ? I have a small doubt in that. I have an fixed text on the label. How do I rotate that ? I am trying to modify an existing label in whihc the text is rotated. Now I want to rotate the horizontal text to be in the orientation of other text. Can anyone explian me how to do that.
    <b>* Points for sure.</b>
    Thanks and REgards,
    Varun.

    I don't use BarOne,  rather I code the ZPLII code directly into the sapscript.  Here is how you would rotate the text.
    In your alphanumeric font instruction the "a" value is the orientation.
    ^Ax<b>a</b>,b,c
    values for "a" are....
    N = Normal
    R = Rotate 90 degrees clockwise
    I = Inverted, 180 degrees
    B = Read from bottom up, 270 degrees.
    So for example.....  Here is a line of code
    ^FT500,2950^<b>A0<u>R</u>,550,550</b>^FD60000034^FS
    Regards,
    Rich Heilman

  • Drag and drop/duplicate warning issues

    I am finding itunes extremely frustrating at the moment. For some reason its not telling me when I am about to add the same song to my library. I am cleaning up my folders to save space. I am pretty sure that in the past i have been able to selct an album, drag and drop it into my itunes library and if it was already there itunes would warn me. Then i could just delete the album in the knowledge that i have it in my itunes library. I have just drag and dropped the exact same song in to my library 3 times with no warning. Why? Is there a setting that I have missed? I am using itunes 11.1.5. Thank s in advance

    Please provide more details and/or examples.
    Ciao.

  • Bar-One or the Zebra Designer for mySAP

    Hi people,
    I have to make a sapscript to transaction S_ALR_87010137 and print it on Zebra printer.
    I have figured out the I need to program MAIN window with ZPL programing language to make the bar code and the logo...
    I've seen that there is a zebra software we can use to draw the label and then import to SAP...
    It's the Bar-One or the Zebra Designer for mySAP, BUT I haven't find any link with those programs, even on zebra.com
    I only found the user Zebra Designer witch doesn't export labels to ITF format
    Someone know where can I find those softwares?
    Thank you very much.

    Hello,
    You can check the following url link:
    [http://www.zebra.com/id/zebra/na/en/index/products/software/discontinued.html]
    [http://www.zebra.com/id/zebra/na/en/index/products/software/discontinued/bar_one_discontinuation.html]
    Regards,
    David

  • LineChart and -fx-text-fill issue: how do I change the color of the labels

    Hello everyone,
    I'm currently facing an issue when I'm trying to style my LineChart with some CSS. Indeed I would like to change the color of the labels of my xAxis (CategoryAxis) and yAxis (NumberAxis) but it's not working.
    In my FXML file I tried to use the style attribute on my LineChart tag using: <LineChart style="-fx-text-fill: white"> with no result, the text remains black (even for the title of my chart). In order to know if the style attribute is well parsed I changed it to: style="-fx-background-color: red; -fx-text-fill: white;". The background is becoming red but the text still remains black.
    Finally I tried to define a stylesheet in my controller class with the same properties (red background and white text). My stylesheet is this one:
    .chart {
        -fx-text-fill: white;
        -fx-background-color: red;
    }In my controller I do the following line in order to load my CSS file:
    this.chart.getStylesheets().add(getClass().getResource("statistics-style.css").toExternalForm());Even with this option the text remains white, while the background becomes red.
    What I also tried is to put the -fx-text-file CSS property directly on my axises, but again it seems it is ignored.
    I followed the steps described in Figure 8-2 of this site: http://docs.oracle.com/javafx/2/charts/css-styles.htm
    Does anybody have an idea or encountered this issue?
    Thank you very much,
    Thierry.
    PS: I'm using JFX 2.1 on MacOS X
    Edited by: twasyl on May 8, 2012 7:57 AM
    Edited by: twasyl on May 8, 2012 7:59 AM

    Hi,
    I figured a solution out to solve my problem. Currently in the documentation it is said to redefine the .chart CSS class in order to change the color of the title and labels text. But this is not working. Strangely the following code changes the font-size of both title and labels but ignores the -fx-text-fill property:
    .chart {
      -fx-font-size: 20pt;
      -fx-text-fill: white;
    }In order to change the color of the title I override the .chart-title CSS class:
    .chart-title {
      -fx-text-fill: white;
    }And for the labels:
    .axis-label {
      -fx-text-fill: white;
    }Well I don't know if there still is a bug on the .chart CSS class or maybe that behavior is expected.

  • IOS 5 and duplicate album issue.

    I have an iPod Touch 4 64gb.  After upgrading to iOS 5, I have a few albums that are now duplicated in the iPod music player*.  When it's connected to iTunes, there are no duplcate albums in the music list; it's got exactly what I have on the syncing computer. While the iPod had iOS 4, it didn't have any of these duplicate album issues.
    The iPod was 'reset' after upgrading the OS, so everything was freshly synced.  Also, I made sure that all the album information (artist, etc) was entered via selecting the whole album and using the 'get info' to enter it into all the tracks simulnateously, so there aren't any extra spaces in some tracks that might cause the software to see them as 'different albums' somehow.
    I've also deleted the offending albums by using the 'sync manually' option, then reloading them onto the iPod, which then brings back the duplicate albums on the iPod (even though, again, the music list in iTunes shows the iPod as only having one copy).  And, if I start playing one track on one of the duplicates, pause it, go to the same track on the other duplicate, it picks up exactly where it paused on the first - so, again, its not actually duplicating tracks, justs the specific album particulars.
    Just to reiterate: There were no duplicate entries in the iPod music app under iOS 4.  I didn't change any album info before updating.  The duplicate entries only started showing up after updating to iOS 5.
    *The duplicate albums seem to have a missing track (with one having 3 missing tracks).  Again, I made sure to enter all the album information with all tracks highlit so they all got the exact same informaiton without spaces, extra characters, etc.

    Okay, I solved this issue as far as my iPod is concerned.
    I decided to re-rip one of the album sets having the issue (I wanted it as lossless on my PC anyway, so it was due).  Once it was ripped, I noticed that one of the tracks on the albums in the set was separated in iTunes, even though I'd made sure that the artist and album name were set using Get Info on all the tracks simultaniously.  Apparently, each of the tracks on the album was marked as part of a compellation (even though only 1 of the 8 tracks had its own entry in the cover carousel).  After unchecking that, it was back to one album in the carousel.  Synced to the iPod and no duplicate album anymore.
    I checked the other album having the issue and 3 of the tracks had the compellation checkmark checked.  That album did *not* have separate entries in the carousel.  After deleting those checkmarks, deleting the album from the iPod and re-syncing, it now shows up properly.
    So, in my case, it seemed that errant compilation entries was the issue, which is odd anyway, because I didn't check that at all.  It must have come from the album ID when they were ripped for some reason.

  • TS4020 I have an old loaded itunes account and and a new bare one. Trying to restore backup from my old loaded account with out losing data on device. How do I do it?Would icloud help? and How?

    I have an old loaded itunes account and a bare one.Trying to restore backup to my new iphone 5 from old itunes acoount. Don't want to erase my handset and backup but it's the only option im given. I have about 5GB on this iphone that I don't want lost. How do I retain what's on my iphone and still restore backup to get all my info from the old account?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • I've been having an issue of connecting to wifi. I have restored and set up my phone as a new one and i still can't connect. Also i have restored my network setting also. The wifi button is still grey and i cant switch it on or off.

    I've been having an issue of connecting to wifi. I have restored and set up my phone as a new one and i still can't connect. Also i have restored my network setting also. The wifi button is still grey and i cant switch it on or off.

    Hi _Pchay,
    Accordign to the artcle below, it looks like you have done all the troubleshooting steps and your next step may be to contact Apple Support. 
    iOS: Wi-Fi settings grayed out or dim
    -Griff W. 

  • I have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any sugg?

    i have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any suggestions?

    This problem has been reported a few times. The solution is to install any new App say a free one. This seems to fix whatever has gone wrong.

  • .Issue with creating a photo book in Iphoto error message states some frames are missing images, but I've checked each one and from I can see they are all filled in. It won't let my buy the book though

    Having an Issue with Creating a photo Book in Iphoto. I continue to get an error message when clicking on "Buy Book" The error indicates that I'm missing a frame or frames from the book. I've checked this many times and cannot locate the issue. The book appears to be complete from my perspective. What can I do now? I worked very hard on this and would hate to lose it all.

    How did you check the book? Did you preview it?
    See:
    iPhoto, Aperture: Previewing an order in iPhoto or Aperture
    Is that the message?
    "your book seems to have frames on one or more pages that do not contain photos. You must either change the layout of those pages or place photos in those frames before you can buy this book."
    The most common reason for this error is, that you have used a page layout that needs a background photo and you have not yet added the backdrop. Then the book is still showing some default grayscale image.
    Check, if one of your page layouts is using this background:
    Then you need to add a photo to the background of the page.

  • I need to get the logs of my iPhone 5. I'm a registered as a developer and I have an issue with one of my app which is already in the market

    I need to get the logs of my iPhone 5. I'm a registered as a developer and I have an issue with one of my app which is already in the market

    The Firefox 3.5.x branch has reached end-of-life and is no longer maintained.<br />
    You will no longer receive security updates.<br />
    You can update Firefox via "Help > Check for Updates" or download and install the latest Firefox 3.6.x.<br />
    Firefox 4 and later require at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/4.0/system-requirements/
    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • ITunes will not show my purchases before October 18, when I had a different username.  How do I get the older purchases (more than 5,000) listed when my password is rejected and it won't issue a new one for that username?

    iTunes will not show my purchases before October 18, when I had a different username.  How do I get the older purchases (more than 5,000) listed when my password is rejected and it won't issue a new one for that username?

    Wow that was really quick, thank you so much.  Im not sure at all which version it was because i said it was around 4 years ago he bought it.  I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names.  isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
    So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
    either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
    sarucia

  • Duplicates.  I use iTunes match.  When I run exact duplicates, I get duplicates that say uploaded for one and uploaded with a cloud for the other.  Which one do I delete?

    Duplicates.  I use iTunes match.  Two questions:
    When I run exact duplicates on the library on my Mac Air, I get duplicates that say uploaded for one and uploaded with a cloud for the other.  Which one do I delete?
    Some of the duplicates say matched and matched with a cloud.  Same question - which one should I delete?

    I'm not sure I understand the question.
    First I would update your iTunes match.  iTunes match will tell you what is duplicates and then you can just delete them from the library. 
    Second, the course in a situation like this is to delete ONE duplicate and see what happens.  Make sure you have that song backed up somewhere just incase it deletes it completely.  But usually I'd delete one and then see if it deletes both or just the one you pressed. 
    Thirdly, update iTunes match.  It usually does a good job of locating actual duplicates.

  • Safari tries repeatedly to open a page. The page partially opens but then Safari reports that there's something wrong with page and I get an error message. This is happening at too many web sites for one site to be having issues.

    Safari tries repeatedly to open a page. The page partially opens but then Safari reports that there's something wrong with page and I get an error message. This is happening at too many web sites for one site to be having issues.

    I have a similar problem, Safari cannot load a complet page. It stalls e.g. ["38 of 42"]. sometimes it will complete loading after a long wait. just as often it will never complete the page,
    The same thing happens in chrome and firefox but safari on my iPad works just fine.
    I have the latest version of everything
    I assume there is a system problem but cleaning up permissions does not help

Maybe you are looking for

  • Error DA0005 when trying to access report

    Hi everyone, We are getting the following error when trying to access a report: Connection or SQL syntax error (DA0005) Exception CS, Bad Value for field: Log on failed because the required parts are not correctly initialized. Contact system administ

  • Possible to update my new install of 4.6 with my old 4.5.1 preferences?

    Is it possible to update my new install of 4.6 with my old 4.5.1 preferences, layout, and code templates? Or have I overwritten/deleted them through the uninstall new install process?

  • How to access BSP-Parameters in the URL in view "ICCMP_BTSHEAD/BTSHeader"?

    Dear Expert, I have the foloowing links: <Server>:Port/sap/bc/bsp/sap/crm_ui_frame/default.htm?crm-object-type=BT116_SRVTK&crm-object-action=B&crm-object-value=<GUID>&sap-client=200&sap-language=DE. I would like to access the parameter value "crm-obj

  • How to use placeSortArrow in datagrids ?

    What is the right way to use placeSortArrow() in dataGrids ? The documentation says :" Draw the sortArrow graphic on the column that is the current sortIndex." But now, how to set the "curernt Sort Index", there is actually no property for that. I tr

  • Editing Query

    I am using Business Components from tables to create components so that I can drag and drop the fields in my JSP page. How can edit the SQL query and pass parameters I wanted to. Thanks Cosmos