Set variable command
Hi all
The set variable command in WAD is performing really badly. Can somebody please help me to identify how to decrease the response time.
thanks in advance
Thanks for your response In our planning scenario there is a data provider which is filtered using a variable. When a row is selected in an analysis item table (which uses another data provider), the variable is set to use the characteristic value of the selected row. This is done using a u2018SET_VARIABLESu2019 command in WAD. Without using the SET_VARIABLES command the performance is acceptable but when SET_VARIABLES is used the performance is slow.
Similar Messages
-
Performance of set variable command in WAD
Hi all
The set variable command in WAD is performing really badly. Can somebody please help me to identify how to decrease the response time.
thanks in advanceHi Vikram,
your link to SAP Help is wrong. It refers to BW 3.5 (NW04), but your URL looks like BW 7.0 (NBW04s). So you need another SAP Help link. Try this one:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/frameset.htm</a>
Regarding to example 3 your link should look like this:
<a href="http://sthbmdm8dv.client.com.50000http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZPlan_W00500&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=zplan_appid&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=10002002">http://sthbmdm8dv.client.com.50000http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZPlan_W00500&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=zplan_appid&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=10002002</a>
If the variable screen starts up, you should suppress it in template properties.
best regards
ARNE
Edited by: Arne Witte on Jan 18, 2010 6:40 PM -
WAD drop-down box and commands on Set Variable values/ Set Filter Values
Hello to all
I am confused in WAD and Help online couldn't clarify my concerns. Thus here following issue:
I am using a WAD, where the data provider (query) is set dynamically. I would like that
1 user selects company in drop-down-box 1
2 I use commands on drop-down-box 1 to manage the next drop-down-box 2 ( like it becomes input ready)
3 user selects plant in drop-down-box 2
4 User selects a tab strip A, where report A of multiple reports is placed. Now in this moment I assign the query A to the data provider A.
Now my questions:
- I am not clear how to use the bex-variables required for the query ( like company and plan). If I use in drop-down variables, then I can't set anymore commands
- What means and makes the command set_variable_state
- What means and makes the command set_selection_state
Thanks a lot for your clarification and help
ChristianHi Christian,
I will try and answer your Qs
- I am not clear how to use the bex-variables required for the query ( like company and plan). If I use in drop-down variables, then I can't set anymore commands
>> Can you explain how exactly are you trying to populate the DropDown webitems for Company / Plant data for user-selection.
- What means and makes the command set_variable_state
>> SET_VARIABLE_STATE is used to assign input values to your query variables. Here, the command gives you a range of input options to select from such as Characteristic/Text/Formula/Hierarchy Variables & Binding Type Selection. Binding Type Selection in addition gives you more options such as assigning manual input from a Text webitem [ITEM_INPUT], assigning value from another Variable [VARIABLE], or simply assigning the selected value from an underlying Data Provider such as one mapped to a DropDown webitem [DATA_PROVIDER_CHARACTERISTIC].
- What means and makes the command set_selection_state
>> SET_SELECTION_STATE is used to assign input values to Characteristics in your query. It serves as a Filter option.
I think in your case using SET_VARIABLE_STATE makes more sense. You can use Binding Type Selection with [DATA_PROVIDER_CHARACTERISTIC] on both the DropDown webitems to assign the values of Company / Plant to the query on runtime.
--Priya -
Setting the command prompt...
Can anyone tell me what I would use to set the command prompt?
On HP-UX, I would reset the PS1 variable...
i.e. PS1="
\$ID @ \$HOST | \$PWD
--> "
On Linux, I would reset it as follows:
i.e. PS1="
\u @ \h | \W
--> "
Neither of these seems to work here...
I tried the following, and it give me the correct visual layout, but the values don't change when you change directories:
i.e. PS1="
`whoami` @ `uname -n` | `pwd`
--> "
Any help would be greatly appreciated...Hi,
Changing Your Command Prompt
The syntax you use to change your command prompt depends on whether you are using the Bourne,
Korn or C shell.
Bourne and Korn Shells
For the Bourne or Korn shells, you redefine your command prompt with the PS1 command. The
following are three examples:
PS1=": "
PS1="`hostname`: "
PS1="`hostname`{`id`}}: "
The first example sets the prompt to a colon (:), followed by a space.
The second example creates a prompt consisting of your machine name followed by a colon and a
space.
The third example sets the prompt to your machine name, followed by your login name in braces
{}, a colon, and a space.
Type any of the examples above to change your current command prompt. The prompt will remain until
you change it again, or logout.
If you want to make your changes more permanent, add one of the above examples (or a prompt of your
own creation) to your .profile file. If you do this, the prompt you specify will appear each time you
login in or start a new shell.
C Shell
For the C shell, you personalize your command prompt with the set prompt command. The following
are three examples:
set prompt="% "
set prompt="`hostname`\!: "
set prompt="`hostname`{`id`}}: "
The first example sets the prompt to the percent sign, followed by a space.
The second example creates a prompt consisting of your machine name followed by the history
number of the command (hostname1, hostname2, hostname3, and so on).
The third example sets the prompt to your machine name, followed by your login name in braces, a
colon, and a space.
Type any of the examples above to change your current command prompt. The prompt will remain until
you change it again, or logout.
If you want to make your changes more permanent, add one of the above examples (or a prompt of your
own creation) to your .cshrc file. If you do this, the prompt you specify will appear each time you login
in or start a new shell.
Revert back.
Thanks.
Senthilkumar
SUN - DTS -
How to set variables values via VBA.
Anybody please help.
How to set variables values via VBA in workbook. SAP Netweaver 2004s.Pass variable values with VBA and BI 7.0 funtions to Query
At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
How to start:
Switch to design mode in BEX Analyzer:
Implement a BEX 7.0 design item u201Cbuttonu201D
Click on the button to implement the properties
Make the input for the commands
data_provider = dataprovider_1
cmd = process_variables
subcmd = var_submit
No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
Make a range somewhere in the excel with the following structure:
Name Index Value
VAR_NAME_1 1 Variablename
VAR_VALUE_EXT_1 1 variablevalue
Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
Set a name for this range with EXCEL functionality but without the header:
Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
If you have more variables to process you can of course enhance your Filterrange!
In the left upper Corner you have a name for your button:
Now you can raise the button-click in vba like this:
Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
regards, Lars -
How to call a set variable?
Greetings,
I am creating an apple script that runs a netstat command to grab an IP address. This works.
The "Set Value of Variable" (called XX) shows the IP address that netstat runs.
The next apple script activates "Terminal" just fine.
Within Terminal, I want to tell it to "telnet" to the IP address from the Set Variable and this is where I am stuck. How do I tell it what "XX" is?
Thanks,If it is the only input item in the input (previous actions can contribute to the input), your statement would be something like:
set DG to item 1 of the input
If you are only using the variable in your second AppleScript action, you can also just combine them:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">
on run {input, parameters}
set DG to (do shell script "netstat -nr | grep -w 'default' | awk '{print $2}'")
tell application "Terminal"
activate
do script "telnet " & DG
end tell
return input -- pass on the input
end run
</pre> -
ForEach not initiating Set-Mailbox Command
Script retrieves all User Mailboxes where AuditEnabled equals false then it's supposed to set those users to "true" but for some reason it is skipping my Set-Mailbox command. I know the variable I'm passing contains data so that's not the
issue and I've tried different syntax but I'm missing something.
#Mail Server Variables
$FromAddress = "[email protected]"
$RelayMailServer = "relay.domain.com"
$ITSupportEmailAddress = "[email protected]"
#Connect to Office 365
$password = ConvertTo-SecureString "password" -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList [email protected],$password
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection
$importresults = Import-PSSession $s
$today = Get-Date -Format d
# Define font and font size
# ` or \ is an escape character in powershell
$font = "<font size=`"3`" face=`"Calibri`">"
$UsersList_AuditDisabled = @()
$userslist_auditdisabled += Get-Mailbox -filter {RecipientTypeDetails -eq 'UserMailbox'-and AuditEnabled -eq $false} |select userprincipalname, auditenabled
If ($UsersList_AuditDisabled -eq $null) {$UsersList_AuditDisabled = "No Users to Report"}
else {
$auditfile = "C:\Office365\AuditUsers.csv"
$userslist_auditdisabled | sort userprincipalname | Export-Csv $auditfile -NoTypeInformation}
$userslist_auditdisabled | ForEach
Set-Mailbox $_.userprincipalname -AuditEnabled $true -ErrorAction 'SilentlyContinue'
If ($UsersList_AuditDisabled){
$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment($auditfile)
$smtp = new-object Net.Mail.SmtpClient($RelayMailServer)
$msg.From = "[email protected]"
$msg.To.Add("[email protected]")
$msg.Subject = "Audit Users Enabled"
$msg.Body = "Attached is the list of users who have Auditing Enabled."
$msg.Attachments.Add($att)
$msg.IsBodyHTML = $true
$smtp.Send($msg)
$att.Dispose()}
Remove-PSSession $s
#Clear all variables
Clear-Variable audit* -scope globalHi,
First thing - remove -ErrorAction SilentlyContinue from Set-Mailbox and run it again. Any errors?
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
Using Spry Data Set Variable in Recordset
I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?
I believe passing this the variable through the URL requires you to update the page, right?
Yes
Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
Gramps -
OBIEE 10g - Can I use logical SQL to set variable?
I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
Assigment of absolute value like this is working good:
SET VARIABLE MYVAR=1;
Can I set the variable using logical SQL? Something like:
SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
Thanks in advance.Hi,
You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
But still check yourself if you need multiple values returning in the SQL statement.
Hope this is helpful/ useful.
Regards
MuRam -
Hi,
I'm using Adobe Flash CS3 Professional version of Flash
software,
I need help and guidance on
Different approaches to setting variables in a Flash movie,
what I should do in the fla file, and in the html file.
Thanks, GilHi petro_jemes,
Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
I hope this helps. -
How to set user command in module pool program
hello expert,
like in report: PARAMETERS: RB_SING RADIOBUTTON GROUP RAD3 DEFAULT 'X' USER-COMMAND C1.
in module pool program, hw to set user-command in screen.
srinivasPBO.
Call subscreen <SUBSCREEN NAME> Including sy-repid(PROGRAM NAME) G_DYNNR(SCREEN NUMBER'.
PAI
module user_command.
Call subscreen <subscreen name>
Module user_command.
case sy-ucomm.
when 'BUT1'.
g_dynnr = 200.
when 'BUT2'.
g_dynnr = 300.
Endcase.
end module
REPORT demo_dynpro_tabstrip_server.
CONTROLS mytabstrip TYPE TABSTRIP.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA number TYPE sy-dynnr.
mytabstrip-activetab = 'PUSH2'.
number = '0120'.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE user_command INPUT.
save_ok = ok_code.
CLEAR ok_code.
IF save_ok = 'OK'.
MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
mytabstrip-activetab.
ELSE.
mytabstrip-activetab = save_ok.
CASE save_ok.
WHEN 'PUSH1'.
number = '0110'.
WHEN 'PUSH2'.
number = '0120'.
WHEN 'PUSH3'.
number = '0130'.
ENDCASE.
ENDIF.
ENDMODULE.
flow logic of the screen 100
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
CALL SUBSCREEN SUB.
MODULE USER_COMMAND.
flow logic of the screen 110
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
flow logic of the screen 120
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
flow logic of the screen 130
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
REGARDS
VASU -
HI.
I am using odi11g.
i set variable "STARTTIME" To sysdate .
And "END_DATE" to a default value-- '20-JUNE-1981'.
Now in package i dropped the variable "end_date",and put the TYPE to "SET VARIABLE" and the value as below:
#VARIABLES_STARTTIME.[ The projects name is VARIABLES]
But the value of "end-date" isnt getting reset to STARTTIME.
should there be a different syntax.HI,
Refresing the variable is working thanks.BUT i was trying to use the variable in a loop.
Where when the package is run fo rthe 1'st time the variable 'LAST_UPDATE' value should be '20-JUNE-1981' and then it should get set to the value present in 'STARTTIME" for the next time the package is run.
So, in this case, i need to set the value of the variable in the package itself.
#VARIABLES.STARTTIME isnt getting set.
i tried the package as per the below link:[ i use odi1g though]
http://blogs.oracle.com/dataintegration/entry/using_variables_in_odi_the_tim -
I am getting a bit confused with cfcs using cfreturn and
cfinvoke please be patient!
1.Setting variables in cfc
In this example cfc I make a query. The cfreturn tag does
<cfreturn expression /> as I understand it. I don´t
understand how you define the expression - can you return
arguments, any column I like in variables? How do I do that?
<cfcomponent><cffunction><cfargument
name="user">
<cfquery name="checkuser">
select col1, col2, col3, col4, col5, col6
from user
where .....=....
</cfquery>
<cfreturn checkuser.col1>
2. Calling cfc:
In cfinvoke you call a variable using returnvariable="". Is
it true that the variable doesn´t have to have the same name
as in the method that the cfinvoke tag is calling? What does return
variable call? How do I define what it calls?In any cffunction, inside or outside a cfc, if you are going
to return a value, you use the cfreturn tag. You can return
constants like true, 1, "Dan is so smart", or variables. What you
return has to be consistent with the returntype attribute of your
cffunction tag.
When you invoke a variable, you can use any name you want as
the return variable. In theory, you don't even know any variable
names inside the function. The return variable does not call
anything. It accepts what the function returns.
It is the cfinvoke tag that calls something. You control what
it calls with it's attributes.
Further details are in the cfml reference manual. -
Calling functions / setting variables in loaded SWF
You know how you can create a Movieclip object, add a
function or variable to it, then call that function or change that
variable from within the SWF that includes it? I wanna be able to
do that, only with SWFs that are loaded at run time.
My "main" SWF is simply a menu-type thing. The user clicks a
button in my MAIN.SWF, and the MAIN.SWF then loads the SWF that's
associated with that button, using the AS 3.0 prescribed
Loader()-URLRequest()-addChild() method that everyone always asks
about.
This works great. But now I've got some custom objects and
such (ie., not just strings) within my MAIN.SWF that I'd like to be
able to share with the loaded SWFs. Preferably, I'd like to use an
accessor-type function (ie.,
LoadedSWF.GiveMeTheCoolObject(MyCoolObject);), though at this point
I'm willing to hack into the object itself (ie.,
LoadedSWF.CoolObject.CoolField = MyCoolObject.CoolField;) if that's
what it takes.
I've tried just calling the functions and setting the fields,
but the AS 3.0 compiler doesn't care for that sort of nonsense on
it's generically-defined objects. Notice also that, at run time, a
call to LoadedSWF.hasOwnObject("GiveMeTheCoolObject") returns true.
So my big-brained colleagues, what's the magic?
In advance, thanks for the help!
ScottKglad,
quote:
Originally posted by:
kglad
from that error message it appears your function is expecting
a member of the MyCoolObject class, correct?
and MyCoolObject is not an instance of that class. so, you
need to fix that. ie, create a member of that class and use that
class member as the function parameter.
Heh, that's what the error message says all right. But the
object actually IS a MyCoolObject class object. I stared at this
thing for hours, and MyCoolObject IS an instance of that class. I
tried various casting combinations (including casting it to an
Object and passing that) but had no luck whatsoever.
So I googled this particular runtime error message ("Error
#1034: Type Coercion failed: cannot convert ") and found a ton of
links to other people having a similar issue. Typically, the
problem was just as you said, someone passing a button as a string,
that kinda thing. But one guy had a problem with an object he
derived from the Event class. After hours spent trying to get it to
work, he tried overriding the base class' clone() method and got it
to work:
http://www.asserttrue.com/articles/2006/10/14/custom-events-in-actionscript-3-0
As for my project, I took a long hard look at the overall
architecture of my project and decided that it was best if all the
"real work" took place in the MAIN.SWF file. This approach would
solve a couple of other problems, and it just makes sense in a
"separate the display from the data" mentality.
So (and this is the interesting part) I changed the API for
the LOADED.SWF to accept String pairs (ie.,
LoadedSWF.AddToDisplay(Name:String, Data:String) ) instead of
accepting MyCoolObj. Ran it, and Viola, now we're working without
any run time exceptions. After that glorious moment, I created a
couple of other APIs that just accepted base classes (one an int
type, the other a function type) and was happily on my way.
From this, I gather that passing non-base class (ie, derived
class) objects to loaded MovieClips via custom function APIs is...
maybe not as straightforward as we'd expect. In the grand scheme of
things though, not a big deal: As far as I'm concerned AS3 rocks.
Again Kglad, thanks for all the help: Your input on how to do
this was the big push that I needed to get over the last technical
hurdle of this project.
To those who are reading this topic for the "how do I call
functions and/or set variables in a loaded SWF?"
The short answer is to cast the loaded SWF's content object
as a MovieClip and then call the function or alter the variable:
//Load the SWF (you've seen this code a million times)
var LoadedSWFObj:Loader = new Loader();
var MyURL:URLRequest = new URLRequest("LoadThisSWF.SWF");
LoadedSWFObj.load(MyURL);
//This is within your Event.COMPLETE handler:
//Cast it as a MovieClip object and work with that.
var LoadedSWF:MovieClip = LoadedSWFObj.content as MovieClip;
// or another way to cast it is:
var LoadedSWF:MovieClip = MovieClip(LoadedSWFObj.content);
//Call yer function:
LoadedSWF.CallMe(); -
RE: Is it possible to set 2 commands to 1 keyboard shortcut
I am wondering if it is possible to set 2 commands to 1 keyboard shortcut.
I have a script that saves copies of InDesign pages to the desktop. I would love to set the keyboard shortcut for this script to be the same as the Save shortcut (Command S), which saves the InDesign pages into our content management system. However, I can't seem to get this to work.
Any suggestions?No, you cannot get a kbsc to do two things at the same time.
But…you can set it run a script.
Bob
Maybe you are looking for
-
Steps to generate Token for opendoc url call in XI3.1
Hi Guys, I am quite new to Sdk's and java programming . I am trying to get some help in generating token for opendoc url to avoid login while trying to access a report in Infoview. From a previous post I got this code: <%@ page import="com.crystaldec
-
Where is this file getting generated
DATA : w_csv(200) TYPE c. "CSV output file. m_check_selscr_fnms c3 o. OPEN DATASET w_srvr_nm_o_c3 FOR OUTPUT IN TEXT MODE. IF sy-subrc NE 0. MESSAGE e001 WITH 'File open error for output' w_srvr_nm_o_c3. ENDIF. WRITE: / c_output_file
-
Video Insert Slot Doesn't Hold External Monitor Cable
Hi. My MacBook is hooked up sometimes to an external Dell display, but the cable does not lock in real well to the port on the laptop. Is there any way to lock that in for a tighter seal? I know there is a lock mechanism that hooks the AC magnetic ca
-
Administrators only access PDP
Hi All, In Project Online or Project Server 2013, is there a way to have a PDP page available to all workflow stages but editable / visible to Administrators only? Thanks!! GeorgeTU
-
Where you I find a list of solutions/partners that will integrate EDI w/ B1? Jim