on 05-10-2010 9:10 AM
Hi all,
We have a scenario where we are printing the amount and currency in a mail.
This is being done through the PFTC task.
We are using the variables &BUS2089.PAYOUT& and &BUS2089.CURRENCY&
to print the ampunt and currency. But in case of Hungary currency HUF, the opuput is not coming correctly.
Eg: 10.000 is getting printed as 100.00. Hungary has 3 decimals after the amount.
How to print amount correctly?
Kindly provide your inputs.
Regards,
Jose
I do not have idea how to wrtie code in PFTC task..
I am in change editor of course.. and using the '/:' symbol..
but i am not able to assign values in to the variables declared there.
fo eg: Select single currdec into (variable defined in task) where currkey = &bus2089.currency&.
the variable declared here is not accepting value from select query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The value which i have to modify for displaying correctly is this variable right.
So i created a new attribute &zetrvl.amount&. Now i am writing a select query to fetch the decimals from tcurx for which i need to access &BUS2089.currency&. and afte this i need to use the formula as suggested by you.
Correct me if my understanding of your solution in not correct.
Regards,
Jose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
The BO is already delegated.
I had created a new attribute for this case as suggested by you.
Now i need to access variables &BUS2089.PAYOUT& and &BUS2089.CURRENCY& in the attribute program code
in order to write the select query on tcurx.
How to achieve this?
Regards,
Jose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to write code in your custom Business object which is a subtype of BUS2089 and which ixs delegated to standard Business object BUS2089.
SWO1->Settings->Delegate
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as i know..hugary does not have decimals...(Zero decimal place)
You can include the below logic in your attribute for zero decimal places currencies...
1.Read the decimal places from TCURX table for the required currency..
2. if you have an entry in TCURX,multiply the value with 10**(2-TCURX entry).
Then you will get the correct value printed....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.