Unable to format print field on Smart Form

Hello,
I have a problem trying to format a print field so that it displays correctly.
The field in question is a display of a percentage (KOMVD-KBETR).
I currently have the following in a Program node:
IF NOT <KO>-KBETR IS INITIAL.
WRITE <KO>-KBETR CURRENCY <KO>-KOEI1 TO GV_KBETR .
ELSE.
CLEAR GV_KBETR.
ENDIF.
GV_KBETR has to be a character field for the WRITE to work. However if I use GV_KBETR in my TEXT node it appears some of the formatting options don't work on character fields. The one in question is (<)
I created a variable GV_KBETR_DISP type KBETR and added GV_KBETR_DISP = GV_KBETR to the program node above. Thisformats fine on the smartform. However using this setup I occasionally get an error when executing the smartform which I diagnosed that the GV_KBETR_DISP = GV_KBETR statement doesn't handle the data correctly if the data has a space in it.
Has anybody got any suggestions I could use to get round this problem?
Regards
Mike.

Hi,
Why can't you use the field - KOMVD-KBETR to display ?
IF you want to map the currency to this currency format, then you can simply add it in the Gloabal defnition -> Currency / Qty fields tab.
If you do not want to display the initial value, then you can use the text formatting option
&symbol(I)&  Suppress output of the initial value 
Regards,
Selva K.

Similar Messages

  • How to Print Vertically in Smart Forms

    I need to print data in vertical format into columns in smart forms. Can any one give me the solution.

    Hi Sreedhar,
    In Smartforms, if you need to print vertical text, only possible way (That i know) is, Create a Bitmap image of the text and rotate the same to 90 deg and then use that image in your smartform....
    If you can use adobe forms, you can rotate the text to any angle that you want....this is one of the main advantage of adobe forms.
    Best Regards,
    Ram.

  • How can I format a field in the form creator?

    How can I format a field in the form creator? It's putting the same text in all the fields within a table. I want each field within the table to have different text. As soon as you click out of the table, all the text is the same.
    I even changed the fields from a text box to a drop-down list so a person can make their selection, which will be a quantity from 0-9. There are two of these such fields. You make your selection in each, click off the table and both fields show whatever I selected in field 1. The original Qty I selected in the bottom field was a 5 but it changed it to whatever is in the top field on it's own. I've added a screen shot.

    This behaviors usually happens when you create the fields but  a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field  "company name" printed in each and every page of a multi-page form document.
    Go to the properties fields of each field and make sure  to assign unique form field  names.

  • Use of NACE after creating print program n smart form

    Wat's d purpose of NACE?I hav created my own print program n smart form according to my own requirement.If NACE is necessary 4 my smart from.How can i use NACE i mean navigation steps.
    Please help me out.Its urgent.
    Thanks & Regards,
    Santhosh.

    Hi Santhosh,
    Nace is for message control settings. Say if u want to trigger a Smartform or an Idoc or any other customized program u can do the message control settings.
    Say at the time of Sales Order creation or updation u want to trigger a Smartform, then u have to follow the following steps:
    Goto NACE
    Select application V1 and then click Output Type.
    create a new Output type or copy the existing one abd save it with new name
    then in Processing Routine Mention the driver program name and in Form routine mention the main subroutine name.
    In Smartform mention your SMartform name and also the layout if u have ceated.
    Again go to NACE and Select application V1 and press Procedures.
    here out of the many procedures u have to select the right one and attach your Output Type to it.
    You can also create a condition record..Say if u want to trigger this Smartforms for Sales Order of particular type.
    Hope this helps.
    Reward Points if useful.
    Thanks.

  • How to print bullet in smart form

    Hi Experts,
    I have a requirement in smart form  where different points of texts should come under a bullet.
    Can you please tell  me how to print bullet in smart form.
    Note : I have to use Standard text   
    Thanks in advance
    Bikas

    hi
    good
    We can create bullets in smartforms.
    For this change the editor to text editor and then
    goto insert->characters->SAP Symbols and select the
    symbol you want.
    This may help your requirement.
    You cannot see the bullets in print preview, it'll
    appear only on a hard copy.
    reward point if helpful.
    thanks
    mrutyun^

  • How to Printe Graphics in Smart-Forms

    Guys,
    Need your help…
    Is it possible to print graph in smart form???
    If yes, if you have any document, please pass it to me…
    Dhiraj

    Hi Ram,
    Go through this hope u can understand.
    How to Upload graphics (IMAGE) to your Sapscript?
    Command in your Sapscript
    /: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
    These are the steps to be followed for uploading graphics in R/3 system 
    1.   First save the file as BMP 
    2.   Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and 
          make it Zoom as 100% and save as *.TIFF 
    3.   Open SE38 and execute program RSTXLDMC
    4.   Give your TIFF file path name 
    5.   Select Bcol (for Color) 
    6.   TEXT ID will be ZHEX-MACRO-*. 
    7.   Inplace of * write your own logo name (ZCOMPANYLOGO) 
    8.   Execute the program 
    9.   Now Goto SE71 create your ZFORM 
    10. Create logo window 
    11. Goto text element of logo window 
    or
    In 4.6x :-
    1.  Goto SE71 Change the mode to GRAPHICAL 
    2.  Choose the Graph Tabstrips
    3.  Now type in some name for the LOGO WINDOW 
    4.  Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP 
    5.  The code will be written automatically. You just need to drag and drop wherever you want
         the graphics to be. 
    /:   INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
    Reward points if help ful.
    http://www.sap-img.com/ts001.htm
    Sorry i think for Scripts ..
    better to go for above post . it definetly works
    Thanks
    Naveen khan
    Message was edited by:
            Pattan Naveen

  • Passing printer name to smart form

    Hi,
    How to pass more than four characters printer name to smart form function  module name. Please  help me. I will give points.
    Thanks.

    Hi,
        Thanks for your reply but there I can pass maximum four character printer name but my case printer name contains 12 characters. If I pass 12 characters printer name it is considering first four characters and it is displaying printer name is not found. So please tell me how to pass more than four characters printer name.
    Thanks.

  • Unable to print graphics using smart forms

    Please some one help in printer settings for graphical printing in smart forms.
    Instead of graphic it  interprits the graphics as a text and prints text.
    please urgent...................help me

    hey no worries I got the answer thank you.

  • Print Output in Smart forms

    Hi,
    There is a Strange issue I am facing now that is print output is getting changed according to the printer settings.
    Even though I specified the output_options-tdprinter = 'ZPDFUC',and output_options-tddest = 'LP01' while calling smart form FM the printer option always takes the printer setting present in user profile.
    Is there a solution where the smart form by default picks one printer but not in the User profile settings.
    Regards,
    Deepa

    Hi,
    There is a field check it and set the value X to overwrite the system details with manual settings. when calling the smartforms.
    Thanks,
    Vinayaka

  • Print portrait orientation smart forms zebra printer

    Hello,
    I have designed a label with smart forms. The dimensions are the following: width = 11 cm. Height: 15 cm. The label has been designed in portrait form but the zebra 105 SL printer print it in landscape format. Does Anybody knows how to fix this problem ?
    Thank you.

    Hi,
    You didn't check your printer settings in Printers and Faxes in control panel. It cannot happen the way you say.
    Feel free to revert back.
    --Ragu

  • Print preview of smart form

    Hi all,
    how to view the print preview of a smart form and how to debug the smart form
    Thank You

    SMARTFORM-> execute->execute->pass values if require to import & table parameters ->execute-> on the pop up window give Printer name as LP01 and press print preview.
    For debussing -
    1. write BREAK POINT in the code window.
    2. Put a break point on the call function in the driver program
    3. put a brak point in the generated Function module.
    Refer this link too -
    Re: smartforms
    Regards,
    Amit

  • How to add New field in SMART forms.

    How to add new field in the SMART FORMS. Please know me the step.
    Please help me soon.
    Moderator message: Welcome to SCN!
    Moderator message: please search for available information/documentation, do not use a priority higher than normal (no "soon", "ASAP", "earliest" etc.).
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jun 17, 2011 12:31 PM

    How to add new field in the SMART FORMS. Please know me the step.
    Please help me soon.
    Moderator message: Welcome to SCN!
    Moderator message: please search for available information/documentation, do not use a priority higher than normal (no "soon", "ASAP", "earliest" etc.).
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jun 17, 2011 12:31 PM

  • Slow down printing speed for Smart Forms

    Hi,
    Is there any command (etc.) to slow down the printing speed of an Hp laserjet when printing a smart forms?
    I need that because when I print that smart form to fast I run into print out quality problems.
    Many Thanks

    hi,
    take print out in a dot matrix printer instead of your laser printer without changing any settings.
    Coz i tried this once, i was successfull. But, the printout will be very slow.
    regards,
    kool.

  • Using Continuos Printing stationary with smart forms is that possible ?

    Hi All,
    there is an instance where we have to use continuo's stationary for printing Payment Advices for the vendors with bankers cheque attached to the payment advise is that possible in smartforms also i have know that is possible in scripts but the requirement is in smartforms and can we do that in Smartforms.
    If any one have seen the same instance earlier, take your time to guide me the process.
    Thanx all in advance..
    Raj

    With smart forms i have dropped the idea as it is not that flexible as script..
    if am not wrong~
    I have resolved it and have done the needful for printing the cheques and Payment Advices... in scripts with any kind of printer.. using Scripts.
    Any one dealing with FI ABAP having any kind of issues with the Payments advices and cheques can always ping me for any doubts...
    payment advices ,
    cheque printing,
    vendor aging,
    customer aging,
    brs upload program,
    Service tax reports,
    TDS reports,
    vendor master upload,
    customer master upload,
    gl balance upload,
    NCR Report,
    and some co Reports..
    these are some of the things where  i have masterd for now..
    any one i need of these can always get in touch...
    cheers and all the best.. to be a brilliant ABAPER...
    Raj ([email protected])

  • Dispalying different field at SMART FORM report

    hi,
    i have created a code for displaying GRTXT i-e(Reason for Movement) in smart from from table T157E.This is the code:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE GRUND eq '1'
      or    grund eq '2'
      or    grund eq '3'
      AND   SPRAS eq 'E'.
    where GV_GRTXT is a Global Definations at smart form.when i execute it,it gives me filed in GERMAN even tough i restricted it with SPRAS field and given me wrong REASON FOR MOVEMNT.for example at MIGO application it shows me INCOMPLETE
    with GRUND(Reason for Movement) 2 and at my report it shows me Qualität mangelhaft with GRUND(Reason for Movement)  2.
    Kindly tell me in the coding what is the mistake which had been made by me.
    Thanks.
    sappk25

    hi Suhas Saha,
    If i have to display GRUND (1,2,3) in my coding how can i display it because when i use AND conidition in coding it gives null values:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE bwart eq '122'
      AND GRUND eq 001
      AND GRUND eq 002
      AND GRUND eq 003
      AND SPRAS eq 'E''.
    and if i used OR condition it gives me result in GERMAN i-e:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE bwart eq '122'
      AND GRUND eq 001
      or GRUND eq 002
      or GRUND eq 003
      AND SPRAS eq 'E'
    and in the last if i used IN condition it gives the result of wrong REASON OF MOVEMENT at smart form which i verify from MIGO.i-e:
    SELECT SINGLE GRTXT FROM T157E
      INTO GV_GRTXT
      WHERE bwart eq '122'
      AND GRUND in (001,002,003)
      AND SPRAS eq 'E'
    Thanks,
    sappk25

Maybe you are looking for

  • German special characters not displaying on page instead of that Question marks displayed

    when i submit form,i need to send a mail with filled data.Here Suppose user entered german special characters.I am getting Question marks instead of ä,Ä,ö,Ö,ü,Ü,ß. I have used meta tag like <meta http-equiv="content-type" content="text/html;charset=u

  • I was making a movie on iMovie, and the green screen wasn't working.

    I was making a movie on iMovie, and was trying to use the green screen to make a split screen. I pressed on the green screen button, but the second clip didn't play next to the first, and only the audio played.  I tried agian with some different clip

  • Lost stuff following update on N8

    Don't know if anyone can help?  Last night whilst my Nokia N8 was connected to my PC to download some photos, Nokia Suite asked if I wanted to download the latest version of Belle! Foolishly I thought this might be worth doing so went ahead, however

  • Loading Special Characters

    Hey everyone, hopefully this is really easy. I have a really simple easy quiz that pulls questions off a .txt file. Trouble is, whenever a question uses the special character "&", flash doesn't display it. Almost as if it isnt there. If I push things

  • Error While Importing the oracle 815 database

    The error message i get is "segmentation fault(core dump)". This error Occurs when i import any table from this export file(.dmp). I using the command "imp parfile=filename". When i run the file, the error occure when starting to import the data from