Currency convension based on calday
Hi
i have one scenerio , I am getting Total Valuated Stock Value(ZSR_TVSTV) is equall to inventory on hand.(plant) from 5 global systems with deffirent curriencies.
i need to convery source to target currenct to USD at transformations level, I have calmonth in my source cube, I dont have calday.
bec exchange rate will be deffirent for deffirent day.
please give me ur idea .
my key figure is (ZSR_TVSTV)
CONSTANTS: c_bs TYPE tcurv-kurst VALUE 'BS' ,
c_usd TYPE tcurr-tcurr VALUE 'USD' .
CALL FUNCTION 'CONVERT_FOREIGN_TO_FOREIGN_CUR'
EXPORTING
date = SOURCE_FIELDS-calday
type_of_rate = bs
from_amount = SOURCE_FIELDS-<amount field>
from_currency = SOURCE_FIELDS-currency
to_currency = usd
local_currency =usd
IMPORTING
to_amount = w_usd_amt
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6.
IF sy-subrc EQ 0.
w_usd_amt to <target field/object>
ENDIF.
Hi,
if you don't have a calday in your data you can convert currencies based on a mean conversion rate for the month. This has to be approved by busines of course. Let them tell you the appropriate curency type. If you have a mean rate you can take the first of the month as a base for your currency calculation. Copy SOURCE_FIELDS-calmonth to a local field CALDAY TYPE SY-DATUM and concatenate '01' to the end of this field.
Then replace 'date = SOURCE_FIELDS-calday' by
'date = calday'
in your function call.
Hope that helps
Christoph Vortkamp
Similar Messages
-
Currency Conversion---- Based on Posting period
Hi All,
I am creating a report based on FIAA .
Query selection screen will contain COMPANY CODE , and the POSTING PERIOD
suppose we enter company code as 2100 and posting period from 001.2007 to 012.2007.
I need to translate all the balance sheet items are translate with the closing rate (M) for the current period , i.e. the "to period in the report " here 012.2007.
The To period is dynamic and i need to select the currency conversion rate dynamically based on the To period entered in the selection screen of query.so, Can any one give the clues to achieve this. Your help is appriciated.
Thanks & Regards
Syam.
Edited by: syam reddy on Nov 24, 2008 10:09 PM
Edited by: syam reddy on Nov 24, 2008 10:19 PMUse RSCUR transaction to create currency translation type.
Here under "Time Ref" tab use "Variable Time Ref" and special infoobject.
You should be able to choose Posting period or posting date here.
Now in query designer maintain the currency conversion based on this currency translation type.
Hope this helps. -
Currency conversion based on budget rate
Hi All,
I want to do the currency translation from GBP to EUR,EUR to USD and GBP to USD.there is no table maintained in the BW system.Currency conversion should be based on budget values and they are asked me to do on reporting level.I have gone thru the documents and blogs but not able to follow them.Could you pls share any one knowledge and step by step process.
ThanksUse RSCUR transaction to create currency translation type.
Here under "Time Ref" tab use "Variable Time Ref" and special infoobject.
You should be able to choose Posting period or posting date here.
Now in query designer maintain the currency conversion based on this currency translation type.
Hope this helps. -
Outputting Currency Values Based on Customer Location
Hi All,
Has anyone had any experience of changing the thousand's separator on a currency value based on the customer location rather than the user logon.
For example if the user logs on in German one thousand Euro will be output as:
1.000
But if they log on in English it will come out as:
1,000
Is it possible to change a smartform to output the thousand separator based on the customer country rather than the user logon.
For example if the user logs on in German and wants to send an invoice to England the value should come out as:
1,000
Many thanks for any help, points awarded.
Regards,
ColmHi,
You can use the Write to Option to convert the decimal place depends on the customer location,
WRITE: Currency_field to Cust_Curency_field.
Cust_Curency_field is a charecter type field and Currency_field is the type of currency
Regards
Sudheer -
Currency Translation based on Last Day of the Acquistion month
Dear all,
Request to help me in understanding how we can calculate the currency translation rate as per the last day if the acquistion month..
For Example if the Acquistion date : 01/01/2008 (mm/dd/yyyy) the currency translation should happend based on the rate maintained as on 31/01/2008.
Thanks
Pavan Kumar PrakhyaFirst, you will need to convert the actual acquisition date to the end date of the Fiscal Period. This can be done by using two separate Function Modules. First, get the actual Fiscal Period by entering the date and Fiscal Year Variant into the DATE_TO_PERIOD_CONVERT Function Module. Use the Fiscal Year and Fiscal Period from this and determine the end date of the Fiscal Period by using Function Module LAST_DAY_IN_PERIOD_GET with Fiscal Year, Fiscal Period and Fiscal Year Variant as your inputs.
For the conversion, use the Function Module CONVERT_TO_LOCAL_CURRENCY. The inputs for this would be the last date of the Fiscal Period, the amount to be converted, the from currency code, the to currency code, blank in rate, AS01 in type of rate and X in read TCURR. This assumes, however, that month-end rates (rate type = AS01) have been loaded into your source system and these rates have been transferred to your BW environment. -
Currency Conversion based on condition in BW
Hello,
I have gone through the cople weblogs/links/doc whatever information I found on currency conversion. However I am not able to figure out what could be done in below scenario. Please guide.
Scenario -->
I have STATUS and POSTING_DATE in my Cube. Key Figure in this cube is AMOUNT. Transactions are created in source system in local currency. When data is extracted to BW, I get AMOUNT in local currency and with right clicking on this column in Bex, I can convert it in Fix Target currency or I can permanently create one new column in my report which will always shows fixed target currency for AMOUNT. So far so good.
Now the problem is I wanted to use the conversison rate maintained in TCURR table based on some condition.
Ex: IF STATUS=CLOSED, then use Conversion rate as of POSTING_DATE,
ELSE, use current date exchange rate.
Standard currency conversion always use curent date for calculating exchange rate, but can I use conversion rate as of POSTING_DATE?
Please advice.
Regards
PankajThanks everyone for reply. I really apprecite your help.
I tried the suggested FM "CONVERT_TO_LOCAL_CURRENCY", just have one more clarification.
I debuged this FM and saw that Date which we are passing get's inverted as this is how date is maintained in TCURR table. So far so good. But TCURR table normally get's loaded once a month (say at the start/end of month) and so we will have only one date there. However input date which I am passing into thi FM can be any date (as this is the date maintained at transaction level). How do you handle this case?
Please advice. -
Get transactional currency total based on currency type
hi,
i have created a custom report related to fi which is working fine.
but now the issue is in that report we r having a transaction currency field WRBTR.the users want to calculate totals based on currency.
for example my output is
tran curr curr type
500 inr
600 inr
400 inr
200 usd
500 usd
400 usd
so now the totals shld be calculated based on currncy wise.
i.e we need to get 2 lines in total
1500 inr
1100 usd
Any suggestions in this issue will be helpful.Hi,
Try to fill Field cataloue in the following manner .
then it will summ automatically based on Currency.
lfs_fieldcat-fieldname = 'AMOUNT'.
lfs_fieldcat-tabname = text-022.
lfs_fieldcat-CFIELDNAME = 'CURRENCY'.
lfs_fieldcat-col_pos = '1'.
APPEND lfs_fieldcat TO t_fieldcat.
lfs_fieldcat-fieldname = 'CURRENCY'.
lfs_fieldcat-tabname = text-022.
lfs_fieldcat-col_pos = '2'.
APPEND lfs_fieldcat TO t_fieldcat.
Regards.
Eshwar. -
How to set the Date and Currency Formats Based on Country
Hi Friends,
I am designing the one Global Form it will use for all countries.
in that Form i want to print the date and currnecy Formats based on country.
Like
For US i want print the date and Currency Like This.
Date - MM/DD/YYYY
Curremcy - XX,XXX,XX.XX
For DE i want print the date and Currency Like This.
Date - DD.MM.YYYY
Curremcy - XX.XXX.XX,XX
Please suggest how i can control these things through Java Script or Formcalc....Hi Nitin,
thanks For ur reply,
i tried with this solution,
But it is displaying the default Format like bellow formats.
For short - mm/dd/yy
For Medium - mmm dd , yyyy
For Long - thursday ,mmm dd , yyyy
it was prinitng in above mentioned format,
but here i want to print my own format for USA like MM/DD/YYYY. -
Currency translation - based on posting date
Hi everyone..
im again posting this topic bcos im in need of a solution for my problem as early as possible.please excuse me.
Problem related to currency conversion:
Im taking a report from sales order and billing cube,and the report is coming fine,but when i apply the currency conversion type,it is not giving the correct conversion.
In report,im using exchange rate on document posting date.
So if i compare the value in R/3 with the reporting value,the difference comes.
For the currency conversion type i used, i checked in rrc2,it is like this.
Exch rate type:M-standard translation at avg rate
Source curr:from data record
Tgr curr:selection with translation
Time ref:Varoiable time reference:A-To the exact day
Special Infoobj:Posting date object
So what could be the problem for the wrong translation.the difference is about 1.2 rs per dollar.
i will be verymuch thankful to u,if u could give some solution for this problem...
thansk & regards
sudhaHi
Please check if you are transferring exchange rates maintained in R/3 to BW on daily basis or as & when change happens on R/3 side.
If not then you can do that in RSA1->source systems-> here select your R/3 system ->right mouse click-> Transfer global settings-> in next screen put check box ON for currencies and then using update tables option button. For daily scheduling, go to top menu ->Program-> Excute in background-> here you can schedule this as daily job.
Hope this helps
Regards
Pradip -
Problem in SAP Query with currency conversion based on table TCURX
Hi All,
I have an infoset where tables A903 and KONP are joined . Query is displaying the KONP-KBTER values with currency as stored in the database table .My requirement is to show the KBETR value as per decimals stored in TCURX table for that currency .
For Example If KONP-KBETR = 51.29 JPY , It sholuld display as 5129 as Decimal places for JPY is 0.
There is FM CURRENCY_AMOUNT_SAP_TO_DISPLAY Which gives the equvivalent display value to the databse value value.But it is giving dump because of type conflict with
KONP-KBETR .
Can any body help me how can i solve the problem in My Query ? .Pls any small idea taht may help greatly also warmly welcome .
Thx,
Dharma .Hi Sriram ,
But how can i use it in Queries . I mean should I go for a additional filed in infoset and then passing the converted value to the the that additional field .
Thx ,
Dharma . -
Currency format based on selected operating unit
Hi all,
In My custom page i have a operating unit lov in header section.below of the page i have hourly rate text box.when user enters the amount and tab out it should be changed to the above selected operating unit currency format.please tell me your suggestions
Thanks in advance
GangaGanga,
when user enters the amount and tab out it should be changed to the above selected operating unit currency format.please tell me your suggestionsIs Operating Unit is a LOV .. If yes then handle the Lov event in the controller & change the currency Format. what is the exact problem u r facing.
Regards,
Gyan -
Best way to validate currency field based on two picklists
Hi,
Im having a great deal of trouble creating validation for the following statement:
If (Task type =”Call” or “Callback”) and (‘Outcome Category’ is “In Progress” or “Tried and Failed to Save” or “Saved”) then (‘Total Value of Policy’ must be > 0)
Both task type and outcome category are picklist items.
What is the easiest way for me to do this? Ive created something horribly complex which only works when I first create the record (possibly because of the use of FieldValue rather than stored values). Ive seen people use the NOT function before to do this - could this be an option?! Ive had no luck with anything Ive tried so far.
My current expression is as follows:
(FieldValue('<cTotal_Value_of_Policy_ITAG>') > 0
AND FieldValue('<Type>') <> LookupValue("TODO_TYPE", "Investigation") - - Because call or callback are the only other options in the list.
AND (FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "In progress")
OR FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Tried & failed to save")
OR FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Saved")))
OR FieldValue('<Type>') = LookupValue("TODO_TYPE", "Investigation")
OR (FieldValue('<Type>') = LookupValue("TODO_TYPE", "Call")
AND (FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "In progress")
AND FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Tried & failed to save")
AND FieldValue('<IndexedPick2>') <> LookupValue("OCC_INDEX_CUST_LOV_EVT_ACT_2", "Saved")))
Sorry for including this confusing chunk of code, but I think it explains how more complex i have made this than i probably need to!!
Any help would be greatly appreciated as this is quite an urgent issue..
Many Thanks
AJAnon,
In your edit form, create two hidden items p10_ha, p10_hb (for e.g.) Make the default values for these items as values of p10_item_a and p10_item_b respectively. So when you are processing the update, you have old values in hidden items and new values in p10_item_a and b.
Now create 'after submit' pl/sql computation and put similar code
if p10_ha !=1 and p10_hb !=1 then
if p10_item_a = 1 and p10_item_b = 1 then
-- your business logic here
:p_date_item := sysdate;
end if;
end if;Hope it helps
Cheers
Hari
Edited by: Hari_639 on Oct 27, 2009 9:21 AM -
Display the data based on country currency
Hello All,
I was created one alv report in that i have display currency field based on country currency.means if if company code is india it is display 44.44 and if it is viyatnam 4444 with no decimals both will display in same report .I tried lot but i was getting please any one have solution give me reply fast.
Thanks & Regards,
VenkateshHi,
While poplulating the feild catelogue internal table. Pass the currency field in the internal table.
then pass the paramter cfieldname for the amount field with the name if the field of internal table which contains the currency unit. and also create the seperate entry in the feild catellouge for the currecy unit as well.
for more detalis see the REUSE_ALV_GRID function module documentation. -
Disclaimer: I'm not a computer guy but I can be taught!
I am tracking a checking account for a church ministry. I have one table that holds the line items and the amounts budgeted for each item. I want to add a column to that table that shows the actual amount spent for that line item. The reference will come from the second table that contains that actual data. I have a column that has a dropdown list to select the budget line item and a column that holds the actual amount spent for that transaction. I want to auto sum the selected currency values based on the selection criteria of the certain budget line item and display it in the first table.
Any help would be appreciated.Hi wcanerday,
Thanks for the green tick and your feedback. Yes, the SUMIF function is powerful!
When you adapt the Personal Budget template, make sure that the items in the Category Column (A) on the Budget sheet exactly match the items in the Pop-Up Menus in Column C of the Transactions sheet.
Editing a Pop-Up Menu in Numbers 3 is easy. Please call back if you need more help.
Regards,
Ian. -
Multiple currency translation in one single query execution.
Hi folks.
I have today running in production, a report like:
The user input a period and a version (multiple single values selecion)
- Period
- Version (0VERSION)
And the report returt as follow
2010
Version A1 Q1
Key Figure 1 500BRL 400BRL
Key Figure 2 300BRL 200BRL
Now, the user requires a currency translation based on the version selected in the filter. I mean, for version A* use one exchange rate type.
For Q* version, use another exchange rate type...and so one...
For instance, the solution is to create a currency translation type like:
Exchange rate type from Var. and create this var as user exit with an abap that checks the version selected by the user in the
report and than return the exchange rate type based on this version...
This solution works only if the user input only one version in the filter. But, he needs to input three, four..versions and
in one execution of the report, translate the currency using a exchange rate type for each version.
Ex: Exchange Rate for version A1 (1.8USD = 1BRL) Exchange Rate for version Q1 (1.5USD = 1BRL)
Then, the report should return:
2010
Version A1 Q1
Key Figure 1 277,7USD 266,6USD
Key Figure 2 166USD 133,3USD
I know it's a little complex to describe, but if someone know how to do it, I'll aprecciate.
Best Regards,
ThiagoCan you explain your query KFs structure..
Seems that in your report there is 1 KF for each version....but you have 1 input variable which holds multiple values ...If thats right..then how are you getting values for diff versions from 1 & same variable..
No, there is one key figure for each document..
for example,
(doc/calday/version/sales revenue)
DOC00001 01012011 0 100BRL
DOC00002 01012011 A1 120BRL
DOC00003 01012011 R1 110BRL
In the report, the user can filter by one or more version, and based on wich version he selects, for each version we need to use a specific currency translation.
The structure in the query is
In Lines
Sales Revenue
In columns
Calday / Version
regards
Maybe you are looking for
-
My ipad isnt restoring, error code 1611, is there a fix for this?
Itunes no longer recognizes my ipad on my computer, I used my friends computer and it gets as far as restoring but says unable to restore rror 1611 Any help is much appreciated - windows 7- desktop - Ipad 1st gen
-
Faulty Windows after 'successful' System Image restore to new hard drive.
This question posted as ' Cut down Win 7 after System Image restore to new HDD' in the community but no satisfactory answer. Please may I ask here. Win reported a successful System Image creation of C: on my E: drive. C was replaced with a new 2TB
-
Windows Server 2012 R2 - Hyper-V NIC Teaming Issue
Hi All, I have cluster windows server 2012 R2 with hyper-v role installed. I have an issue with one of my windows 2012 R2 hyper-v host. The virtual machine network adapter show status connected but it stop transmit data, so the vm that using that NI
-
Why are so many home buttons not working like mine? See web comments
Why are so many home buttons on ipad 2 reported as faulty on the web? Mine is being replaced because of this requiring tedious journeys to Apple Bristol
-
Change hostname on Cisco devices that are in production
I'm new to Cisco devices and to my current job as network analyst. Mostly in an attempt to establish consistency and to ease identification, I'd like to change the hostname of most of our Cisco switches and routers. However, I don't want to create an