Amount conversion in BDC

Hi,
when iam displaying report after uploading data using BDC , amount field iam not getting properly.
iam expecting 1,234  ( what iam getting 12.34), any one can help.

u need to the decimal correction.
pls see the extract of the code below :
SELECT currkey currdec FROM tcurx INTO TABLE tbl_tcurx
  FOR ALL ENTRIES IN tbl_bsik1
  WHERE currkey = tbl_bsik1-waers.
  IF sy-subrc = 0.
    SORT tbl_tcurx BY currkey.
  ENDIF.
  READ TABLE tbl_tcurx WITH KEY currkey = tbl_bsik-waers
                                  BINARY SEARCH.
    IF sy-subrc = 0.
currency corrections
      IF tbl_tcurx-currdec = 0.
        tbl_final-wrbtr = tbl_bsik-wrbtr * 100.
      ELSEIF tbl_tcurx-currdec = 1.
        tbl_final-wrbtr = tbl_bsik-wrbtr * 10.
      ELSEIF tbl_tcurx-currdec = 3.
        tbl_final-wrbtr = tbl_bsik-wrbtr / 10.
      ELSEIF tbl_tcurx-currdec = 5.
        tbl_final-wrbtr = tbl_bsik-wrbtr / 1000.
      ENDIF.
     start
    ELSE.
      tbl_final-wrbtr      = tbl_bsik-wrbtr.
   end
    ENDIF.
if found useful reward with points

Similar Messages

  • Amount Conversion File error using VALUE keyword in BPC 7.5M

    Hi Experts,
    We just migrate from BPC 7.0M to BPC 7.5M. We also change the server to multi-server arquitecture 64-bit (Application server and BD Server).
    When we try to Import or Validate Transformation File with Amount conversion file using VALUE keyword, the system returns: "Error: Validate with data file failed". The content of conversion file columns:
    EXTERNAL= *
    INTERNAL= *
    FORMULA = VALUE*0.001
    At first, we thogut that was a problem with 0.001 but we tried diferent formulas with the same error:
    FORMULA = VALUE*1
    FORMULA = VALUE*2
    FORMULA = 0.001*VALUE
    We also tried to use VALUE keyword with case sensitive and the result was the same. And when we don't use VALUE keyword the validation is OK.
    Any idea? Thanks in advance.
    Best regards,
    Albert

    Hi everybody,
    First of all, thanks for your replies.
    The trasformation file is:
    FORMAT = DELIMITED
    HEADER = NO
    DELIMITER = ;
    AMOUNTDECIMALPOINT = ,
    SKIP = 5
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=-1
    ROUNDAMOUNT=
    *MAPPING
    ACCOUNTP=*COL(4)
    BRANDS=*COL(6)
    CATEGORY=*NEWCOL(ACTUAL_YTD)
    CUSTOMERP=*COL(7)
    DATASRC=*COL(4)
    ENTITY=*COL(2)
    GROUPS=*NEWCOL(LC)
    INTCO=*NEWCOL(INONE)
    MARKETP=*COL(8)
    TIME=*COL(3)
    AMOUNT=*COL(9)
    *CONVERSION
    TIME=TIME.xls
    ENTITY=ENTITY.xls
    DATASRC=DATASRC.xls
    MARKETP=MARKETP.xls
    BRANDS=BRANDS.xls
    CUSTOMERP=CUSTOMERP.xls
    ACCOUNTP=ACCOUNTP.xls
    AMOUNT=AMOUNT_TEST.XLS
    The data file has the first column empty and the 5 firsts row are skipped.
    21.12.2011                      Salida din?ica de lista                              1;;;;;;;;
    ;Company;0FISCPER;0ACCOUNT;ZIMP_TYPE;...FIT_CTR;N? cliente;ZRAMO_P;        Importe
    ;ES0;2020012;PCAJ;D;AX028;E4291;ZAS2;26,04000000
    ;ES0;2020012;PCAJ;D;AX028;E5145;ZNEA;2,48000000
    ;ES0;2020012;PCAJ;D;AX028;E5361;ZNE1;1,86000000
    ;ES0;2020012;PCAJ;D;AX028;E0889;ZMI2;1,24000000
    ;ES0;2020012;PCAJ;D;AX028;E0824;ZLAN;12,40000000
    ;ES0;2020012;PCAJ;D;AX028;E0801;ZMI2;25,42000000
    ;ES0;2020012;PCAJ;D;AX028;E1273;ZTS1;3,10000000
    ;ES0;2020012;PCAJ;D;AX028;E6163;ZLAN;60,14000000
    ;ES0;2020012;PCAJ;D;AX028;ORGUS00;ZSHL;96,10000000
    The conversion file AMOUNT_TEST.XLS has only one line. With this conversion we want to change value from u20AC to Ku20AC.
    You should think that we used these transformation and conversion files in BPC 7.0M and it works fine.
    I'd like to remember that if we don't use AMOUNT_TEST.XLS or delete VALUE keyword, these transformation file works fine too.
    nilanjan, I tried to validate data file with one record and the system show me the same error.
    Roberto, our first migration was from BPC 7.0M to BPC 7.5M SP3, but we didn't test it. Then we apply SP7 because to solve other issues, and when we try to validate data load we detect that issue.
    Thank you for your help, I hope we can solve that problem soon.
    Best regards,
    Albert

  • Amount field in BDC giving error

    Hi,
    I am doing BDC for FB01, The field WRBTR (Amount) is not taking.
    it is giving error Input field is longer than screen field.
    i took as char.
    data : amount1(13)  type c.
        AMOUNT1 = WA_HEADER-WRBTR.
        CONDENSE AMOUNT1.
        PERFORM bdc_field       USING 'BSEG-WRBTR'
                                      wa_header-wrbtr.      " wa_header-wrbtr
    but it is giving error: Input field is not in this format __,__,__~
    Pls give me the soluctions.
    Regards,
    Sri

    Hi,
    Use the below code
    PERFORM bdc_field USING 'BSEG-WRBTR'
    AMOUNT1. " Amount1   Char Field
    instead of
    PERFORM bdc_field USING 'BSEG-WRBTR'
    wa_header-wrbtr. " wa_header-wrbtr
    Regards
    Dillip

  • Date and Amount format in BDC

    Hi friends,
       I am facing problem with date and currency format while uploading data through BDC.
       Plz. tell me how to handle the problems related to Date and amount format.
       Thanks in Advance

    Dear Punit,
    This is a common problem, when carrying out BDC.
    For example, while recording you met with the 2 fields --> MSEG-DMBTR (Curr) and MSEG-MENGE(Quantity).
    Go to SE11 --> MSEG --> Search for DMBTR --> Double click on the Data Element i.e. DMBTR --> Double Click on the domain WERTZ --> You can see under the block Output Characteristics : Output Length = 16.
    While declaring the TYPES Structure, make it CHAR(16).
    Similarly for MENGE --> Data Element : MENGE_D --> Domain : MENGE13 --> Output Length = 17.
    Make it CHAR(17).
    For Date field ---> CHAR(10).
    Consider this technique as the Rule-of-Thumb while doing BDC.
    Regards,
    Abir
    Don't forget to award points *

  • Erroe with Tax amount conversion during PO creation

    Hi,
    I am getting the following error while PO creation. I have already searched for existing threads and have also maintained entry in OB08 but the error still exists.
    *Enter rate EUR / INR rate type  for 20.01.2012 in the system settings
    Message no. SG105
    Diagnosis
    For the conversion of an amount into another currency, an entry is missing in the currency conversion table.
    Procedure
    Add the missing entry in the currency conversion table.
    Execute function
    You can then continue to process the commercial transaction.*
    I have two concerns here:  1. the error is not showing any exchange rate type, and   2. at header level of PO it is by default picking some conversion rate which is not maintained in ob08.
    Thanking in anticiaption.
    Regards,
    Nikhil

    Dear,
    Are you creating PO for Imports? if yes then please check the following;
    SPRO>IMG>Logistics General>Tax on Goods Movement>India>Basic Settings>Maintain Company Code Settings...please check what is the exchange rate type for CVD is maintained. If it is different from "M" then please maintain the tax rate for this exchange rate type...
    Hope this helps!!
    Br,Vivek

  • DMEE Currency amount conversion not working

    All,
    I have been trying to get the currency conversion function in DMEE to work and I cannot get what I want.
    Here is what I want: right justified two decimal places (with decimal)  total length 11.
    So if my data is 100, I expect: 100.00
    I am just using the DMEE test facility.  If I put in 100, I get this:
    10000.00
    Is this just a fluke of the DMEE test, or when I actually run this in the PMW, am I gonna get the results I expect?
    Does this have something to do with providing a CUKY?
    Length = 11
    Type = P Currency Amount
    Conv Function = AR.2 (but I have tried many more).
    Source = FPAYH-RWBTR
    System Info:
    ECC 5.0
    SAP_BASIS 620
    SAP_ABA 620
    SAP_APPL 470
    SAP_HR 470
    EA-IPPE 200
    PI 2004_1_470
    PI_BASIS 2005_1_620
    ST-PI 2005_1_620
    EA-APPL 110
    EA-FINSERV 110 0006 SAPKGPFA06 SAP R/3 Enterprise Financial Services
    EA-GLTRADE 110 0006 SAPKGPGA06 SAP R/3 Enterprise Global Trade
    EA-HR 110 0010 SAPKGPHA10 SAP R/3 Enterprise HR Extension
    EA-PS 110 0006 SAPKGPPA06 SAP R/3 Enterprise Public Services
    EA-RETAIL 110 0006 SAPKGPRA06 SAP R/3 Enterprise Retail
    DIMP 471 0009 SAPKIPME09 DIMP 471 : Add-On Supplement
    ST-A/PI 01K_R3_470 0000 - Application Servicetools for R/3 470
    Thanks for your help!

    Hi,
    FPAYP-WRBTR is an amount field, which needs to be associated to a currency (in the DDIC definition of FPAYP you can see that it is associated with FPAYP-WAERS). Without an association to a currency, the system doesn't know how to interpret this amount.
    Therefore to get a correct formatting of a value in FPAYP-WRBTR, you will also need to fill the FPAYP-WAERS. Please include this field also in your DMEE tree.  When you test the tree and enter the amount  you should get the correct output.
    In the real payment run, the fields will be populated by the application So, even though the currency does not appear as an element in the tree, you will still get the correct formatting of the corresponding amount.
    I hope this helps.
    Regards
    Ravinagh Boni

  • Amount conversion from company code to another currency?

    Hi all,
    I want to develop a report report in which I need to convert the amount from company code currency to foreign currency.
    but before that should it be converted from company code currency to group currency which is standardized one?
    means suppose I have company code currency GBP , grp currency USD and user selects EUR for amount currency.
    then should I go like this: GBP to USD then USD to EUR.
    I am using the FM : CONVERT_AMOUNT_TO_CURRENCY.
    rgds,
    Madhuri

    Hi,
    Check out this thread...
    Currency Conversion
    Regards,
    Lydia

  • Salary amount conversion based on Currency - LDB

    Experts,
    I am using LDB PNP in my report and it fetches salary data of an employee. But the problem is in table the amount is shown as 1,000.000  ( three decimal places as for currency EGP), but the same displays as 10,000.00 from LDB. How can this be solved ?

    Hi,
    Please use any of these FMs
    HRVE_GET_BASIC_SALARY
    HR_ECM_ANNUALSALARY_GET
    HRCM_EMPLOYEE_PERIOD_SALARY
    HRWPC_RFC_CP_SALARY_GET
    Regards,
    Peter

  • Amount conversion based on currency

    Hi
    I have a requirement for converting amount into words based on given currency.
    I have tried doing this using function module spell_amount, but it is not working.
    Points will be rewarded to the helpful answers.
    Its very urgent.
    Regards
    Haritha.

    Hi haritha,
    REPORT ZSPELL.
    TABLES SPELL.
    DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
    DATA : PAMOUNT LIKE SPELL-NUMBER  VALUE '1234510'.
    SY-TITLE = 'SPELLING NUMBER'.
    PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.
    WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.
    FORM SPELL_AMOUNT USING PWRBTR PWAERS.
      CALL FUNCTION 'SPELL_AMOUNT'
           EXPORTING
                AMOUNT    = PAMOUNT
                CURRENCY  = PWAERS
                FILLER    = SPACE
                LANGUAGE  = 'E'
           IMPORTING
                IN_WORDS  = T_SPELL
           EXCEPTIONS
                NOT_FOUND = 1
                TOO_LARGE = 2
                OTHERS    = 3.
    ENDFORM.                               " SPELL_AMOUNT

  • Amount conversion in ABAP...

    Hello,
    I want the following kind of conversion.
    0000000000.53   ->  0.53
    0000000123.00   ->  123.00
    0000000001.23   ->  1.23
    0000000005400  ->   5400
    Please help.
    Regards,
    Rajesh.

    Is this what you are looking for.
    PROGRAM ztest.
    DATA:ts(100) TYPE c VALUE '0000000000.53'.
    SHIFT ts LEFT DELETING LEADING '0'.
    WRITE: ts.
    For values with no decimals you can use conversion exits as well. For others just use SHIFT statement.
    Amandeep

  • Smartform: total amount conversion to Japanese language

    Hi all,
    I am facing an issue in the smartform with the japanese language. The total amount which is calculated and dispalyed on the form is not translated to the japanese language. All the other quantity and value fields on which no manipulation is performed are successfully translated.
    Like for 1 item the value is 1,000 JPY
    2 item value is 1,000 JPY,
    The total value GV_TOTAL = value of item 1 + value of item 2
    Now this GV_TOTAL is displyed as 20.00 JPY
    Can anyone help as to how can we display the Total value correctly on the form in japanese?
    Thanks in advance.
    Regards,
    Pakhee

    Whatever the Curreny you can convert the amount to the corresponding currency by using
    WRITE <source>TO <dest>CURRENCY <currency field>.
    This will ensure you always you are printing the total value with appropriate currency.
    Thanks
    Mani

  • Amount conversion in smartform

    HI all,
    I have an amount of 1,80,000 as total amount in the smartform . I called a function module to display the amount in words ,but its showing as one hundred and eighty thousand and zero.
    How to display it as one lakh and eighty thousand and zero in the smartform?
    Do we have to do any changes in the called function module?
    In my profile its been defined as 1,000,00 but still am not getting.
    Thx

    Hi,
        Remove Spell amount and use this
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
        EXPORTING
          AMT_IN_NUM               = G_TOTAL1
       IMPORTING
          AMT_IN_WORDS             = G_GRNDTOT_WORDS
       EXCEPTIONS
         DATA_TYPE_MISMATCH       = 1
         OTHERS                   = 2

  • Amount conversion

    Hi,
    I have requirement like this.Input file is coming and data is posted to SAP.But if that amount part is suppose 1037135 like this.Instead of posting amount like 10371.35 it is posting like 270.74.
    Please provide the answers and kindly need ful.
    Thanks & regards,
    Kumar

    hi
    See whether is any currency translation is happening
    Ensure the consistency of currency
    Assign points if useful
    Regards
    N Ganesh

  • Bdc for f-28

    hi can any body tell me
    how to handle amount field in bdc
    AMOUNT CONVERSION
    1. FIELD NAME :-WRBTR
    2. IN FLAT FILE DATA IS :- 9.5
    HOW TO CONVERT IT.
    waiting for responce
    Edited by: tapan rath on Dec 21, 2007 8:03 AM

    thanks for your reply
    actually when i am uploading the flat file through call transaction method in all screen mode.
    i am getting one error for wrbtr field.
    in flat file wrbtr value is 9.5,100.55,12.56 as follows
    but for this ' .'  i am getting  this error
    error name;-
    input should be in the form .._._~,_

  • Planned order to Manufacturing order conversion

    Hi Experts,
    We are in SCM 5.0 & R/3 ECC 5.0.   I have developed one RFC function module in APO, for planned order to manufacturing order conversion, using BDC for transaction /sapapo/rrp2. This rfc function module, iam calling in r/3 program.
    The issue is, using this enhancement, if i put the conversion indicator tick in APO, it is not converted into manufacturing order & subsequently not transferred to r/3 via CIF. But, if i do it directly in APO through normal transaction, it is getting converted into manufacturing order & the same is transferred to r/3.
    What could be the reason ?   Any help is appreciated.
    regards,
    Nagarajan.J

    First of all I think there is inconsistency in what you have reported as the problem.
    "This rfc function module, iam calling in r/3 program"
    "using BDC for transaction /sapapo/rrp2"
    Transaction /sapapo/rrp2 is to query Orders in APO and not for setting conversion indicator.
    Use transaction /SAPAPO/RRP7 instead for mass conversion.
    Also remember just setting the conversion indicator will not suffice. The Planned Order with the Conversion Flag needs to be saved that will trigger CIF transfer.
    Somnath

Maybe you are looking for