Current Position:Home > How using ABAP function in fox formula ?

How using ABAP function in fox formula ?

Update:12-10Source: network consolidation
Advertisement
Hello,
I want to launch standard function :"RSW_CURRENCY_TRANSLATION" by Fox formula. I declare this function in SAP Table :rsplf_fdir, and I can call this function by fox, with all parameters.
But when I want to use it, I've a problem with the first parameter : "Formula error: Type RSR_CTTNM is not permitted"
What's the solution ?
Best regards,

The Best Answer

Advertisement
Hi Cyril,
I read the fact that you have chosen to use CURC instead of the Function Module.
Did you fix your exchange rate type in your CURC formula: For example:
CURC (LCAMT,12312008,EURP,LCUR,GCUR).
Or did you make into a variable, that can be chosen at run time?
I'm asking because I'm trying to make the 'exchange rate type' in this formula to be more dynamic (like a local variable).For example:
DATA EXRATE TYPE 0RTYPE.
DATA EXRATE_V TYPE 0RTYPE.
EXRATE_V = VARV(EXCHRATE).
{0AMOUNT,GCUR, GCTYPE,FYPERIOD,VERSION,COSTELM,INT_ORDER} = CURC (LCAMT,12312008,EXRATE_V,LCUR,GCUR).
But the system returns the error meesage that it doesn't recognise 'EXRATE_V' even though i have declared it earlier on. So I have a fear that the system is expecting me to enter a fixed exchnage rate type that exists in RSCUR, in this formula..!!  Is that true??
I don't want it to be fixed in the formula, it should be chosen at time of planning. How do you have yours right now? Do you know why I get this error message, and what I need to do to in the FOX formula, to make sure it can be populated at run time?
Thanks for your help and information in advance.
  • How using ABAP function in fox formula ? Update:12-10

    Hello, I want to launch standard function :"RSW_CURRENCY_TRANSLATION" by Fox formula. I declare this function in SAP Table :rsplf_fdir, and I can call this function by fox, with all parameters. But when I want to use it, I've a problem with the

  • How to implement this planning function using Fox formula Update:10-11

    Hello, I am new to Fox. I want to implement this complex logic in a planning function i have A (Kf X from infoprovider Z_A), B (Kf Y from infoprovider Z_B) & moreover there is one more condition, If current FISCPER > variable value of FISCPER KF Z

  • How to change the variable value in fox formula? Update:10-11

    Hi All,     Please help me achieve this scenario,          in the variable selection screen , i wil give some i/p like, calyear(0calyear) = 2008.       In planing function using FOX formula, i must be able change the variable value to 2009.   Will it

  • Fox formula - Copy variable value to a characteristic in IP Update:10-11

    Hi All, I have to copy the value of a variable to a characteristic in Fox formula in IP. In this scenario I am forecasting data using copy function. Whenever new data is copied I need to save it as a new version. So in the fox formula I have mentione

  • How to call standard planning function in FOX code Update:10-11

    Hi, I want to call std. Distribution by reference planning function in FOX formula. Through CALL FUNCTION std planning functions can not be used. My requirement is that because I need to execute this distribution function thousands of times with diff