Printing error in smartform

Hii ,
I designed a smartform for purchase order,if the form has 10 materials in it the taxes are also printing individually for each material...for example if 10 materials in that form has cess,bed,ecess ,the taxes are printing individually for each material.But the taxes should be printed single time for all materials.can anyone help me regrding this.
Thanks & Regards,
Venkat AKella.

Hi venkat I think u want to display all the taxes for each material in line item  right???
Do like this in Driver program....
For each taxe amount u need to append the final table,,,Then it will show for each material all the taxes will come...let me know if u hav any queries
  LOOP AT it_ekpo INTO wa_ekpo.
READ TABLE it_t685t INTO wa_t685t WITH KEY kschl = wa_konv-kschl
                                                         spras = 'E'
                                                         kvewe = 'A'
                                                         kappl = 'M'.
      IF  sy-subrc EQ 0.
       CONCATENATE wa_item-basic_pr wa_t685t-vtext INTO v_word SEPARATED BY '-'.
       CONCATENATE v_word '%' INTO v_word.
        MOVE 'BASIC PRICE' TO wa_item-mat_desc.
       MOVE v_word to wa_item-mat_desc.
      ENDIF.
      APPEND wa_item TO it_item.
      CLEAR wa_item.
    ENDIF.
    READ TABLE it_konv INTO wa_konv WITH KEY kposn = wa_ekpo-ebelp
                                             kschl = 'D101'.
    IF sy-subrc EQ 0.
      MOVE  wa_konv-kbetr TO wa_item-basic_pr.
      CONDENSE wa_item-basic_pr NO-GAPS.
      MOVE   wa_konv-kwert TO wa_item-basic_pr_val.
      CONDENSE wa_item-basic_pr_val NO-GAPS.
      lv_var1 = lv_var1 + wa_item-basic_pr_val.
      READ TABLE it_t685t INTO wa_t685t WITH KEY kschl = wa_konv-kschl
                                                        spras = 'E'
                                                        kvewe = 'A'
                                                        kappl = 'M'.
      IF  sy-subrc EQ 0.
       CONCATENATE wa_item-basic_pr wa_t685t-vtext INTO v_word SEPARATED BY '-'.
         CONCATENATE v_word '%' INTO v_word.
       MOVE v_word to wa_item-mat_desc.
        MOVE 'BASIC PRICE' TO wa_item-mat_desc.
      ENDIF.
      APPEND wa_item TO it_item.
      CLEAR wa_item.
    ENDIF.
endloop.

Similar Messages

  • E-Mail print error; check SmartForm or printer definition

    Hi Team,
    We are facing  an issue when we try to print the email in SAP CRM 7.0. Getting an error saying -Mail print error; check SmartForm or printer definition.
    Any pointers on this how this can b resolved will be of great help.
    Have gone through the similar sdn thread, not able to really understand how the issue was resolved.
    Error when printing an email >  CRM_IC_APPL_UI_CHMSG
    Regards,
    Udaya

    Hi Udaya,
    Try to maintain a default printer for a particular user in t-code SU01 (on Defaults tab -> Output Device).
    Then, when you print again it will generate a spool order for chosen printer (can check on t-code SP01).
    Kind regards,
    Garcia

  • Error in smartform when printing multiple pages

    Hi,
    I m using a smartform which have two pages in it,
    i m able to save and activate it without any error message and when i run the function module generated to chk my smartform
    it runs fine and diplays two pages i m using.
    but as i m attaching this form with my driver program it is giving an error message while running . the error message is " No other output defined in main window."
    Please help me out to resolve the issue.

    Re: error in smartform when printing multiple pages
    dharani tadikonda
    Thanks for this answer. It is absolutely correct.

  • SmartForms Printing Error for Japanese Characters

    Hi,
    I have an issue with Printing Japanese Characters in the SmartForm. 
    When I Print Preview the smartform I can see the characters in Japanese but when I Print the actual smartform in the printer, all I get is some junk characters like # and !.
    I have the following setting in the smartform.
       Multi-Byte functionality enabled
       Character set used is Shift JIS
       Smartform created in language EN
       Translate to All Languages set to true
       No restriction on Language Control
       Smartstyles used has JPMINCHO fonts only
       Default Para is JPMINCHO
       Characters formatting has explicit JPMINCHO as font
       Login language is JA
       Printer is Local Printer with device type JPSAPWIN
    When I debug the Smartform function module, the OTF Data Table (within the function) shows characters in Japanese (with codepage 8000) but then I look at the actual spool as a result of processing the function, it comes up as garbled.
    Interestingly, I have exactly the same settings on another test smartform to print just 2 columns and it works well.
    Not sure where I am going wrong.
    Appreciate help on this issue.
    Many Thanks
    Krishnan

    hi,
    has anyone solved this problem? even i m facing the problem. me restating the problem as below:
    in VF02 transaction, for billing document we are trying to print smartform. Our logon languagae is EN and the Output Type langugae is EN. In spool, we are getting the CORRECT format ie the texts that are maintained in Japanese are showing as Japanese characters while the whole smartform is in English format.
    Our requirement is to PRINT (from printer) the texts that are maintained in Japanese should get printed in Japanese format. I know that this is problem with printer settings. The printer is printing perfectly fine as other documents in Japanese characters so its ensured that printer is enabled for Japanese.
    I suppose some kind of setting needs to be done at SAP end so that printer recognises double-byte character set of Japanese.
    Waiting for confirmation/ solution.
    Thanks
    Debs

  • Fpcopara job log - error in smartform

    Hello,
    I am running Fpcopara tcode for a mass printing.
    After the job finishes, when I look in joblog I can see the error message no 6323: Error in smartform ....
    Any ideas on how to debug the job, because fpcopara is running in background and DBUG seems not to work...
    Thank you

    Hi
    Check this report RSNAST00 and debug the code
    I think you have not maintained the print parameters in your driver program
    please check the same
    for reference check the driver program RLB_INVOICE
    and this perform
    determine print data
      PERFORM set_print_data_to_read USING    lf_formname
                                     CHANGING ls_print_data_to_read
                                     cf_retcode.
    Regards
    Shiva

  • How to write print program for smartforms

    Hi all
    I need to develop new smartform and its print program.
    But Im not experience in writing print program for smartform.
    Ive gone through the simple print program sample that use only one table as input and one table for output.
    But my smartforms require few tables for input and output.
    How should I define the Data?
    Can anyone guide me on how to write it.
    Thanks & Regards
    az

    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Reward points...

  • Field does not exist error in smartform

    Hi experts,
    I'm using VL03N to print a smartform, using a particular output type and I'm getting an error "Field VBDKA-VBELN does not exist in form" in the processing log.
    The smartform doesn't give any error when the language is given as German (DE) and printed, error only for English (EN).
    The smartform was actually developed in German (DE).
    We have checked the translation, there was no difference in the translation between DE and EN.
    At the error, information in debugger is as follows: sy-msgid = SSFCOMPOSER and sy-msgno = 604.
    Please help!!!!!
    Edited by: vishnushankar.n on Feb 14, 2012 5:25 PM
    Edited by: vishnushankar.n on Feb 14, 2012 5:26 PM

    Hi,
    this must be translation issue.
    Create break point at SSFRT_WRITE_ERROR function module and perform print preview
    - here You can find all errors, warnings - if You check call stack, You will find which node causes error.
    Regards,
    Przemysław

  • 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.

  • 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

  • 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.

Maybe you are looking for

  • I got a new laptop a lot of my music and apps are missing, How do i get them all back?

    My laptop know im was stolen I got a new one and i downloaded itunes. Only the songs i bought on itunes came over and only like 3 apps. Now i a is missing. The only place i have the music is on my ipodm suppose to have around 50 of them and all my ot

  • How do I create a PDF document with multiple different page sizes?

    I scan tif images and can have a single document with Letter, Legal, Tabloid, and even full map plan sizes (36" X 24") all in one document.  I get the document all set, then do a: File, Print, choose Adobe PDF (running Acrobat XI Pro), but it convert

  • Driver errors reported when trying to start objects

    We have a standard PCI can card, and are developing in the following environment: Software written in VC++ Version6, running under NT4.0, Port configured as 'CAN0', using extended arbitration IDs. We create one network interface object, and, dependin

  • Regarding Registration of OA Page in the Application

    Hi, When i registered the OA Page in the application i am getting the following error, can any one suggest me whats the actual problem. The steps which i followed for the registration of the page are: 1. I Ftp'd the class files to the proper director

  • No Apple TV Option

    Hi There, For over a year I have been able to play my music and anything from YouTube (from my iphone using AirPlay) via my Apple TV.  I went to do this as per usual today and the little icon that is normally on the bottom left hand side where you ca