Smartforms: Space is displayed as #

Hi,
In smartform, Space is displayed as "#" symbol. The code is given below.
write gv_amount to lv_amount.
replace all occurrences of '.' in lv_amount with ' '.
The following steps I've tried,
1. declare a constant for space.
2. constants: lc_hor_tab  type c value cl_abap_char_utilities=>horizontal_tab.
3. ICON_SPACE
How to print the space.
Thanks with Regards,
Vallamuthu M

Hi,
Please try the below syntax:
replace all occurrences of '.' in lv_amount with space.
Regards,
Munesh.

Similar Messages

  • Suppress leading spaces while displaying an amount field in a Smart form

    Hi all,
    In a smart form, I am using fields like KONV-kbetr and VBAP-netwr each of them currency type and 2 decimal places. I want to suppress the decimal places and also the leading spaces while displaying these fields in a smartform cause when this field is inserted in a sentence, a lot of gap is there between the field and the words of the sentence. I dont want to change the field length cause it can be that huge in some cases.
    Please help.
    Thanks ,

    Hi, if you would place it in a sentence, it would be an option to concatenate the text and values into one string and then condense it.
    concatenate <text> <value> into lv_sentence.
    condense lv_sentence.
    but another way is to use codes for displaying values in smartforms:
    This is from a smartforms PDF i have..
    Output Options for Field Contents
    Use the Formatting options to adapt the value of a field before printing it. You can enter the
    relevant parameters directly behind the field name. Make sure to write the short forms of the
    different options in uppercase letters. Some of the options can be combined.
    General Information
    The formatting options are not suited for all data types of fields (for example, for character fields
    you need no exponential representation). You must distinguish between numeric fields and
    character fields.
    Numeric Fields
      If specified, the system first evaluates the length (<length>).
      If no length is specified, the system displays the value in its overall length.
      The trailing blank indicates a positive sign. To suppress it, use formatting option S.
      Any offset <offset> specified is ignored.
    Sequence of evaluation: (<length>), sign to the left(<),Japanese date (L), suppress blanks (C),
    right-justified display (R), insert fillers (F).
    Character Fields
    By default, the system displays the value of a field in its overall length, but truncates trailing
    blanks.
    Sequence of evaluation: suppress blanks (C), <offset> and (<length>), right-justified display (R),
    insert fillers (F).
    Overview
    Formatting Options for Fields
    Syntax Description
    &field+<offset>& Skips <offset> places of the field value (character fields only). If the
    offset is greater than the length of the value, nothing is displayed.
    &field(<length>)& Sets the output length to <length>.
    &field(*)& If the field is defined by a Data Dictionary type, Smart Forms set the
    output length to the value specified there.
    &field(S)& Suppresses the sign
    &field(<)& Displays the sign to the left of the number
    &field(.<nat.number>)& Limits output of decimal places to <nat.number>
    &field(E<nat.number>)& Displays the field value with the fixed exponent <nat.number>. The
    mantissa is adapted to this exponent by shifting the decimal
    character and inserting zeros.
    SAP Smart Forms (BC-SRV-SCR) SAP AG
    Output Options for Field Contents
    72 April 2001
    &field(T)& Suppresses thousand indicators when displaying fields of types
    DEC, CURR, INT, and QUAN.
    &field(Z)& Suppresses leading zeros of numbers
    &field(I)& Suppresses display of initial values
    &field(K)& Deactivates a conversion routine specified in the Data Dictionary.
    &field(R)& Right-justified display. Use this option only when specifying an
    output length as well.
    &field(F<filler>)& Replaces left-justified blanks in the value by the fill character <filler>.
    &field(L)& Converts and a date field to a local date and displays it. The date is
    then formatted using edit mask JPDAT.
    Since this representation uses Japanese characters, use it in the
    Japanese version of the SAP System only.
    &field(C)& The system takes the field value as a sequence of words separated
    by blanks. Option C shifts these words to the left and leaves only
    one blank inbetween as separator. Any leading blanks are
    suppressed. This effect corresponds to that of the ABAP statement
    CONDENSE.

  • In Smartform How to display footer & some secndry window after Main window?

    Hi,
    My requirement in Smartform is to display footer and and secondary window  after the Main window.
    also if item goes to 2nd & 3rd Page then also after main window footer and some secondary window should appear.
    Do i have to maintain footer and sec. window in Main Window itself
    Plz tell me in detail.
    Regards
    Vivek

    Hi Vivek,
    In smartform, specific legth is allocated to each window, that you create for a page.
    So, if you want to display secondary window on each page, create 1 secondary window with the required length and it will be displayed on each page.
    And you have written that you want to display the footer of main window also on all pages. It won't happen when you display your footer in main window. you will have to create a new window for your footer as well. Main window footer will always get displayed at the end of the main window.
    e.g. If your main window flows on second page, main window footer will be displayed on second page only.
    I hope this helps.
    Thanks,
    Archana

  • Smartform content not displayed in first page

    Hi SAP Experts,
      I  am sivakumar working in NTL, i have a problem  in smartforms,  PO data display for vendor, for every new vendor it should be display in new page, for that i defined command node its working fine. but the data displayed from second page first page skipped, and i want display horizantal line under header, plz give me solution for these two problems.
    Thanks & Regards,
    Siva,

    hi use the function 'SSF_OPEN' and 'SSF_CLOSE', it might solve yor problem
    and for horizontal line under the header create a window of that size and give intenstiy box and shading
    award points if helpful
    regards,
    Rohan

  • Smartform with only display

    Dear Team,
    I have Check one of my User ID with T-code  smartforms
    He can Change  Form .Then He can save also & Change request Create .
    I want That In  T-code  of smartforms .he can,t change the any Form.
    Mean Change option only in display mode.
    So how I can Do This one.
    Thanks
    manu

    Hi Manu,
    First, please read the last 4 posts to this thread: Backup Log
    I have been trying to contact you...
    Specifically to your question, from the ST01 trace:
          when others.            "S_DEVELOP without package protection.
            if p_s_develop-devclass =  space.
              authority-check object 'S_DEVELOP'
                 id 'DEVCLASS' dummy
                 id 'OBJTYPE'  field p_s_develop-objtype
                 id 'OBJNAME'  field p_s_develop-objname
                 id 'P_GROUP'  dummy
                 id 'ACTVT'    field p_s_develop-actvt.
            else.                                   "S_DEVELOP with package assignment.
              authority-check object 'S_DEVELOP'
                 id 'DEVCLASS' field p_s_develop-devclass
                 id 'OBJTYPE'  field p_s_develop-objtype
                 id 'OBJNAME'  field p_s_develop-objname
                 id 'P_GROUP'  dummy
                 id 'ACTVT'    field l_develop_actvt.
            endif.
        endcase.                           " P_OBJECT_CLASS
    So, you need to restrict their S_DEVELOP authority to display only activity for object type SSFO, and possibly the name and package as well if you want some but not others.
    Cheers,
    Julius

  • Smartforms,How to display different standard Text in a Text element.

    In smartform,if I want to according to the different conditions,display one of the serveral different standard Text objects which all  maintained in SO10 in a same text element,how to do it?
    if i put them in serval text elements, each condition only display the corresponding text element,but the text content can not display in the same position.
    Is there anyone can tell me?
    thanks.

    use Alternative to control it no problem
    for example you want to display the different SO10 to same position TEMPLATE's row 1 col2
    TEMPLATE1
    Alternative case1
    YES
    INCLUDE TEXT1(display SO10) [set output option line1 column2]
    NO
    Alternative case2
    YES
    INCLUDE TEXT2(display SO10) [set output option line1 column2]
    NO
    Alternative case3
    every case your SO10's text is always display at line2 column2
    just try to test it ,you can know

  • Smartform - problem in displaying text in a page

    Hi experts,
         I am developing an invoice printing in smartforms.Here i am facing one problem.
    i am displaying line items in a table in the footer window.In that table footer i am displaying some text (text contains 8 lines).
          Here if the number of line items are below 3 the text in the footer of the table printing correctly in the 2nd page.
         But if the number of line items are above 3 the text in the footer of the table in footer window is not printing correctly (4 lines in the text is printing in 2nd page remaining 4 lines are not moving to 3rd page).
    Regards,
    Navaneeth.

    Hi
    Generally we use MAIN WINDOW for printing the line itesm data which is not constant.
    Depending on lines it moves to next page.
    You are saying that you are using footer window. It seems that you have taken the height of that window as 3 Lines
    where you wants to print the lines if it is more than 3 ? naturally it goes to next page.
    So you increase the footer window height to a max of the line items, or reduce font.but even if it is not a constant data naturally it goes to next page.
    You have to use the footer window for printing some constant data in the footer like Signature, and address etc.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Smartform Problem in Displaying a string data

    Hi Friends,
                     I am facing a problem while displaying a string data in smartform. Actually it is a one of the field's data in an internal table. It is a STRING field type of length 0. While populating in an internal table it is having a all the data(Around 700 char data). But while displaying in a smartform surprizingly only few characters(Around 225 char data). How can i overcome this problem?
    Regards,
    Sekhar.J

    Hi
    try this and see
    Declare some Variables of 72 char each and split that long string data of internal table text field into them and display these variables strings one below other in smartform
    var1 = itab-text+0(72)
    var2 = itab-text+72(72)
    var3 = itab-text+144(72)
    like that
    and display one below other in smartform.
    &VAR1&
    &VAR2&
    &VAR3&
    Reward points for useful Answers
    Regards
    Anji

  • Smartforms secondary window displayed in PDF?

    hello every SDNer,
    i have a question, who can help me ?
    For 'Smartform', I will like certain secondary windows in the PDF file to appear but not  in other PDF files. How can I go about doing so? For example, SF_EXAMPLES_01, address secondary window appears   in this particular PDF file but not in the other PDF files . Is there any parameter it can be set as such?
    thanks in advance
    Yaning

    Hi,
    You can set a condition on the window.
    This will make sure that window contents are displayed only when the condition is satisfied.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Smartform Decimal value display and column length increase

    Hi,
    I have following questions for you.
    1) I need to display a decimal value in a column of table in smartform. I am able to do so, if the value is 23.38 its coming fine, but if the value is 23.00 it is coming like 23. can i do somethin so that i can display it like 23.00.
    2) How can i increase the width of a particular column of table in smarform ?
    Inder

    >
    Kulwinder Grewal wrote:
    > I was using character type in smartform, it works for value like 12.38 but not for 12.00,  It will show it as only 12. should i >change the data type to curkey type. ?
    >
    in the text element have
    &field(.2)&

  • Smartform O/P Display Problem

    Hi All,
    Can any one help to solve this issue,
    i have done coading for Smartform and sending email
    Email is getting send but i'm unable to see the display when i select the output it is directly sending email without display ,
    what are the parameters need to pass to display and sending email.
    Thanks
    Surendra

    Hi Satyajit ,
    I'm calling form through Output Type
    ls_control_param-getotf = 'X'.
    ls_control_param-PREVIEW = 'X'.
    ls_composer_param-TDNEWID = 'X'.
    CALL FUNCTION fm_name
      EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       control_parameters         = ls_control_param
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       output_options             = ls_composer_param
       user_settings              = ' '
        gt_header                  = gt_header
    IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
       job_output_info            = gv_job_output
    *   JOB_OUTPUT_OPTIONS         = LS_Output
      TABLES
        gt_item                    = gt_item
    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.
    ENDIF.
    gt_otfdata[] = gv_job_output-otfdata[].
    I have written the above code can some one help is there any other parameters need to pass?
    Surendra

  • Smartforms - issue in display page

    Hai ,
    I have to dispaly the smartform in the below mentioned way.
    it has to display mara records(no of records changes dependending on customer)  & the last page with
    terms & conditions.
    in the ablove scenario, depending on the no. of records in the Mara the pages may increase.
    for example : if mara records takes 2 pages..then the total SF contains 3 pages(including the terms & condition page).if the mara records spread across 3 pages for x customer the total pages in SF would become 4.
    Till here it is fine.
    Now I have another problem.
    for a particular customer say ABC,
    I need to display another information in separte page(say extrapage) after mara records & before terms & condition.this extra page may also spread across more than on page.
    This extra page is of type 'mara records page'(only the contents get changes for this  ABC customer).
    Now the problem is this extra page has to start from fresh page.
    But in my case it is been displayed from the end of the 'mara records page'.that is if mara records page takes 2 & half page the extra page contents stat printing from very next point.I want this to start form third page.once these contents are displayed it has to display the terms & conditions as usual.
    can any one have any idea abot this?
    sorry , I could n't find any better way to explain my problem:).it is bit lengthy.
    Thanks,
    Bhaskar.

    Hi:
    In the same page of the smartform, you should create 2 main windows.
    The first main window would execute for everyone and whenever the particular conditions would come like ABC customer, the next would execute for this, you have to put the condition within condition tab of 2nd window.
    Hopefully i have cleared my points and it would helpful to solve your problem.
    Regards
    Shashi

  • Issue in Smartform  "need to display dynamic column or cell"

    HI,
    I need some issue with smart form " ITEM Details"
    matnr maktx menge uom
    i have defined all in the inside table so that i have selected frame ?
    now my issue is i should display only matnr maktx uom
    i don't want display Menge column  if it doesn't have vaule ( in clude cell and box also ).
    i need to display  Menge column  if it  has value .
    how to resolve the issue in smartform?
    replas ASAP.
    Thanks

    Hi,
    Kindly check the below links.. hope this will help you.
    Hide table columns in smart form?
    Hiding column in table in smartform
    Regards,
    Booma Ganesan
    Edited by: booma ganesan on Apr 28, 2010 4:05 PM

  • DB02 table space overview display wrong sizes

    Hi all
    I get this result when I run the transaccion DB02 and table space overview
    Tablespaces: Main data   (Last analysis: 13.12.2009 04:00:29)
    PSAPSR3                 55,000.00     2,458.31
    PSAPSR3700           44,980.00     2,128.50
    PSAPUNDO               5,060.00     4,921.94
    PSAPTEMP               2,000.00     2,000.00
    SYSTEM                                 880          14.38
    SYSAUX                                 340          20.75
    PSAPSR3USR                       20               14
    Its displaying wrong informaction. The correct its the informatcion below and I get with a detailed analysis.
    Tablespaces: Main data   (Last analysis: 21.07.2010 13:04:51)
    PSAPSR3                     75,000.00     4,352.13
    PSAPSR3700          44,980.00     1,634.44
    PSAPUNDO              5,060.00     4,752.81
    SYSTEM                                880     10.25
    SYSAUX                                360     23.5
    PSAPSR3USR                      20     13.31
    PSAPTEMP                          0     0
    I think is for the date of the last analysis, but I dont know how to update my table space overview analysis: i will appreciate it any one cant tell me how to update the analysis.
    Best regards.
    Edited by: Alvaro Olmos on Jul 21, 2010 8:16 PM

    To refresh the table space overview do :
    DB02 ->Refresh->there you will find two options choose second one
    And it will refresh the tablespaces.
    Or you can also schedule update stats job daily to update it automatically.
    Regards,
    Shivam

  • Smartform space issue?

    Dear ABAPER'S,
    I am developing smartform. i have some issue please see below screen shot i have mark has red color.
    from above screen shot how to remove space between thee lines ?
    Thanks
    Ravilla

    You need the delete the empty lines between the items?
    Have you checked if there ist no PI-Sign after all of your entrys in the table/loop.
    I've made a screenshot, its from a german system but you should see want i mean.
    Go through all entrys in that table and make sure there is no sign like this.

Maybe you are looking for

  • What is the serial number for the trial version of adobe photoshop 12

    thank you!

  • New Domain Controller DNS Issues

    Hello, We currently have 2 root Domain Controllers (ROOTDOM) and 4 child Domain Controllers (MYDOM). ROOTDOM is an empty domain, everything on our network uses the MYDOM domain. These existing DCs were running Server 2003, so we upgraded the schema a

  • Multiple Data source in Struts-Config.xml

    Hi , I am Amit Garg and i am new to this forum.... Can any one help me out with the problem that i need to have 3 data source in my struts-config file and how will my getDatasource(request) method recoganise which data source to pick and access.

  • Initialising objects when server starts up

    Hi, Is there some area where we can put code so that it gets executed when the server starts up? In our case, we wish to load some settings from a database and then save them to the application bean. Thanks, Tristan

  • How to uninstall HP Sprinter 11 version

    I had installed HP Sprinter version 11 instead of version 11.52.  When trying to install version 11.52, I am getting an error Sprinter application must be uninstalled before you can install HP Sprinter Service pack 11.52. Need help to uninstall HP Sp