CPM - Create Variable
Hi All,
Im working with SEM-CPM ; and i nedd to create varible type Interval but i could not do it
I Have created in this way:
Variable Type: Variable for Char.Value
Characteristic : 0CALDAY
Replacement Type: Variable for Presentation
Selection Type: Variable for a single interval of value
The problem is that after i saved it, the selection type changes automatically to :"Variable for a single value"
Can anybody knows how can i create a variable with interval ?
THANKS
Hi,
You can not create this. I don't know why. I found the same problem a year ago.
I have been waiting for solution for last one year.
Please let me know if you get the solution for this.
Thanks and good luck.
Harry
Similar Messages
-
Hi All,
Im working with CPM in order to create a cockpit.
Right now i need to use the time variables in order to filter the information by period.
I will appreciate if someone can give me some comments/step by step in how to works with Time Variable in CPM ?
Regards
I will assign points.hi Marcos,
did you have the SEM220 training material ? i think cpm time variable is discussed
or check in sap help ... didnt work with CPM for long time
http://help.sap.com/saphelp_erp2005vp/helpdata/en/3a/4ba1bd2bf203cbe0000800091c1b0e/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c2/5a4ab4770911d3b7210000e82debc6/frameset.htm
hope this helps. -
Creating variables in Report Painter
Hi ...
I would like to know ... how do I create variable ? I know it is via T CODE GS11, but when run tht, in the next screen it pops up for variable ? What variable do I need to enter ? is this predelivered Eg : CE-PK, or can we create one ? Please advise
Also, I would like to I have a requirement for a report whereby the format is like this .....
SALES CURR MONTH (06/2006) LAST YEAR
- Sales IT
- Sales 1
- Sales 2
COGS
- cogs 1
- cogs 2
- cogs 3
COS
- cos 1
- cos 2
- cos 3
GROSS PROFIT
Whereby, SALES = sales it + sales 1 + sales 2, COGS = cogs 1+cogs 2 + cogs 3, COS = cos 1+ cos 2+ cos 3. also GROSS PROFIT = SALES + COGS + COS
The abpve report is inclusive of Cost Centre and Profit Centre, how acn I utilize the libraray in Report Pianter to create such report, is this possible in Report Painter whereby including Cost center and Profit Centre in one single report
Pls assist me
NathanWhen you create your variable first enter the variable name. Second enter the reporting "table" to use. Third enter the "field'. Press enter. Next enter a default value for your field. Save you variable. It is now ready to use in your report painter.
Using the PCA reporting tables gives you the profit center but not the cost center. You can only use one reporting table per report. you will need a cctr report for that.
First create your own libray from GLPCT. Next create your report using your new library. The report painter can do the calculations that you have shown.
You create a formula in the row or column to calculate your sub totals.
pls assign points if helpful as a way to say thanks. -
How to create variable in BEx on a Nav Attribute?
Hi All,
We are creating a report on Master data object 0MILESTONE. 0PROJECT is the navigational attribute of 0milestone.
and ZSTATUS is the navigational attribute of 0PROJECT.
Requirement is to create variable on ZSTATUS in BEx. How do I do that? I dont see option of creating variable on Nav attribute of a Nav attribute.
Regards,
BobHi,
There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
[http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
Regards,
Durgesh.
Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM -
How to create variables in payroll rules
Hi Experts,
Can you please let me know how to create variables in payroll rules and how to assign values to them.
Please share some documentation on this topic.
Thanks so much,
UttamaHi Vijay,
Variables can be created for -
Char Values
Texts
Formula elements
hierarchy and its nodes
For Characteristic Values -
These are used to be filled by user in the query selection screen
1.In the filter tab of QD, select the characteristic for which you want to create a variable,right click - >Restrict
2.Select variabes from drop down
3.Click Create new variable and then define its properties like "Processing By",Settings in Details tab etc and save it
4.Move it to the right side and click ok
Now you have created a variable and used it as a placeholder for that characteristic for which user can enter the value to act as dyanmic entry.
Regards,
Vineeth -
Hi, i have got another problem with livecycle designer scripting.
I have got script line which is defining of string variable:
var aaa = "this is my string";
and i have got embed XML schema like this (it`s only short part of whole file):
... xs:element name="bbb" type="xs:string"/ ...
After saving data to XML i would like to get "this is my string" as a value of my "bbb" XML element.
To save this data i`m using submit button which is connect with submit.php file on my server.
How to connect script created variable and embed XML schema element which is present on my "Data View" tab.
Please help me a bit becouse i don`t know even where to search answer of it...
Of course i know possibilities to create fake unvisible text field object and bind it with 'bbb' and than put "this.rawValue = aaa" to connect those two variables but i think that is not a good idea to solve it in that way. It`s too primitivei solve it, i should write this:
xfa.datasets.data.bbb.value = aaa; -
How to create variables at runtime
Hi,
I need to know how can i create variables at runtime.
or is their anything like array that we create in 'C' if yes . how can i define its size at runtime.
Thanks,
Dev.In forms, either record groups or pl/sql tables of records give similar functionality to an array. You have full programatic control of either but with completely different syntax. Record groups integrate well with certain forms built-ins and features (eg LOVs and Tree items). PL/sql tables integrate well with other pl/sql such as stored procedures. Unlike an array, a pl/sql table may be SPARSE (index numbers need not be sequential), and UNBOUNDED (no need to declare the number of rows).
-
Creating variables in a java swing program useing event
This is my code:
*Old School Calculator
*@Collin Doering
*Version 2.00
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class OSC {
private static void createAndShowGUI() {
int first = 0;
int second = 0;
int third = 0;
int fourth = 0;
int fifth = 0;
int answer;
System.out.println ("Calculations");
System.out.println ("-------------");
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame("OSC");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JButton button1 = new JButton("1");
button1.setMnemonic(1);
button1.addActionListener
new ActionListener() {
public void actionPerformed (ActionEvent e) {
first = 1;
//This is when the error says "Local variable first is accesed from
with in inner class; needs to be declared final;
System.out.println ("first = ");
JButton button2 = new JButton("2");
button2.setMnemonic(2);
button2.addActionListener
new ActionListener() {
public void actionPerformed (ActionEvent e) {
System.out.println ("Second = ");
JButton buttonx = new JButton("x");
buttonx.addActionListener
new ActionListener() {
public void actionPerformed (ActionEvent e) {
System.out.println ("answer: ");
JPanel panel = new JPanel(new GridLayout(10,10));
panel.add(button1);
panel.add(button2);
panel.add(buttonx);
frame.getContentPane().add(panel);
panel.setBorder(BorderFactory.createEmptyBorder(
30, //top
30, //left
10, //bottom
30) //right
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
I am trying to create variables so i can make a calculator (right now i only have buttons 1, 1 and multiply). //This is when the error says "Local variable first is accesed from
with in inner class; needs to be declared final; then when i declare it final it says <identifier expected>. Could some one please help me. thanx.Please post code within code tags (press the "code" button).
Why are you using an inner class? Simplify:
public class OSC implements ActionListener {
button1.addActionListener( this );
public void actionPerformed( ActionEvent e ) {
if ( e.getSource() == button1 ) . . . -
Creating variables in BO using BO SDK
Hi,
We can create variables which can be formulas applied on objects using infoview.
Is there any way, these variables can be created using java BO SDK?
Please paste some sample code for us.
Cheers,
ShrutiPlease find below a snippet code based on java managed RAS api that adds a formula onto the report. I hope this answer your question.
<%@ include file="logon.jsp"%>
<%
ReportClientDocument oReportClientDocument;
IReportAppFactory oReportAppFactory;
IInfoObjects oInfoObjects=null;
IInfoObject oInfoObject=null;
String reportName = "SimpleRCAPIReport.rpt";
// Retrieve report to be modified
oInfoObjects = iStore.query("Select * from CI_INFOOBJECTS where SI_PROGID = 'CrystalEnterprise.Report' and SI_INSTANCE = 0 and SI_NAME = '" + reportName + "'");
oReportAppFactory = (IReportAppFactory)es.getService("", "RASReportService");
oReportClientDocument = oReportAppFactory.openDocument((IInfoObject)oInfoObjects.get(0), 0, java.util.Locale.ENGLISH);
// First create the formula field
FormulaField newFormulaField = new FormulaField();
// Set the parameters (assume it's a string and Crystal Syntax)
newFormulaField.setText("{Customer.Contact First Name} + ' ' + {Customer.Contact Last Name}");
newFormulaField.setName("CustomerName");
newFormulaField.setSyntax(FormulaSyntax.crystal);
newFormulaField.setType(FieldValueType.stringField);
// Now add it to the report
oReportClientDocument.getDataDefController().getFormulaFieldController().add(newFormulaField);
// Now that the formula has been created, add the newly created formula to the report
// First determine which section to add the formula field to - in this case the details section
ISection sectionToAddTo = oReportClientDocument.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);
// Get back all the formulafields in the report
Fields formulaFields = oReportClientDocument.getDataDefController().getDataDefinition().getFormulaFields();
int formulaFieldIndex = formulaFields.find("{@CustomerName}", FieldDisplayNameType.formulaName, java.util.Locale.ENGLISH);
Field formulaField = (Field)formulaFields.getField(formulaFieldIndex);
// Set the type of field this is
formulaField.setType(FieldValueType.stringField);
// Now create a new Field object which will be added to the report
FieldObject oFieldObject = new FieldObject();
// Set the datasource of this field object to the formula form of the above Database Field Object
oFieldObject.setDataSourceName(formulaField.getFormulaForm());
oFieldObject.setFieldValueType(formulaField.getType());
// Now set the co-ordinates of where the field will go
oFieldObject.setLeft(8000);
oFieldObject.setTop(1);
oFieldObject.setWidth(1911);
oFieldObject.setHeight(226);
// And finally Add it to the report
oReportClientDocument.getReportDefController().getReportObjectController().add(oFieldObject, sectionToAddTo, -1);
// Now display the report
session.setAttribute("reportSource", oReportClientDocument.getReportSource());
response.sendRedirect("CrystalReportViewer.jsp");
%>
Cheers
Alphonse -
Creating variables in Process Flows and using thse variables in the filter
Hi,
I am new to OWB and in learing stage. Need to information.
*1. as to how pass/create/use variables to OWB mapping ?*
*2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
*3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
can you please provide the above details and guide me / help me in this regard.
Thanks,
skms.1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
3. May be appropriate to use CONSTANTS instead of parameters.
Regards
Si -
How to create variables in Bex query
Hi all,
can anyone please explain how to create the variables and how many types of variables in Bex Query.
Thanks in advance
JamesHi James,
You can create variables in the BEx Query by right clicking on your characteristic and then selecting Restrict. A pop up window will appear. On the left side of the pop-up window, right click on a white space and then select New Variable. The Variable Wizard will then appear - you can now create your variable acording to your specifications. For more info on variables, please click on the link below:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
Hope this helps,
Juice -
Dynamically creating variable names in javascript
Hi.
I have to create variable names dynamically in JavaScript.
My JSP file accesses information from Database and forms a String corresponding to the information received.
This String is passed to a JAvaScript function that should CREATE a variable with that NAME.
For Ex:
My database access resulted in a single row...
id name sal
34 John Smith 38000
the resulting VARIABLE NAME should be Menu34. 34 comes from the database result.
Is there any function to dynamically create a variable name in JavaScript?
Thanks in advance.The JSP is printing the contents of an HTML page, and Javascript code can be part of that output...
So you would just write out the stuff, something like this....
<script>
<% while(rs.hasNext()) { %>
var Menu<%= rs.getInt("id") %> = '<%= rs.getString("name") %>';
<% } %>
</script>
In the browser, it'll just look like another long list of Javascript variables. -
Creating variable names?
hi all
is it possible to dynamically create variable names so you can keep track of them?
I have to generate the following code a number of times depending on a number the user has input. So ideally Id like to create
variables whose names i can keep track of for later reuse
eg horHatch1, horHatch2.... without hardcoding them in. is this possible?? are there any better ways of accomplishing this task?
this code just draws and adds labels on an x axis.
thanks
Line2D.Double horHatch1 = new Line2D.Double(horAxis.getP1().getX() + horInterval,
horAxis.getP1().getY() - HatchLength/ 2,
horAxis.getP1().getX() + horInterval,
horAxis.getP1().getY() + HatchLength/2);
graphics.draw(horHatch1);hi
i used the following code
but i need to convert Line"d to Line2d.Double as explained below
for(int i=1; i<x+1; i++)
Line2D.Double horHatch1 = new Line2D.Double(horAxis.getP1().getX() + horInterval*i,
horAxis.getP1().getY() - HatchLength/ 2,
horAxis.getP1().getX() + horInterval*i,
horAxis.getP1().getY() + HatchLength/2);
graphics.draw(horHatch1);
v.addElement(horHatch1);
Add text to hatches
decorateVerticalLine(graphics, horHatch1, "M");
decorateVerticalLine(graphics, horHatch2, "T");
decorateVerticalLine(graphics, (Line2D)v.elementAt(i), names.elementAt(nColumn).toString());
//compiler complains that (Line2D)v.elementAt(i) is not of type java.awt.geom.Line2D.Double but of java.awt.geom.Line2Di tried :
horizontalAxisTicks[i] =((Double)(Line2D)v.elementAt(i)).doubleValue()).getX1();
but this isnt correct i dont think.
thanks -
How to create variable in areport
Hi all ,
I am using fr_studio for creating reports.Can anyone tell me how to create variable in the report?Hi,
There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
[http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
Regards,
Durgesh.
Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM -
Unable to create variables referencing external schema
I'm stumped with this one. Any help will be appreciated.
I'm trying to create a variable to hold the wsse:Security element and not having any luck.
I imported the WS-Security schema from http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd into my project schemas.
Next, under process variables I created a new variable called WSSecurityHeader and set it to type Element, clicked the Browse Elements icon next to it, and picked the Security element from the imported project schema. So far so good.
Now, when I try to expand the newly created variable I get Exception: Problem building schema! http://docs.oasis-open.org/wss/2004/01/XMLSchema.dtd
No clue where it is picking up the URL for XMLSchema.dtd and incidentally this URL does not exist.
I've tried using other elements from the schema such as UsernameToken and nothing seems to work.Hi Nizam,
I have forwardes the issue to the concerned persion and will soon update you on the same.
Dhaval
Maybe you are looking for
-
My iTunes won't download music to my iPod Touch 5th Generation
I just recently bought some CD's, and I have found that my iTunes program won't let me download them to my iPod. I believe I have a 5th generation iPod Touch, and I have a Windows Vista... I don't know if it's because I updated to the newest iTunes v
-
If I cannot even confirm my account, how will my problem and question get addressed?????
-
Tungsten E2 can't input characters
I have a TUNGSTEN E2. I tried a hard reset to no avail. I can't in any characters into the unit via the soft keys. All I get are periods. Thanks Post relates to: Tungsten E2 This question was solved. View Solution.
-
How do I insert an email address link?
-
Slow SDO_RELATE operation on a spatial view
Hi Folks, I need some help to understand what's going on with a spatial query that is taking so long to be executed (about 7 minutes). I have a spatial view as below: create or replace view v_lote_fiscal_relac as select lf.objectid,lf.numbloco,lf.set