Currency in smartforms

Hi, I'm having a problem regarding to print a net value in smarform.
I've a two nodes, one is a code node and the other is text node .
In my code node I do this:
WRITE konv-kbetr TO l_total_txt .
l_total_txt is CHAR18
And in the other node I only print the l_total_txt.
But the problem is that the net value is in this format 123.456,789. And i have configured the decimals in 123,456.789.
Does anybody knows what is happening ?
Thanks in advance

Hi Diego Martinez,
And i have configured the decimals in 123,456.789
Where? When you use WRITE with a number, the separators are determined by the last SET COUNTRY statement (depending on country's number format), otherwise, they are determined by the number format defined in user's profile.
Something else, I see that you use WRITE with a currency amount without using the currency code, this is dangerous especially in a multi-currency environment. You might get 10,000.000 JPY (10 thousands), though the reality would be 10,000,000 JPY (10 million). This is because japanese yens don't have decimals, and SAP right-aligns numbers, using a floating decimal point based on currency code).
BR
Sandra

Similar Messages

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

  • Currency in smartform

    Hi
        In my smartform my currency is 329,543.000
    And it is spelling it as
    three hundred twenty-nine thousand five hundred fourt-three and zero paise only.
    Where as it shouls spell it as
    three lakhs twenty nine thousand five hundred and fourty three only
    my coding is as below
    v_rupees = spell-word.
    V_CESS_ADD_FINAL = ( v_second - '0' ) * 100.
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    AMOUNT          = V_CESS_ADD_FINAL
    CURRENCY        = 'INR'
      FILLER          = ' '
    LANGUAGE        = SY-LANGU
    IMPORTING
    IN_WORDS        = spell
    EXCEPTIONS
    NOT_FOUND       = 1
    TOO_LARGE       = 2
    OTHERS          = 3
    v_paise = spell-word.
    if v_rupees is not initial.
    if v_paise is not initial.
    concatenate 'RUPEES' v_rupees 'AND' v_paise 'PAISE ONLY' into v_frupees
    separated by space.
    else.
    concatenate 'RUPEES' v_rupees 'ONLY' into v_frupees separated by space.
    endif.
    endif.

    lalitha,
    the word lakhs used by indians only, but other countries they use millions and billions so after thousands FM using millions and billions.
    so for u r purpose spell_amount fm is not useful.
    try with other fm.
    Madhavi

  • Why we use function module u0091SSF_FUNCTION_MODULE_NAMEu0092 in smartform driver p

    Why we use function module ‘SSF_FUNCTION_MODULE_NAME’ in smartform driver program?

    Forum Search
    Use the form below to search the forum content. You can choose to search all content or restrict it to certain forums or dates. Also, you can filter the results by a username or user ID.
    Search Forum Content
    Search Terms:        Search Tips
    Category or Forum:      
    Date Range:      
    Results Per Page:      
    Welcome, Clemens Li      Help
    Your Control Panel      Your Control Panel
    Your Reward Points      Your Reward Points
    Your Questions      Your Questions
    Search Results » Messages: 271 - Search Terms: why we require ‘form interface’ section in smartform?      Sort by:
    Pages: 19 1 2 3 4 5 6 7 8 9 10
       1. Why we require ‘FORM INTERFACE’ section in smartform?
          Posted on: Sep 12, 2007 10:47 PM, by user: p d -- Relevance: 100% -- Show all results within this thread
          Why we require ‘FORM INTERFACE’ section in smartform?
       2. What is the driver program & why we require driver program?
          Posted on: Sep 12, 2007 10:48 PM, by user: p d -- Relevance: 17% -- Show all results within this thread
          What is the driver program & why we require driver program?
       3. Re: form interface in smartform
          Posted on: Feb 21, 2006 11:51 AM, by user: Hasmath -- Relevance: 14% -- Show all results within this thread
          hard-coded driver program in the tables section. for this u have to define the same structure in the form interface of the smartforms and can use the same structure for sending the data to the smartform ...
       4. Smartform: Form Interface
          Posted on: Aug 24, 2007 2:34 PM, by user: vivek pandey -- Relevance: 13% -- Show all results within this thread
          Hi, If we want to use a workarea/internaltable in the form interface of Smartform of a user defined structure ...
       5. Form Interface in Smartforms ?
          Posted on: Oct 27, 2006 5:32 PM, by user: SAP BEE -- Relevance: 12% -- Show all results within this thread
          ztest ) on the table and print the value : &gs_vbap-total&. I activate the form ...it is fine ...as well as program !! Now , when i do the print preview of the form , It gives an error : Reference ...
       6. SmartForms form interface - tables
          Posted on: May 18, 2005 2:44 PM, by user: Diliip Gupchup -- Relevance: 12% -- Show all results within this thread
          Hi All, In smart forms how to declare our internal table in form interface? By using types in global itried but it is ...
       7. Calling thru Form Interface of Smartforms
          Posted on: May 4, 2007 3:03 AM, by user: Subhasish Ganguly -- Relevance: 11% -- Show all results within this thread
          In a Smartforms, how can I call a internal table thru 'Form interface' which has been declared in the driver program? ...
       8. Form Interface in SMARTFORMS
          Posted on: Jun 1, 2006 10:56 AM, by user: Rams V -- Relevance: 11% -- Show all results within this thread
          Hi There, Is it mandatory to create a custom structure in ABAP dictionary to use it in SMARTFORM interface? regards, Rams. ...
       9. Line Types and Table types & Smartform form interface
          Posted on: Sep 21, 2005 3:38 PM, by user: Aadarsh K -- Relevance: 10% -- Show all results within this thread
          types ?? 2. In smartforms form interface, in the importing parameter, can tables be passed ?? [we use tables parameter generally, but even if passed in export parameter, no error is being given and ...
      10. regarding complex section in smartforms
          Posted on: Aug 25, 2007 7:49 AM, by user: ravi -- Relevance: 10% -- Show all results within this thread
          learning smartforms on 5.0ecc and i got the documents which is showing the complex section but in 5.0 ecc we have no complex section cud u plz let me know where sud i add the contents of the complex section ...
      11. why is it that some function module require an endselect
          Posted on: Aug 8, 2007 3:40 PM, by user: mathias Mbizvo -- Relevance: 10% -- Show all results within this thread
          why is it that some function module require an endselect and some can work without the endselect...
      12. Complex section in smartforms
          Posted on: Aug 11, 2007 7:29 PM, by user: narendra veduru -- Relevance: 9% -- Show all results within this thread
          Hi I am practicing smartforms in 4.7. I have a tutorial based on 4.6c and they have complex section in the nodes. How do i ...
      13. form interface using currency fields - smartforms urgent!!!!
          Posted on: Aug 17, 2005 1:11 AM, by user: skmysore -- Relevance: 9% -- Show all results within this thread
          called function module. what is the error here? How can i correct this to display data into the form? Please help me it is urgent!!! Thanks Santhosh ...
      14. why do we activate a program
          Posted on: Feb 28, 2007 5:50 AM, by user: Rose -- Relevance: 8% -- Show all results within this thread
          hi, why do we activate a program or tables in sap.Though there is a option known as save why do we activate? ...
      15. Re: what is form interface and global definitions
          Posted on: Jun 5, 2007 8:25 AM, by user: Venkatesh -- Relevance: 8% -- Show all results within this thread
          Function modules. and global definitions are the variable or tables declared with in the smartform. we can pass values to the smartform from the driver programme through the form interface. if helpful ...
    Pages: 19 [ 1 2 3 4 5 6 7 8 9 10 | Next

  • Print Currency as symbols in SAPSCRIPT/Smartforms

    Hi all,
    My customer want to print currency not as text but as symbols , for example "S" instead of "USD" .
    Does somebody know how to make it?
    Is there a dynamic solution ?
    Best regards.

    Hi
    U should check if in your system there's the currency symbol and if it supports it.
    The other problem can be in the printer, it need to know if it can understand that symbol.
    U can get all symbols available in your system from table TCP01.
    Here the symbol corresponds to a number has to be used in the sapscript/smartform.
    For example Euro sing is 156, so in the sapscript it need to insert <156>, the dollar shoul be 36, so <036>.
    Anyway you can't be sure your device can print the symbol.
    Max

  • Currency and quantity field allignment in smartforms

    hi experts
       i am facing problem in smartforms allignment for currency and quantity fields. these fields are not coming exactly on the same line of the other fields with char types. please help me resolving it.
    Moved to Crrect Forum
    Edited by: Vijay Babu Dudla on Apr 6, 2009 4:38 AM

    &wa_vbap-kwmeng(C)&
    adjust with left and right alignment.
    it will definately work.
    what happend? isn't ur problem solved?
    Edited by: MONIKA DHUMAL on Apr 6, 2009 4:38 PM

  • JPY Currency - Decimal Notation in SMARTFORMS

    When outputing an amount field how do you ensure the correct number of decimal places is displayed in smartforms?

    Hi Terry,
    abap-coding is:
    data: amount type bseg-wrbtr,
          hval(20).
    write amount to hval currency bkpf-waers.
    regards Andreas

  • Currency declaration in SmartForms

    Hi all,
    I have made a smartform in which i have got itab and i am printing this in a table.
    In itab i have got one field and that KBETR and thats Number of Units.....Whenever i try to print this smartform through my abap code then it gives me error that no reference found for KBETR.
    Can any body please tell that where should i clarify this field in SMART FORM under which tab and most of all how to reference it with the Units. i tried to give it under "Global Definition'--->'Currency and Quantity' but useless cuz it gives me error. To display data in smartform i have already created a structure in SE11 and that is working fine but at smartform it is giving me errors at runtime on UNIT and CURR fields.
    Thanks and points will be rewarded.

    Hi
    When you created the structure in SE11 have you give the reference fields for this field KBETR  or not?
    check it? generally when we create a table or structure with CURR and UNIT fields it is a must to give the refrence table and field for them.
    So against the KBETR field give some table and field name like VBAK-WAERK
    and for UNIT (quantity) fields give as EKPO-MEINS
    it will work fine.
    In smartforms you can declare an internal table in Global definitions as
    IT_VBAK  TABLE TYPE (or type table) KONV.
    check the syntax as I don't have system in front of me.
    <b>Reward points for useful Answers</b>
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Convert currency to character in smartforms.

    Hi Friends,
    I need one solution.
    I have 5 currency fields and i wanna print these currencies fields into character format in SMARTFORMS.
    How can we do it.
    Plz reply me as soon as possible.
    Thanks & Regards,
    Swapnika

    hi swapnika,
    u need to print amount in words. is this ur requiremnet?
    if s then TAKE A LOOK OF  following code.
    DATA : W_AMOUNT TYPE PC207-BETRG ,
           W_DUTY TYPE IN_WORDS.
    MOVE reguh-rwbtr TO W_AMOUNT.
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
    EXPORTING
    amt_in_num   = W_AMOUNT
    IMPORTING
    amt_in_words = W_DUTY.
      REPLACE 'RUPEES' WITH '' INTO W_DUTY.
      REPLACE 'ONLY' WITH '' INTO W_DUTY.
    IF WANTMORE HELP LET M KNW..

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

  • Smartforms Currency format wrongly printing

    Hi All,
      I'm facing a problem with printing the amount field on Smartform.
    I also tried it display in Document currency format eg.,
    In the document amount displayed like 1,234.56 (in a standard transaction)
    When printing on the form it displayed like 1.234,56
    I also checked my user settings in SU3 it is like 1,234.56 format only.
    When i checked it in Debug mode the Amount is showling 1,234.56 correctly.. till it reaches to form end but while displaying it changing the format.
    Any suggestion ? please help.
    Thanks in advance.
    -Kiran

    Hello,
    If you print an invoice, the print program RLB_INVOICE usually reads the country of the customer.
    This is the reason why the decimal notation is not correct.
    See please the T-code OY01 also.
    This is the standard customising of SD. A customer from country e.g. OMAN (OM)
    gets number like 332.500,00 and a customer from GB gets 332,500.00.
    If you really need to modify the decimal format, you can add the command SET COUNTRY 'EN' in
    your Smartforms. So the effect of a change of the decimal format is a cosmetic one only.
    Via debug you can change  the value of the field IT_HD_GEN-DLV_LAND to EN.
    Check the following code part in include RLB_INVOICE_FORM01 sample code:
    get delivery land
      PERFORM GET_DLV-LAND USING    CS_BIL_INVOICE-HD_GEN
                           CHANGING CS_DLV-LAND.
    CS_DLV-LAND = OM.
    Regards,
    David

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

  • Smartforms Currency decimals 3

    Hi,
    I have a problem with the element KBETR, in vf03 i have 1,769- %.
    In the table KONV, the field kbetr have 17,69-.
    How can i convert the field in percentage please?
    Do you know a data element with currency and decimals 3? when i divide by 10 i have 1,77- and not 1,769-.
    I repeat that im work with smartforms.
    They are not an other solution that create a data element?
    Thanks.
    Edited by: Spawn rad on Jul 21, 2008 5:36 PM
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:19 PM

    try this
    &symbol(.N)& Display upto N decimal places.
    other options:
    &symbol(Z)& Omit Leading Zeros
    &symbol(S)& Omit Leading Sign
    &symbol(<)& Display Leading Sign to the Left
    &symbol(>)& Display Leading Sign to the Right
    &symbol(C)& Compress Spaces
    &symbol(.N)& Display upto N decimal places
    &symbol(T)& Omit thousands separator
    &symbol(R)& Right justified
    &symbol(I)& Suppress output of the initial value
    u can use various combinations of these options.
    Example:
    &SFSY-FORMPAGES(3ZC)&---outputlen,c-condense,z-
    Reward if helpful

  • Customized smartform decimal display error for USD currency

    Hi All,
    I have customized PO smartform. the vendor currency is USD and out of 4 po line items, only 1 Item is displaying wrong decimal.
    Say: it should display 28,089.00 but that line item displaying 28.089,00.
    But all other item are displaying correct decimals like 28,089.00.
    Please advise.
    ANu.

    Check in debug mode what values are there in the internal table.Check the format. Plus lets say i have 2 line items of different currency and i am using the above mentioned steps then it can happen
    Nabheet

  • Currency formate change in Smartforms

    Dear friends
      I wish to know how to change the currency formate in Smartforms
      I am having displaying fields INR  125,234,445  i want to have output this way
    INR 1,24,34,445 please help me to solve this problem
    regards
    Naeem

    Hi ,
    You are priniing the unit fields could be waers after the currency field .
    If you are using a table interchange the currency and unit field or if it is not a table interchange the variables  as:
    ex  : &WAERS& &KTMNG&
    Regards

Maybe you are looking for