How to write a Currency field in Output?

Hi,
How should I write an amount field in the output using the key word "currency"?
I have a write statement in the program like this:
write: /24 i_konp-kbetr.
Thanks.

The output of the WRITE statement is "123456,78".
DATA int TYPE i VALUE 12345678.
WRITE int NO-GROUPING CURRENCY 'EUR'

Similar Messages

  • How to split all the fields of output ls-l from an internal table

    Hi all,
    Using ls-l command i have brought the file attributes of a file like its read and write permissions,creation date ,path etc in a internal table.
    Now how to split all these fields from the internal table or what should be the splitting criteria.
    The field contents of internal table are like this:
    -rw-rw----    1  devadm     sapsys     18360    apr  29......so on
    I want to split this into different fields.
    Kindly suggest.
    Thank You.

    Hi,
    I think the delimiter will be space. For date alone (Apr 29) you need to concatenate after the string has been split.
    Thanks and regards,
    S. Chandramouli

  • How  to write  a  query  for this output

    I have a string ' if i know good acting , I am a hero '
    now if 'hero' is present in the string it will return ' i am hero' else
    'you are hero'
    How to write a sql query to return the same .

    SQL> select (case
    2 when '&a' like '%hero%' then 'I am hero'
    3 ELSE 'u r hero'
    4 end) output from dual;
    Enter value for a: if i know good acting , I am a hero
    old 2: when '&a' like '%hero%' then 'I am hero'
    new 2: when 'if i know good acting , I am a hero ' like '%hero%' then 'I am hero'
    OUTPUT
    I am hero
    SQL> /
    Enter value for a: jkhkh
    old 2: when '&a' like '%hero%' then 'I am hero'
    new 2: when 'jkhkh' like '%hero%' then 'I am hero'
    OUTPUT
    u r hero
    Hope this helps.

  • How from an Access Currency field I populate a hidden field

    //out.println("<input type=\"hidden\" name=\"price" + plantNo + "\" value=\"" + rs.getString(5) + "\">");
    The above found to give errors... how from Access Currency field like price=
    rs.getString(5)
    I populate a hidden field ? How do it in MySQL ?
    Servlets upon compilation(or update) needed server restart to rerun (updated) ?

    if I insert
    rs.getString(5) // field5 = currency field MS-Access DB
    it doesn't work, but if insert
    "8.9"
    work in value of hidden field , where error ?
    out.println("<input type=\"hidden\" name=\"price" + plantNo + "\" value=\"" + rs.getString(5) + "\">"); // "8.9"
    Access Currency field is/corresponds double in java ?

  • How to display the editable fields in output of an ALV report?

    Hi all,
    I have a requirement of displaying values in ALV Grid format and above this grid display i have to put some fields , that are editable.
    I know making ALV grid fields as editable, but here requirement is to display some fields before displaying the ALV grid dispaly and to enable these fields editable to user and when printing this the values entered by user also has tobe printed.
    Please help me on solving this problem? Is it possible to do this with ALV function modules?
    Thanks,
    Vamshi.

    Hi all,
    Thanks for your replies.
    But this is not  my requirement. I mentioned in my question that i too know how to edit the fields in ALV grid report.
    Here my requirement is .
                                             name :_____________
                                             amount:____________
    alv grid display
    Like above i need to display.  after name the user can be enter value and after amount also the user can be enter some value at output . But this is not the header of ALV .
    Is this possible in classical ALV or Classical report? If not please specify alternative?
    Thanks,
    Vamshi.

  • How ti write BRF+ rule for multiple outputs?

    1.I have to get 3 outputs in ruleset.
    2.Created one descion table and displayed 3 outputs.
    3.For Function binded one table with 3 out puts.
    4.I have to pass values from descion tbale to function output through rule set?
    How can i write the rule?

    i CREATED NEW APPLICATION AND TRY TO CREATE NEW RULE.
    ITS SHOWING SAME ERROR.
    AOA (Data Object) : Multiple use of identical objects (AOA and STAMP_DUTY_TABLE-SD_STRUCTURE-AOA) in sets context/temporary ruleset variable not allowed (Detail) Display Help
    FORM2_2 (Data Object) : Multiple use of identical objects (FORM2_2 and STAMP_DUTY_TABLE-SD_STRUCTURE-FORM2_2) in sets context/temporary ruleset variable not allowed (Detail) Display Help
    MOA (Data Object) : Multiple use of identical objects (MOA and STAMP_DUTY_TABLE-SD_STRUCTURE-MOA) in sets context/temporary ruleset variable not allowed (Detail) Display Help

  • How to limit 35 charactger field to output 35 bytes in Unicode system

    Hello,
    I hope someone can help me.  We are have upgraded from 4.5b to 6.2 Unicode and in the previous system when 35 characters of double byte characters was output to a Unix file via OPEN DATASET FOR OUTPUT IN TEXT MODE - only 35 bytes would be output.  Under unicode we are now having 35 characters being output not 35 bytes.  Has anyone had any experience with limiting the number of bytes output to a field.  I have tried all variations of the OUTPUT DATASET command.
    All help will be much appreciated.
    Joanne

    FYI
    This issue was resolved by creating a flat type C structure and using
    SET LOCALE LANGUAGE 'J'
    OPEN DATASET dsn FOR OUTPUT IN LEGACY TEXT MODE.
    and TRANSFER the contents of the flat data structure TO THE FILE dsn

  • How to convert the currency field.

    Hi All,
    I have one question,
    data : w_icm like konv-kwert.
    but this w_icm value is like this 878.40
    but i want to change it as 878,40 and will get back in to the same variable (w_icm).
    can any one suggest me how to proceed with this issue.
    if you send the code that will be highly helpfull to me.
    Thanks for your help.

    Hi,
         1. Change the user profile (system->user profile->own data-> user dafault tabs and change the decimal notation.
      2. use the domain BF_RWBTR.
    Regards,
    GN
    Edited by: Niyaz Ahamed on Jun 13, 2008 2:30 PM

  • How to modify CRT currency field

    Hi all,
    i am new to ABAP HR so please help me. i am trying to modify the CRT internal table when run the payroll. the situation is that we have a company code currency in SAR and there is an employee who gets the currency in USD. I have to store the data in CRT in the currency in which the employee is getting paid.
    i tried the following the but it is not working:
             LOOP AT crt.
              crt-amt_curr = v_emp_currency.
              MODIFY crt.
            ENDLOOP.
    the above code copies the currency USD to CRT, but when it is displayed in the Payroll log, it is in SAR. I hope somebody has understood the problem. please help.
    regards,
    hamza

    I saw your code :
    LOOP AT crt.
    crt-amt_curr = v_emp_currency.
    MODIFY crt.
    ENDLOOP.
    Just check the value in debugging ,whether it modifying value modify statemnt ?
    if it is modifying then somewhere in the program ,the value gets changed again..
    Please confirm..
    Reward Points if it is helpful
    Thanks
    Seshu

  • How can we sort up currency field in alv grid??

    Hi GUrus,
    Can any one suggest me how to sort the currency field in alv grid...Please help me out of this issue..
    Thanks in advance!!!
    regards,
    Kranthi.

    hii,
    SAP provides a set of ALV (ABAP List Viewer) & function modules, which can be used to enhance the readability and functionality of any report output.
    ALV is a flexible tool used for displaying lists.The tool provides common list functions & can be enhanced by self-defined options.
    so u will get the option for sorting in your alv report.
    Thanks

  • How to declare currency field?

    DATA : V1 TYPE I,
    V2 TYPE I,
    RESULT TYPE P DECIMALS 2.
    how do i declare currency field here?

    In that case,refer to any of the currency fields of any of the database tables and refer to it like this:
    Data : Curr like aufk-waers.
    or from any other database table which contains the currency field.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Currency field validation

    Hi All,
    For SRM-MDM catalog workflow, I want to write a currency field validation to find out the catalog item data records where difference between the original price and the new price for the same catalog item data is greater than 1%.
    So as a precursor to the final validation expression, I wrote a very primitive validation expression like:
    IF((Contract Price.Amount - [Original].Contract Price.Amount)>1,FALSE,TRUE)
    And I was expecting that this should return a FALSE boolean value whenever difference is greater than 1. But surprisingly, irrespective of the difference in the amount, it always returns a TRUE value.
    I am wondering whether it is a problem with the validation expression or is it a bug? I am working on SAP MDM 5.5 SP04 Patch 02 (5.5.63.71).
    Any suggestions would be appreciated.
    Thanks,
    Satyen

    Hi Nisha,
    Thank you for your reply.
    As I had mentioned in my previous post, irrespective of whether, amount value is incremented or decremented, it always returns FALSE.
    Syntactically and logically, your validation expression is correct but still it always return an error message (a FALSE value).
    What do you reckon, is it a bug in the MDM software?
    Regards,
    Satyen

  • Add new field in output of FBL1N

    Hi Experts,
    How can I and new field in output of FBL!N.
    Can you show me the steps.
    Pooja

    Hi Expert,
    Thanks, I have corrected u201CNameu201D mistake in structure. Now RFPOSXEXTEND is run successfully.
    Still not getting field which is added in structure.
    Below describing what I have done.
    Create copy of SAMPLE_INTERFACE_00001650 to Z_FI_INTERFACE_00001650.
    Register product from Settings->products->..of a customer
    Product : ZFI
    Text : BTE Products for FI Exit
    Activation Checked.
    Register Event from Settings->p/s module->..of acustomer
         Event : 00001650
         Product : ZFI
         Function Module :  Z_FI_INTERFACE_00001650
    (Function is created in new function group Z_FUN_GRP.)
    Add new Structure ZMyStruct(KUNNR,NAMEJ,LIFNR,NAMEK) in RFPOS.
    Add new Structure ZMyStruct1(KUNNR,NAMEJ,LIFNR,NAMEK) in RFPOSX.
    Below Mentioned Code is written in Z_FI_INTERFACE_00001650
    FUNCTION Z_FI_INTERFACE_00001650.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    *"  EXPORTING
    *"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    Initialize Output by using the following line -
    E_POSTAB = I_POSTAB.
    TABLES : bseg, kna1, lfa1.
    IF sy-tcode = 'FBL1N'.
      CLEAR : bseg.
      SELECT SINGLE *
        FROM bseg
        WHERE bukrs = i_postab-bukrs
        AND belnr = i_postab-belnr
        AND gjahr = i_postab-gjahr
        AND koart = 'K'.
      IF sy-subrc EQ 0.
        e_postab-lifnr = bseg-lifnr.
        CLEAR: lfa1.
        SELECT SINGLE *
          FROM lfa1
          WHERE lifnr = bseg-lifnr.
        IF sy-subrc EQ 0.
          e_postab-namek = lfa1-name1.
        ENDIF.
      ENDIF.
      CLEAR : bseg.
      SELECT SINGLE *
        FROM bseg
        WHERE bukrs = i_postab-bukrs
        AND belnr = i_postab-belnr
        AND gjahr = i_postab-gjahr
        AND koart = 'D'.
      IF sy-subrc EQ 0.
        e_postab-kunnr = bseg-kunnr.
        CLEAR: kna1.
        SELECT SINGLE *
          FROM kna1
          WHERE kunnr = bseg-kunnr.
        IF sy-subrc EQ 0.
          e_postab-namej = kna1-name1.
        ENDIF.
      ENDIF.
    ENDIF.
    ENDFUNCTION.
    Saved and Activated.
    Start report RFPOSXEXTEND. And run it successfully.
    Still not getting fields in report FBL1N which I have added in RFPOS and RFPOSX.
    Thanks and regards,
    Pooja

  • Add a custom field in output tab of po header SRM 7.0

    Hello All,
    Please let  me know How to add a custom field in output tab of po header SRM 7.0.
    Regards,
    Neelima

    Hello Neelima,
    Have you already check the note 458591, which help to custom fields creation? I think this note can be relevant for you.
    Best regards,
    Denise Zanuz

  • Weird? Externalizing writes out transient fields automatically...

    Essentially, I made up some class implementing Externalizable - with empty write/readExternal methods. Some how, the transient field have been writtena dnread back. From the stuff I''ve read about this, nothing mentions externalizable overriding the "don't write transient fields behaviour". The weird thing is: externalizable is supposed be when you need to say explicitly how to write your object (field by field for e.g.). When I ran this, I got all the fields written and read...
    import java.io.*;
    public class SerializationExample {
         public static void main(String[] args) {
              try {
                   ToBeWritten tbw = new ToBeWritten();
                   FileOutputStream f_out = new FileOutputStream("test");
                   ObjectOutputStream out = new ObjectOutputStream(f_out);
                   out.writeObject(tbw);
                   out.close();
                   FileInputStream f_in = new FileInputStream("test");
                   ObjectInputStream in = new ObjectInputStream(f_in);
                   ToBeWritten tbr = (ToBeWritten) in.readObject();
                   in.close();
                   System.out.println(tbr.privateField);
                   System.out.println(tbr.staticField);
                   System.out.println(tbr.transientField);
              } catch (Exception e) {
                   System.out.println(e);
         static class ToBeWritten implements Externalizable {
              private String staticField = "staticField";
              transient String transientField = "transientField";
              private String privateField = "privateField";
              public void writeExternal(ObjectOutput out) throws IOException {
              public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
              public ToBeWritten() {
    }

    ejp, you description is more accurate.
    Technically, the serialization code creates an new constructor for the class which calls the first non serializable super class's no-arg constructor method, provided that constructor is public, protected or (package-private and in the same package as the class)
    If the first non-serializable no-args contructor is not accessible, an InvalidClassException is thrown.
    As ejp points out, it is more complex than most author would suggest.
    @see code for java.io.ObjectStreamClass.getSerializableConstructor(Class)

Maybe you are looking for

  • How do you extend the period of a trend line of a graph?

    Hi, I am having trouble extending the trendline of a graph. Can someone please tell me how to extend the period of the trendline? Thank you.

  • Trying to relocate a LARGE iTunes library to external HD - it's NOT working

    I have a large iTunes library (160+ GB ... about 30,000 songs) that I store on an external USB 2.0 hard drive. I'm trying to move/copy/relocate the entire library to another USB 2.0 external hard drive. I have tried copying the entire iTunes library

  • Clipboard images converting to RGB

    When I "copy merged", create a new file and paste the contents into it, I see my new image is RGB instead of the Adobe RGB from the original image. I must have a preference setting wrong somewhere? When I use the Duplicate command, the color space st

  • Will layered psd documents created in CS4 open seamlessly in Elements 12

    I am switching from a PC to a Mac and with this change I cannot afford to upgrade my CS4 to the newest version.  Because of this I will instead be purchasing Elements 12.  I have done a great deal of digital scrapbooking in CS4 and therefore I have a

  • DTW Error in Business Partner Group

    While uploading Business Partner Groups, what  should be the code to be given in the Template I am mentioning 'S' for Supplier and "C" for Customer but it is giving the error as follows " is not a valid value for field 'Group Type'. The valid values