Smartfrom print error

THIS IS URGENT
when iam giving print preview iam able to get it but when iam giving the print iam getting error called 'ERROR IN GENERATING SMARTFORM'  this program is already exsisting . i made some changes in the smartfrom in positioning for some of  the windows. and after that iam not able get the print out
please help me, hope i will be getting the solution.
PRINT PROG.
DATA g_fmname TYPE rs38l_fnam.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_vbeln TYPE vbrk-vbeln.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'ZSD_SMRTSALEINVOICE1'
    IMPORTING
      fm_name            = g_fmname
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
    MESSAGE 'Error in opening the smartform'
            TYPE 'I'.
    LEAVE LIST-PROCESSING.
  ENDIF.
  CALL FUNCTION g_fmname
    EXPORTING
         s_vbeln  =  p_vbeln
    EXCEPTIONS
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 4
      OTHERS           = 5.
  IF sy-subrc <> 0.
    MESSAGE 'Error in generating the smartform'
            TYPE 'I'.
    LEAVE LIST-PROCESSING.
  ENDIF.
*these are the warnings iam getting inthe when i activate the smartform.*
@8R@     TOTAMT                 Field g_totinv has no defined value
@8R@     ROUNDEDVAL          Field G_DIFFV has no defined value
@8R@     TCSAMT                  Field G_SCRAP has no defined value
@8R@     INSURANCEAMT          Field G_INS has no defined value
@8R@     FREIGHTAMT          Field G_FREIGHT has no defined value
@8R@     OCTAMT               Field G_OCTRAI has no defined value
@8R@     VATAMT               Field G_VAT has no defined value
@8R@     SALESTAXAMOUNT          Field G_SALESTAX has no defined value
@8R@     SUBTOTAL_V          Field G_SUBTOT has no defined value
@8R@     DEVOLOPMENTCHARGES_V     Field G_DEVCHG has no defined value
@8R@     PACANDFARWORDINGAMT     Field G_PAC has no defined value
@8R@     DISCOUNTSVAL          Field g_disc has no defined value
@8R@     HRECSAMT          Field G_HRECESS has no defined value
@8R@     CESAMT               Field G_CES has no defined value
@8R@     CEDAMT               Field G_CED has no defined value
@8R@     AMOUNT               Field G_TOT has no defined value

Thanks for solution.
I actually commented the sy-subrc <> 0. line and again uncommented the line  and tried it and I got it. Well that answer is solved and iam getting the print out . but now the another big problem has arisen. The form has many fields some fields are coming into as per the bill document number but some fields are remaining same, for any bill document number these fields details coming same.
Please help me.

Similar Messages

  • HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome

    HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome. Extra large font sizes and weird formatting issues only when printing emails from Gmail within Chrome. No problems when printing the same email from Gmail+Internet Exolorer or Thunderbird. Using the IE Tab extension in Chrome prints the email correctly but the style of Gmail's message window is completely weird ie: formatting bar is spread out vertically instead of horizontally. I believe it is clear that this is an application specific issue between the HP LASERJET CP1525nw printer and Google Chrome + Gmail. This printing scenario does not occur when printing anything else or when printing via another printer. I would appreciate receiving any suggestions to solve this issue.
    OS: Windows 7 Ultimate x64
    Browser: Google Chrome 15
    HP Print driver: HP Universal Print Driver for Windows PCL6 v5.4.0
    Printer is connected by WiFi to 4 computers

    Hi AbZu, 
    You need to contact Google Chromes technical support as this is only an issue with Chrome. You have indicated that the printer functions correctly everywhere else. Check out the link below for Google Chrome technical support. Let me know if you need additional assistance?
    http://support.google.com/chrome/?hl=en
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • "Print Error Whilst Printing" when trying to print or save as PDF

    I don't understand why i can't just print - everytime it says Print error whilst printing whether i'm actually trying to save it or print it. I'm very new to using Macs - 3 days now so not used to how they work yet but i'm running Tiger 10.4.8 on an Intel Mac if anyone can help me please!

    Hello Dorin and thank you for your answer.
    Yes page 5 is a double page spread and this is not the only one in my book! I will modify the page 5 to see if the error message will appear at the next double page spread....
    Thanks again
    Richard

  • HP Envy 4500 All in One - Printer Error - not finishing print job / non-specific error code

    Help - my new HP ENVY 4500 AIO (less 3 months old) has never completed a print job if it is over 1 page. I'm connected wirelessly, and not sure if there is an interruption in the wireless connection or if this is defect in the  printer. I receive a message "Printer Error - HP ENVY cancelling print job" and that's it. It will usually happen when it's on the last page of a small print job or half way thru a large (10+ page) of a print job.  Any suggestions? I've downloaded HP Print/Scan Dr - it didn't find any issues.

    I had the same issue. Got in contact with HP customer service and the first person that helped had no idea how to fix it.  Got in contact with someone else and they found the issue right away. I had it connected through the wrong port.
    First find out what the IP address of your printer is. You can do this by pressing the small wifi button on the front of your printer and it will show the IP address. 
    Then what you'll have to do is go to the start menu of your computer and search for "Devices and Printers".
    Click that and a screen will open. Look for your printer an right click.
    Click "Printer Properties" and a new screen will open.
    Along the top you will see a few tabs. Click the one that says "Ports"
    Click "Add Port"
    Highlight "Standard TCP/IP Port" by clicking on it, then click "New Port"
    A new screen will open.
    Click "Next"
    Type in the IP Address of your printer and click "Next"
    After that your computer should find your printer.
    Click finish and you should be all set.
    Hope this helps.

  • Crystal Report Print Error

    Hi I am having the strange issue.
    When my application is running as windows service, the RAS engine is not printing the report.
    I am getting the below error.
    //Code Snippet
         PrintReportOptions printOptions = new PrintReportOptions();
         printOptions.setPrinterName(printername);
         printOptions.setPaperSource(PaperSource.auto);
         printOptions.setPaperSize(PaperSize.paperLetter);
         printOptions.setNumberOfCopies(1);
         printOptions.setCollated(false);
         rcd.getPrintOutputController().modifyPageMargins(850, 250, 250, 250);
         //Print report.
         rcd.getPrintOutputController().printReport(printOptions);
    Any one could help me on this?
    Thanks
    Sumathi
    Msg:java.awt.print.PrinterAbortExceptionStack:com.businessobjects.crystalreports.viewer.core.f.print(Unknown Source)
    sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1936)
    sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)
    com.businessobjects.crystalreports.viewer.core.f$a.a(Unknown Source)
    com.businessobjects.crystalreports.viewer.core.f.a(Unknown Source)
    com.businessobjects.crystalreports.printer.bean.a.ck(Unknown Source)
    com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source)
    com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    com.crystaldecisions.sdk.occa.report.application.PrintOutputController.printReport(Unknown Source)
    com.crd.report.crystal.CrystalReportUtil.exportReport(CrystalReportUtil.java:2094)
    com.crd.report.biz.CRDReportingFactory.exportReport(CRDReportingFactory.java:336)
    com.crd.report.app.ReportingImpl.generateReport(ReportingImpl.java:115)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    com.crd.services.ServiceProxyFactory$LocalHandler.invoke(ServiceProxyFactory.java:374)
    $Proxy19.generateReport(Unknown Source)
    com.crd.exporter.router.DefaultReportWriter.generateReport(DefaultReportWriter.java:50)
    com.crd.exporter.router.Router.route(Router.java:286)
    com.crd.exporter.router.Router.dispatchPackage(Router.java:191)
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKPrinterException: Report could not be printed.---- Error code:-2147467259 Error code name:failedStack:com.businessobjects.crystalreports.printer.bean.a.ck(Unknown Source)
    com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source)
    com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    com.crystaldecisions.sdk.occa.report.application.PrintOutputController.printReport(Unknown Source)
    com.crd.report.crystal.CrystalReportUtil.exportReport(CrystalReportUtil.java:2094)
    com.crd.report.biz.CRDReportingFactory.exportReport(CRDReportingFactory.java:336)
    com.crd.report.app.ReportingImpl.generateReport(ReportingImpl.java:115)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    com.crd.services.ServiceProxyFactory$LocalHandler.invoke(ServiceProxyFactory.java:374)
    $Proxy19.generateReport(Unknown Source)
    com.crd.exporter.router.DefaultReportWriter.generateReport(DefaultReportWriter.java:50)
    com.crd.exporter.router.Router.route(Router.java:286)
    com.crd.exporter.router.Router.dispatchPackage(Router.java:191)

    Hi,
    Can be a permissions issue.
    Try giving the ASPNET account full control on Temp folder :
        . Right-click the folder and select 'Properties'.
        . Go to the 'Security' tab and click the 'Add' button.              
        . Select the 'ASPNET'. Click 'ADD'. Click 'OK'.
        . Check 'Full Control' from 'Permissions for 'ASPNET'.   
    Sincerely,
    Nikhil Dharme

  • Getting printing error while issuing the excise invoice with cust. O/P type

    Hi,
    I have created a custom output type and form and tried to issue it with the transaction J1IS.  But it is always giving me error saying "Printing Error".  I checked and didn't find any error in the SAP Script.
    Thanks,
    srinivas.

    Hi,
    The error could be due to various reasons.A good starting point though would be to check if your page margins do not exceed the printer boundary.
    Regards,
    Neil.

  • I can not print from Firefox, but can from all other browsers and applications (such as MS Word, notepad, etc.). I get a print error on the printing monitor like it's a spooling problem.

    This is a recent development but I can not print anything from within Firefox. The print functions open normally, it is going to the correct printer which works..I can print from other browsers and applications. It acts like it is spooling and then a print error occurs and it won't print. I closed and reopened Firefox, opened it in safe mode, cleaned out history/cache/cookies, and rebooted twice. Nothing makes any difference. Also tried printing from the print preview which had the same result. I can print from all other browsers and applications without a problem so it must be within Firefox.

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • When I try to print something, my "documents library opens which creates a printing "error" .

    I have downloaded and installed the HP Drivers for my new windows 7 lap top in the windows programs and in the Mozilla program (fire fox). I can print without any problem from any of the windows programs but not from fir fox. As soon as I click on "print" in fire fox, my "Documents Library" page opens and a message comes up saying, "Unknown Printing error occurred while printing" and no printing occurs.

    Is your printer selected in Firefox? <br />
    Sounds like you may have a '''Print to file''' or other software printer selected in the '''Printer''' > '''Name''' box.

  • How to print error messages in browser?

    When I visit a jsp file in browser, there's some errors in the jsp file, so the browser returns
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    I want the detail error messages, so I can debug my problem. How to print error message in browser or find the message in some log file?

    Hi Kanaraja,
    Thanks for your answer. I need to get certain information from the list. So, I use LIST_To_ASCII FM. However, may I know the ascii_tab should be type to what? And after this FM, do I have to use another FM to display the ascii list?
    data ABAPLIST type ABAPLIST OCCURS 0.
    SUBMIT  RPCALCU0 VIA SELECTION-SCREEN
    with PNPXABKR = 'US'
    with PNPTIMRA = 'X'
    with PNPPABRP = '10'
    with PNPPABRJ = '2003'
    with PNPPERNR-LOW = '100750'
    with PNPPERNR-LOW = '109202'
    with PNPPERNR-LOW = '100255'
    with PNPABKRS-LOW = 'US'
    with SCHEMA = 'ZUSP'
    with RADI_EDT ='X'
    with EDT_VARI = 'CUS&SAP_US'
    with TST_ON = 'X'
    EXPORTING LIST TO MEMORY and RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject       = ABAPLIST
    EXCEPTIONS
       NOT_FOUND        = 1
       OTHERS           = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = asci_tab
        listobject         = ABAPLIST
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.

  • How can I print emails? Printing Error message that no printers are installed. (Printers are installed.)

    When I click File > Print, I get a Printing Error message that no printers are installed. Printers are installed. When I click Yes to install a new printer, I receive a new error message that "Windows can't open Add Printer / The local print spooler service is not running. Please restart the spooler or restart the machine." I updated to the new version of Thunderbird 24.6.0. Using Windows 8. I restarted the machine. I confirmed printers are installed using Control Panel. I do not see any way to restart a print spooler. How can I fix this? Thanks.

    The print spooler is a windows service and is required to print. I would hazard a guess you can not print with any application.
    What I am saying is I think your windows instalation has a problem, not Thunderbird.

  • "Printing: Error while printing" when I tries to Save - How?

    Since recently, whenever I tried to save a Pages document, Pages freezes for a few minutes, then show me a system message that says "Printing: Error while printing". I did not ask Pages to print anything! Please advice. Thank you very much.

    You have not provided exact system info, no details about your documents, your save locations nor even told us what version of PS, so nobody can even begin to guess.
    Mylenium

  • 'Printing Error' error when trying to print in Safari

    Hello, I am running OSX Mavericks and ran into this problem tonight.  I have been using my new Macbook air for over a month and never had this problem happen at all.  Whenever I try to print something from a webpage Safari gives me the error ' Print error' and no other info.  No printing happens obviously.  I have deleted the printer and added it again, I have deleted the drivers and installed them again.  The only thing that seems to work is that if I restart the computer and try to print it will work 1 time and 1 time only.  Then I get the same print error warning.  Any ideas???  Thanks in advance!

    Linc, thanks for the help.  I have kind of figured it out...maybe.  I have never had this issue at all on any of my Macs (3).  Last night when this started to happen I was attempting to print some reviews off of Amazon (which i had never attempted before either).  So I would print one page of the review on first attempt no problem but then have to shut the computer off to be able to then print the next page of reviews.  I then tried to print off other sites and I had no problem.  I just now printed our convo above and it cabme out no problem and I can print PDF's and word documents no problem.  So it looks like maybe Amazon has something that stops you from printing their reviews maybe???  I had to save the review webpage as a PDF file and then print it, which worked.  So looks like Amazon does not want their reviews printed I guess.  Cheers for the help though!

  • How can I fix this printer error with Samsung SCX-4300 and SCX-4521f on Windows Server 2008 R2?

    I have two printers installed on Windows Server 2008 R2 (64-bit):
    1. Samsung SCX-4521f
    2. Samsung SCX-4300
    There are two computers (Windows 7 Professional, 32-Bit) connected to this server that utilise these shared printers.
    The drivers installed are as follows:
    SCX-4x21_Win7_Print.exe (Win 2000/XP/2003/Vista/2008/Win 7    3.04.96:03    Print Driver    11 Dec, 2009    12.37    MULTI LANGUAGE)
    SCX-4300_Print.exe (Win 2000/XP/2003/Vista/2008/Win 7(32,64bit) 3.04.95:07 Print Driver Jan 19, 2011 53.07 MULTI LANGUAGE)
    After printing documents for some time (within a 24 period) the printers no longer respond to print requests.
    On the server opening "Control Panel\Hardware\Devices and Printers" shows the two printers with yellow exclamation marks.
    The "SCX-4x21" printer shows the "Status" as "Needs troubleshooting" and "Printer: Error".
    The "SCX-4300" printer shows the "Status" as "Needs troubleshooting".
    Neither will print a test page.
    Searching for new drivers automatically returns saying: "The best driver software for your device is already installed".
    The error persists and nothing will print.
    When double-clicking on the "SCX-4x21" printer (or going to "Control Panel\Hardware\Devices and Printers\Samsung SCX-4x21 Series") you see the following:
    "Printer: Error" and "N document(s) in queue".
    Clicking on either of these brings up the print queue and shows a document with the status of "Error - Printing".
    As each job with an error is cancelled the next one attempts to print and also displays an error like the last.
    Once all the jobs are cleared the printer information says "Printer: Ready".
    Sending a "Print Test Page" sends the printer into an error state saying "Printer: Error".
    With the "SCX-4300", sending a "Print Test Page" displays a bubble saying: "Toner Empty: Replace Toner".
    However, I can't see any specific error messages.
    How do I find out what exactly "Needs troubleshooting"?
    Please can anyone advise further?

    The printer (SCX-4300) has stopped again.
    Since it has been stopped I have done your recommendations:
    Unticked the "Enable bidirectional support" option under the "Ports" tab in the printer properties.
    Set the "Interactive Services Detection" to Automatic and started it.
    Unfortunately the printer did not start printing, the print jobs did not restart or delete.
    I decided to check the Operational logs that we enabled.
    The first job I see goes like this:
    Information: Rendering job 41.
    Error: The print spooler failed to delete the file C:\Windows\system32\spool\PRINTERS\00041.SHD, error code 0x2. See the event user data for context information.
    Information: The print job 41 was sent through the print processor SSE1MPC on printer Samsung SCX-4300 Series, driver Samsung SCX-4300 Series, in the isolation mode 1 (0 - loaded in the spooler, 1 - loaded in shared sandbox, 2 - loaded in isolated
    sandbox). Win32 error code returned by the print processor: 0x0.
    Information:Printing job 41.
    Information:Spooling job 41.
    This job actually printed.
    Other jobs printed fine with no error.
    There are no other errors in the "Operational" log other than the "print spooler failed to delete" error.
    Any ideas what to try now?
    Update: Unticking the "Enable bidirectional support", clearing the print queue and then trying again seems to have fixed the problem for now.

  • Unable to print, "printer error".

    I recently installed canon printer software when away on a trip to use someone else's printer.  When I returned home I was unable to print on my c309a all in one printer, running windows 7, have the printer on my home network.  I have uninstalled, reinstalled, removed the printer from the control panel, restored to an earlier date and nothing  seems to help.  I click to print something and the little dialogue box will say printing but it doesn't print.  If I click in the status bar on the printer icon it will list the document in que and say "printer error" in the spot that usually lists the status.  If I trouble shoot it will say " a print job in que was preventing the printer from printing" and say it has fixed it but still it won't print.  Anyone have any idea what I can do?  I know the printer is working because it works fine from my husband's laptop via the same network. 
    Thanks in advance
    Jo Ann

    Running the diagnostics at http://www.hp.com/go/tools may help resolve the issue.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Printer error with HP Laserjet 6L and Windows 7

    I have an old but still functional HP Laserjet 6L (from the late 1990s), which is connected to a new computer running Windows 7 via USB. Windows 7 found the necessary drivers, but I am having frequent printer errors come up in the Printer queue, and the machine refuses to print. The problem is 'solved' when I restart my PC, and the document then prints. However this is a pain, and I obviously don't want to have to restart every time I want to print.
    I would be very grateful for any advice on this. Thanks.

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at: http://h30499.www3.hp.com/t5/Printing-and-Digital-Imaging/ct-p/bsc-412
    I hope this helps!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

Maybe you are looking for

  • Mail Alert to Managing Director for every transaction for customer & vendor

    Dear Gurus, Please let me know how & where to do setting for mail alert to Managing Director for every transaction for customer & vendor, Like for Customer: Sales Order, PGI, Invoice, Payment receipt................        for Vendor: Purchase Order,

  • Calling a servlet from XSQL

    Has anyone successfully called a servlet from xsql? If you have, have you called one from the href in the xsl:stylesheet? null

  • UK map update causing apps to crash

    I updated the UK map this morning on my Nokia 520. Now both the Here Maps and Here Drive apps crash after loading. I have reinstalled the apps and rebooted the phone but the problem persists. Here Maps still works with other downloaded maps, e.g. Tur

  • Do I need to uninstall my trial version of lr 4.4

    My trial version is up in a few days and I've planing to buy a cd version from a local store. My question is should I uninstall the trial version before installing the new one?

  • CRM Module

    Hi Guys, I am new to CRM module in Oracle E-business Suite. Could anyone of you tell me the preliminary materials to learn about CRM both functionally and technically. Kindly tell me the API's used in CRM module and also let me know what are all the