Currency Field Problem

Hi,
I am new on ABAP and i am trying to understand currency fields.I used curr field with reference on cuky field. But I didnt understand logic of this subject. So if you tell me when i need to use curr and cuky to reference i will be pleased.
Regards.

Hi,
When you specify currency as 100. It will make sense when you say as 100 dollars / 100 Euros. For the currency field, SAP requires a reference field. Note: The reference field may not be available in the table / structure it is available.
Hope it helps.
Sujay

Similar Messages

  • Problem of currency field in ALV grid

    Hi,
       Actually I am working on ALV gird editables. I have passed the CURR 17,2 type to the i_fcat table. But when I am trying to edit a new value to this field with a new value. i.e. '12345' it takes its value as '123.45'. and whenever I am entering a value '123.45' it gives error message that decimals 0 place. I am not able to make out this problem.
         Even while I am doing get_cell_value, I am getting its returning 0.00 as e_value.
          Any help in this regard will be helpful to me...
    regards,
    Brijesh Patel

    Hi Brijesh,
    Are you using the FM "REUSE_ALV_GRID_DISPLAY" to populate field catalogue? if so, define this in your field catalogue for that particular field.
    g_t_fieldcat-CFIELDNAME = 'X'
    where <b>g_t_fieldcat</b> is your custom defined field catalogue. CFIELDNAME here refers to that column in the field catalogue as currency field and SAP automatically adjusts the decimal places.
    Hope this helps and let me know if you need more details.
    Regards,
    Vicky
    PS: Award points if helpful

  • Urgent : Problem with Editable  ALV Grid  for Quantity and Currency Fields

    Hi All,
    I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
    When user changes these values these values are not changing properly .
    For the quantity field the domain is MENG13 with 3 deciamal places and here  if we enter 500 it takes it as 0.500   .
    The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
    Here also it takes last 2 digits after decimal places by default.
    Please advice how to get proper values in this case from ALV editable fields.
    Thanks and Regards
    Harshad
    Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AM

    for all the currency field , it will display like that only.
    u have to manipulate uin program before displaying.
    if they are giving 500, in program multiply with 100 and move it to table.
    when u are getting from table, divinde and display.
    this is what I am doing.
    Reward if helpfull.

  • Having problems when adding new Curency value field + currency field.

    I need to add a new Currency field (CURR, length 15, 2 decimal places) plus the Currency field itself to a view. 
    I'm really struggerling. I have looked at the existing SAP fields in the Component workbench and I have to admit I can not see how a field is linked/related to the currency itself. Is this link established purlely at the disctionary level?.
    Has anyone added their own Z field value  and Z currency field before. I can create both fields and display them, but what I can not work out is how I related them within the component workbench, or is this done from the dictionary?.
    Any help would be greatly appreciated.
    I should have been able to look at an existing SAP example and work out how it's done, but so far I can not see/determine how this is achieved, even though someone has mentioned that it's controlled via the GET_I_field method. Looking at this method I was expecting to see some mention of both the Currency value field and the Currency field. But as I don't see these confusion reigns.
    Jason

    That's correct, but am I right in thinking that you can't actually create the currency key field itself?.
    I am aware that currency value fields can be created which reference a currency key field, but can see nothing that allows me to create a currency key field to be referenced.
    I hope that makes sense.
    Also, I have amended the structure, changing my value fields from Decimal 15,2 to Currency 15,2  and have created a new currency key field in the structure and referenced this from the Currency value field.
    Witin the Component/view/context node I can see this new currency key field, but it appears as STRUCT.fieldlabel whereas my currency value field appears in the context node as EXT.fieldlabel, because it was created in the AET.
    My problem is that when attempting to add the currency key field onto the screen I don't have it to select from within the list of structures/attributes. All the others attributes in the context node seem to be there, except the new currency key field/attribute.
    The attribute has a SET_fieldlabel, GET_fieldlabel, GET_M_Fieldlabel and a GET_I_Fieldlabel, which I believe is all that should be required.
    Does anyone know what my problem could be?.
    Jason

  • 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

  • Problem in Currency field in Abap Query

    hi.
         I have created an additional field for storing the currency type.
         Based on some calculations i want to store the currency type into this additonal field.But the problem is that the currency field is not getting displayed in the report though i am getting the currency type in the additional field when i check it while debugging. Can anyone help me out...

    Vimal,
      Is it ABAP Query problem(SQ01).If yes, then
      In tcode SQ02(Infotype)>press extras button(F5)>In right side you will find 4 tabstrip buttons.Press on Extras--> create variable with same type of currency.
    goto Field group button--> add this field to field groups.
    In record processing event after your calculations assign your value of cuurncy to this new variable.
    In tcode SQ01-->enter query name >F6>F6>F6>select your new varaible
    >Press on basic list button(shift+F4)>left side you will find additional fields Node From there select your new field-->Save come back and execute the query.Now  you will find your variable.
    Don't forget ot reward if useful....

  • Very urgent : Problem in currency field while downloading file from excel.

    I downloaded a excel file to my ABAP program.It contains a currency field which has comma in it. When i do operations on the currency field it says unable to interpret the number.Can anybody help me on this.
    Message was edited by:
            Bharath Srinivas
    Message was edited by:
            Bharath Srinivas

    Hi,
    Try this. In ur excel right click on that column wher u have the currency, go to format cells and there uncheck the box which shows 'Show tousands (,) seperator).That shud solve the problem.
    Thanks
    Vasudha

  • Problem on currency fields

    Hello all,
    I want to display currency fields in a report based on opportunities on analytics (fields revenue and expected revenue).
    At level society, currency is euro.
    I have english and french peoples working on OCOD: so currency for french people is euro and currency for english people is GBP.
    When I launch the report for french people, fields revenue and expected revenue are ok, but they are empty for english people when revenue is not empty on OCOD!
    With my admistrator user I could see value of currency fields revenue but in euro (because my user is french).
    Is anyone have the same problem and is there a solution ?
    Thanks for help!
    Marc

    Hi Marc,
    maybe this could help you...
    http://dl.dropbox.com/u/7022318/How%20to%20create%20a%20report%20with%20multi%20currencies.docx
    Thanks,
    Royston

  • Problem Loading Currency Field

    Hi All,
    I am not able to populate the currency field from Source using DTP when loading ODS 0CRM_OPPH. All the fields are populating except the Currency field and its a direct mapping in the transformation from source. Can someone let me know what is the issue with this?
    Thanks,
    Raj

    Hi Raj,
        In case you did the mapping correct and there are no routines that might clear the currency field in your update or transfer rules you can additionally transfer the currencies from the source system. Goto rsa1->source systems. Right click on your source system and choose transfer global settings. This will allow you to transfer currencies, exchange rates ... from source to BW. Try this and let us know the restult.
        Additionally use transaction listcube and display the records from there, check if there is a currency assigned to the keyfigure for each record.
      SUre this link helps to solve your problem.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/462fe790-0201-0010-3ca4-adfd89e4f9f2
    Thanks
    Varun

  • Problem in selecting object currency fields from table COSP and COSS

    Dear All,
    We are facing a issue while creating a virtual DataSource   for CCA plan from tables COSS and COSP.
    The issue is that we are able to activate the view by including the fields value in object currency ( WOG001 - WOG012 ) but not able  to create a DataSource   on the view.
    We are able to include the transaction currency value but as our application requires us to include the object currency fields.
    Error displayed:Invalid extract structure template .This operation failed, because the template structure quantity fields or currency fields, for example, field WOG001 refer to a different table.
    Any tips to resolve this issue would be valuable.
    Thanks in advance
    Rashmi Nair.

    HI,
    Can you see this thread.
    Re: How to display BAPI decimal values into webdynpro!
    Thanks
    nageswar

  • Problem in using Currency Field in EXTRACTOR

    hello,
            I have a requirement to create Extractor involving some fields from a Ztable.
    While creating extractor (data source) in RSO2 transaction, when i enter the Z table name in "Extraction from DB view - View/Table" and click on SAVE, i get an error msg " Invalid extract structure template ZTABLE of DataSource Zextractor".
    But if i remove the only currency field in the ztable and then try using the ztable for extractor, its working fine. I dunno why? but i need the currency field in the extractor. Kindly let me know how to deal with this issue. Sure points for useful answers.
    thx,
    BaLaJi.......

    hi,
    for currency fields and decimal fields u should provide reference for them. give currency field in fields section -> click on refernce -> give
    currency field name table name refernce key name table name -> save n activate.
    if helpful reward some points.
    with regards,
    Suresh.A

  • Problem with Currency Field?

    Hello Friends,
    I have a currency fields in a Screen, When it's value is null, It is showing me as SPACE. But My requirement is to display 0.00. How can I do this? Please do the favour needful.
    Thanks & Regards
    Sathish Kumar.

    Hi Satish,
    You must have declared the field as CHAR locally...
    just declare it like ..
    DATA : var type <some Currency filed from dictionary>
    This will work,
    Reward points if helpful,
    Regards,
    Tejas

  • Problem with currency field on screens

    hai gurus i am using currency field on screen , when i am trying to display 0.0 value on the screen it showing blank , how to display the value zero on the screen
    thanx in advance
    afzal

    Only solution is hard code it...
    DATA : dummy type char4 value '0.00'.
    IF currency EQ 0.
    WRITE : dummy RIGHT-JUSTIFIED.
    ENDIF.
    Message was edited by:
            Perez C
    Message was edited by:
            Perez C

  • Problem in currency field

    Hello All,
      I am moving an amount value to a field that is of currency type using write statment.But i cannot use write statment for currency fields.I tried using currency 'EUR' also but it is giving the same error.
    write : gs_outtab-rmwwr_out to lv_rmwwr_out currency 'EUR',
    Error : LV_RMWWR_OUT must be a character type.
    How to remove this error?
    Thanks,
    Rakesh.

    Hello,
    With WRITE stmt you cannot use CURR type elements. Do an F1.
    You need some workaround.
    BR,
    Suhas

  • 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