Printing Currency Fields

Hi,
How to Print Currency Fields in Smartforms [in tables node]
Thanks & Regards,
Ajith

hi
use sth like this
data: lv_neto type string,
         wa_tabla-to_neto like bseg-dmbrt.
write wa_tabla-to_neto to lv_neto currency 'CLP'.
then in ur text of the smartform write &lv_neto&, doing that ur amount will be showed fine.
Regards

Similar Messages

  • Currency field value in script

    Hi,
    In script i want to print  currency field value is 123.000 in this formate.
    It is possible or not.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 5:14 PM

    Hi anitha,
    Example : if the currency field length is 8 then you have to give the statement as.
    &SYMBOL(8.3)&  -   Decimal format. Length 8 decimals 3
    reward points if useful.
    thanks,
    satheesh.

  • Error while printing currency in Smartform

    Hi All,
    In ME23N t.code i am entering currency value as 1.000 but while i am printing in smartforms the value printing as 10.00 , Please let me know how to print same currency in the smartform ?
    Regards,
    Phani.

    Declare your currency field as a Currency
    Global DefinitionsCurrency Quantity Fields-there give your currency field and set as a CURR then it will work
    Try it.
    Regards,
    Madan Mohan.

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

  • Currency fields in alv

    hi,
    can u please help me in dispalying currency fields in alv?.
    i have given in fieldcatalog cfieldname and cabname.amount is printing, but currency unit is not printing.
    Thnaks
    Gopi

    search forum
    lfs_fieldcat-fieldname = 'AMOUNT'.
    lfs_fieldcat-tabname = text-022.
    lfs_fieldcat-CFIELDNAME = 'CURRENCY'.
    lfs_fieldcat-col_pos = '1'.
    APPEND lfs_fieldcat TO t_fieldcat.
    lfs_fieldcat-fieldname = 'CURRENCY'.
    lfs_fieldcat-tabname = text-022.
    lfs_fieldcat-col_pos = '2'.
    APPEND lfs_fieldcat TO t_fieldcat.
    {code]

  • Currency fields in Smartforms.

    Hi All,
    This is the problem i encountered:
    1) I create two internal tables of type EKKO and EKPO giving the names IH_EKKO and II_EKPO where EKKO and EKPO are the header and the item table for the purchase order respectively.
    2) Then i use the FM SSF_FUNCTION_MODULE_NAME and give the smart form name.
    3) Then i pass the internal tables to the FM generated by the smartform.
    4) In the smart form i declare the workarea ZH_ITAB and ZI_ITAB.
    The problem is that when i try to print the respective document number it throws up an error saying that the "Field ZI_ITAB-NETWR is unknown" and if i remove both the fields NETPR and NETWR from printing it works fine and it shows the print preview. I have also tried putting &ZI_ITAB-NETWR& in lower case as it had worked sometimes but not now.
    What could be the problem ? Am on 4.7
    Thanks in Advance
    Sudhi

    Hi Nablan,
    yes the work area ZI_ITAB if of type stucture EKPO. I went through the standard smart form for Purchase order and SAP has made use of field symbols for the currency fields.. Is that necessary?

  • Printing currency symbols in smartform

    Hi,
    I have a requirement like printing the currency code beside all
    currency fields.
    Ex: If customer is in us, $ should b printed.
    Can anyone please tell from where these fields can b retrieved.

    Hello,
    Please refer to this link:
    putting checkboxes in smartform?
    It talks about inserting sap symbols (concretely checkbox) , I don't know if $ is in standard sap symbols.
    However I think that you can have a look.
    I hope it will help you.

  • Error in smart form with currency  fields

    while i am using with currency fields in samrt forms error is comming in while i am giving print-preview in se38 "<b>Reference field WA_EKPO-NETPR unknown in form."</b>

    In smart forms if we want to display quantity and currency fields. We cannott directly display currency field and quantity fields.
    To display the mdo like this
    Ex: GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • To Remove comma's from the Currency Field

    Hi,
    I Want to print the Currency Field in the smartform without
    comma's.
    Is there any Function Module to suppress comma's .
    Eg: 1,000.00 to 1000.00
    Regards
    Praveen.
    Edited by: praveen kumar on Jan 20, 2009 2:13 PM

    Hi,
    Following code will help you in this way,
    TABLES: aufk.
    TYPES: BEGIN OF t_aufk,
      user4 LIKE aufk-user4,
      withoutc(13),
      END OF t_aufk.
    DATA: it_aufk TYPE STANDARD TABLE OF t_aufk WITH HEADER LINE,
          wa_it_aufk TYPE t_aufk.
    SELECT user4 FROM aufk UP TO 10 ROWS
      INTO CORRESPONDING FIELDS OF TABLE it_aufk.
    BREAK-POINT.
    LOOP AT it_aufk INTO wa_it_aufk.
      wa_it_aufk-withoutc = wa_it_aufk-user4.
      MODIFY it_aufk FROM wa_it_aufk INDEX sy-tabix.
    ENDLOOP.
    LOOP AT it_aufk into wa_it_aufk.
      WRITE: / wa_it_aufk-user4,  wa_it_aufk-withoutc.
    ENDLOOP.
    Please test with your own table and field may be you will not able to get any amount in the above used itab, if you only want to test place a break point just before 1st loop and add some values in the debuger mode to the amount field.
    Please Reply if any Issue,
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Jan 20, 2009 6:46 PM

  • Smartform-currency field error.

    Hi folks,
      In My smartform i want to print the net value from vbrp table ( netpr) .but when iam executing the form it is throwing error as " reference field netpr " is unknown in form..
    where i have to declare reference field of netpr.
    Thanks,
    Neelima.N

    hi ,
      use the following documentation for your help.
    Displaying Fields That Refer to Currencies or Quantities
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field if the table field contains a currency or quantity value. When printing these fields, SAP Smart Forms can take into account the assigned currency or unit:
    If the value field is in the same table as the assigned currency or quantity field, SAP Smart Forms automatically recognizes this and, during output, formats the value field according to the currency or unit in the assigned field.
    If the value field and the assigned currency or quantity field are stored in different tables, SAP Smart Forms cannot automatically recognize the relationship.
    In the second case, you must inform SAP Smart Forms about the relationship.
    Procedure
    As mentioned above, you only have to perform the following steps if a value field that is to be displayed in a table (for example, VALTAB) has a relationship to a currency or quantity field in another table (for example, CURTAB). In this case, you have to specify the relationship explicitly:
    In the form, define a global field of the same type as the table in which the currency or quantity field is stored, for example WA_CURTAB. Also define a work area for the output of your value field, for example WA_VALTAB.
    If you use a table with a header line, you do not need to define a work area. Instead, you work through the following steps with the header line of the relevant table. In the following step, for example, you would specify the field VALTAB-VALUE instead of WA_VALTAB-VALUE under Field Name.
    Create the relationship to the currency field by switching to the Currency/Quantity fields of the Global Definitions node and entering the following values:
    Field name: WA_VALTAB-VALUE if this is the value field of VALTAB that is to be output
    Reference field: WA_CURTAB-CURRENCY, therefore the currency field of CURTAB
    Use the work area WA_VALTAB on the data tab page of your table node or loop node.
    Create a program lines node before the event at which the value field is printed.
    In the program lines node, assign the currency or unit in which you want to format the value field WA_VALTAB-VALUE to the currency or quantity field of the global field WA_CURTAB-CURRENCY. You have to either select the value of WA_CURTAB-CURRENCY afterwards or have already passed it to the form interface.
    Display or print the value field WA_VALTAB-VALUE.
    Result
    During output, SAP Smart Forms formats the value field WA_VALTAB-VALUE according to the value assigned to the currency or quantity field of the global variable WA_CURTAB_CURRENCY.
    regards,
    Veeresh

  • Printing currency symbols(like $ for dollar)for all countries in smartforms

    Hi friends,
    I have to print currency symbols (like $ for dollar) for all countries in SRM PO Smartform.
    Is there any character set which has all the currency symbols in it?
    If so, how to print those in Smartforms?

    Hi
    There are two ways to maintain format of Currency,
    1. Transaction : OY01 Customize: set up countries
    2. Menu->System->User profile-> Own data -> Defualt
    Just check the country seeting as well as user setting
    before run the smart form.
    U can use SET COUNTRY command to set country format which is specified into OY01.
    Use Write stament to convert into required currency format.
    ... CURRENCY w
    Effect
    Correct format for currency specified in the field w.
    Treats the contents of f as a currency amount. The currency specified in w determines how many decimal places this amount should have.
    The contents of w are used as a currency key for the table TCURX; if there is no entry for w, the system assumes that the currency amount has 2 decimal places.
    Regard ,
    Vinod

  • Currency field in alv report

    hi
    i have to display the currency field o/p with diff. currencies according to countries.how can i do that.

    Hi,
    see example program ERGP2070. It is doing something similar to your requirement.
    It is declaring currency as a separate field 'WRG'. and for amount field, setting CFIELDNAME field as 'WRG' and DO_SUM = 'X'.
    try this.
    Regards,
    Satish

  • Summary report treats a currency fields as text

    In the summary report I have three charts with the currency field. The two charts show 'average' and 'total' but the other chart shows 'percentage' of responses - in other words the report treats that field not as a number but as text. The filed is designated as a currency in the desing view. Why is it treated as text?

    Hi,
    The percentage of responses is a reference for the responses of that field.  If you don't want it to show, you can disable it.
    Hope this help,
    Perry

  • ROUND OFF IN CURRENCY FIELD

    Hi,
    In my report I am displaying the currency field NETWR in ALV Report.
    Now, the requirement is as such-
    For eg- If the value of NETWR field is 57,441.50 then I want to round it off to display only 57(assuming that all values in thousands) i.e 57,441.50 would be considered as 57,000 only.
    I think there is some functional module to solve this problem.
    Can somebody help me regarding the same,points will be rewarded.

    Hi friend
    Try this.
    Check this sample:
    DATA: WA_INPUT TYPE P DECIMALS 8,
    WA_OUTPUT TYPE P DECIMALS 2.
    WA_INPUT = '5678.65800341'.
    CALL FUNCTION 'ROUND'
    EXPORTING
    INPUT = WA_INPUT
    IMPORTING
    OUTPUT = WA_OUTPUT
    EXCEPTIONS
    INPUT_INVALID = 1
    OVERFLOW = 2
    TYPE_INVALID = 3
    OTHERS = 4.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE: WA_OUTPUT.
    OR this,
    DATA: I TYPE I,
    P TYPE P DECIMALS 2 Value '3.5'.
    I = P.
    Reward if helpfull.

Maybe you are looking for

  • UPLOADING DATA USING BAPI_DOCUMENT_CREATE2

    Hi Friends, I am uploading data for CV01N using FM "BAPI_DOCUMENT_CREATE2", it is updating the data successfully, but for my requirement i need to change the value of RC29P-POSTP     Bom Item Category in the DOCUMENT STRUCTURE , it is default taking

  • No track listings

    iTunes has suddenly stopped finding track listings when I import a cd. I had trouble with my Belkin wireless modem a little while ago and it seems to have stopped since then. I can get onto the internet, so it's not the connection. Anyone got any tip

  • EPM11.1.1.2:error when uncompressing data retrieved

    After I open a BQY in IR WEB client and click the "table",there is an error happened. The error message is "error when uncompressing data retrieved:*Data Error*". My IE has no google toolbar or any other toolbar. What's wrong?

  • What is the newest Model or Generation Airport Extreme?

    What is the newest Model or Generation Airport Extreme? And would the Time Capusle have all the same fuctions as an Airport Extreme with the added benefits of storage?

  • Oracle 9iDS Universla Installer - Uninstalling unwanted bits!

    I've got 9iDS installed -but I only really need Forms and Reports. However if I try and uninstall the other products (Jdeveloper, Designer etc) then the UI uninstalls everything - duh! Anybody else had this problem and know how to get around it short