How using ABAP function in fox formula ?
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,
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.
Similar Messages
-
Hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to
hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to click on the fn + function key
Hi,
You can change this in your system bios as described in the link below.
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
Regards,
DP-K
****Click the White thumb to say thanks****
****Please mark Accept As Solution if it solves your problem****
****I don't work for HP****
Microsoft MVP - Windows Experience -
In fox , can I use call function which developed by ABAP?
I want to use the call function to read table in FOX.
thankshi
u can use functions, but not complex.
the syntax is as follows
CALL FUNCTION UPC_FUNCEXEC_SAVE
EXPORTING
I_NO_TRANSACTION_DATA = FLAG
tx
srin -
ABAP Function Modules are available to Crystal Reports through the SAP Integration Kit. The look like tables when listing them in the Database Expert.
How do you use them? Specifically, I am trying to use READ_TEXT to retrieve into a report the contents of STXL.
Thanks!
LuisConnect the following fields in the database expert:
STXL
TDOBJECT
TDNAME
TDID
TDSPRAS
TO FOLLOWING CORRESPONDING FIELDS OF READ_TEXT
I_OBJECT
I_NAME
I_ID
I_LANGUAGE
LATER USE "T_LINES.TDLINE[Text Line]" as output. -
Using ABAP function calls in HANA
Hi everyone,
I am very new to the ABAP workspace. Is it possible to call ABAP function modules from the HANA database? We have a long raw field in a table that we would like to convert to text. Any help would be greatly appreciated!
Thanks,
AnuHi Anu,
Please try the following.
Take the transaction iuuc_repl_content for the advanced replication settings.
Select the configuration and then select the table.
You should be able to add ABAP code for a field using this transaction.
Check the OSS note 1733714 for more information.
Thanks
Vinod -
Risk Owners approval using ABAP Function class
Dear All
I have implemented ABAP function class ZCL_GRAC_WFA_RISK_OWNER to identify the risk owners once the role approval is done, the Workflow is working fine with one exception.
My scenario is like this - i have mapped P059 risks to PR risk approver coming from PR role, S007 risks is mapped to SD risk approver coming from SD role, so when the role owner have approved both the roles, i would like to send seperate risk approval requests to 2 diff risk approvers as per my mapping.
But currently P059 & S007 risks are routed to both approvers at the same time & when one of them approves the risks - both risks get approved & provisioning is taking place.
i would like 2 risk approval to be put in place - any idea on how to acheive this?
NaveenDear Hari
Thanks for your response.. Yes i have implemented the note 1670504..
As mentioned earlier i have checked my Risk approval Stage setting with both options "ALL APPROVERS" & "ANY ONE APPROVER"
but still when one of the risk owner approves all the risks are get approved & the provisioning is completed.
PFA
Do let me know if you have any more options.
Naveen -
HOW TO USE ATTRIBUTE VALUE IN FOX FORMULA LOOP
HI,
IAM SUMMING UP AMOUNT BASED ON BELOW COMBINATION AND THROWING MESSAGE IF AMOUNT IS EXCEEDING OPENPO VALUE....AND IS WORKING FINE...NOW I HAVE A ENHANCE MENT THAT I HAVE TO USE ATTRIBUTE PROFIT CENTER VALUE IN THE LOOP. I HAVE DECLARED THIS --- PC = ATRV('0PROFIT_CTR',CC,CA). AND TRY TO USE PC IN LOOP..BUT SYSTEM PROPOSING PC SHOULD BE FIELD TO BE CHANGED..BUT IN MY CASE IT IS ATTRIBUTE WHICH WILL DISPLAY IN LAYOUT...AND FIRST LOOP SHOULD HAPPEN BASED ON PC ( FOREACH CCODE,FP,CR,CA,GL,PO,PC.)....PLEASE PROVIDE UR HELP.
DATA SUM1 TYPE F.
DATA SUM TYPE F.
DATA PO TYPE EBELN1.
DATA GL TYPE 0GL_ACCOUNT.
DATA CC TYPE 0COSTCENTER.
DATA VN TYPE 0VENDOR.
DATA SN TYPE SCRNUM1.
DATA SD TYPE SCRDATE.
DATA VS TYPE KDATB.
DATA VE TYPE KDATE.
DATA CCODE TYPE 0COMP_CODE.
DATA CA TYPE 0CO_AREA.
DATA FP TYPE 0FISCPER.
DATA CR TYPE XPRV_CIR.
DATA PC TYPE 0PROFIT_CTR.
CCODE = VARV('XCOMPCO').
CA = VARV('XCOAREA').
FP = VARV('XPERIOD').
CR = VARV('XPRVCIRC').
PC = ATRV('0PROFIT_CTR',CC,CA).
FOREACH CCODE,FP,CR,CA,GL,PO,PC.
SUM = 0.
FOREACH CC,VN,SN,SD,VS,VE.
IF {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}
{OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.MESSAGE E001(UPF)WITH
'PROVISION AMOUNT SHOULD BE LESS THAN OPENPOVALUE'.
ELSE.
SUM = SUM +
{0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.
ENDIF.
ENDFOR.
FOREACH CC,VN,SN,SD,VS,VE.
IF {0AMOUNT,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR} = 0
AND
{OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR} = 0.
SUM1 = 0.
ELSE.
SUM1 = SUM.
ENDIF.
IF SUM1 >
{OPENPOVAL,CCODE,CC,CA,FP,GL,PC,VN,PO,VS,VE,SD,SN,CR}.
MESSAGE E001(UPF)WITH
'PROVISION AMOUNT(SUM) SHOULD BE LESS THAN OPENPOVALUE'.
ENDIF.
ENDFOR.
ENDFOR.
THANKS,
RAJAHi,
If you want to read the value of profit center using keyword ATRV then you need to input values of parameters CC and CA.
Now the first line that you have written, to derive PC based on CC and CA
PC = ATRV('0PROFIT_CTR',CC,CA).
[code}
here CC value is not determined at runtime ; I mean what will be the value of CC when this line is executed. This line is not inside any foreach loop nor you are reading the value of CC using any variable.
if you want to use PC in first FOREACH CCODE,FP,CR,CA,GL,PO,PC. loop then CC value have to be present.
Put ATRV code inside a loop where CC and CA values are read.
Thanks
Pratyush -
How use the function add_months() in a mapping??
Hi,
I have a variable in ODI with a date and i need add other variable to add "x" months...
How do I can do that?
thanks,So are you saying you have variable1 holding a date e.g. 1/1/2015 and variable 2 holding a number of months e.g. 7?
If so in your mapping expression just use the date functions available to your (stage/target) database technology and substitute the variable into the function
i.e. for Oracle your mapping would be ADD_MONTHS(#Variable1, #Variable2) -
Chatting using ABAP Function module
Hi,
Is there some function module or report available in ABAP where we can kind of chat with the other user in same client ?
Regards,
TusharHi Tushar. This is Stallone Christian from Gujarat, India.
I have developed Chat Application in SAP ABAP with Multi User support, Saving History, Auto Refresh, Ping status, Long Text, Etc.
For more detail and screen shots please refer,
http://scn.sap.com/community/abap/blog/2012/06/02/sap-abap-chat-box-v-10-chat-application-in-sap
Stallone Christian
WWW.SAPABAPCODES.COM -
How to call standard planning function in FOX code
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 different variable values so I am planning to pass the values for these variables through FOREACH loop.
Any help is appreciated.
regards
Amit JainHi Amit,
unfortunately calling a planning function inside a planning function is not possible. And calling a planning sequence from a planning sequence is not supported as well.
I think is is better if go for a more complex FOX or an exit-function if the planning function needs to be executed online.
Another way some customers are using to met similar requirements is writing a z-program which determines the variable values in a loop (e.g. by reading a z-table). Inside the loop they set the variables (in the variable container) and when this is done execute a planning sequence for the current variable setting. The whole thing could be executed e.g. in a process chain.
Hope this helps ...
Regards Matthias Nutt
SAP Consulting Switzerland -
Fox formula - Copy variable value to a characteristic in IP
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 mentioned only 'version' as the field to be changed. I get the value of version automatically from a function module. In BPS I think it is possible but I am using IP.
Example.
Copied data
Customer Material Version Year Qty
c1 m1 0 2012 10
c2 m2 0 2012 20
c3 m3 0 2012 15
This is the reference data got as a result of copy function. In the code I get the version computed from a function module in variable fm_version.
I wrote the logic like this.
data lv_version type version.
foreach lv_version.
{0quant_b, lv_version} = {0quant_b, fm_version}
endfor.
When it is execute it is showing error as records changed and deleted.
Is it the correct method or is there any other workaround.
I would realyt appreciate your time and effort.
Thanking you,
Jerry JeromeHello,
You can use either standard copy function or fox formula.
So here I need to make the version as 1 since it is forecasted for the first time. I am trying to do it with a fox formula. In the fox formula I am trying to change the characteristic value of version from 0 to 1.
You can not change the characteristic value of version from 0 to 1. The copy function or fox formula will copy the key figures from version 0 to 1.
For example:
The transaction data contains data like -
customer material year version qty
c1 m1 2012 0 10
c2 m2 2012 0 5
After copy you will get both version like this
customer material year version qty
c1 m1 2012 0 10
c2 m2 2012 0 5
c1 m1 2012 1 10
c2 m2 2012 1 5
Thanks.
With regards,
Anand Kumar -
Previous quarter from the current date using Date functions
hi all,
how can i get the value of the previous quarter and previous month using using NOW() function in the formula.
regards,
Rk
Edited by: Rk on Feb 13, 2009 9:28 AMHi Pk,
This "DSTR(DADD(NOW(),-1,'Q'),'YYYYQ')" will give you just an year 2008 (if you run this today).
But this "DSTR(DADD(NOW(),-1,'Q'),'YYYYMM)" will give you an year and month of prev quarter
200811(if you run this today)
Ola -
Can not use TOUCH function on Nokia 6600 slide
Can not use TOUCH function on Nokia 6600 slide-
turned on sensor in phone settings, but when i touch the PHONE it does not work.
Please, tell me how use this function or maybe my phone is out of orderAs long as your Sensor Settings are On within Menu, Settings, Phone, Sensor Settings then you just need to do the following -
Tapping
The tap function allows you to quickly
mute and reject calls and alarm tones, and
to display a clock just by double-tapping
the back or front of the phone when the
slide is closed.
Select Menu > Settings > Phone >
Sensor settings to activate the tap
function and vibration feedback.
Mute calls or alarms
Double-tap the phone.
Reject a call or snooze an alarm after
muting it
Double-tap the phone again.
Display the clock
Double-tap the phone.
(If you have missed calls or received new
messages, you must view them before you
can see the clock.)
Simply, if you double tap the screen when the slide is closed and you can see the clock appear then it is working.
I hope this makes it clearer for you.
Full Manual here - http://nds1.nokia.com/phones/files/guides/Nokia_6600_slide_UG_en.pdf -
Filter Function in Column Formula is not working properly
Hi,
I am using Filter Function in Column formula tab in Answers to calculate the Total sum from the start of the Fiscal month to the Month selected from the Prompt.
My requirement is I have total sales column. Now I need to calculate TYYTD kind of thing for which I cant use the Time sereis due to my report constraint.
Instead of that I am using this Filter function on TYYTD column where i am giving the filter as start of the Fiscal month to the month selected from the Prompt.
For example if I select May month from the Prompt then this TYYTD column should give me SUM(Total Sales) between Feb and May for which I am using the Filter Function. But it giving me only May sales whcih is same as Total Sales column.
Can anyone throw some light on this as this is very important for us or any alternate solution other than Time sereis measures.
Did anyone got this kind of issue with Filter Function?
Regards,
AzadOk...here's the steps to fix this as efficiently as possible. I have a whole bunch of mailboxes under "On My Mac" and they have a bunch of mailboxes nested in them. I get my messages into Apple Mail via IMAP. (I don't know if this matters.) The steps below assume you have a similar setup.
1. Hold the Option key down and click the dropdown arrow next to each mailbox that has one. This will cause all nested mailboxes below it to appear.
2. Go to the top of the list of mailboxes under "On My Mac" and highlight the first mailbox. Then hold the Shift key down and highlight the last mailbox in the list. This will cause all of the mailboxes and nested mailboxes to be highlighted.
3. From the menu, select "Mailbox --> Rebuild" and the rebuild process will start.
4. Watch the top of the mail screen to see the message count change as the mailboxes are being rebuilt. Wait until the activity stops before doing the next step.
5. As the mailboxes were rebuilt, many messages were reset as "Unread" even though every message was previously "Read." Make sure the mailboxes you want to affect are still highlighted. Right-click and select "Mark All Messages Read."
That fixed the problem for me. -
How to change content in the formula node of the current vi
Actually I want to give formula with array index.
My formula p=a[0]-30; But i couldnot give array index in the formula expression..
Please help me in this issue.Muthu92 wrote:
Thank you for your reply. It is very useful for me. But i can't give conditional operator in that operator. It is showing error.
My Test cases
A[0]+A[1]>150
A[31]-50 <100.
If those are your exact statements, then they don't make sense in a formula node. You have to use them in an if-statement or some other type of control logic. This mimics text-based programming languages such as C... See here for instructions on formula node syntax: http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/formula_node_syntax/
For instance, you COULD say something like:
**In this example, let A[0] == x, A[1] == y, A[31] == z**
if(x+y>150)
/* do something if this is true */
else if(z-50 < 100)
/* do something else */
EDIT:
It should also be noted that Variable Names MUST be lowercase!! I just discovered this
EDIT2:
I stand corrected. After trying to create an example and digging through the LabVIEW Help, I stumbled across this:
Differences between the Parser in the Mathematics VIs and the Formula Node
The parser in the Mathematics VIs supports all elements that Formula Nodes support with the following exceptions:
Variables—Only a, a0, ..., a9, ... z, z0, ..., z9, are valid.
Logical, conditional, inequality, equality—?:,, &&, !=, ==, <, >, <=, and >= are not valid.
Functions—atan2, max, min, mod, pow, rem, and sizeOfDim are not valid. You can use these functions in a Formula Node or use their corresponding LabVIEW functions.
So it DOES NOT seem like Eval Formula Node can do conditionals like you want. I would just implement them using a LabVIEW based algorithm after all. Trying to out smart the formula nodes to avoid simple LabVIEW code is just too much of a hassle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Maybe you are looking for
-
How can I create multiple versions of a video within the same project?
OK...this is a probably a very basic question but I'm not sure how to word it clearly. How can I create multiple versions of a video within the same project? What I mean is that I have a bout 50 minutes of video and I want to make two DVDs using diff
-
When turning pages in catalog in safari, message comes up "Are you sure you want to send a form again? It then asks if I want to cancel or resend form? What is this and what am I doing wrong? I'm obviously new to mac.
-
I want to upgrade the IOS on a couple of our Aironet 1310s but do it wirelessly. The bridges I am upgrading are not accessible at the time I wish to carry out the work which is why I am not doing it via a wired connection. It isnt an ideal situation
-
Resolving the Underground Internet
Alright, so I am currently trying to figure out how this idea may come to frution. I may update this post when I figure out how. Of course I would appreciate hints as I am quite new to name servers and web servers. I want to have a name server that r
-
Underlying task failed on exit?
I've recently been having troubles with my main drive, which is a raid mirror of two 250GB Maxtor drives which were pulls from G5's. when I would startup the computer, startup would take forever...it would just sit on the grey apple screen for minute