Formula Variables and their use
I have a scenario where I have a date selection using a variable.
I get from and to date defaulted to 1st day of the month and current date
Next, I created a formula variable to calculate the difference between these 2 dates.
I can't uses replacement path variable to calculate the difference becaue the dates are not part of the transaction data.
When ever I bring formual variable into a formual it gives an error
Terminate: Variable D1QDQC684JU76RD3FQ10GECZ9 (D1QDQC684JU76RD3FQ10GECZ9) does not exist or is incorrectly used D1QUMP50BGW24SQ9PQMZDSMD1 [A418(BRAIN)]
This error is not in the customer exit. This error happens in the query designer design phase during syntax checks.
Thanks for your help
Kartik
there was a problem in defining the variables, while u r opening your query, and if its getting terminated means, definition of the variable and its usage is wrong somewhere else.
Here is the step by step procedure for Formula variables:
http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
Similar Messages
-
Can I put a SQL query into a bind variable and then use it to output report
Hi,
Can I put a SQL query into a bind variable and then use it to output report?
I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
select * from (:P1_TEXT);
Do you think it is possible to do that? Any known limitations for APEX in this area?
Thanks a lot,
AngelaYou can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
Tyler -
List of variables and their classes from working script?
I have a working script that has many variables containing finder references and file path descriptions as strings or Unicode text. It is not easy to remember what these variables refer to. Is it possible to get a listing of all of a scripts variables and their respective class?
The only way I've seen to do this is with Script Debugger, an alternative script editor that has significant debugging tools such as breakpoints, stepping, variable inspection and more.
-
How to create A web services step by step and their uses
How to create A web services step by step and their uses with their T-Codes
pls dont send any links
thank you
Regards,
Jagrut Bharatkumar ShuklaHi
Use the Tcode <b>WFWS</b> to create the Web service
enter the Transaction to whih you wants create the web service and save
Regards
Anji -
Formula variable and agregation
Hi,
I want to use price of materials (form ATTR) in a query (multiplied with quantity from transactional data).
A formula variable was created and working fine when materials is also displayed in a query. But I would like to create a query based on material group and material should not be displayed.
Is this possible and how (aggregation, properties, ...) ??
Thanks and regards,
TomazTry creating a global calculated key figure with the same definition as the one that you created locally in the query.
Global calculation occurs before aggregation, so this should solve the issue you are having by getting incorrect values when you do not display material in your query. -
Hello!
Maybe someone can help me with the following problem:
We have an inventory cube and want to see our stock with alternative values. On 0Material exists a key figure ("price") as time-dependent attribute. This key figure displays the price of the material for different periodes (that's why attribute is time-dependent).
In the query I created a formula variable (=> replacement path, replaced with the mentioned key figure "price") and in a formula I multiplicate stock and the formula variable. This works fine and value of key figure "price" is correctly selected according to key date of the query.
But I need a second formula, where stock from previous year is multiplicated with "price" from previous year, so I need a possibility for a second key date relevant for a second formula variable.
Anyone who had a similar problem? Any idea how to solve this problem - formula variables are not mandatory!
Br
GunterHi Kishore,
Use the formula created by you (say Formula 1) in a new formula ( say Formula 2).
Use If Else condition.
Formula 2 = (Formula 1 < 0)0 + (Formula 1 >=0)Formula 1
The above expression explained as:
If Formula1 < 0 then
Formula 2 = 0
Else
Formula 2 = Formula1.
You can hide Formula 1 and Display only Formula 2 in your report.
Hope this helps! -
Formula Variable and Exception Aggregation
Hello
Please can you explain me how this works.
There is formula variable created on a change date.(Replacement Path) with replace with Key.
Then this formula variable is put in a formula as NODIM(Formula Var) and the exception aggregation is set as Total with Ref Char selected on the same date(Change Date).
Now this is coming up with values like 2202374. If i remove the exception aggregation then i get an X in the values. If i then include the change date in the rows i get the date.
Please can anyone let me know how this would be working. Effort Appreciated.
ThanksHere is a scenario that might fit:
Formula is trying to show the latest change date without adding it as a drill down. The only discrepancy is that the exception aggregation would need to be set to maximum value instead of Total. -
So Rene,
As you were saying in thread http://www.adobeforums.com/webx/.59b73768/27
Please do explain your preferred method of determining contrast range so we can all learn, thanksAy-up. None of my exposures is ever correct, of course. Silly me for interpreting the histogram, then. Always got blocked shadows and blown highlights. Dang but I'm stupid.
To say that a quick look at a histogram is "wasting time" compared with pointing a spot meter all over the place and figuring out the differences and therefore final exposure in your head is, well, plain silly. It's a time saver compared to that.
Best to learn to use the modern tools supplied in the camera and not pretend there's a dumb film in there that can offer no feedback..... it's a darn site quicker and more accurate to gain a properly exposed picture by checking and adjusting to the histogram.
The histogram in ACR and Photoshop bears little resemblance to the thing on the LCD of my camera at the time of shooting. What possible use is that example in this case? I'd be far more impressed with a grab from the camera's LCD. Anyway, given the preponderance of mid and dark tones in that example, that histogram qualifies perfectly for a well exposed shot, so what's the problem?
Seems to me there is too much blind repeating of what others say on this Web thingumy and not enough reporting of experience gained through actual reasoned and cognitive use. In fact the histogram gives a very good idea of the proportion of highlights to shadows, the differences in range between the two, and whether your end result will have both shadow and highlight detail - or not - at a glance.
How the thing is generated is irrelevant - like all things it's the way the thing actually works in real situations
i with user interpretation
to get properly exposed results that counts, not some theory on its inadequacies (of which I have yet to experience any).
If I left my exposures to the matrix meter alone, particularly the macro stuff and those involving dark subjects with strong backlight or bright backgrounds, I would have a bevy of underexposed photographs on my drives. Similarly, taking spot readings on a macro or moving subjects is largely impractical, if nothing else.
I cannot actually think of one bad over or underexposed shot that has happened to me using the histogram technique, and we're talking tens of thousands of shots here. So whatever the theories against, I have to say that in actual use it works, and works extremely well. I'm always happy to post samples of
i my own work
as proof, as I have done here for years now anyway. I fail to see the reasoning in light of that as to why I should be seeking to be convinced by anyone that the histogram is not something that can be accurately and reliably worked from. Nonsense. It can. I do it all the time. You may not like my photographs, but you won't fault the exposures. -
References to objects and variables and their values.
When does declaring a primitive type, variable or object as another objectm primitive type, or variable assign the variable THAT VALUE, and when does it just make it another reference to that object. And when it DOES just refer to that object, how do I set it to the value instead of just a reference?
I can elaborate if necessary. I hope I was clear enoughKeganO wrote:
Yes, that's very clear. So all I want to know now is, if I had in my code something like
Point a = new Point(1, 1);
then say 50 lines later, I want to create a new point object, with the same VALUE as a but does not refer to the same object. How would I do that?That depends on the class. Look at Point's docs. If it implements Cloneable, you can call clone(). If it has a constructor that takes a reference to a point as an argument (copy constructor), you can use that. Otherwise you'll have to extract the two values and call new Point(oldPointX, oldPointY).
Some classes you might not be able to do it at all.
There's no guaranteed way to do it provided by the language though. It all depends on whether the class is implemented to provide it.
>
Also, what are the code tags?When you put code into a forum message, in order to preserve formatting, you put it between [code] and [/code].
[code]
for (int i = 0; i < 10; i++) {
if (something) {
doStuff(i);
[/code]
becomes
for (int i = 0; i < 10; i++) {
if (something) {
doStuff(i);
} -
Retrieving Variables and Values using EPM Functions
Hi Experts
Does anybody know how this fuctions works with and example?
32.26 EPMVariableList
Applies to: SAP BW (INA Provider) connections.
This function retrieves the list of variables for the query for the specified connection. You can display the
variables:
● in the current cell, where a specified character separates the variable names.
● in one or more dropdown lists
32.27 EPMVariableValue
Applies to: SAP BW (INA Provider) connections.
This function retrieves the value(s) currently selected for the specified variable. The value(s) is (are) retrieved in
the cell in which you enter the function.
I already checked the EPM Add-in for Microsoft Office User Guide but is didn't say anything helpfull
Regards
ArielHi Ariel,
It's clearly stated in help: "Applies to: SAP BW (INA Provider) connections."
And if look on connection types:
4.4.2 SAP BW (INA Provider) Connections
Using the SAP BW (INA Provider) connection, you can do the following:
• Work with BW queries (with or without variables).
• Retrieve data, using reports.
• Enter and save data, using input forms.
• Execute planning function for BW Integrated Planning, using what are called in the EPM add-in "data processes".
And some info about 10.1
Unfortunately I don't have 10.1...
Vadim -
BPM and own container variables and their usage in transform
Hi folks,
I have a question about the usage of own container variables within the transform step of a BPM.
I want to know whether I can get the actual content of such a container variable within the mapping being done in the transform step.
I have been looking into this forum upon related topic(s) but somehow they all seemed to go about being able to get standard values like messageID etc within the transform step and NOT about getting your own variables ... It is clear that getting those standard variables will not work directly ( not without actually getting them into an XML payload before entering the BPM) ...
So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
Regards,
StevenHi,
>>>So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
no, this is not possible
you can only compare those varabiels with some of your message tags (in a loop step for example)
Regards,
michal -
I always get the count as 0 for the variable. I am not sure what I am doing wrong. Please let me know if any of you know the fix.
ThanksHere is the query I used now. Still same result
SELECT (select count(*) from usr_all_mbrs where PREMIER_YN = 'Y') AS count1
SELECT
(select
count(*)
from usr_all_mbrs
where PREMIER_YN
=
'Y')
AS count1 -
Types of Mappings and their Use
HI All,
I have been using Graphical Mapping all these days.I want to try other mappings like Java,ABAP and XSLT. Can anyone let me know as to how to go about it and which mapping to choose depending upon the scenario.
ThanksHi
Apart from graphical mapping u have XSLT java and ABAp mappings
Usage :
Message mapping: Has GUI drag and drop - ease of use and used for simple mapping cases
Java mapping : for complicated mappings
XSLT: Messages are in the form of XML documents. XSL Transformation (XSLT) is a member of the XML family of languages. It describes how an XML structure is transformed into another XML structure. We can even call external Java methods to convert XML messages
ABAP Mapping ->
This is based on ABAP OO classes
Refer this thread which speaks of all these types of mapping
Re: mapping objects
Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/c8/b78d406b305537e10000000a1550b0/frameset.htm
For Java Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
For XSLT Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
Error handling in XSLT Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/8a/7672f7d7e444439fd7024f806221a4/frameset.htm
You can also refer some How to guides:
XI New Mapping Features article,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi%203.0%20new%20mapping%20features%20article.evn
Generic XSLT Mapping and Sample Code,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi%20code%20samples/generic%20xslt%20mapping%20and%20sample%20code.pdf
How to use ABAP-MApping in XI3.0,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf -
Purpose of defining "components" and their use
On double clicking the Web Dynpro Component, we see many objects defined under "Used Components and Implemented Interfaces".
What is the purpose behind these components and how do we use them in our application?Hi Abhishek,
You can use this technique to add the the elements of the separately defined interface controller to the component controller of the implemented component. For large programming projects, this results in a higher reusability of the interface structures. Go through the [link|http://help.sap.com/SAPHELP_NW04S/helpdata/EN/b9/1c2d4108f08739e10000000a1550b0/content.htm] below to underdstand how you can implement a Web Dynpro Interface definition in your component. You can go through these tutorials for understanding how you can define a component usage in your WebDynpro component:
[Component re-use of SALV_WD_TABLE for displaying output in ALV format|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
[Component re-use of WDR_SELECT_OPTIONS for displaying select-options in WebDynpro ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]
Regards,
Uday -
Regarding Clocking wizard and Simulation clock generation - document and their uses VIVADO IPI
While working with Vivado IPI , I came across two different IPs, one is simulation clock and the other is clocking wizard IP.
But got error while generating wrapper of these IPs with the steps I did , I am unable to instantiate the IP of simulation clock generation version 1 of 2014.4.1 vivado. And get error "Clk gen" not found.
So, can you please just give me correct direction whether these can be used together, that is input of clocking wizard IP is simulation clock generation IP ( please correct if i am wrong) or I need to make external port in clocking wizard and assign Y9 pin of zedboard to that.
In brief, I want to know the uses of these IPs w.r.t to some sequential design , please just elaborate theoretical example even.
What do you want to do? Simulation only CLOCK Generator is only for simulation purpose.
Can you please just give me correct direction whether these can be used together, that is input of clocking wizard IP is simulation clock generation IP
--> No
I need to make external port in clocking wizard and assign Y9 pin of zedboard to that
--> Yes, Use the cloking Wizard
Maybe you are looking for
-
Hyperlinks not pasting correctly
Hi Ladies & Gents – I just migrated an excel spreadsheet to numbers, and I'm having trouble posting Numbers-generated hyperlinks into my mail program. The spreadsheet looks roughly as follows Name Link Labeled Link Lions http://blah.com/Lions blah.co
-
hi.. Suppose i will be purchasing good Rs. 50,000/- i have to pass an entry of Advance payment to vendor in cash (apply tax) Rs.10,000/-,now pass an entry of invoice through - FB60,i have to pay the remaning amount & Knokoff the entry. Pl guide me al
-
Viewing reports with Drill Down option
Hi all, here is the complaint that we received: Please try to find a means to help! When I'm in my Report and when in an account and I go to a deal to alter or look at it, when I return to reports I always am driven back to the top of the report file
-
Having problems printing pathlist in Leopard
Hello all! At my workplace we recently got a few new G5's running Leopard and are having some difficulties with some scripts. This script in particular should accept a file name or multiple file names and should output the pathlist of the files to te
-
Creating QRY and need Serial Number Table for Field SERNR
I am creating a SQVI Query that will give me all material in stock and their serial number or batch number. I was able to create the batch number by using: LQUA-WERKS = Plant LQUA-MATNR = Part Number LQUA-LGPLA = Storage Bin LQUA-VERME = Available St