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.

Similar Messages

  • How to handle currency fields in BDC

    Hi All,
        Please tell me how to handle currency fields in BDC.... If possible give me some sample code...
    Thanks in advance,
    points will be given,
    praveena.

    Declared it at the Global definitions.
    in global data tab and currency/quant fields.
    Initialize some value there itself.
    Just before the text node create one program lines node,
    and that,In the import and export parameters of it give total_amount.
    refer to the following link:
    http://sap-img.com/abap/figure-to-words-for-india-but-can-be-modified-to-any-requirement.htm
    Currency Fields
    Reward if useful.

  • How to declare the field if i want the output as 300.12,00

    How to declare the fields if i want the output as 300.12,00
    i have a quantity field so i need to place . in place of , and , inplace of .
    please help me

    hi,
    declare its as
    CURR
    field.
    Regards
    Anver

  • How to add Currency field with dropdown on screen layout (module pool)

    I need to add a field called <b>Currency( field label )</b> with <b>dropdown (like SKB1-WAERS). </b>
    The <b>field label</b> and <b>input output field </b> should default as being hidden and
    sould be visible only when other field value ( on the same screen ) should match with the value in the database table . 
    Could you please suggest me how to create dropdown
    and give this functionality with coding ?
    Thanks in advance.

    Hi,
    In the field attributes of the SKB1-WAERS..in the group attributes..give a group name G1..Add the same G1 for the field lable also.
    Then in the PBO of the screen..
    ***Check the conditions..when other field value (on the same screen) matches
    ***with the value in the database table.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'G1'.
        SCREEN-INPUT = '0'.
        SCREEN-INVISIBLE = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • How to declare a field in a structure and table

    Hi, I have a doubt in declaring a field inside a structure.
    types: BEGIN OF mrm_rbkpv.
            INCLUDE STRUCTURE rbkp_v.
    types: h_rbws LIKE rbws OCCURS 0,
           end of mrm_rbkpv.
    data : e_rbkp_v type mrm_rbkpv.
    Now I want I to refer to field WT_WITHCD inside table H_RBWS.
    eg : if e_ebkp_v-h_rbws-wt_withcd = 'X ' is right or wrong??????
    POints will rewarded
    Thanks in advance

    hi jaysree,
    types: BEGIN OF mrm_rbkpv.
    INCLUDE STRUCTURE rbkp_v.
    types: h_rbws LIKE rbws OCCURS 0,
    end of mrm_rbkpv.
    data : e_rbkp_v type mrm_rbkpv.
    if e_ebkp_v-h_rbws-wt_withcd = 'X '  - > this will work perfectly.
    rgds
    anver
    if hlped mark points

  • How to make Currency Field of IT 0009 as Uneditable in the Portal

    Hi Experts,
    I have a requirement to make the Currency Field in IT 0009 as uneditable in the Portal. We are using transactional iView and standard Function Module to maintain IT 0009 in the portal. My query is, do I need to make changes in the FM to map this requirement or there would be any setting in the SPRO to change the characteristics of the fields of Infotype.
    Kindly suggest with your valuable inputs.
    Regards,
    Tanuja
    Edited by: Tanuja Mishra on Apr 25, 2011 1:07 PM

    Hi,
    You can use the view V_T588MFPROPC to override the exixsting setting of the view V_T588MFPROPS.
    steps:
    1. Goto sm31, enter view name as V_T588MFPROPC
    2. Give the infotype as 0009
    3. Add an entry with the details as follows,
        Version - Country
        Subtype - If any
        Field name - WAERS
        Mark the field as output field
    4.  Save the record
    Then execute in portal.
    Otherwise use personalization ctrl+right click nad make the field as read only.
    Hope this help you.
    Regards,
    Meera

  • How to dispaly currency field

    hi all,
    I want to diaplay a currency field in BSP page. But i am getting this exception CX_BSP_CONV_ILLEGAL_REF. Provide the reliable solution for this problem.
    Thanks
    Aashish

    check out this sample application .
    Application : it00
    page: basic_write.htm
    Regards
    Raja

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

  • Currency Field in Smart Form

    Hi,
    How to Display Currency Field in SmartForm  and how to declare

    You can display a field in GLOBAL data of TYPE I (v_menge).
    then in the related window of that Quantity field create PROGRAM LINES and in that write a small code such that
    MOVE ITAB-MENGE to v_menge.
    Now display this field v_menge in the smartform
    Regards
    Anbu B

  • Currency Field Error

    Hello Friends
    IF i do posting through FB60 than it is showing Currency as INR but in grey
    But i want to make posting through F-43, than Currency field is hidden over there
    How to make currency field visible in F-43, i also check for f-02,F-22, in all these currency field is hidden
    Thanks
    SAPUSER5

    Hi,
    It seems that the field "Documents only in Local currency" is selected for your user master record. Use Transaction FB00 and deselect this field located under Document Entry tab.
    Regards,
    Chintan Joshi

  • 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

  • How we will use date n currency fields in bdc

    how we will use date n currency fields in bdc

    Hi
    When you have to upload using BDC, always use char type fields.
    For date, use date(10) type c.
    write sy-datum to date. Date will be as per using setting, either mm/dd/yyyy or dd/mm/yyyy...
    For currency also, you need to declare as
    data1(15) type n and
    data2(15) type c.
    Now suppose you have a value 12545421.91 . As per user setting it can be 12545421,91.
    In this case, first push the value to NUMC type.
    data1 = 1254521.91 and then data2 = data1 / 100.
    This will change it in required format and can be populated in the bdc table.
    Regards
    Navneet

  • 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 enter negative value in a currency field

    Hi Experts,
    Please help me how to allow to enter negative value in a field on report selection.
    I created a currency field on a report selection using PARAMETERS.
    I can enter positive value in the field. But, I cannot enter negative value.
    SAP shows an error message 00 126 "Specify positive values only".
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
    However, I cannot do it on screen 1000 created by report program.
    Thanks,
    George

    Hi ,
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
        Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
    regards
    Prabhu

  • HOW to include a reference currency fields in a view ?

    Hello Experts,
    <b>I am having Currency fields error in generic extraction</b>
    I have table where I am trying to extract data to BW via generic extraction. When I tried
    to extract with the TABLE its giving me an error
    <b>Invalid extract structure template RPSCO of DataSource ZBW_REP3_TEST
    You tried to generate an extract structure with the template structure RPSCO. This operation failed, because the template structure quantityfields or currency fields, for example, field WLP00 refer to a differenttable</b>.
    Now I created a view with all the fields same as my table.
    But its still giving me the same error and taking all the fields as a primary keys. I have over 12 currency fields in the table. I am confused how to fix this issue and add a currency field to my view?
    hOW to include a reference currency fields in a view ?
    All inputs are much appreciated.
    Thanks and Regards,
    Harish

    Thank you for your responce,
    Can you please check my view and let me know where I am going wrong     
    View    Table   Field  Dataele  Data
    field                    type                                            0                                                                
    WLP01     RPSCO     WLP01     BP_WPL     CURR     15     Period value in ledger currency
    WLP02     RPSCO     WLP02     BP_WPL     CURR     15     Period value in ledger currency
    WLP03     RPSCO     WLP03     BP_WPL     CURR     15     Period value in ledger currency
    WLP04     RPSCO     WLP04     BP_WPL     CURR     15     Period value in ledger currency
    WLP05     RPSCO     WLP05     BP_WPL     CURR     15     Period value in ledger currency
    WLP06     RPSCO     WLP06     BP_WPL     CURR     15     Period value in ledger currency
    WLP07     RPSCO     WLP07     BP_WPL     CURR     15     Period value in ledger currency
    WLP08     RPSCO     WLP08     BP_WPL     CURR     15     Period value in ledger currency
    WLP09     RPSCO     WLP09     BP_WPL     CURR     15     Period value in ledger currency
    If I add a
    Table TCURC against any field what would be the view field and data element
    Do I need to tick MOD?
    Please suggest.
    Kapadia,
    If I do that its still taking all the fields are a primary keys and bringing 6 lakh records to where I originally have 49 records in a table
    Thanks and Regards,
    Harish

Maybe you are looking for