|
Arguments: |
CCY.MKT,BUY.CCY,BUY.AMT,SELL.CCY, SELL.AMT,BASE.CCY,EXCHANGE.RATE, DIFFERENCE,LCY.AMT,RETURN.CODE |
|
Incoming: |
|
|
CCY.MKT |
The currency market in which the transaction will take place |
|
BUY.CCY and SELL.CCY |
The currencies that will be involved in the transaction |
|
BUY.AMT and SELL.AMT |
The amounts that will be involved in the transaction |
|
BASE.CCY |
The currency in terms of which the EXCHANGE.RATE will be expressed |
|
EXCHANGE.RATE |
The rate of exchange between the two currencies |
|
|
If any of these fields, with exception of BUY/SELL CCY and CCY.MKT are left blank, then they will be filled in by the routine if at all possible |
|
Returned: |
|
|
|
|
|
DIFFERENCE |
The difference between the figures given above and the internally generated BASE.CCY amount |
|
|
|
|
LCY.AMT |
The amount of the transactions in terms of the local currency |
|
|
|
|
RETURN.CODE |
The status of various tests performed during the course of the routine. RETURN.CODE is a dynamic array composed of six fields, which are as follows: - |
|
|
|
|
|
1) Invalid input parameter - This is a fatal error and the routine will immediately terminate. In such a case, this field is set to 1 and an explanation of the error returned in ETEXT |
|
|
|
|
|
2) Tolerance error - This is the signed percentage value by which the input rate differs from the calculated rate to 2 decimal places. This is only set if the error is greater than that permitted for the BASE.CCY. |
|
|
|
|
|
3) Negotiable amount exceeded - The field is set to 1 if the BUY.AMT exceeds the NEGOTIABLE AMOUNT for the BUY.CCY. It is set to 2 if this is true for the SELL.CCY and 3 if true for both currencies |
--
Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
Hi Ali,
I have tried this already but could not achieved it. I don't know the reason yet.
I used it like this :
Do u have a currency market 01 generally its 1 check and advise
Check the currency market 01 for
both currencies and what the value return in variables (DIFF), (LCY.AMT) and (CODE).
CALL EXCHRATE(1,"USD", 10000,"GBP",5000,"GBP",RATE,DIFF,LCY.AMT,RETURN.CODE)
Result:
jsh limtest ~ -->RATETEST
DIFF 0.00
LCY.AMT 5676.66
RATE 2.000000000
RETURN.CODE þ22.59þþþþY
jsh limtest ~ -->On Fri, Sep 2, 2011 at 10:46 AM, Ahmet Baysa <ahmet...@gmail.com> wrote:
input param : EXCHANGE.RATE The rate of exchange between the two currencies
This is the value whcih I would like to get, but it seems that it is an input parameter? Strange, if I know the rate whay should I use this subroutine then?
Regards,
input param : EXCHANGE.RATE The rate of exchange between the two currencies
This is the value whcih I would like to get, but it seems that it is an input parameter? Strange, if I know the rate whay should I use this subroutine then?
Regards,