Displaying amount field in smartform output

hi experts,
i am printing amount field in smartform output. like this 11,200.
but i need to display like this $11,200.
i need to print $ with amount field .
can u give me some idea?
Thanks

Hi,
Try like this.
Data : v_amount type i value 11200,
          v_final type string
If u r getting currency, then check the currency.
If Curr  eq 'USD'
concatenate '$' v_amount into v_final separated by space.
endif.
Print V_FINAL where do u want.

Similar Messages

  • Amount field in smartform

    Hi Experts,
    I am developing smart form for invoice.In output it is displaying amount field like this
    123.44,65 instead of 123,44.65.(I.e full stop is coming in place of comma and vice versa).
    please help me.
    Thanks,
    Santosh

    Hi
    In order to convert the amount field  we need to check first user settings . Even though the User setting value is 'X' .
    The amount will not display correclt .
    For this proper soultion is change the format according to country settings .
    for that we need to give the syntax set country countryid.
    this syntax will look into T005X if the country id is avaliable  it will fetch the decimal notation provided.
    if not provided you need to provide the syntax
    SET COUTNRY SPACE . Here space will check the user settings and change the correct settings.
    Please  provide the SET COUNTRY SPACE before where you are trying to display . ie using flow logic -> program lines
    or in driver program  where you are trying to calculate .
    I have done the same thing when i had this problem for Purchase order smartform.
    Thanks
    Hariharan.

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • Is there any option of hiding ( no display)  a field from the output list.?

    Hi,
       i have a requirement where  i should not be display the field in the output but need to use the field in the write stmt .
    example :
    write : / itab-field1 ,
                 itab-field2.
    but in the output list i dont want the field 2 to be dispalyed  is there any way for this.
    kindly help me out.
    thanks and regards,
    vikram

    Hi Vikram,
    Just clear the field value before the write statement. It will solve the issue.
    Loop at itab into wa.
    clear wa-field1. " say suppose if you dont want to display field1 of itab
    write  wa-field1 
    write / wa-field2
    Endloop.

  • Problem in displaying data in the smartform output.

    Dear Freinds,
                    I have a requirement as per my requirement i have to display the employee dependents details in the smartform output.
    I have taken a table in smartform and collected all teh employee dependents details . Each dependents his own  details around 8 fields. so iam displaying in the smartform it is working till now no problem ........iam getting data as below
    Dependentrelation | dependentname|passportno|expirydate|visano|visadate|visa expire date| ResidenceNo|Residence issuedate|
    spouse                 | Raja                   |123456       |10/09/2009|122233|10/01/2009|10/01/2010 | 1001             |10/01/2009
    These are the one of the dependentds details iam having till now , like this i have another dependts details. Now the problem i have
    to add some fields to this list ( to this internal table) ...........if iam adding one more feild data is getting truncated as i dont have any more fields to add to right in the horizontal line........how can i solve this issue and how can i add further fields to this list
    like date of birth of the dependents and gender
    please could any one tell how i can solve this issue.
    regards
    divya.

    If this is a Tablethen only thing you can do is re-size the grid and font size to adjust your data. Like, displaying HEADINGS & DATAs in 2 rows instead of 1, etc.
    Nothing else can be done. Otherwise you have to trim down the data to adjust in one page.

  • Error when displaying amount field in HTMLB Tableview

    Hi all,
       I am displaying some 'X' table in HTMLB Tableview and it has one amount field.But reference(currency) field of that amount field is in other table . I know it gives the error.
    Please tell me there is any other way to resolve this problem with out adding reference(currency)field in the same table?
    Thanks and Regards ,
    Harikrishna .

    Hi Hari,
    But reference(currency) field of that amount field is in other table . I know it gives the error.
    It will not give any error , you can use the currency key field of other table or structure .
    Alternatively you can use  predifined type DEC instaed of CURR  .
    Regards,
    Anubhav

  • DIsplaying WRBTR (AMOUNT FIELD)WITHOUT  DECIMAL PLACES

    Dear all,
    I am facing a problem in displaying amount field  in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
    How can I do it in a alv report if I have only one output amount field?
    thanks
    Ranjan.

    Hi chittaramjan,
    1. use this kind of funda (just copy paste in new program)
    Important things
    a) one extra field in internal table
      declared in the same exact fashion
    waers LIKE tcurc-waers,
    b) Populate this field
    c) REST THE System will take care
       (based upon country settings)
    2.
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA  : BEGIN OF itab OCCURS 0,
            f1  LIKE P0008-BET01,
            waers LIKE tcurc-waers,
            END OF itab.
    START-OF-SELECTION.
      itab-f1 = '-4.15'.
      itab-waers = 'KRW'.
      APPEND itab.
      itab-f1 = '4.68'.
      itab-waers = 'GBP'.
      APPEND itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
          it_fieldcat             = alvfc
        TABLES
          t_outtab                = itab
        EXCEPTIONS
          OTHERS                  = 2.
    regards,
    amit m

  • Alignment required in to display the  Amount field

    Hi Friends,
    kindly help me facing problem in to display the amount using decimal places also
    nedd to display the Pretax and aftertax amount for that purpose
    written below code . 
    it is picking amount fields but the amount is printing like this
    pretax                  aftertax
    $ 34.67               $     0.00
    $ 21.64               $   120.90->
    I need to display amount fields in order like, thens, hundreds, thousands like.
    read table lt_final into ls_final with key bplan = 'PRD'.
       if ls_final-pretx = 'X'.
         pretax = ls_final-eecst.
         write pretax to lv_pre.     "#EC UOM_IN_MES
         concatenate c_dollar lv_pre into lv_dollar.
          shift lv_dollar right deleting trailing space.
    *Pretax totals
         lv_pretax = lv_pre.
         read table out_pay1 with key name = 'PRETAX'.
         check sy-subrc = 0.
         out_pay1-value = lv_dollar.
         modify out_pay1 index sy-tabix.
         clear out_pay1.
       else.
         aftertax = ls_final-eecst.
         write aftertax to lv_after. 
         concatenate c_dollar lv_after into lv_dollar1.
          shift lv_dollar1 right deleting trailing space.
    Aftertax totals.
         lv_aftertax = lv_after.
         read table out_pay1 with key name = 'AFTERTAX'.
         check sy-subrc = 0.
         out_pay1-value = lv_dollar1.
         modify out_pay1 index sy-tabix.
         clear out_pay1.
       endif.
    Thanks,
    Sai

    Hi Daya,
    I would like to print two amount values with decimals.
    like :  like Pretax      after tax
                                   $      0.00
          $   3.45             $  120.67
          $   0.00             $      0.00
    I created using right justification one paragraph format with two tabs
    60.00              ch           Right
    68.00              ch           Right
    But my program output is comming like this.
    any one please help me.
    Program output:
    Pretax               after tax
                                   $    0.00
          $   3.45           $  120.67
          $   0.00             $    0.00
    Thanks,
    Sai

  • Shopping Cart status in Smartforms output

    Hi experts,
                   I want to display SC status in Smartforms output. I found out the table is TJ02T and the field is TXT30. Will anyone pls give how to do this in Smartforms or if any function module available for this then it will be more useful for me.
    Thanks and Regards,
    Suguna.

    hi Suguna,
    I was searching something and saw ur thread and wanted to know if u got this solved or not!
    though it is after 2 months!!!
    BR,
    Ashwin.

  • Amount field with thousand separator

    Hi friends,
    i want to display amount field (5794.00)with thousand separator as (5,794.00).
    i defined amount field as character data type for my requirement.
    user want to see this value with thousan separator.
    Please help me hoe can i get thousand separator.
    Thanks
    ramesh

    Hi Ramesh,
    There is two functions for converting display currentcy
    CURRENCY_AMOUNT_SAP_TO_DISPLAY
    Convert currency value from value stored in SAP to displayed currency
    CURRENCY_AMOUNT_DISPLAY_TO_SAP
    Convert currency value from displayed currency value to value stored in SAP
    Try below,
    DATA declaration
    WMTO_S-AMOUNT =  Type DEC :: length 15 :: Deciamls 4
    parameter: p_discur like TCURC-WAERS,     "Display currency
               p_intval like WMTO_S-AMOUNT.   "Internal Amount
    data:      gd_disval  like WMTO_S-AMOUNT. "Display Amount
    *Start-of-selection.
    START-OF-SELECTION.
    CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
         EXPORTING
              currency        = p_discur
              amount_internal = p_intval
        IMPORTING
             AMOUNT_DISPLAY   = gd_disval
        EXCEPTIONS
             INTERNAL_ERROR   = 1
             OTHERS           = 2.
    IF sy-subrc EQ 0.
    You are now able to manipulate the returned value.
                            I.e. Convert it to GBP
    Without using this function module you would only be manipulating the
    SAP stored value, which is often missing a number of zeroes.
          I.e. 28000 JPY is stored within SAP as 280.
    ENDIF.
    *End-of-selection.
    END-OF-SELECTION.
    write:/(30)  'Value stored in SAP:', p_intval,
          /(30)  'Displayed currency:',  p_discur,
          /(30)  'Ammount is displayed Currency:', gd_disval.
    Hope it help
    Wiparat

  • Problem in displaying currency field

    Hi folks,
               We are displaying amounts in one smartform. Amount format should be as '$2,000.00'. we changed it into character variable and concatenated with the dollar symbol. Its wroking fine. But, as it is a character variable, the commas in the middle of the amount is not displaying.But we need it also....Could any body suggest me to accomplish it...
                         Thanks in advance,
                            Shyam.

    HI,
    While assigning the data from a currency variable to character variable use MOVE statement.
    Move l_curr to l_char_curr.
    Concatenate '$' l_char_curr into l_char_curr separated by ' '.
    Best regards,
    Prashant

  • Displaying bullets in the smartform

    Hi folks,
              Is there any way to display bullets in the smartform output, as we display in the MS Word. If so, could any one suggest me how to do it..
        Thanks in advance,
              SHYAM.

    Check in this,
    In Your Text node,
    Open the text node in the Line Editor.
    Insert > SAP Symbols .
    one more thing
    you can include the "Dispalyable Characters" which comes under the menu of Text Include > Symbol > Displayable Characters.
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 8, 2008 6:23 AM

  • Smartform Output Amount display in Parenthesis

    Hi,
    In a Smartform Output my varaible (X_VAR type p decimals 2) is printing out as 434543.65-.
    I want my output to be in this format (434543.65) rather than with negative Sign.
    Due to my requirement I can't change the type of variables.
    Any idea how to Show it on Smartform .Unfortunately Concatenation doesn't work with Variables of Type p.
    Any ideas?
    Regards
    Vara

    Omitting the Leading Sign:
    The ITCDP-TDULPOS field contains the value -100.00. The ABAP Dictionary definition for this field includes a leading sign.
    &ITCDP-TDULPOS& -> 100.00-
    &ITCDP-TDULPOS(S)& -> 100.00
    You might be getting syntax error since smart form editor
    is case sensitive. Try with all capital.
    Hope this helps..
    Thanks,
    vamshi

  • Amount field display as 0.00

    Hi friends,
    we have requirement to display amount value as 0.00 if amount is 0  in the custom screen field(data type CURR).
    user is requesting us to display amount in screen field with 0.00 if the amount is 0.
    i want to do this through screen attributes ..
    Please help

    HI Thanks for your reply.
    we need to display for input amount screen field once user enter value 0 it shoud display as 0.00..
    as you said i enter and it works fine if i enter 0.00 or 20.00.etc.
    if i enter 0 or 20..etc. its going to dump and  given msg as shown below.
    i etntered amount screen field attributes as follows:
    Attrubutes:
    under Dict TAB:
    FORMAT  CURR
    Conv.Exit: NUMCV
    Ref.field : T001-WAERS
    under program TAB
    inout field & ouput field check boxes checked
    dump:
    runtime Error          UC_OBJECTS_NOT_CHARLIKE
          Occurred on     10.05.2008 at   05:24:31
    he current statement is defined for character-type data objects only.
    Error analysis:
    Only character-type data objects are supported at the argument
    position "OUTPUT" for the statement
      "TRANSLATE".
    In this case, the operand "OUTPUT" has the non-character-type "P". The
    current program is flagged as a Unicode program. In the Unicode context,
    type X fields are seen as non-character-type, as are structures that
    contain non-character-type components.
    Please help me.
    thanks

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

Maybe you are looking for

  • I can't uninstall Lightroom 3.2

    I am trying to uninstall Lightroom 3.2 but get an error message "error 2753 lightroom.exe is not marked for installation"  I have a new pc windows 7 64 bit professional, but had no problem uninstalling from old pc (same Spec). How do I uninstall? I h

  • My App Store does not work when trying to update applications

    My Apo store does not work when I try to update applications that need to be updated

  • Network issue between Macbook Pro and Windows

    I have a Macbook Pro 2012 model running 10.8.5. Also have a Win7 PC. When both are connected to the home router via wire (or the Windows on wireless), everything is fine from network connectivity point of view. However if I move the Mac to Wireless (

  • Input sources CONSTANTLY lost after reboot!!!

    Since installing Yosemite (currently on 10.10.2, as per "About this Mac"), almost every time I restart, reboot, or simply turn off and then on my computer, I lose all my input sources. This is particularly annoying, as I work in humanities and consta

  • Drop zone and layered menus

    Hi, I have a lovely layered menu made in Photoshop and all works well, but I would like to add a drop zone to it so I can have some of the movie show while the menu is up. I can't get this to work. I cut out a hole in my psd file and put the movie be