cancel
Showing results for 
Search instead for 
Did you mean: 

Currency rate translation in TS01

former_member602116
Participant
0 Kudos
464

Hi Experts,

We have a custom program to create security transactions. But when executing the custom program, rate is always defaulted to 'Exchange Rate Fixed' radio button as seen below. We want this to be in 'Current Rate' instead.

So to check, I manually created a security transaction in TS01, but as per manual creation, currency translation is still defaulted to 'Exchange Rate Fixed'.

My question is where can I set the default to 'Current Rate' instead of 'Exchange Rate Fixed'?

Any input will be highly appreciated.

Thank you!

Regards,

Katherine Darunday

Gustavo_Vazquez
Active Contributor
0 Kudos

Hi Katherine,

What BAPI are you using ? BAPI_FTR_CREATE_SECURITY ?

If you are using the bapi i suggested, the field SECURITY-LOCAL_AMOUNT should be left blank . If it doesn't work, use FM READ_EXCHANGE_RATE .

Kind Regards

former_member602116
Participant
0 Kudos

Hi Gustavo,

Per checking the code of the custom program, BAPI used is

BAPI_FTR_SECURITY_DEALCREATE and as per debugging SECURITY-LOCAL_AMOUNT is blank.

Can you please explain why it was defaulted to 'Exchange Rate Fixed?' As I am trying to explain this to my functional on why this happens.

Thank you so much.

Regards,

Kath

Gustavo_Vazquez
Active Contributor

Check structure SECURITYX in your BAPI if field EXCHANGE or LOCAL_AMOUNT have an X.

I don't know why it is fixed. May be it is determining ExRate but it is flaged as fixed as it is done with a BAPI.

Kind Regards

former_member602116
Participant
0 Kudos

Hi Gustavo,

Thank you so much for your reply. I have debugged the program and found at that local currency rule is set in FM FWTR_SEC_INIT_FOR_BAPI

where the code looks like this:

 IF current_rate EQ xtrue.
g_str_processing-loc_curr_rule = '1'.
ELSEIF exchange_rate_fixed EQ xtrue.
g_str_processing-loc_curr_rule = '2'.
ELSEIF fixed_amount EQ xtrue.
g_str_processing-loc_curr_rule = '3'.
ELSE.
g_str_processing-loc_curr_rule = '2'.
ENDIF.

The reason why 'Exchang Rate Fixed' was set is because current_rate, exchange_rate_fixed, and fixed_amout are all not equal to 'X' or is not equal to abap_true. I am however unable to identify where the values for these three fields come from, maybe customizing? Or do you know of any fields in transactions in SAP that contain these fields?

Gustavo_Vazquez
Active Contributor
0 Kudos

Some clues on sap note 1515865 - Error in Currency conversión

Good debuging 🙂

Gustavo_Vazquez
Active Contributor
0 Kudos

if the answer solves your problema, mark as correct or upvote.

if it doesn't, marke the question as not solved

Accepted Solutions (1)

Accepted Solutions (1)

Gustavo_Vazquez
Active Contributor
0 Kudos

IMG

Financial Supply Chain Management
Treasury and Risk Management
Transaction Manager
Securities
Transaction Management
Transaction Types
Define Transaction Types

Select a Prod Type and transaction,

it took some time but this should solve it 🙂

former_member602116
Participant
0 Kudos

Hi Gustavo,

My functional is still to test the configuration but this is perfect. I think this should solve it.

Thank you very much for your help, appreciate it a lot.

Regards,

Katherine

Answers (0)