SmartForms printing  on ZEBRA S4M doesn't work!

I heard that we can use SmartForms to design label. We would prefer to use SmartForms instead of Bar-One if possible.
I've read the following OSS notes very carefully :
750772 - Information on the ZPL-2 printer driver for SF
750002 - SmartForms: Support Zebra label printer (ZPL2)
We are using Zebra S4M printer.
Basis installed the Zebra S4M driver. I did a print configuration test and it works well, so I suppose the printer has been installed correctly.
SAP installation info
SAP_BASIS     620     0058     SAPKB62058
SAP_ABA             620     0058     SAPKA62058
SAP_APPL     470     0026     SAPKH47026
Kernel release: 640
Patch level: 109
According to the OSS notes, our system should be capable to work.
1. I create the device type ZLZEB2 using program RSTXSCRP.
This create the device type with the following parameters:
Version: 3
Driver: LZPL Zebra Programming Language 2
Printer driver: Do not use printer driver for ABAP list...
Argument: R203
Character set: 1162 Printer LB_ZEB IBM 850(internal fonts)
2. I create an output device ZEBRA_S4M with parameters:
Device Type: ZLZEB2 Zebra label printer 203dpi
Device Class: Standard printer
Host Spool Access Method: C
Host printer:
svr25node2prd.jacob.grpPrinter-EtiquetteTI
Host Name: svr20dev
3. I create a SmartStyle.
In the Header Data section, I put the font Helve 12 and I create one paragraph with a left-alignment, very simple.
4. I create a SmartForm
Page Format: LETTER
Style: SmartStyle created in step 3
Then I create a secondary window with one text where
I wrote "Test on Zebra S4M"
Also, in the main window, I change the left margin and upper margin to 0.
5. Printing
After activating the SmartForm & SmartStyle
From SmartForm, F8-F8-F8 then I choose my output device, check print immediatly but nothing comes out???
Does anybody no why? or could help me??
Thanks!
Message was edited by: Alexandre Giguère

Hi Alexander,
I have a question. I have designed my smartform with a style which is a label. I am able to get the data from the application program.  I should print it on a zebra printer. I can see the print preview too.
When I give a print in the spool requests it shows me <b>Completed</b>.
In the printer it is not printing . should I go for ZPL language and do that or is there any other way...
Please help me out..
with regards,
chaithanya.

Similar Messages

  • Print to pdf often doesn't work with multiple pages?

    When I try to print to pdf, it often doesn't work right.
    I can select, for example, multiple Excel worksheets to print. It looks fine with 4 pages in Preview, but when I select save as .pdf, it only prints 2 of the 4 pages, and it prints those in 2 separate documents rather than a single .pdf document with multiple pages.
    Is there a way to do this? Is this an Apple error or Microsoft error? Since it looks fine in Preview, my guess it is an Apple error?
    Mark

    It sounds like this is the problem with the way Apple handles multiple orientations in a pdf document. You can use Acrobat to print the files - it handles multiple orientations correctly. There was a previous thread on this:
    http://discussions.apple.com/message.jspa?messageID=1983431#1983431

  • Printing PDDoc with AFExecuteThisScript() doesn't work after an upgrade from SDK 5 to SDK8

    Hello,
    I have made an upgrade of my plug-in which was developed with the Acrobat 5 SDK. I upgrade it to Acrobat 8 SDK and my print function doesn't work anymore.
    Actually I print my document using a javascript trusted function instead the function provided by the C++ library for internal reason.
    Here below is the code used to print my document :
    char szJavaPrint[6000];
    sprintf(szJavaPrint,
    "pp = this.getPrintParams(); \r\n"
    // fill pp with parameters
    "pp.interactive = pp.constants.interactionLevel.silent; \r\n"
    "\r\n"
    "this.trustedPrint(this, pp);"
    PDDoc pdDoc = AVDocGetPDDoc(avDoc);
    AFExecuteThisScript(pdDoc, szJavaPrint, NULL);
    It was working with the Acrobat 5 SDK but the print seems to have no effect using the Acrobat 8 SDK. I know that there is a change between Acrobat 5 and 8 concerning the Character Set (currently I set the Character Set to "Not Set" in the Configuration Properties of the project) but I don't think that my problem comes from the Character Set.
    All ideas to resolve this problem are welcome.
    Kind regards,
    Joe

    See what happens if you remove the "setting of interactive to silent"...
    There is a restriction on silent printing in Acrobat, but I would not have expected that to be passed into this method - but it could have been overlooked and be a bug.
    Also, I don't recall a trustedPrint() method in Acrobat JS - check the documentation for the correct name of this function...

  • Hallo! I have Pavillon 5 with internet key.My new printer all-in-one doesn't work in web mode.

    hi! my new web printer doesn't work in wireless mode. Pheraps is necessary a router? Thanks to everyone can help me! :-)

    Hello maggio63,
    You would definitely need to set up a network on a router with a modem for internet connection.
    Once this is setup, you can follow this link to enable ePrint. 
    http://h71028.www7.hp.com/hho/us/en/ep/articles/setting-up-mobile-printing.html
    Although I am an HP employee, I am speaking for myself and not for HP.
    If I have resolved your issue, feel free to provide Kudos and make sure you mark this thread as solution provided.

  • HP 3310 and wireless printing from Tiger - It doesn't work

    I went through it with HP Support team but they are too bad to help me out.. I'm just hoping that I can find a solution here.
    Basically I just bought this fantastic printer, using the USB cable it works perfectly.
    If i try to use the built-in wireless connectivity, then I have some problems. If I try to print a test page from the HP printer utility then after few minutes the test page prints. But not right away like it does connecting the computer to the printer using a USB cable.
    However if I try to print a page, any page from any application, then it doesn't work, it says Starting printing... and then it goes to Idle.
    I have no idea what to do, I've tried to reinstall every single HP program but nothing.
    I'm hoping on your solutions! Thanks!

    i solved my problem ages ago... you just need to download the updated drivers and software from the hp website.. don't install from the cd.. and all works fine

  • The print function on websites doesn't work in Firefox.

    I want to print information from a certain website by selecting the Print View button. That works. But when I select the Print function, nothing happens. In other words, Firefox has stopped printing from websites. Other print functions (such as Word 2007) work just fine.

    Same problem, could not print web page. Deleted HP Smart Web Print program. Print function worked after removal. Firefox 4 Beta 8

  • SmartForms printing on ZEBRA TLP 2844 doesn't work!

    Hi,
    I am using Zebra printer TLP 2844.
    I have created the Output Devices: ZEBRA
    And Device Type: ZLZEB2 Zebra label printer 203dpi.
    I have created the Smartstyle having the paragraph format with font Helve.
    When i execute the Smart form and check print immediatly but nothing comes out.
    Can anyone suggest whats going wrong.
    I also started SAPLPD .... there is a line of printing, but nothing comes out.
    I can see print preview.
    This is local printer so I choose:
    Host Spool Access Method F: ... for testing
    Host printer __DEFAULT
    Can somebody help me about that?
    I saw this on this forum ...
    Ask basis guys to reinstall the Zebra printer driver in SAP. It will resolve the problem
    Where can I get this Zebra driver and where to reinstall?
    Regards
    Mirko

    Well I just tested it on one machine and it works with both IP and bonjour printing.
    One strange thing though. I added the printer and then selected print from the file menu. Almost imediatley after hitting print, a job goes into the queue called "Supplies Levels" with the status "Deleted". It clogs up the queue. I delete the job I sent to print. The "Supplies Levels" stays. The next time I print, it prints fine and the bogus job disappears and there are no problems after that. I have recreated this several times.

  • LaserJet software/driver issues. Print and Scan Doctor doesn't work on scanning function of MFP.

    Upon using the diagnostic utility HPPSdr. exe, only the select an action "Fix Printing" shows up and not the "Fix Scanning" option. Our printer is the LaserJet 3050 connected via usb running under Windows Vista32 on a HP dv8408us laptop. The scanning driver is HP imaging 4.0.4.0. There have been numerous problems with this scanning software/driver package which have been well illustrated on the HP forums. An update is sorely needed. All that HP customers really expect when we buy a product is that we get the functionality that we paid for and that we get support for the software and hardware for a reasonable length of time, I think that 5-7 years after the final production date of the product, at least, is reasonable. In the case of the 3050, the scanning has never worked right since day 1 because the scans are too light with signatures and time stamps showing up poorly. With the pnp driver installed it it almost impossible to scan in receipts, etc. The communication software Toolbox FX is needed to use the scan button on the machine, and since there are so many problems with this package with respect to system resource usage and connectivity, we can't use it and we don't get the walk up use of the scan button that we paid for originally. As Microsoft has updated the Windows OS, HP has failed to keep pace and we lose functionality of our equipment over time.  The diagnostic utilities have supposedly been updated several times and the scanning portion of the MFP still doesn't show. Surely the wide base of installation of this product could justify the expense of some engineering time for an update to the software and drivers. If HP hopes to turn itself around, a commitment needs to be made towards engineering products that really work in the environments that its customers use them, or else HP will merely be regarded as marketing company that is only concerned with selling the next thing without respect to customer retention.

    VisionAiry,
    Thank you for your response,
         There have been problems with the software and drivers for the LaserJet MFP/AIO machines which have been well illustrated by many users on here for several years. What is shocking is the unwillingness of HP to address these issues at an engineering and design level. This is the level in your organization that these problems need to be addressed at, not at the marketing and customer service level. The software/driver package has never really worked right ever since the 3050 - 3392 series was introduced back in 2006. The scanning drivers in the pnp drivers don't work, and never have, because of frequent communication problems. Someone never bothered to check if a blue ink signature would scan. I and several others have reported on these issues. What I have discoverd, through much trial and error, is that the full software package upon installation with only basic drivers installed using the check boxes in the menu, actually installs differently than the pnp driver. Who would have thought this? So now the machine scans OK. 
         My PC really appreciates not having the ToolboxFX installed. ToolBoxFX Error messages and crashes have been well documented on here. This is an application that puts an unnecessary drain on system resources. The only problem is that now the use of the Scan button on the machine is taken away so I don't get the walk up use of the scan button that we paid for in the original design. Why is the scan button function tied to the defective ToolboxFX software? 
         As far as printing goes, after carefully deleting the original print drivers, I use the PCL 5 and PCL6 UPD drivers. They work a lot better than the original print drivers ever did. But what about scanning? The scan driver on the 3050 dates all the way back to 7 2007. Scanning is an integral part of the functioning of most offices nowadays, but it is an afterthought at HP.  Why would a driver, software or diagnostic package only address half of the capabilities of a machine?
         When I went on the vacation recently, I tried to use my PCL 5 and PCL 6 drivers on my relatives 2009 OfficeJet 7310 and it wouldn't work at all. I had to spend 2 hours with multiple failed attempts to install the full 7310 package on my PC. Installation problems and repeated attempts are a constant theme with HP software. The very term Universal Print Driver is misleading because it won't work on many of the HP products out there. The product listing for the UPD, I only recently discovered on here, with help, because it was so buried on the UPD information page. 
         The LaserJet 3050 at $300 from Staples wasn't the most expensive printer out there, but it wasn't the least either. It is actually a pretty nice piece of hardware. I have invested over $1,500 in marked up toner since I've had this machine. HP needs to do better for us. 

  • CUPS printing to remote server doesn't work under Leopard

    So i have an ubuntu system running cups 1.2.8 as a print server. i have an epson stylus colour 760 plugged in and configured and working.
    i also had a macmini running tiger printing to it fine via ipp. now it didn't occur to me that something as simple (and important) as printing would be severely broken under Leopard. basically, after the upgrade, i can't print at all to the remote cups server.
    the symptoms are that the job queue will pause; even after clicking on 'resume', it will start the progress bar, and then after 100%, it will just pause again.
    i have on the cups server (qbic)
    EpsonPrinter
    Description: Epson Stylus 760 Colour
    Location: Small Bedroom
    Make and Model: Epson Stylus Color 760 - CUPS+Gutenprint v5.0.0.99.1
    Printer State: idle, accepting jobs, published.
    Device URI: usb://EPSON/Stylus%20COLOR%20760
    And on the macmini:
    qbic
    Description: qbic
    Location:
    Printer Driver: Epson Stylus Color 760 - Gutenprint v5.1.3
    Printer State: stopped, accepting jobs, not published.
    Device URI: ipp://192.168.1.244/ipp/EpsonPrinter
    None of the following work
    - used lpd://192.168.1.244/EpsonPrinter
    - tried ipp://192.168.1.244/ipp/EpsonPrinter
    - tried ipp://192.168.1.244/EpsonPrinter
    The error messages from the macmini are:
    I [01/Jan/2008:23:19:52 +0000] Printer "qbic" started by "ytl".
    I [01/Jan/2008:23:19:52 +0000] [Job 25] Started filter /usr/libexec/cups/filter/cgpdftoraster (PID 791)
    I [01/Jan/2008:23:19:52 +0000] [Job 25] Started filter /usr/libexec/cups/filter/rastertogutenprint.5.1 (PID 792)
    I [01/Jan/2008:23:19:52 +0000] [Job 25] Started backend /usr/libexec/cups/backend/ipp (PID 794)
    E [01/Jan/2008:23:20:02 +0000] [Job 25] Destination printer does not exist!
    E [01/Jan/2008:23:20:02 +0000] PID 794 (/usr/libexec/cups/backend/ipp) stopped with status 4!
    I [01/Jan/2008:23:20:02 +0000] Hint: Try setting the LogLevel to "debug" to find out more.
    I [01/Jan/2008:23:20:02 +0000] [Job 25] Backend returned status 4 (stop printer)
    I [01/Jan/2008:23:20:02 +0000] Saving printers.conf...
    The job never appears on the cups server jobs list; however a tcpdump does show that there is communication:
    [email protected]:~$ sudo tcpdump -i eth0 port 631
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
    23:27:55.397616 IP 192.168.1.204.49599 > qbic.ipp: S 3571921204:3571921204(0) win 65535 <mss 1460,nop,wscale 3,nop,nop,timestamp 660419916 0,sackOK,eol>
    23:28:05.490215 IP qbic.ipp > 192.168.1.204.49599: S 3610561258:3610561258(0) ack 3571921205 win 5792 <mss 1460,sackOK,timestamp 2498972 660419916,nop,wscale 2>
    23:28:05.490269 IP 192.168.1.204.49599 > qbic.ipp: . ack 1 win 65535 <nop,nop,timestamp 660419916 2498972>
    23:28:05.490285 IP 192.168.1.204.49599 > qbic.ipp: P 1:155(154) ack 1 win 65535 <nop,nop,timestamp 660419916 2498972>
    23:28:05.490301 IP qbic.ipp > 192.168.1.204.49599: . ack 155 win 1716 <nop,nop,timestamp 2498972 660419916>
    23:28:05.490315 IP 192.168.1.204.49599 > qbic.ipp: P 155:457(302) ack 1 win 65535 <nop,nop,timestamp 660419916 2498972>
    23:28:05.490331 IP qbic.ipp > 192.168.1.204.49599: . ack 457 win 1984 <nop,nop,timestamp 2498972 660419916>
    23:27:55.453575 IP qbic.ipp > 192.168.1.204.49599: P 1:26(25) ack 457 win 1984 <nop,nop,timestamp 2498978 660419916>
    23:27:55.453705 IP 192.168.1.204.49599 > qbic.ipp: . ack 26 win 65535 <nop,nop,timestamp 660419917 2498978>
    23:27:55.453804 IP qbic.ipp > 192.168.1.204.49599: P 26:225(199) ack 457 win 1984 <nop,nop,timestamp 2498978 660419917>
    23:27:55.453861 IP qbic.ipp > 192.168.1.204.49599: P 225:354(129) ack 457 win 1984 <nop,nop,timestamp 2498978 660419917>
    23:27:55.453919 IP 192.168.1.204.49599 > qbic.ipp: . ack 225 win 65535 <nop,nop,timestamp 660419917 2498978>
    23:27:55.453959 IP 192.168.1.204.49599 > qbic.ipp: . ack 354 win 65535 <nop,nop,timestamp 660419917 2498978>
    23:27:55.456571 IP 192.168.1.204.49599 > qbic.ipp: F 457:457(0) ack 354 win 65535 <nop,nop,timestamp 660419917 2498978>
    23:27:55.456636 IP qbic.ipp > 192.168.1.204.49599: F 354:354(0) ack 458 win 1984 <nop,nop,timestamp 2498978 660419917>
    23:27:55.669906 IP qbic.ipp > 192.168.1.204.49599: F 354:354(0) ack 458 win 1984 <nop,nop,timestamp 2498999 660419917>
    23:27:55.670050 IP 192.168.1.204.49599 > qbic.ipp: . ack 355 win 65535 <nop,nop,timestamp 660419919 2498999>
    23:28:08.470574 IP qbic.ipp > 192.168.1.255.ipp: UDP, length 183
    Any help is appreciated!

    The default setting under Tiger was CUPS, under Leopard it is Bonjour.
    To access CUPS
    http://localhost:631/printers/

  • Changed network name and now e-print e-mail address doesn't work

    I have a 6500A Plus Deskjet.  I have an hpconnected account and changed my e-print e-mail address to something I would remember.  Then I changed the name of my network.  I have to get a new claim code ..... I enter it and when I try to choose my e-print addrss, it says that it is already been taken.  I was on the hp site within a half an hour of changing my network name.

    Hi rfmal1,
    Thank you for joining the HP Support Forums.  I understand that you needed to set up the ePrint feature of your Officejet 6500A after changing the name of your network.
    Your previous ePrint email address will not be available, once an ePrint email address has been used it is no longer available to be claimed again. I am sorry if this has caused any inconvenience.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Network printing with time capsule doesn't work with OS X Lion

    I have a canon printer which will print when it is set up and connected to my imac.  However when it is set up and connected to time capsule it will not print.  It thinks it has completed the job but it hasn't.
    I think that this may have something to do with OS X Lion.
    The printer is just new, I bought it as the old one was playing up - I had been unable to get the old one which was connected via the time capsule to print since installing OS X Lion but never put two and two together - I just assumed the the printer had eventually died!  So I bought a new one!  It seems to set up OK as it is recognised as being attached to the timecapsule but there is no out put.
    Does anyone have any ideas as how to sort this out?
    Ian

    Solved (apparently): After reinstalling, iTunes 10.5 beta 3 appears to work.

  • Printing as specific user doesn't work

    Hello,
    at the moment we have a problem with Adobe Reader (latest version 11.0.07) on a Windows 7 Professional Domain-PC (x64).
    If the user tries to print a document, nothing happens. The print-processing doesn't appear after clicking on "print". The print-job isn't going through the spooler, it doens't appear in the job list. Event log has no entrys about that.
    We tried different printers and completely different documents. We reinstalled Adobe Reader using the Adobe Cleaner-Tool, deleted the AppData and Temp-Folders.
    What we can say is that it is a user specific problem. When we log on as Administrator or User (non-Administrator) this problem doesn't appear.
    What can we do? We'd be happy about help.
    Best regards

    Hello,
    is there any solution for my Problem?
    Best regards

  • Print and Export button doesn't work for Crystal Report  in VS 2008

    Hi,
    When I click on the Export/Print button, it looks as if something is happening but no window comes up. Below is the code in C#
            ExportOptions crExportOptions;
            DiskFileDestinationOptions crDiskFileDestinationOptions;
    ReportDocument cr = new ReportDocument();
    DataTable dt = new DataTable();
            cr.Load(strReportPath);
            cr.SetDataSource(dt);
            string Fname;
            if (!System.IO.File.Exists(strReportPath))
                throw (new Exception("Unable to locate report file:\n" + strReportPath));
            //CrystalReportSource1.ReportDocument.
            // Set the Crytal Report Viewer control's source to the report document.       
            CrystalReportViewer1.ReportSource = cr;
            // cr.PrintToPrinter(1, False, 0, 0)
            Fname = Request.PhysicalApplicationPath.ToString() + Session.SessionID.ToString() + ".rpt";
            crDiskFileDestinationOptions = new DiskFileDestinationOptions();
            crDiskFileDestinationOptions.DiskFileName = Fname;
            crExportOptions = cr.ExportOptions;
            crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
            crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
            crExportOptions.ExportFormatType = ExportFormatType.CrystalReport;
            cr.Export();
    Can anyone tell me why is this happening, need to fix this urgently.
    Thanks,
    Reena

    Hi,
    I removed all the export code, now when the Page loads. When I click on the export/print button still nothing happens.
    "Error in File C:\DOCUME1\rpatel\LOCALS1\Temp\DailyTransaction {0CE72E59-0AF6-4859-9173-EF563869CBBF}.rpt: Invalid export DLL or export format. "
    My code:
    ReportDocument cr = new ReportDocument();
    DataTable dt = new DataTable();
    string strReportPath = string.Empty;
    cr.SetDataSource(dt);
    cr.Load(strReportPath);
    string Fname;
            if (!System.IO.File.Exists(strReportPath))
                throw (new Exception("Unable to locate report file:\n" + strReportPath));
    CrystalReportViewer1.ReportSource = cr;
    Fname = Request.PhysicalApplicationPath.ToString() + Session.SessionID.ToString() + ".rpt";
    cr.Export();
    The sample has Delphi example, it would be good if there is a C#/VB sample available.
    Thanks.

  • Want to attach smartform as workitem but it doesn't work.

    Dear Experts,
    I want attach 'SMARTFROMS' or PWB Forms as workitem attachment but i couild not able to do .My method code is as follows...
    function zbi_bill_revision_v1.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(WID) TYPE  SWW_WIID
    *"     REFERENCE(L_DOCNO) TYPE  E_PRINTDOC
    *"  EXPORTING
    *"     REFERENCE(L_WID) TYPE  SWW_WIID
    data: l_wid type SWW_WIID.
      include <cntn01>.
      types : begin of ty_i_tline,
               i_tline  type tline,
              end of ty_i_tline.
      data: ls_control_parameters type ssfctrlop,
            w_compop         type ssfcompop,
            w_return         type ssfcrescl,
            v_len_in         type so_obj_len,
            it_i_otf         type itcoo occurs 0 with header line,
            it_i_tline       type table of ty_i_tline,
         it_zbillasses    TYPE zbill_assessment,
            out_opt          type ssfctrlop,
            fm_name          like rs38l-name,
            test_flag        type sysubrc,
            message_lines    type standard table of  swr_messag,
            message_struct   type standard table of swr_mstruc,
            att_head         type swr_att_header,
            it_solix_tab     type tsfixml,
           wid              TYPE sww_wiid,
            att_id           type swr_att_id,
            l_c              type efg_strn_printdata,
           wa_assesment     type zbill_assessment,
            wa_bill_ht       type zbill_invoice_ht.
         w_compop         type ssfcompop.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING
         formname                 = 'ZFORMBI_HIGH_TENSION_EMAIL'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        fm_name                   = fm_name
      EXCEPTIONS
        no_form                   = 1
        no_function_module        = 2
        OTHERS                    = 3
    IF sy-subrc <> 0.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
       EXPORTING
         i_language             = sy-langu
       IMPORTING
         e_devtype              = w_compop-tdprinter
       EXCEPTIONS
         no_language            = 1
         language_not_installed = 2
         no_devtype_found       = 3
         system_error           = 4
         OTHERS                 = 5.
    IF sy-subrc <> 0.
    ENDIF.
    w_compop-tdnoprev               = 'X'.
    ls_control_parameters-getotf    = 'X'.
    ls_control_parameters-no_dialog = 'X'.
    DATA: it_isu_bi_bill_s_doc_header TYPE isu_bi_bill_s_doc_header.
    CALL FUNCTION '/1BCDWB/SF00000426'
       EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        control_parameters         = ls_control_parameters
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        output_options             = w_compop
        user_settings              = 'X'
         pwb_data                   = it_isu_bi_bill_s_doc_header
         c                          = l_c
         wa_bill_ht                 = wa_bill_ht
      IMPORTING
      DOCUMENT_OUTPUT_INFO       =
        job_output_info            = w_return
      JOB_OUTPUT_OPTIONS         =
      EXCEPTIONS
        formatting_error           = 1
        internal_error             = 2
        send_error                 = 3
        user_canceled              = 4
        OTHERS                     = 5
    IF sy-subrc <> 0.
    ENDIF.
    it_i_otf[] = w_return-otfdata[].
    CLEAR w_return-otfdata[].
      data: x_printparams   type eprintparams,
              it_ranges     type standard table of efg_ranges,
              wa_ranges     type efg_ranges,
              c_fclass(12)  type c value 'IS_U_BI_BILL',
              lt_itcoo      type standard table of itcoo,
              g_docno       type erdk-opbel.
    clear: wa_erdk.
      select single *
        from erdk
          into wa_erdk
            where opbel = l_docno.
      x_printparams-formkey   = wa_erdk-formkey.
      x_printparams-tdnoprev  = 'X'.
      x_printparams-tdnoprint  = 'X'.
    x_printparams-NO_OPEN_FORM = 'X'.
    x_printparams-NO_CLOSE_FORM = 'X'.
      x_printparams-tdgetotf = 'X'.
      x_printparams-formclass = c_fclass.
      wa_ranges-low           = wa_erdk-opbel.
      append wa_ranges to it_ranges.
    data : x_header  type  rfgen-header.
      call function 'EFG_PRINT'
        exporting
        X_HEADER                    = X_HEADER
          x_printparams               = x_printparams
        X_ARCHIVE_INDEX             =
        X_ARCHIVE_PARAMS            =
         x_dialog                    = ' '
        X_RECIPIENT                 =
        X_SENDER                    =
        X_STRN_COLLINFO             =
        X_TABN_SEL_PER_FCLASS       =
        REF_LOG                     = CL_EFG_LOG_NULL=>S
        I_FLG_EMSG                  = '+'
      IMPORTING
        Y_ITCPP                     =
        Y_RDI_RESULT                =
        Y_PRINTPARAMS               =
        Y_SF_RESULT                 =
        Y_TAB_GENDATA               =
        Y_TABN_SEL_PER_FCLASS       =
        Y_PDF_RESULT                =
        tables
          xt_ranges                   = it_ranges
        XT_RANGES1                  =
        XT_RANGES2                  =
        XT_RANGES3                  =
        XT_RANGES4                  =
        XT_RANGES5                  =
        XT_RANGES6                  =
        XT_RANGES7                  =
        XT_RANGES8                  =
        XT_RANGES9                  =
         yt_otf_data                  = lt_itcoo
       exceptions
         not_qualified               = 1
         formclass_not_found         = 2
         form_not_found              = 3
         formclass_invalid           = 4
         print_failed                = 5
         form_invalid                = 6
         cancelled                   = 7
         func_invalid                = 8
         not_authorized              = 9
         others                      = 10
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      data: pdf_bin type xstring,
            l_size type i.
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
          max_linewidth         = 132
        importing
          bin_filesize          = l_size
          bin_file              = pdf_bin
        tables
          otf                   = lt_itcoo[]
          lines                 = it_i_tline
        exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4.
      call function 'SCMS_XSTRING_TO_BINARY'
        exporting
          buffer                = pdf_bin
      APPEND_TO_TABLE       = ' '
       importing
         output_length          = l_size
        tables
          binary_tab            = it_solix_tab
      att_head-file_type = 'B'.
      att_head-file_name = 'Billing Revision'.
      att_head-file_extension = 'PDF'.
      att_head-language = 'EN'.
    l_wid = wid + 2.
      call function 'SAP_WAPI_ATTACHMENT_ADD'
      exporting
        workitem_id          = wid
        att_header           = att_head
        att_txt              = 'Bill Assessment'
        att_bin              = pdf_bin
       document_owner       = sy-uname
       language             = sy-langu
      DO_COMMIT            = 'X'
    importing
       return_code          = test_flag
       att_id               = att_id
    tables
       message_lines        = message_lines
       message_struct       = message_struct.
    endfunction.
    when execute code it shows attachment successfully created but it does'nt show in attachment.
    Edited by: GURPRIT BHATIA on Jun 18, 2010 8:46 AM

    Hi,
    Pls explain it.
    I am also facing problem.
    Thanks
    Ragaven

  • Label printing on ZEBRA printer TLP2844 with smartform

    Hi Gurus,
    Requirement:
    Print label on Zebra printer with smartform
    1. i have created a smartform with desired layout
    2. and trying to print on Zebra printer
    Questions:
    1. smartform is not printing on zebra printer
    2. suggest me if there are any ways to print smartform on zebra printer
    3. does it requires any native programming language for printing labels on zebra printer
    Best Regards,
    Krishna

    hi Krishna,
    This printer does not support ZPL2 so I thnk you cnnot use the device types like LZEB2. It should work to print via windows and a device type like SAPWIN or SWINCF.
    Regards,
    Aidan

Maybe you are looking for

  • Is it possible to use an external HD to startup a MacBookAir (late 2011)?

    My external HDs include 1) OWC Mercury Elite Pro 3tB (Firewire 800) with Yosemite startup partition 2) MacBook Pro 2012 with ThunderBolt (OK for Target Disk startup using Thunderbolt cable)

  • Accessing the JTextArea of a JDialog

    hi I have a frame with a button and a JDialog with a JTextArea.When i click the button in the frame i should append some datas to the JTextArea in the JDialog.How can i access the JTextArea component of the JDialog from the frame. thanks

  • XA RESOURCE NOT RESPONDING IN PROD

    Hey guys ...I have seen posts for this kind of errors ..but didn't find any reason for what is causing this problem...basically once this error starts happening the server becomes unresponsive...any help is appreciated as this is happening in product

  • MIRO FI-POSTING CONFIGURATION

    Dear Sir, During the MIRO , System automatically determine the GLs and post the FI documents . I request you to kindly guide me about the configuration setting for determining the posted GLs . I our existing setup , during MIRO incase there is any ch

  • Replace a string within text file to another string

    hi everybody i wich to replace some word writed in text file to another word,,,,for example i want to replace all word when the word is "SOLARIS" to "solaris" . anyone have an idea to resolve this prob via command or script,plz respond me. thanks