Currency format in Smartforms

Hi ,
In Smartforms i have to display the NETPR, NETWR ,MENGE fields in the following format........
1,00,000.00   
Usually these fields will be shown as 100000.00
How to format these fields.
Is there any FM to do this.
Kindly let me know.
Vikki.

HI,
DATA:l_v_sep TYPE sy-batch,
     l_v_dec TYPE sy-batch,
     v_kzwi1 TYPE kzwi1.
DATA:l_v_dis_temp TYPE char20,
     l_v_char2 TYPE char2,
     l_v_gross_sale TYPE char20.
CONSTANTS:l_c_dot TYPE char1 VALUE '.',
          l_c_comma TYPE char1 VALUE ','.
CALL FUNCTION 'CLSE_SELECT_USR01'
EXPORTING
   username           = sy-uname
IMPORTING
  X_USR01            =
  DATE_FORMAT        =
   decimal_sign       = l_v_dec
   separator          =   l_v_sep       .
v_kzwi1 = '10000.00'.
WRITE v_kzwi1 TO l_v_dis_temp.
SPLIT l_v_dis_temp AT l_v_dec
INTO l_v_gross_sale
l_v_char2.
CONDENSE l_v_char2.
REPLACE ALL OCCURRENCES OF l_v_sep
IN l_v_gross_sale
WITH l_c_comma.
CONCATENATE l_v_gross_sale
l_v_char2
INTO l_v_gross_sale
SEPARATED BY l_c_dot.
Regards
Jana

Similar Messages

  • 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

  • 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

  • In Scripts how to print the values in currence format

    Dear abap guru's,
    I am working on Purchase Order Script, copy from the standard script, after that wrote a one perform , in that added one new field to script, but value is printed like this formate : 1000.00, but i want to print 1,000.00 like this currence format. let me know the any solution
    thanks to all
    raj.

    Hi ,
    When you are populating the value in perform instead of assigning the value (using = ) pass it using WRITE TO.
    Like :  WRITE lw_total TO output-value.
    Declare lw_total as currency field.
    Regards,
    Rajitha.

  • How to create paragraph format in smartforms

    Hi All,
    Let me know how to create paragraph format in smartforms?
    Thanks&Regards
    Mahesh

    Hi
    When we create a smartform we can see in <b>global settings</b> , <b>form attributes</b>.
    In <b>form attributes</b> we set the over all style of the smartform. Goto <b>form attributes</b> and open the tab <b>output options</b>. Here you can see the <b>Style box</b>. In this style box we enter the smartstyle created in transaction code <b>smartstyles</b>.
    Open transaction <b>smartstyles</b>.
    Create a new style.
    Upon creating a new style you will see 3 folder structures under style name.
    1. Header data
    2. Paragraph format
    3. Character format
    To create paragraph format right click on the paragraph format node and click Create Node. Give it name. Now you will get a screen with 4 tabs.
    Indents and spacing
    Fonts
    Tabs
    Numbering and outline
    Here you can provide the look you want.
    Now add this smartstyle in your smartform's form attribute.
    You can also provide individual smartstyles to each text element you create by giving the name of smartstyle in its output options tab. Each text element has a individual output option tab here you can give any smartstyle.
    Click on the general attribute tab of any text element and give the paragraph format directly or by going to SAPScript editor mode.
    Any more questions you can ask me directly mailing me.
    Please do reward points if satisfied.

  • Currency format in LAC

    Hi,
    We are working with LAC, and we have an issue.
    When we create an auction in SRM the currency format for the start price and the others is 1,234,567.89 (this is correct for us), but when we execute the applet (LAC) the format change 1.234.567,89
    The user in SRM has the correct format 1,234,567.89 then, Why in the applet the format is different????
    How can we change the format????
    We are working with EP then, we execute the transaction  bbp_auction since a Portal iview. Our single sign On between LAC and Portal was configurated, then we guess, we need to change the currency or number format in the Portal User, Is that correct?????
    What user do we need to change (currency format)????   SRM user????  Portal user???? LAC user????
    Thanks

    Hi Claudia,
    Check the following note :
    Note 666849 - Running LAC in non-US locales
    This may help you.
    Thanks,
    Pradeep.

  • Help needed to display character vaiable in currency format

    Hi Friends
    In a SAP Script I am passing a currency field to the subroutine as an i/p parameter and since it gets converted to character format in subroutine because of 'itcsy' , ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field, now i need to pass this char field back to SAP script but i need to display that field in currency format with commas and decimal points in the script...how do i do that???
    Thanks
    Vishal.

    Hi Vishal,
    When you pass the currency amount into the perform, no need to remove the trailing zeros and the decimal point.
    Only thing you need to remove is the comma seperator as it gives a runtime error during calculation.
    To convert it back to the format with comma, write the below command:
    WRITE v_Item_total currency '2' to v_item_char.
    CONDENSE v_item_char.
    Here v_item_total is a number which is converted to comma seperated number and passed to char variable.
    This char variable is then passed to the SCRIPT.
    regards,
    Gaurav.

  • How to use currency format set

    Hi All,
    I have to use currency format set to mask the amount values to their respective currencies ,
    i reviewed the Oracle XML Publisher Administration and Developer's Guide and followed all the steps mentioned there ,i m also quoting the same over here
    To define a Currency Format Set:
    1. Navigate to the Currencies page under the Administration tab. Select Create
    Currency Format Set.
    2. Enter a Name and a Code for the set. The Code is a unique identifier and cannot be
    changed later. Select Apply.
    3. The Currency Formats page will display for your newly created set.
    To add currency formats to the Currency Format Set:
    1. Select Add Currency Format to add a format to your set.
    2. Select a Currency Name from the list.
    Note: This list is generated from the FND currency table and
    should include all ISO currencies. Additional currencies can be
    added from the System Administrator responsibility.
    3. Enter the Format Mask you wish to use for this currency and select Apply.
    The Format Mask must be in the Oracle number format. The Oracle number format
    uses the components "9", "0", "D", and "G" to compose the format, for example:
    9G999D00 where
    9 represents a displayed number only if present in data
    G represents the group separator
    D represents the decimal separator
    0 represents an explicitly displayed number regardless of incoming data
    See Using the Oracle Format Mask, Oracle XML Publisher Report Designer's Guide for
    more information about these format mask components.
    After a currency format has been created, you can update or delete it from the Currency
    Formats page.
    i followed all the above step ,i need to use germany currency ,i have also used the format-currency command in my RTF template,but still its not working ,i used 9G999D00 for masking .
    Any hint would be very helpful ,thanks in advance .Please let me know if my question is not clear
    Thanks
    Pratap

    hi all
    Thanks ,this is resolved ,i just missed clearing cache ,after clearing the cache its working .
    thanks
    Pratap

  • Currency format combined with if else issue

    Hi all,
    Basically, I need to get the value from if else statement, then use currency format to format the currency according to their currency code.
    the following is my if else statement to show the A.PAY_PROMISE_AMT or A.PROMISE_AMT
    <?xdofx:if A.PAY_PROMISE_AMT <> 0 then
    A.PAY_PROMISE_AMT
    else
    A.PROMISE_AMT
    end if?>
    <?format-currency:value_*[this value I want to use is the value from the above if else statement];*currencycode; ‘false’?>
    could anyone help me to combine those two statement to get the result I want?
    Thanks in advance

    >
    I tried your solution, but I got some error.
    >
    some?
    try change
    <>to
    !=in my sample
    what if you try IF without xdofx?
    what will be result?
    say
    <?if:A.PAY_PROMISE_AMT!=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PAY_PROMISE_AMT)?> <?end if?>
    <?if:A.PAY_PROMISE_AMT=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PROMISE_AMT)?> <?end if?>
    <?format-currency: xdoxslt:get_variable($_XDOCTX, 'LVar');CURRENCY;'true'?>plz see
    Working with xdofx:if and xdoxslt variable error

  • Why the currency format in numbers is very limited into few countries???  I think this is a must have in next update of numbers ..

    I was doing a spread sheet for a business proposal to my colleague in Philippines, was very disappointed to know that the currency format in Numbers for Mac is very limited to few countries only...

    As Badunit suggests, in Numbers 2.3 you can turn on the preference that shows the full currency list.
    Put a value in a cell and then choose Philippine Peso.  Save the document.  Open the document in Numbers 3.0 (if that is what you are working with) and you will still have access to that currency.
    You might go to Numbers > Provide Numbers Feedback to let Apple know you need the option to use more currencies in Numbers 3.
    SG

  • Currency format problem while exporting as excel

    Hi
    I have to create a report for which the currency format should be $#,##0.00 and -$#,##0.00 for negative numbers.
    In the text form field of rtf template, I have selected number format and removed the portion ;($#,##0.00) from $#,##0.00;($#,##0.00).When I view the report as HTML the numbers are showing in proper format.($#,##0.00 or -$#,##0.00).But when the report is exported as excel ,the negative number format changes to ($#,##0.00) in red color.
    Can anyone tell me how avoid this problem?
    Thanks in advance
    Naveen

    I think this is an Excel issue - you can right mouse click in Excel the column header and "Format Cells&gt;Text"
    You could also append a ' character to your numbers in BI Answers ie: '6035784010491980 which should give you the correct format in Excel.
    eg. CONCAT( '''', CAST ( '6035784010491980 AS CHAR) )
    There is also an MS Office plug in available for OBIEE this may give you further options.

  • BInput Data mismatch with currency format

    i am working with fs10 transaction
    I want to sum up the balance amount with respect to all
    companycode and post SUM to the bseg table using Batch input.
    i defined sum variable as below and coded.
    data : sum like glt0-hsl01.  (currency format)
    After all SUM operation.
    I have done like this to diplay SUM in report first(to check SUM output)
    SUM = SUM * 100.
    write : sum decimals 0.
    >>>>Now in report output i get value '17,222-'
    if u see in  fs10 screen we are getting same value.
    but when i try to post in Batch input.
    i have done like this below.(before posting i have checked
    for negative value )
    if sum < 0.
    sum = sum *100.
    compute sum = abs( sum )
    now...
    perform open_group................
    perform bdc_field using 'bseg-wrbtr'  (currency format)
                                    sum.
    when i execute this BI i get error in Amount(Sum)value
    display screen. (saying something differs in length )
    how to match the field.
    ambichan.

    Hello,
    Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
    Hope this helps you.
    Regds, Murugesh AS

  • Print PO Price in Currency Format.

    Hi Everybody,
       I want Print PO Price in currency format in alv report how do i get all countries currency values.
       anybody tell me.
    thanks,
    s.muthu

    Hi Muthu
    We can do it using the fields in populating the field catalog. Explore the existing fields of the same.
    Another way to handle is declare the amt field as char and write the amt to this field using option CURRENCY. The the problem with this method arrives when you want to do totals and stuff.
    Below code can help you understand in writing a field to another with currency option.
    data: l_curr(20) type c,
          l_amd type kbetr value '3333.23'.
    write l_amd to l_curr currency 'USD'.
    write:/ l_curr.
    write l_amd to l_curr currency 'JPY'.
    write:/ l_curr.
    To know the currency of a country you can use table T005.
    Kind Regards
    Eswar

  • Need to update the FSG currency format at form 999,999,999,99.99(default) to 99,99,99,999.99 (Indian)

    Hi All,
    I need to change the currency format in App's GL FSG report. It's by default comes 999,999,999,999,99.999 form this i need to change into Indian currency format (99,99,99,99,999.99).
    I tried to changed the format in column set but it doesn't changed.
    I am working in Apps R12 on RHEL5.5 64bit OS.
    Thanks in Advance.
    Regards
    Chander

    I'm not sure I understand the question. Are you saying you want the bold part of your path (currently hard-coded) to be in a variable instead? That would look something like this:
    $file_server = Read-Host "Enter the file server IP address"
    $guid = '{231A178D-DC6C-4186-9575-9C64F07DA5B5}'
    (Get-Content "C:\TEMP\GPO\source\5\$guid\gpreport.xml") |
    ForEach-Object { $_ -replace "99.999.999.999", "$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\gpreport.xml"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\Backup.xml") |
    ForEach-Object { $_ -replace "99.999.999.999", "$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\Backup.xml"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Documents & Settings\fdeploy1.ini") |
    ForEach-Object { $_ -replace "99.999.999.999", "$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Documents & Settings\fdeploy1.ini"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\Drives\drives.xml") |
    ForEach-Object { $_ -replace "\\99.999.999.999", "\\$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\Drives\drives.xml"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\files\files.xml") |
    ForEach-Object { $_ -replace "\\99.999.999.999", "\\$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\files\files.xml"

  • Currency Format in Crystal Report Version 10.5 (Free With Visual Studio)

    Hi ,
    We are using free version of crystal report that comes with VS2008.
    We are in the need to display the amount in the following format and we are not able to do so. Here is what we need to achieve
    10000000---- Need to display as 1,00,00,000 
    1000000---- Need to display as 10,00,000
    100000  -
    Need to display as 100,000
    10000    -
    Need to display as 10,000
    Please let us know what currency format we can use or what is the other technique to resolve this issue.

    you should be able to format as a number with thousand delimiters. right click Format - > number tab
    if not display as text
    @amount
    totext(youramountfield, 0,",")
    Ian

Maybe you are looking for

  • How to delete the record in Table

    Hi Guru's, i have Table which contain no.of Records. i want to deleted one record. if i go to Table maint.Generator....from table itself.. how to do that... when we deleting the record. can we create new TR for that? can anybody tell me. Thanks in Ad

  • Lightroom 5 - download 2nd copy?

    I have an iMac desktop computer with Lightroom 5 installed.  I just purchased a MacBook Pro and would like to install Lightroom 5 on that also but it does not have a CD/DVD drive.  Is there an on-iline version of Lightroom 5 that I can use to downloa

  • Service "com.sap.portal.guimachine.bikit "

    Hi Bw experts !!! I have a problem starting these service (com.sap.portal.guimachine.bikit) in my Portal. When I try to start I have the following error: "Server 6704750: Error in the listener class com.sap.ip.portal.admin.portalanywhere.QueryHandler

  • Acrobat reader 8 tente d'ouvrir tous mes programmes

    Bonjour, depuis l'installation d'acrobat reader 8, tous mes programmes ouvrent acrobat reader. Un clic droit sur l'icône des programmes montre que la fonction READ est par défaut. Apparemment, cette fonction s'est enregistrée da,s ma base de registre

  • Plz Recommend an "Automatic" Torrent Downloader for Mac/OSX Yosemite

    Hello. I was hoping somebody could please recommend an "Automatic" Torrent Downloader for Mac/OSX Yosemite.. I know that there are a few options out there, but most of them seem to be directed towards TV Shows.. which isn't a problem, but I was hopin