Assign currency via routine
Hi,
I have a key figure with an amount and currency. Both values need to be retrieved from another source than the one in the transformation rule. The solution for this is of course a routine where I'm able to assign the amount, but not the value. The only ways to assign a currency is via source (not the correct one) or conversion.
How can I assign a currency via a routine?
Eddy
Hi Eddy,
in BI 7, Tranformations, try with "Routine with Unit", here we take only Currency amount, and unit is assigned inside routine.
i am not sure this meets requirement.
Best Regards.
Similar Messages
-
Currency conversion via routine in transformation BI 7.0
Hi,
for an international data model we want to translate currencies via data load using a routine in the transformations. We are thinking about creating 2 key figures for local currency and group currency. Group currency is always EUR. We found to function modules but we are not sure about the differences and if we can us them at all: CONVERT_TO_LOCAL_CURRENCY and RSW_CURRENCY_TRANSLATION
Does anyone of you implemented currency conversion in a transformation before using a routine. And does anyone have experience with those function modules and can explain the differences? Thanks a lot in advance! Any help is appreciated!
AlineHi,
You can use the readily available functionality to convert the amounts from one currency to other.
Use transaction RSCUR (maintain currency translation types) to create the currency translation type nad use it directly in the transformations.
Regards,
Yogesh -
How can we assign Currency to Pay Scale Structure ?
Hi,
Kindly let me know how we can assign Currency to Pay Scale Structure? and What level is it assigned?
Saurabh Gargsolved myself
-
Where do we assign currency to WT?
Where do we assign currency to WT?,
I want to change the WT currency from USD to USD4... can you please tell me where I should make the changes?
SaurabhHi,
The table view V_T510F_B is usefull.
Currently currency is CAD for SALARY population; if we change from CAD to CAD4, is there any major effect?..
Please suggest the impact....
I will change this because one employee has ANSAL 34000 biweekly, his benefit salary is getting calculated as 34000.20 Reason : it per period salary is coming as 1307.70 istead of 1370.6924... with this change, the benefit salary will come as 34000/-.
Saurabh Garg -
Assigning Currency to Key Figure through End Routine
Dear Experts,
We have written end routine to insert few records in to active table of a DSO.
We are getting error while activating the request.
As we have analysed, the error is occuring as we have not assinged the currency to these key figures.
So please guide us on how to assign the currency to a amount key figure through end routine or if any other means is available.
Regards,
AnandWhenever you insert any Amount field in ODS then currency is automatically added to it.. If you have created a KF of type Amount then included it an ODS ,make sure whether you have mapped currency field or not..
if you are writing some subroutine in update rule then checkout whether mapping is done for that Amount field or not. you can do direct mapping for fix currency or you can write a mapping in subroutine for Source curr and target curr -
Currency translation routine - pls correct ABAP code
Hi,
I am trying to implement a scenario for currency conversion at the transformation level.(i am using BI 7.0)
My source data is flat file.
My scenario here is like
I have 2 masters - country & supplier.
I added 0loc_currcy as an attribute to the country.
The master data of country is as below:
Cid cname local currency
C1 INDIA INR
C2 SWISS CHF
C3 America USD
For supplier master data is:
supp id Sname
S1 raghu
S2 tej
S3 harish
S4 reddy
I defined 2 key figures one Zprice1 & Zprice2.
Zprice1 has currency type 0DOC_CURRCY
Zprice2 has currency type 0LOC_CURRCY
In the PSA the data is as below:
cid sid 0calday price1 doc_curr
C1 S1 01.01.2007 300,00 INR
C1 S2 01.02.2007 400,00 CHF
C1 S3 03.01.2007 350,00 USD
C1 S4 15.04.2007 450,00 EUR
C2 S1 31.05.2007 600,00 INR
C2 S2 21.06.2007 250,00 CHF
C2 S3 01.01.2007 900,00 USD
C2 S4 01.02.2007 1.300,00 EUR
C3 S1 03.01.2007 1.250,00 INR
C3 S2 15.04.2007 500,00 CHF
C3 S3 31.05.2007 50,00 USD
C3 S4 21.06.2007 300,00 EUR
I am expecting my data in the cube to be as below:
cid sid 0calday price1 doc_curr price2 loc_curr
C1 S2 01.02.2007 400,00 CHF 350,00 INR
(bcoz c1->INR)
C3 S1 03.01.2007 1.250,00 INR 25,00 USD
(bcoz c3->USD)
Based on cid the loc_curr value(amount & currency after conversion) should be displayed.
in the transformation i assigned
/BIC/zprice1 -> zprice1
DOC_CURRCY -> zprice1
/BIC/zprice1 -> zprice2
DOC_CURRCY -> zprice2
For zprice2 i selected rule details.
In IOassignment of source fields i assigned ZPRICE1
and 0DOC_CURRCY.
In currency tab of rule details now it is like :
Target Currency 0LOC_CURRCY
Currency from source
Source Currency DOC_CURRCY
Now in rule type i selected routine and inserted code shown below:
data: ZResult_Val type f,
CALMONTH type rsgeneral-chavl .
CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
EXPORTING
I_CTTNM = 'ANYCALMON'
I_AMOUNT = SOURCE_FIELDS-/BIC/ZPRIC1
I_SCUR = SOURCE_FIELDS-DOC_CURRCY
I_TCUR = 'EUR' --- (what should i give here for target currency should be taken based on cid)
I_TIME_IOBJVL = CALMONTH
I_SCUR_IOBJVL =
I_TCUR_IOBJVL =
I_PERIV =
I_RATE = 'M'
I_VDATE =
IR_MSG =
I_MSG_TYPES =
IMPORTING
E_AMOUNT = ZResult_Val
E_RATE = 'M'
E_SCUR = SOURCE_FIELDS-DOC_CURRCY
E_TCUR = 'EUR'
EXCEPTIONS
SCUR_NOT_FOUND = 1
TCUR_NOT_FOUND = 2
DATE_NOT_FOUND = 3
CTT_NOT_FOUND = 4
SCUR_CONFLICT = 5
TCUR_CONFLICT = 6
DATE_CONFLICT = 7
INVALID_SCUR = 8
INVALID_TCUR = 9
RATE_NOT_FOUND = 10
X_MESSAGE = 11
INHERITED_ERROR = 12
OTHERS = 13
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
RESULT = ZResult_Val.
I am new to ABAP coding; infact this is my first peace of code.
Can any one tell me some tips of writing code-
->how to see all the syntax error at a time ; By clicking on check(ctrl+F2) i could see only the first syntax error.
-> how to check what each perameter mean? like what does I_CTTNM in this function call 'RSW_CURRENCY_TRANSLATION'. mean?
please help.
Thanks,
RaghuI have written a test program as below:
<code>
REPORT ZCURRENCY.
data: tgtcurr type /BI0/OILOC_CURRCY,
ZResult_Val type F.
select LOC_CURRCY into tgtcurr from /BIC/PZCONTRY1 where /BIC/ZCONTRY1 =
'C3'.
endselect.
CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
EXPORTING
I_CTTNM = 'TEJ5' --currency trans type defined in RSCUR
I_AMOUNT = 10
I_SCUR = 'INR'
I_TCUR = tgtcurr
*I_TIME_IOBJVL = CALMONTH
IMPORTING
E_AMOUNT = ZResult_Val
E_TCUR = tgtcurr.
write: ZResult_Val
</code>
It is working fine
But the following code is not working for my scenario can some debug pls:
<code>
data: ZResult_Val type f,
ZSrc_val type f,
locvar type /BI0/OILOC_CURRCY.
Zsrc_val = SOURCE_FIELDS_RULE-/BIC/ZPRIC1.
select LOC_CURRCY into locvar from /BIC/PZCONTRY1 where /BIC/ZCONTRY1 =
SOURCE_FIELDS_RULE-/BIC/ZCONTRY1.
endselect.
CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
EXPORTING
I_CTTNM = 'TEJ5'
I_AMOUNT = 10
I_SCUR = 'INR'
I_TCUR = locvar
IMPORTING
E_AMOUNT = ZResult_Val
E_TCUR = locvar
RESULT = ZResult_Val.
</code> -
Need Urgent Help on Currency Conersion Routine
Dear Experts,
I am new to BW routines concept. I have to do currency conversion on a key figure, if local currency is not in GBP, i have to convert it to GBP(Cube1 has local currency as GBP and cube2 has local currency as EURO, i need to load data from cube2 to Cube1). I have searched this forum, but couldn't succeed. Please have a look at my code and please tell me where i am doing wrong. Please let me know what value should i give for I_CTTNM =????. What about result_val? How this will be calculated and also advise me about exchange rate
data: Result_Val type f,
S_AMT_1 type f.
Move COMM_STRUCTURE-VALSTCKVAL to S_AMT_1.
IF COMM_STRUCTURE-LOC_CURRCY <> 'GBP'.
CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
EXPORTING
*I_CTTNM = 'ANYCALMON'
I_AMOUNT = S_AMT_1
I_SCUR = COMM_STRUCTURE-LOC_CURRCY
I_TCUR = 'GBP'
I_TIME_IOBJVL = CALMONTH
IMPORTING
E_AMOUNT = RESULT_VAL
E_TCUR = 'GBP'
RESULT = Result_Val.
Else.
RESULT = S_AMT_1.
EndIf.
Thanks,
Syanhi Swapna,
Are you getting a short dump during the dataload?
The use of the function module is not correct.
You should not assign a value to an Import Parameter:
E_TCURR = 'GBP' is wrong.
Import Parameters are what the Function Module returns based on the Export Parameters we give.
I_CTTNM is nothing but conversion type
Conversion type...eg:
0HRFIXCUR Fixed target currency, current date
0MEANDAILY Middle rate using exact days
These should be defined in the table RSCURTRT.
data: Result_Val type f,
S_AMT_1 type f.
Move COMM_STRUCTURE-VALSTCKVAL to S_AMT_1.
IF COMM_STRUCTURE-LOC_CURRCY <> 'GBP'.
CALL FUNCTION 'RSW_CURRENCY_TRANSLATION'
EXPORTING
*I_CTTNM = 'ANYCALMON'
I_AMOUNT = S_AMT_1
I_SCUR = COMM_STRUCTURE-LOC_CURRCY
I_TCUR = 'GBP'
*I_TIME_IOBJVL = CALMONTH
IMPORTING
E_AMOUNT = RESULT_VAL
E_TCUR = anyother variable or the varialbe that holds target currency<donot assign a value> or comment it.
RESULT = Result_Val.
Else.
RESULT = S_AMT_1.
EndIf.
Cheers,
Praveen. -
Error: Organizational Assignment created via Orgnizational Management in HCM form
Hi All,
I am getting below error while moving an EE to certain position via HCM form.
I have cheked and found that if an org unit is to be assigned to another cost center in Organizational management from a certain date, this action generates a new record in infotype 0001 for integrated persons from the date of assignment to the new cost center and if we perform any action which would be deleting the new record (created from OM) in IT0001 then this error would populate.
Here is the the same case a new Cost Centre has been assigned with the orgunit and a new record is creaed in IT0001 from the OM but when I am performing the same action via PA40 then I not getting any error, the error is occuring from the form only.
Can you please help me to resove this error and provide me the reason why it is not occring when I am performing the same action from PA40.
Regards,
MayankHi Mayank,
I think you will be triggering Job Salary Form for the action you have mentioned. Please check in the Tcode HRASR_DT for the form name as I have show below from my development system. In Back-End services - SAP_PA - Infotypes and Operations and for Infotype 0001 check what is the operation that you have maintained.. It should be "change" to avoid the error message.
For PA40 action you would have configured the same as "change" thats why you are not getting error message in PA40.
Thanks,
Sriram -
Need Urgent Help on Currency Conversion Routine
I am trying to load data from Cube2 to cube1. If cube2 has static currency as EUro then i have to convert the amount into GBP. I managed to convert the amount, but it Local currency is still showing as Euro where it should have been GBP. Any ideas? Please let me know if i need to put fullstop(.) or , in the code.
The code i am using is as follows:
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
CLIENT = SY-MANDT
DATE = COMM_STRUCTURE-pstng_date
FOREIGN_AMOUNT = COMM_STRUCTURE-inv_rc_val
FOREIGN_CURRENCY = COMM_STRUCTURE-loc_currcy
LOCAL_CURRENCY = 'GBP'
RATE = 0
TYPE_OF_RATE = 'M'
READ_TCURR = 'X'
IMPORTING
local_amount = RESULT
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
DERIVED_2_TIMES = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.Hi Swapna,
Just mark 'Unit Conversion in the Routine' in update rules.
system provides two new lines of coding
result value of the unit
UNIT = .
Just add desired currency ( e.g. UNIT = 'GBP' . )
Hope this helps
Joe -
AEBS won't assign IP via Wired ports, but it does assign IP Wirelessly
I'm having the strangest problem, my AEBS will assign an IP address in the 192.168.1.X range when connected to it wirelessly, but when I connect to it via one of the wired ethernet ports in the back I get a bad IP (169.XXX.XXX.XX).
This started happening over the weekend and I have tried reseting the unit and still can't get the AEBS to assign the correct IP over Wired ports, not even to a Airport Extreme connected via wired ethernet on another room (all I get is the amber flashing light on the AX).
Any help would be appreciated.
Black MacBook, Intel iMac & Mini Dual Mac OS X (10.4.9)Hi Duane,
Yes I did configure my AEBS to give IP's in the range of 192.168.1.XXX. But when I connect my MacBook via Airport I get the correct 192.168.1.XXX IP, but if I connect it via Wired Ethernet i get the other 169.XXX.XXX.XXX address. This also happens with my Airport Express that it also gets an IP in the 169.XXX.XXX.XXX range which is consistent when a device doesn't issue a correct IP address.
Any help is much appreciated -
Can you assign attributes via the OutlineLoad.cmd utility?
I create a attribute dim named 'Project Admin' with base dim 'Project'. I now want to assign the person to the various Project ID's under Project. Can I do this via OutlineLoad.cmd? The examples in the Planning Admin Guide don't give one of assigning these. I tried the below but it just created a new Attribute Dim named 'TextAttrib' for the Project Dimension.
OutlineLoad.cmd /A:APPNAME /U:admin /M /I:F:\cripts\Automation\scripts\Metadata\ProjMgr\DimBld_Files\ProjMgr.csv /DAT:TextAttrib:"Project" /L:F:\scripts\Automation\scripts\Metadata\ProjMgr\Logs\ProjMgr.log /X:F:\scripts\Automation\scripts\Metadata\ProjMgr\Logs\ProjMgr_Bld.exc /C
My ProjMgr.csv file looks like. Just trying to get sample to work before I try thousands....
TextAttrib,Parent
Davis_William,Proj_12345You can assign attributes while loading your project dimension, see below for .csv format
Project,Parent,Alias:Default,Data Storage,Project Admin
Project_12345,Project_12345_Parent,,Davis_William
Good Luck
Edited by: User7876731 on Apr 25, 2012 2:15 PM -
Available assignment blocks via personalization on account screen
Hi
On the account overview screen in WEB UI (crm version 6.0), via the personalize icon, some users have 40 available assignment blocks and some only have 15. We want to give everyone access to all 40 and then choose which blocks they want to display.
The users who have 15 have a different business role & a different PFCG role to those who have 40. I think its controlled by an object within the PFCG role. Can anyone please help with identifying the object?
Thanks a lot
LesleyHi PP
Thank you for your reply.
The configuration for the business role that has 40 blocks and the one that has 15 blocks is alike in every single way except for the PFCG role i.e. same role config key, nav bar profile etc... The PFCG role is the only thing that is different.
I can see that the technical info is component BSP_DLC_PERS view TablePers but I dont know what within the coding to display this assignment block pop up is read to influence the number of assignment blocks made available to the user.
Thanks a lot
Lesley -
It's not seen available component in assignment block via UI Configuration
Hi, SAP Experts.
I met a some problem in Webui Configuration (via Tcode : BSP_WD_CMPWB)
I wanna diplay or undisplay particular component in UI Configuration.
I move to left section (available assignment blocks) from right section(Displayed assignment blocks) some component.
but, It's not seen some component in left section completely.
It's not displayed components in ui configuration (available assingment block)
I don't know why occurs this problem.
Let me know or explain how to solved this problem.Hi Chang,
I actually dint understand the problem your are facing , but still can tell you the standard behaviour.
Generally we have a set of assignment blocks available in two sections i.e Available List at left side and Dispalyed List at right hand side.All the AB's present at the right hand side would be displayed on Web UI. IF they are not gettting displayed then check your personalisation settings and do reset to default and save once the configuration.
In case you need to bring any of the AB's at left hand side to right ...................do that and save the configuration. You should be able to see all the AB's whcih are at the right hand side.
Sometimes few AB's are hidden at runtime, though they appear in the displayed list. In the controller class of the overview AB, there are two methods namely 'DETACH_STATIC_OVW_VIEWS' and 'REATTACH_STATIC_OVW_VIEWS'. Dettach is used to hide few AB's at runtime and Reattach is to add them. Keep a break-point in these methods and check is they at being hidded based on some condition at runtime. Check the outgoing parameter rt_return.
Hope this helps .
Regards,
Ruby. -
WLAN DHCP Addr. Assignment Required via CLI
Hello all,
Is anyone aware of the CLI command to enable / disable the DHCP Addr. Assignment required WLAN option on a 5508 controller running 7.2.110.0 code? I don't seem to be able to find it documented anywhere, and if it is available via CLI it's not intuitive.
Thanks for any insight anyone can shed,
Andrew.That has to be performed from the GUI. I had ran into that a while back and I usually Dona lot of my configuration from the CLI, but couldn't find how to set that and put an address.... Well there wasn't one for the CLI.
Sent from Cisco Technical Support iPhone App -
Self-Assigned IP via router - no internet access - HELP!
Hi all,
I have 10.5.7 leopard installed on my C2D Macbook.
In the past, I never had any issues connecting to wireless routers with internet connection.
As of late, I am currently getting 'Self assigned IP address' which does not allow me to connect to the internet. It is connected to the router, but just no internet access. I can see the other Shared computers (Windows PC and mate's macbook pros) but just no web access. And they do not have a problem connecting to the internet.
I have attempted the following:
1) Turned on & off Airport.
2) Deleted network connections and re-created them, rebooted in safe & PRAM modes.
3) Deleted router Key chain permissions & changed permissions to 'access all'.
4) Deleted plist files from /Library/Preferences/SystemConfiguration/
5) Off Firewall & verified against the logs to ensure it is disabled.
6) Re-installed 10.5.7 combo updates.
7) Rebooted router, changed router channel, etc. Router is on the latest Netgear firmware.
8) Assigned IP address and entered the DNS, router values manually in Leopard.
9) Clicked on renew DHCP lease several thousands to no avail..
Occasionally, DHCP will work. But once I reboot & awake the mac the internet connection drops and 'Self Assigned IP' happens.
Does anyone else have any ideas? My only conclusion is that the bug is in Leopard 10.5.7.Make sure your router has the latest firmware. If you are out of range of the WiFI or in a marginal area, this error simply indicates that your computer is not able to access an internet router/server and simply assigns the default IP address which is of the form 169.254.xxx.xxx. Basically it's a flag that lets you know you are not connected to a DHCP server.
Maybe you are looking for
-
WSDL missing xsd:annotation & xsd:appinfo tags for new field
Hi, I was recently asked to add a new field to a service interface. I made the changes to the Data Type and Mapping as appropriate and after activating those changes went to the Sender Agreement to save the WSDL in a file so I can handle it to our b
-
Navigator Console video display bug
Hi! I've tested video streams with WebCamera example from SDK and tried Video display from console. And looks like there are bug, in app this video looks as expected, but in console it was cropped Here are screenshot. I've used latest Navigator, down
-
Hello @all! Our AddOn is creating an invoice (documents-business-object) and doing some querys (INSERTs, SELECTs and UPDATEs). This process is completely done within the StartTransaction/EndTransaction Methods. After upgrade the customer DB to SBO SP
-
I purchased an additional audio function for the apps "baby monitor"today, but this function didn't work on my ipad. Grateful if you would let me know how to refund the cost.
-
Im trying to install Photoshop CS6 and its saying the serial number is invalid?
Im trying to install Photoshop CS6, and i recieved my serial number after entering my redemption code. But whenever i entered my serial number it told me it was invaild.