Problem in barcode printing from SAP using VB.

hello all,
i have developed a program which will take parameters from the selection screen and will send to the LPT using the VB prog.
i have used the function WS_EXECUTE in my abap prog. the parameters are concatenated in bcode1 string.like this..
call function 'WS_EXECUTE'
  exporting
    commandline    = bcode1
    program        = 'c:\bprint\BPRINT.exe'
    inform         = ''
  exceptions
    frontend_error = 1
    no_batch       = 2
    prog_not_found = 3
    illegal_option = 4
    others         = 5.
my issue is ..... when i press execute button the values on the barcode is not printing what they are passed. means previous string values are printing instead of the current one.
i have used "free memory" after end-of selection event. Still problem is not solved.
is there any problem with WS_EXECUTE function.
can anybody suggest me the changes to be made.?

the code is
selection-screen : begin of block blk with frame.
select-options : material for mseg-matnr no-extension
                                            no intervals.
select-options :  batch_no for mseg-charg no-extension
                                            no intervals obligatory,
                mrp for mseg-dmbtr no-extension
                                            no intervals.
parameters : s_price type mseg-dmbtr.
selection-screen : end of block blk.
parameters : no type i.
no2 = no.
price = s_price.
mrp1 = mrp-low.
split price at '.' into rs ps.
split mrp1 at '.' into rs1 ps1.
matnr1 = material-low.
batch1 = batch_no-low.
concatenate matnr1 batch1 into bcode1.
  concatenate rs ps rs1 ps1 no1 rs '.' ps into bcode2.
concatenate '+' bcode1 into bcode1.
call function 'WS_EXECUTE'
  exporting
    commandline    = bcode1
    program        = 'c:\bprint\BPRINT.exe'
    inform         = ''
  exceptions
    frontend_error = 1
    no_batch       = 2
    prog_not_found = 3
    illegal_option = 4
    others         = 5.
call function 'WS_EXECUTE'
  exporting
    commandline    = bcode2
    program        = 'c:\bprint\bprint.exe'
    inform         = ''
  exceptions
    frontend_error = 1
    no_batch       = 2
    prog_not_found = 3
    illegal_option = 4
    others         = 5.
clear : material, batch_no, mrp, s_price, no, text. 

Similar Messages

  • Barcode Printing from EP --using barcode4J (Gurus kindly help me)

    Dear Experts,
    Barcode Printing from EP --using barcode4J
    we want to print employee number as barcode in EP(version 6.4 SP 19).
    we tested the barcode creation a standalone class, it works fine
    Sample Code as follows
    ================================
    Code128Bean bean = new Code128Bean();
                 final int dpi = 150;
                 //Configure the barcode generator
                 bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); //makes the narrow bar
                                                                               //width exactly one pixel
                 bean.setWideFactor(3);
                 bean.doQuietZone(false);
                 //Open output file
                 File outputFile = new File("out.jpg");
                 OutputStream out = new FileOutputStream(outputFile);
                 try {
                      //Set up the canvas provider for monochrome JPEG output
                      BitmapCanvasProvider canvas = new BitmapCanvasProvider(
                                out, "image/jpeg", dpi, BufferedImage.TYPE_BYTE_INDEXED, false);
                   //BarcodeServlet.            
                      //Generate the barcode
                      bean.generateBarcode(canvas, "Z454544");
                      //Signal end of generation
                      canvas.finish();
                 } finally {
                      out.close();
    <b>But the same code i put in wdDoModifyView() or wdDoInit() it throws class not found exception</b>. I have checked that barcode4j.jar and all relevant files are in classpath.
    Any help will be rewarded.
    Thanks
    Aby.

    Re: Barcode Printing from EP --using barcode4J (Gurus kindly help me)  
    Posted: Aug 24, 2007 5:21 AM    in response to: Ashutosh Moharir         Reply      E-mail this post 
    Dear Ashutosh,
    <b> It is working now!     ....  :-D  
    Can someone  provide me with a more detailed answer
    Or Best Practices (step by step) ,that would be Great . </b>
    I deeply appreciate your Quick & valuable advice;
    and shall create a new posting if any further need arises
    Many Thanks,
    Aby Jacob
    =========

  • Using Preview when printing from SAP

    Just starting to use SAP Java GUI on the Mac and one of the 1st items I discovered was the inflexibility for printing. I would need to define the printer in the preferences of the SAP Java GUI and then anytime I would print it would just go to that printer.
    Problem with this is that sometimes I work from within the office, and sometimes from home with as a result that my printer changes.
    When on Windows, I also often performed a print from within SAP but then selected the Adobe PDF printer instead so that I had a resulting PDF file.
    What I thus really wanted was for anytime I print from SAPGUI to the local printer to get a print dialog just like it does on Windows. I checked around but could not find anything to replace the lp command with on Mac that would then provide this. As a work-around I developed the following small script instead. Now instead of just printing, the print-out will be shown in Preview as a PDF. From here I can then save it as a PDF, print it, mail it, .... anything else one can do with Preview.
    This is not the exact solution I wanted as I wanted to just get a print dialog; but this gets me a lot closer to it.
    See next post (hopefully as I am having issues posting) for script & steps.

    Instructions:
    First, make sure that printing is setup for SAP Java GUI. There is sufficient information out there but main items are that the printer within SAP is defined with method G and that the device type os POST2 (for postscript). Also ensure that under output attributes Color printer is checked.
    Next create the script. I put it in the /Applications/SAP Clients folder but it can be put anywhere you like. You can name the script however you like, I named it SAPLPD.
    First thing the script does is converting the postscript file to PDF and storing it in the user's temporary directory. It adds the timestamp to the filename just to ensure there are no duplicated. It then opens the PDF file using Preview. It will wait for 1 second after which it will remove the file created.
    It also looks that all the files in this temporary directory are automatically removed by OSX, so even should the file not have been removed; on next logout (I think) the file will be removed anyhow.
    Script:
    The script is:
    #!/bin/bash
    timestmp=`date +%Y%m%d%H%M%S`
    /usr/bin/pstopdf -i -o $TMPDIR/sap_print_$timestmp_$$.pdf
    open -a /Applications/Preview.app $TMPDIR/sap_print_$timestmp_$$.pdf
    sleep 1
    rm $TMPDIR/sap_print_$timestmp_$$.pdf
    Once you have created the script it needs to be made executable. Do this by open the Terminal, changing to the location where you saved the script and entering the command:
    chmod a+x (script name)
    So in my case I would have entered the following 2 commands in Terminal:
    cd "/Application/SAP Clients"
    chmod a+x SAPLPD
    Last but not least is changing the command the SAP Java GUI uses for printing. Go into preferences for the SAP Java GUI and go to the Printing section (under Desktop). There for the Print Spooler entry which is currently set to /usr/bin/lp you change that to the script. So for me I have:
    /Applications/SAP Clients/SAPLPD
    Easiest way to do this is by using the Browse button and then going to where the script is. No parameters are passed to the script so everything else can be removed. What I have is exactly what I show a few lines above.
    And that is it, when now printing from SAP it opens the print-out in Preview and from there I can select my printer options etc.
    Use of the script is on your own risk. It works for me but there is no guarantee that it will work for you.
    Would love to hear about any other options.

  • I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I hav

    Hi
    I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I have followed adobes recommendations and have tried both letting the printer respektive photoshop manage the colors. But nothing works. I see that there are different opinions about which is best to do so I tried both. I have the latest printer driver installed. Can anyone help me with this?

    Do the following:
    Print a test page from the printer. Perhaps the print head needs cleaning via its maintenance facility.
    Let the printer manage colors, not PSE
    Calibrate the monitor

  • Problem in barcode printing..

    I am given only the barcode dimension and content to print it using smartforms..how do i go about it..? Do i have to start from SPAD transaction or se73.. kindly let me know links which may give step by step guideline to my problem..and in SE73 i dont know which barcode symbology i need to assign..
    Also, why do we have to go for TCode SPAD?

    Hi
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Reward points for useful Answers
    Regards
    Anji

  • User not able to print from SAP

    Hi guys,
                 User is not able to print from SAP. The printer is directly connected to his PC. It is not a network printer. The user is able to print at OS level perfectly. IN SP01, it shows in green and the print job has been completed successfully. I can see the output request. Its all fine in SAP. I am not sure why it is not printing from SAP. Please help ?
    Thanks

    hi venkata,
    did you already defined your printer on SAP Server using tcode SPAD ?
    What kind of printing you're using ?
    My suggest for simplest one is create new output devices.
    Type tcode SPAD
    Give simple name
    Choose SAPWIN for device type (if you're using WIndows clients)
    On Access Method tab
    Choose Host Spool Access Method F : Front end Printing or G :
    For Host Printer fill with __DEFAULT (remember double underscore)
    save and test it.
    ardhian
    http://sapbasis.wordpress.com

  • Problems with 'Order Prints' from Aperture 2.1.3 Mystery borders

    *Some background:*
    I've been using Aperture for about 3 months now, importing most of my iPhoto library into the program. I have only recently started shooting in RAW format, most of my photos image files are in JPG format. In the past, I've had no problems with obtaining prints from within iPhoto or to a limited extent Aperture. So, far as I know my program is up-to-date. I have 2 plugins installed: Aperture2twitter and *flickr export Lite* both of which work acceptably.
    *The problem:* I ordered 317 4×6 prints from my aperture library.
    Every photo has a 1/4″ border on both sides of the image, i.e. the printed image is only 4×5 1/2″. I have never ordered this quantity before, but I don’t believe that was the problem, it appears that the processing machine was misaligned and no one reviewed the prints prior to shipping.
    I tried again, on 4 different images ... all JPG files with 3 out of 4 were OK, but one exhibited the "border" issue.
    I haven't a clue what is going on here. Apple implied +(via email)+ that I would have to individually crop every photo to ensure proper aspect ratio. This makes no sense to me at all, as I have never had this kinda problem before.
    Could the plugin(s) be interfering with the s/w? Is there a trick to having photos printed from within Aperture that was not present in iPhoto?
    Any thoughts on what the problem is would be greatly appreciated.
    Thanks
    -john

    I believe that I've solved this problem, with the help of the folks at Apple who handle Aperture tech support using the Aperture support ID that came with the product.
    So the short answer is: Aperture print services REALLY DO REQUIRE the image to be cropped (constrained as they say) prior to the data being sent to Apple Print services.
    Here is the link that describes cropping http://support.apple.com/kb/HT1993?viewlocale=en_US
    The process as described is cumbersome, but the support tech pointed out that in Aperture, crops are 'non-destrutive' and can be undone simply by removing the check mark on the Adjustments tab of the image you crop. *This means that you do not have to make a duplicate image for cropping.*
    So, here is the process that I arrived at to ensure that my "order prints" job turned out:
    1. create an album of all the photos you want to submit for printing.
    2. for each image call up the Crop HUD by pressing 'c' on the keyboard.
    3.select the aspect ratio that you want for your photo. Make sure that it does NOT SAY Master Aspect Ratio, or Main Display Aspect Ratio.
    4. Crop the photo
    on the adjustments tab you can see the X and Y data and Height / Width information which can be undone.
    5. Submit your print request to Apple for all the cropped photos.
    When the prints arrive, you can compare the prints with the submitted photos. They should all be good. You can then delete the album (since it really is not a physical thing) or keep it for reference.
    It all seemed a bit arcane to me, as I never had to worry about this in iPhoto. It must be that iPhoto sends different data than Aperture. I have just received 200 + prints back from Apple Print Services with about 98% success rate. I just have to adjust my thinking and my process when dealing with Aperture.

  • Am unable to print from Firefox (used to be able to) even though I can print from Safari....what should I try?

    have an up to date Firefox and was able to print to HP printer from internet until recently. I can print from internet using Safari so am sure that the problem is in some setting from Firefox. The printer is chosen in preferences and it seems to send a message to printer but only blank paper comes out....and ideas of what to try would be appreciated!

    Hi timcasey-
    I recommend you read this Support article on troubleshooting printing issues:
    [[Firefox prints incorrectly]]
    Hope that helps.

  • Printing from SAP via main frames

    Hi,
    We are runnnig Our SAP 47 on Solaris Operating System.  We have a requirement for printing form SAP using Mainframe Print Queues.  Does any one have any info on how to setup print queues in main frame or printing from SAP via mainframe servers.  Any Info would be really helpful.
    thanks in advance
    Sitapati Kalluri

    You can use IBM Infoprint Server for z/OS.
    <a href="http://www.printers.ibm.com/internet/wwsites.nsf/vwwebpublished/ipserverhome_z_ww">http://www.printers.ibm.com/internet/wwsites.nsf/vwwebpublished/ipserverhome_z_ww</a>
    But this is priced feature of z/OS and requires some customization.
    Regards, Martin

  • Problem with sending mail from SAP (ECC6.0)

    Hi guys!!
    I am facing problem in sending email from SAP to outlook.
    I've checked SICF and SCOT configuration and they are same as my other server thorugh which i am able to send the mail.
    I use SBWP to send the mail. after i send i do not get any error message, and when i check it in outbox, there is a yellow triangle in the status which means "send process still running" . so the sending mail is taking hours. i've set the frequesncy of my B/G job RSCONN01 to 10 minutes. i checked and this job is running successfully every 10 minutes.
    Please suggest what could be the possible reason and what can i do to solve this issue.
    Thanks,
    Sheetal Sharma

    Hi,
    First of all ask your IT (Exhchange) guy to check port number 25 is open or not for communincation, if not open ask him to open.
    you can check this yourself by doing TELNET
    steps to do telnet :
    logon to your application server,
    go to command prompt
    and type  TELNET <IP address of email server> 25
    If it prompts some message like this
    "exhange.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.18 30 ready at  Mon, 16 Jun 2008 16:25:41 +0300. "
    then it means your port 25 is open for communication.
    Regards,
    Abuzar.

  • Printing from Classic Using OS X Drivers

    Shouldn't I be able to print from Classic using my Epson USB printer's OS X drivers (OS 9 drivers don't exist for this model)? I've tried opening the Chooser in Classic, but the printer doesn't show up.
    Thanks,
    Emily

    Go to Chooser (while in a Classic App) and select LaserWriter 8 driver - even if there's no printer on the right.
    When you want to print, the LaserWriter 8 print dialog comes up and you can select your OS X printers in the destination printer pull-down.
    Good luck.

  • I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel?

    I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel? Is Parallel in fact the best way to go?

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Problem with barcode print in Adobe From

    Hello All,
    We are using Adobe Forms to print our shipping labels and this as been working well for few years now. These labels include readable text and barcodes. The barcodes are 1-D but recently we now have a need to print 2-D barcodes.
    We are able to print PDF-417 as a 2-D barcode on the form, but when we try to print Datamatrix barcode, the barcode does not show and instead we just see the text which should have been encoded as 2-D barcode.
    We analyze the spool output file on the server to check the correct print controls are being sent to label printer. Our printer is a Zebra S4M using ZPLII. We send test form to our printer which will print two barcodes only (both 2-D), one is PDF-417 the other is Datamatrix. The spool output when viewed in Wordpad, is as below:
    ^XA
    PRALH0,3
    ^XZ
    CI13XA
    ^LL1219
    ^FO127,102
    ^BY3,,203
    ^B7N,,5,,,N
    FHFD1234567890
    ^FS
    ^FO127,356
    FHFD1234567890
    ^FS
    ^XZ
    The ^B7 print control is the  barcode PDF-417 control code. The Datamatrix control code ^BX is missing and should appear where there is an empty line. If we edit the spool output file and add the missing control code sequence, and then reprint the spool from SAP, then the Datamatrix 2-D barcode prints correctly.
    So for some reason, the .zpl spool output file is not being generated with the ^BX control code sequence for the datamatrix barcode. We cannot find any information on why this is so.
    We are running ECC6 SP11 (single stack) and ADS is running on a separate dual-stack BI system (NW2004s SP21).
    Our Zebra S4M printer firmware is V53.17.6Z, and printer driver is ZebraDesigner 2.6.42 (Build 2382). Our SAP device type which is assigned is AZPL203. Our ADS version is 7.00.21.0.
    We are seeing the same problem if we print test label from ECC or BI system. ECC kernel is 700 patch 266. BI kernel is 700 patch 254.
    We have found SAP Notes related to incorrect ZPL format in ^BX for NW7.1 and NW7.1 EhP1, but not for NW7.0.
    Has anyone else come across a problem like this before? Any advice would be much appreciated and duly rewarded.
    Thanks in advance
    George

    Issue is resolved.
    We updated our ADS to 7.11.5.0

  • Problem while printing from SAP GUI for HTML

    Hello,
    We are trying to print a delivery confirmation from the portal using SAP GUI for HTML. We have followed note 771683 to do this. However we are facing the following problems:
    1) The print action(PDF creation) is not triggered until the user performs some action
    2) the PDF that is created is corrupted(does not open)
    In order to correct this we tried to implement note 957292. However, the changes to the object FRONTEND_PRINTPOLL_FRONT_REQUEST.HTM mentioned in this note created problems. So we decided to do the changes to this object manually. But we see that the SAP note doesn't contain any information on changes that should be implemented for this object.
    Question:
    Is the note 957292 only way to solve the printing(PDF) problem? If not, how can we trigger the automatic creation of the PDF and remove the error from the PDF file?
    If yes, any idea what is causing the problem during the note implementation?
    We are on NW2004s - EP7.0 SP10
    ITS 7.0
    Thanks in advance.
    Regards,
    Reena

    Hi,
    configure printer in SPAD  , no setting for JAVA GUI
    check note
    605467:SAPscript/Smart Forms: Print preview in SAP GUI for Java
    634158      SAPscript/Smart Forms: Print preview in SAP GUI for Java (2)
    1024624 SAPscript/Smart Forms: Print preview in SAP GUI for Java (3)       
    regards,
    kaushal
    regards,
    kaushal

  • Problems printing from safari using an HP photosmart 7960 printer

    for some reason my printer will now only print from word or other applications but when i try and print a web page from safari my safari crashes. help anyone!

    Dh11unit-
    If there is a print job stuck in the print queue, double-click the iPad's Home button.  A row of recent Apps will line up along the bottom of the screen.  Scroll across and look for the Print Center icon.  If you find it, you should be able to delete the bad print job.
    If the Print Center is not there, your print job probably did not proceed far enough.  It is possible your WiFi router does not correctly handle Bonjour data required by AirPrint.  If that is the case, you would need to contact your router's manufacturer to see if there is a change to its setup or a firmware update that will fix the problem.
    I suggest you download the free HP App, ePrint Home & Biz.  It has limitations, but should get you printing.
    Fred

Maybe you are looking for