Currency fields

Hi experts,
I am facing following problem:
In my report I need some data from the table mbew. I need the value in field stprs. Where can I find the reference currency in this field and how can I convert it to dollar for using it in my smartform.
Thanks a lot for your help,
Christoph

Hi Christoph,
If you have any correct test data with you then you can check out in standard transactions , there you will get the exact factor used for conversion and you can accordingly calculate the amount and then hard code currency as USD
You can also try using this function module
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
CLIENT = 001
date = sy-datum
foreign_currency = wa-waers
local_currency = tcurr-fcurr
foreign_amount = wa-dmbtr
RATE = 0
type_of_rate = 'M'
READ_TCURR = 'X'
IMPORTING
exchange_rate = tcurr-ukurs
FOREIGN_FACTOR =
local_amount = wa-total
LOCAL_FACTOR =
EXCHANGE_RATEX =
FIXED_RATE =
DERIVED_RATE_TYPE =
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6
Regards,
Uma
Edited by: UmaDave on Jun 2, 2010 10:30 AM

Similar Messages

  • Currency field in alv report

    hi
    i have to display the currency field o/p with diff. currencies according to countries.how can i do that.

    Hi,
    see example program ERGP2070. It is doing something similar to your requirement.
    It is declaring currency as a separate field 'WRG'. and for amount field, setting CFIELDNAME field as 'WRG' and DO_SUM = 'X'.
    try this.
    Regards,
    Satish

  • Summary report treats a currency fields as text

    In the summary report I have three charts with the currency field. The two charts show 'average' and 'total' but the other chart shows 'percentage' of responses - in other words the report treats that field not as a number but as text. The filed is designated as a currency in the desing view. Why is it treated as text?

    Hi,
    The percentage of responses is a reference for the responses of that field.  If you don't want it to show, you can disable it.
    Hope this help,
    Perry

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

  • 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 in service PR

    hi
    currency field in service PR for item category D and B is greyed out, it cant be changed according  to sap note
    do u have any workaround or any other alternative how this can be chnaged?

    Hi,
    I hope I have understood your question correctly!!
    You can maintain Service or Limit in item details there you have the option of maintaining price.
    Please for your reference go thru this document: http://www.sap123.com/a/52/
    Hope you find these useful.
    Reetesh

  • Stock account currency field in MB5L report

    Hi!
    can any one tell me in MB5L report for field materials currency and stock account currency, from system will pick up the values?
    I think materials currency field will pick up from GL accounts?
    But stock account currency, from where it will pick up value?
    regs,
    ramesh b

    Hi!
    both are not GL account balances.
    I have studied the report and understood.
    the material currency field: just it will take total stock avialable * std price/MAV price ( it will be equal to value in material master, MB5B, MB51 )
    the stock account currency field: it will take GL account balance via valuation class ( OBYC setting BSX)
    Here for example if you select only one material in MB5L report , it won't show the GL balance pertaining to that material, it will simply show the total GL balances that means system won't check material number existed in line items ( BSEG table).
    any way thanks for your inputs.
    regs,
    ramesh b

  • Dynamic displaying of decimal points for currency field in ALV

    Hi,
            In ALV output there is a currency field and displaying data of different countries. It should display decimal point according to the country's currency. But at a time it can display data of different countries.

    Hi Dilip,
    I think your question is about currencies with different number of digits after decimal point. If you have the currency field in the ALV row, you have to give it's name as currency reference for the value field in the field catalog.
    After creating the field catalog, call a form and do something like this (change fielnames accordingly).
    <pre>
    *&      Form  alv_fieldcat_enhance
          Individual Enrichment of field catalog
    FORM alv_fieldcat_enhance
      CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv.
      FIELD-SYMBOLS:
        <alv_fieldcat> TYPE slis_fieldcat_alv.
      LOOP AT pt_alv_fieldcat ASSIGNING <alv_fieldcat>.
        IF <alv_fieldcat>-fieldname(5) = 'KBETR' OR
           <alv_fieldcat>-fieldname(5) = 'SKBTR' OR
           <alv_fieldcat>-fieldname(5) = 'DMBTR'.
    Company code currency
          <alv_fieldcat>-cfieldname = 'BWAER'.
    Document Currency for conditions, net value and taxes
        ELSEIF  <alv_fieldcat>-fieldname(5) = 'KWERT' OR
                <alv_fieldcat>-fieldname    = 'NETWR' OR
                <alv_fieldcat>-fieldname    = 'NPAX_MWST_AMNT'.
    Document Currency
          <alv_fieldcat>-cfieldname = 'WAERK'.
        ENDIF." <alv_fieldcat>-fieldname(5) = 'KBETR' or
      ENDLOOP." at pt_alv_fieldcat assigning <fieldcat_alv>.
    ENDFORM.                    " alv_fieldcat_enhance
    </pre>
    Regards,
    Clemens

  • To calculate average for a currency field in alv

    Hi,
    I have a requirement in which i need to find the average of a currency field in alv. For the particular field, i'm passing the value of DO_SUM = 'C' in thr field catalog(as suggested in many threads); but I'm not able to calculate the average. it still shows me summation when i click on summation button.
    What could be the possible error??? Is there any other method we can do the same??
    Thanks in Advance.
    Jaspreet

    Hi
    U can try this way.
    *& Report  Z_DEMO_JG
    *& Display average in ALV report
    REPORT  z_demo_jg LINE-SIZE 80 LINE-COUNT 50
                                         NO STANDARD PAGE HEADING.
    TABLES: sflight.
    TYPE-POOLS: slis.
    * Data declaration
    DATA: i_flight TYPE STANDARD TABLE OF sflight,
          i_catalog TYPE slis_t_fieldcat_alv,
          w_flight TYPE sflight,
          w_catalog TYPE slis_fieldcat_alv.
    DATA: v_repid TYPE syrepid.
    * Selection screen
    SELECT-OPTIONS: s_carrid FOR sflight-carrid.
    START-OF-SELECTION.
    * Fetch data from sflight table
      SELECT *
       FROM sflight
      INTO TABLE i_flight
      WHERE carrid IN s_carrid.
      CHECK sy-subrc = 0.
      v_repid = sy-repid.
    * Build field catalog for ALV report
      PERFORM build_catalog.
    * Display ALV report
      PERFORM display_report.
    *&      Form  build_catalog
    *       Build field catalog for ALV report
    *       None
    FORM build_catalog .
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = v_repid
          i_structure_name       = 'SFLIGHT'
        CHANGING
          ct_fieldcat            = i_catalog
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc = 0.
    *   For average populate 'C' as value in
    *   field DO_SUM
        w_catalog-do_sum = 'C'. " C = Average
    *   Modify record with new value
        MODIFY i_catalog FROM w_catalog TRANSPORTING
        do_sum WHERE fieldname = 'PRICE'.
      ENDIF.
    ENDFORM.                    " build_catalog
    *&      Form  display_report
    *       Display ALV report
    *       None
    FORM display_report .
      IF i_catalog[] IS NOT INITIAL.
    *   Call ALV grid
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = v_repid
            it_fieldcat        = i_catalog
          TABLES
            t_outtab           = i_flight
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
        IF sy-subrc = 0.
        ENDIF.
      ENDIF.
    ENDFORM.                    " display_report
    Edited by: meetjoe on Sep 15, 2009 7:17 PM

  • 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

  • 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

  • Currency field in alv grid display

    Hi,
    I am using alv grid display.I am having one currency field netprice.I want it to be displayed as blank when i am not passing any value.But it gives 0.00 when it is not having any value.How to make it blank instead of 0.00.
    Points will be rewarded.
    Regards,
    Sowmya.

    HI,
    If itab-curr  = '0.00' .
    itab-curr = ''.
    modify itab.
    endif.

  • OOPs ALV report Fieldcatalog Editing a currency field

    Hi all,
    I have created an OOP's ALV report. I have made one of the currency field editable. when I am changing the value in any cell and go out of the cell(or move to other cell using arrow keys or click some were in the grid) it is taking '.' after 2 digits from the right.
    for example if I take 10 it is converting to 0.10, if I take 100 it is becomnig 1.00, if I take 100.00 it is becoming 1.00. If I take 123.45 I am getting a pop up box with message "Too many decimal places"
    the fieldcatalog values are as follows
      WA_FIELDCAT-FIELDNAME   = 'ORD_VAL'.
      WA_FIELDCAT-SCRTEXT_M   = 'Ord Value'.
      WA_FIELDCAT-COL_POS     = 11.
    wa_fieldcat-no_zero     = 'X'.
      WA_FIELDCAT-OUTPUTLEN = 14.
       WA_FIELDCAT-CURRENCY  = 'INR'.
      wa_fieldcat-decimals_o = '2'.
      wa_fieldcat-no_zero = 'X'.
      WA_FIELDCAT-EDIT   = 'X'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR  WA_FIELDCAT.
    Can anybody please help me. As If I edit the field it should take the values what I input.
    Thanks in Advance.

    Hi ,
    The CURR field is the currency unit field in the table ITAB.
    I am just confused with your answer. in my case the final internal table is T_CHKQTY1 shall I take that or anything else. I have taken WA_FIELDCAT-CTABNAME = 'CURR'. but the system is thrownig an error as The data object has no component with CTABNAME but there is a component called TABNAME.
    Can you please currect me.

  • Currency Field - KOMK-WAERK not getting populated

    Dear All,
    In my infoset, i am reading the value from KONV table. But when i generate the infoset, system prompts a Warning Message saying:
    Currency Field KOMK-WAERK will not be filled. Affected currency amount fields: (& it gives out the list of fields).
    In my data section when i put TABLES KOMK, then the message does not appear, but the currency field still does not get populated when i execute the query.
    Any suggestions as to how i can make the currency field populate in my output?
    Await inputs.
    Anyone to help?
    Edited by: Vivek on Feb 9, 2008 8:51 PM

    Is not KOMK a structure, you need to fill this structure. Try to map required fields as following :
    CLEAR KOMK.
    KOMK-MANDT = SY-MANDT.
    KOMK-KALSM = VBDKR-KALSM.
    KOMK-FKART = VBDKR-FKART.
    KOMK-KAPPL = 'V'.
    IF VBDKR-KAPPL NE SPACE.
    KOMK-KAPPL = VBDKR-KAPPL.
    ENDIF.
    KOMK-WAERK = VBDKR-WAERK.
    KOMK-KNUMV = VBDKR-KNUMV.
    KOMK-VBTYP = VBDKR-VBTYP.
    KOMK-BUKRS = VBDKR-BUKRS.
    KOMK-BELNR = VBDKR-VBELN.
    Regards

  • Currency Field is not getting populated in 0FI_AR_3 Data source

    Hi Friends,
    I have unchecked the currency  fields DMBE2 , DMBE3 and curresponding currency type fields HWAE2
    and HWAE3 in the data source 0FI_AR_3 and activated the DS.
    when i am checkin the data using extract checker rsa3 , the fields DMBE2 and DMBE3 are filled with the amount but the corresponding currency types are not getting populated in HWAE2
    and HWAE3 fields.the currency field are maintened in R/3 side.
    Please suggest.
    Thanks

    I was checking this issue, and all the enhancements with fields need to
    have a customer-exit to be populated.
    If those fields are not delivered by SAP and are not in the original
    datasource(RSA5) from Business content, this is related to an enhancement.
    We can only see these fields in the datasource enhanced through RSA6.
    To have the proper values assigned to those field, you should write an
    User Exit program. This program must be created to fill the enhanced
    fields as they are not filled in the same way as the SAP delivered
    fields.More details about this process you can check note 576886.
    576886-Change to user-defined fields not extracted.
    This SAO Note is an example for some datasources regarding what should be
    done.
    Thanks,
    Walter Oliveira.

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

Maybe you are looking for

  • Can no longer simultaneously stream an mp3 in Safari when using fast user switching option.

    After updating to ios 5, I can no longer stream an mp3 in Safari when I use the fast user switching option.  For instance, if you are listening to streaming content in a Safari tab and want to reference another app as soon as you switch from the Safa

  • SCCM 2012 SP1 - R2 Upgrade Incl Windows ADK for Windows 8.1 Update

    Hi All I Need some advice We are preparing for the upgrade SCCM 2012 SP1 -> SCCM 2012 R2 Quick steps: 1 Uninstall ADK 8.0 2 Install ADK 8.1 3 Upgrade SCCM 2012 SP1 -> SCCM 2012 R2 4 Install CU1  SCCM 2012 R2 5 Upgrade Clients to SCCM 2012 R2 6 Upgrad

  • I just upgraded to CS6 from CS 5.5 and it crashes

    I just upgraded to CS6 and it works wonderful untill it trys to install the update. After that it will not open up any files so I have to un install it again and do the process over again. Any thoughts?

  • T420S Synaptics Memory Leak + Volume buttons not working

    As title says, I'm having big problems with a memory leak from the touchpad driver. I've updated to the latest driver, but it still happens. This morning, the process was using 6.5 GB of ram! This is ridiculous. 2nd issue is with the volume controls

  • The available qty field

    In Ecommerce the available field under item financials available where does it get the qty from is it from the web last count field in the item management on SAP Business One or is it the available field Please advise Thank you