Variable selection without context
Hi,
I am trying to use a variable (Customer Exit, Ready for Input) on an InfoObject to popup a selection on the InfoObject. This selection needs to be accessed in I_STEP 2 by other variables for calculations and lookups. However, I do not want this varibale to affect the Query filter, which is what it ends up doing.
Is there a way to be able to use a "Ready for Input variable" and have its contents removed in the subsequent I_STEPs or will by setting it as "Variable Is Without Context" help?
I have read the SAP definition of this and could not make any sense and selecting this option seems to make no difference in the Query and it still filters on this selection.
Any help would be really appreciated.
Regards,
Vin
FYI, here is the SAP definition and the link:
Variable Is Without Context
If you select the Variable Is Without Context option, you are specifying that the variable can be filled with values independently of an executed query. Examples: Current Day, Current Year
Note
You can set this indicator for exit variables only. This indicator is generally not set for all other variable types; the field is therefore deactivated, that is, all other variables are treated as context-specific.
http://help.sap.com/saphelp_nw70/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm
Can you explain the original requirement / issue that led you to look for variables without context ?
There might be a simpler way to solve the original issue.
as for the variables without context... try deleting the values input in I_STEP = 2 (not sure that works.. never tried)
or if the column is dummy column filled with a constant value.. the add that constant as second filter value in exit.
Let me know
Sharan
Similar Messages
-
Variable Is Without Context?
hi,
Variable Is Without Context? banu i got theory , we can use at exit, in previous thread i have received message from you, u are going to give 1 example for this, still i hvent received, ple give me example, its great help?
regards
ssHi, check the folllowing How to document, steps are given clearly:
https://websmp101.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
check the help.sap.com too:
http://help.sap.com/saphelp_nw04s/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm -
How to run the variable exit without calling the variable selection screen?
Hi all
I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
Query is written in BW 3.X.
Regards
ChamiHi guys
Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
Regards
Chami -
Error when executing query without passing variable selection
Hi Gurus
I am getting an error while executing a query with out passing values for variables
When executing the query by passing the filter values report returns the data
When executing the query with out passing variable selections the error message is
Unknown error in SQL interface
Error reading the data of Info Provider ZCRM_O08
Error while reading data; navigation possible
System error in program SSAPLRS_EXCEPTION and form
RS_EXCEPTION_TO_MESSAGE
No Data Available
can any one please help me in resolving this
Thank youHi Srini
Thanks for your quick response
When i am executing the query with selection it is returning the data
giving error when executing with out passing the selection
is there any other cause for this problem
like any particular info object causes this sort of problem
Thank you -
Urgent: Custom Text in Variable Selection Screen
Hi Experts,
I know that it is not recommended by SAP to customise the variable screen, I am sorry but that is ridiculous coz there are no alternatives provided for even simple editing. I''ve searched every where in SDN to find a way to simply add a custom text element in this bizarre screen.
I need to do that because I have to group variables that look similar in a container and add some instructions to users on how to base their selections.
I am also not sure what exactly the web item whcih is behind this selection screen or perhaps if it is another web template that is being invoked by the standard template ""0analysis_pattern"" and if any what is that web item invoking it.
If you have any clues of how i can achieve this please adivce as soon as you possibly can.
Points will be assigned.
Cheers,
Jad
Edited by: Jad on Apr 30, 2008 8:27 AMHello,
To customize your variable screen you should neeed developer access key..you can see whether you have got or not in table Devaccess..
Personalisation of variables is for saving all inputs for future use. ( In your case save without any pre determined values )
Below PDF link will surely answer your doubts.
http://www.ies.state.pa.us/imaginepa/lib/imaginepa/mso2.pdf
The personalization option can be activated in the system (using the program RS_PERS_ACTIVATE or the IMG guide (BW Customizing Implementation Guide -> Business Information Warehouse -> Reporting-Relevant Settings -> General Reporting Settings -> Activate personalization in the BEx).
You can manage your personalization variable through BEX Analyzer "Change Variable Values" menu option "Business Explorer --> change query --> change variable values.
[variables|http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm]
Go through this link for making cange in Variable selection screen..
Re: No Text displayed in the Input help in WEB
For creating the Web Template..
Go the web application designer, create a new web template in the template
in the left hand side you will find web items , from there drag and drop table , navigation block for your navigation attributes and in the table you have to assign the data provider
for that first you have to do
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DATAPROVIDER_1"/>
<param name="QUERY" value="your query name"/>
<param name="INFOCUBE" value="your cube or multiprovider name "/>
DATA_PROVIDER: DATAPROVIDER_1
</object>
now you can asssign the data provider 1 to the table.
you can all the neccessary things you want , like check box, radio button group, charts etc.
while saving this save it in a role.
If you want to do this for a workbook, which has been created in the BEx Analyzer, do the following:
After embedding the query in the workbook, right click -> choose 'properties' in the context menu -> click the 'interaction' tab -> check the 'save and reuse variable values' option.
After doing this, once the workbook or query is refreshed, the already entered variable values are taken.
Also see
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a5529e09411d2acb90000e829fbfe/frameset.htm
Hope it helps you,Revert me back if you have any queries
Assign points if helpful
Regards
Bala
http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm -
Performance issues with query input variable selection in ODS
Hi everyone
We've upgraded from BW 3.0B to NW04s BI using SP12.
There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
Using ST01 and SM50 to trace the code in the same query, we see a difference here:
<u>NW04s BI SQL command</u>
SELECT
"P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"
FROM
( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON "P0000"."COMP_CODE" = "T0000
"."COMP_CODE"
WHERE
"P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM
"/BI0/APY_PP_C100" "O" )
ORDER BY
"P0000"."COMP_CODE" ASC#
<u>BW 3.0B SQL command:</u>
SELECT ROWNUM < 500 ....
In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
Anyone with similar experience or can provide help on this?here is a reason why the F4 help on ODS was faster in BW 3.x.
In BW 3.x the ODS did not support the read mode "Only values in
InfoProvider". So If I compare the different SQL statements I propose
to change the F4 mode in the InfoProvider specific properties to
"About master data". This is the fastest F4 mode.
As an alternative you can define indexes on your ODS to speed up F4.
So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
Check below for insights
https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
Hope it Helps
Chetan
@CP.. -
UNCAUGHT_EXCEPTION when a user is executing a variable selection in WT
Hi Experts,
There is strange problem to one User, when ever she uses the Varibale selection for 0FUNCT_LOC in Portal, the systems throws the below UNCAUGHT_EXCEPTION, in the Webtemplate screen.
When i Checked that is displayed in *Root Cause*, it is showing as follows.
" The initial exception that caused the request to fail was:
Termination message sent
ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
MSGV1: SAPMSSY1
MSGV3: UNCAUGHT_EXCEPTION
com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent
ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
MSGV1: SAPMSSY1
MSGV3: UNCAUGHT_EXCEPTION
at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:172)
at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:128)
And other messages that were displayed are below.
ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
ABEND: System error in program CL_RSBOLAP_VARIABLE_CHARACTERI and form No hierarchy available (see long text)
Here the problem is that, while others users have no problem with the same Webtemplate,that is there is no exception raised for Functional location for them (And also when i checked from my side in Webtemplate, there was no problem displayed at my side too )
But when We created the copy of the user id (With same roles and profiles) again it has showed the same problem again.
We also checked in the Roles and Authorizations for that user, but could find no problem.
Also the user is able to access the Function Loaction variable selection in Bex Analyzer without any problems.
But only when she uses the selection in Portal she is getting UNCAUGHT_EXCEPTION.
Could anyone please help me how to trace where the problem is, and why it is happening only for that user.
And when there is no problem at Bex Analyzer side, why the exception is raised at Portal.
Thanks in advance for helping
Regards
RaghuThanks Javier,
But it could not help me to fix the issue, the problem occurs to only one user, when she selects Functional Location variable (Hierarchy Infoobject) in Portal. For me and others we do not have problem, but when i copy replica that user id with problem, and execute at my side i too see the same problem, any idea why?
Do we need to do any user specific configuration at portal side, for case of Hier Infoobject variables incase?.
Any help on this would be appreciated.
Thanks a lot.
Raghu -
SAPGUI 640 patch 19, BEX SAP BW 3.x, , Netweaver04 - No variable selection
The above in subject line is installed. Checked the installation w/sapbexc.xla, no major issues, all components were selected during frontend install. When the BEX Browser is launched I connect to BW and I select a report a Visual Basic error "Run-time error '91' Object variable or With block variable not set" occurs. Excel is opened but the expected variable selection screen does not appear. In addition to the above the BW addon patches 8 and 9 are installed and a couple of entries made into the PC registry per note 542961. SAPGUI works well for everything else as far as I can tell. What have I missed to make this work? prkctybum
Lou,
Please help me with this issue. We have the same similar issue you had. We can do the Global Settings going to the individual users but we are not able to push the resolution to every machine in the company, please see the note below. If you could send the resolution showing how you were able to push the code to every machine. You can mail me to [email protected].
Ive attempted to use .NET 2s storeadm /LIST command to pull the BEXAddin info from the IsolatedStorage Assembly where it keeps a record of the bexaddin.dll information. However the record it keeps is of no help. The file path:
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\IsolatedStorage\x1smiiqw.qws\p1vq0mkf.2u2\Url.fc1l2xts4acc5iv3nxl2uoy0btkfeen5\AssemFiles\BExAddin.xml
is not kept here, or anywhere else that I can find. Im going to have to do this the hard way and build something to check if IsolatedStorage exists, if so, query the folder structure, and check to see if the BEXADDIN.XML has been built, if it has, rewrite the legacy option. If it doesnt exist, thats the BIG issue, well have to initiate Excel to run the BExAnalyzer that way it generates the IsolatedStorage and then repeat the above. The problem is that running Excel without the customer realizing that Im running it is kinda tricky, whats worse is that this would have to run for every user on a machine, and thats impossible to do without everyones password, so essentially, this would only work for the logged on user, or what USD perceives as the logged on user, and since USD runs under the NT AUTHORITY\SYSTEM account thats what it will see as the current user. So, long story short, I dont think I can automate a fix for this.
So, while I could query every existing users folder structure within IsolateStorage, I cannot guarantee that theyve run BEX once to generate the folder structure for themselves in order for me to patch it. We could force BEX open after pushing SAP, but again, it would open for the SYSTEM account, not a real user. The only way to automate is to get the customer involved and have them run BEX one time, but how would we know to then push the fix
Kiran -
Hi,
I have 2 currency varaibles in my variable selection screen. Now i want to remove one. I can't find these variables in query deffination.
Can you tell me how should i remove the currency conversion variables from the web template selection screen. where in query defination can I find it.. or i have to do it some other way..
Thanks and Regrds
raviHi Ravi,
if you just want to remove a variable its simple.
1.Go to the query designer.In the query designer selecting the appropriate info object its attached to it.
2. Right click and select the context menu -> restrict
3. IN the pop up window de select the variable you want to remove.
If it doesn't solve your problem post with more details abt your req.
Cheers,
Mathivanan -
Variable selection screen: display as Key
We are using NW2004s for our BI system and for the front-end components (Bex Query Designer, Bex Query Analyzer, ...)
When opening a certain query with the Analyzer, the variable selection screen is shown. But now we can only input values directly in the fields if we change the display setting from Text to Key. (input values directly = without using the input help)
Is there no way to put the display on Key by default for the variable selection screen?
Hopeful greetings,
Ben De WindtHello Ben,
unfortunately this is not possible at the moment. The feature will be available with SPS 13, which is planned to be available in calendar week 32. Please have a look at the Functional Enhancements Schedule BI in NW 7.0 (formerly known as 2004s) on page 20:
<a href="http://service.sap.com/sapidb/011000358700004483762006E">http://service.sap.com/sapidb/011000358700004483762006E</a>
Best regards,
Martin -
Excluding values from variables selection
Hi,
I would like to exclude certain values from the variable selection. There are several plants available in my InfoProvider. But I only would like to show the plant A100 to A400 in the query selection. Is it possible to realize it without using authorisations?
Thanks a lot for your help
Regards
MarcoHi Marco,
This can be done in several ways...
Make ur variable as selection option. And in Variable screen select Selection Options icon which is next to Save. Under Exclude from selection tab, enter the values that has to be excluded.
If ur variable is user exit variable write an ABAP code to select Plant Values between A100 and A400 using I_STEP=1.
Regards
Sathya -
BI report not displaying Variable selection screen on UI
Hi,
We have recently upgraded our CRM to 7.0, but the strange thing is the BI reports are executing without giving the user the variable screen.
Now the alternative to this is making the variables in BI section Mandatory and they show up in the report, but this is not the correct way.
Are we missing some piece of configuration somewhere.
Regards
LalanHi Vinayak,
Do you know how can I get the variable selection screen to display in BI analyzer when I execute the report from backend BW system and it launches BI analyzer. I know we can go into Add-Ins and from toolbar we can go into Change Variables Values icon, but I would like selection screen to display as default when user runs the report from backend.
Thanks
Divya -
Syntax variable "%SELECTION%"
Hi,
I have a package in the Data Manager. In this package I have the following "PROMPT":
PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select ORIGIN and ALL subsequent periods as a DESTINATION","%CATEGORY_DIM%,%TIME_DIM%")
Once the user selects the contents of "TIME" and "CATEGORY" I want to define within the same variable (%SELECTION%) that "ACCOUNT" is equal to "M1", without user intervention.
What is the syntax of this variable in this case? So, I could use a statement "INFO" on the package to add "ACCOUNT".
In short, how I could add fixed definitions for certain dimensions to variable "%SELECTION%"?
Regards,
Miguel.Hi,
I have a package with the following code:
INFO(%RUNLOGIC%,0)
INFO(%CHECKLCK%,0)
PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select ORIGIN and DESTINATION","%CATEGORY_DIM%,%TIME_DIM%")
INFO(%TEMPNO1%,%INCREASENO%)
INFO(%ACTNO%,%INCREASENO%)
TASK(/CPMB/CM_CONVERT,OUTPUTNO,%TEMPNO1%)
TASK(/CPMB/CM_CONVERT,ACT_FILE_NO,%ACTNO%)
TASK(/CPMB/CM_CONVERT,SAPPSET,%APPSET%)
TASK(/CPMB/CM_CONVERT,SAPP,%APP%)
TASK(/CPMB/CM_CONVERT,SELECTION,%SELECTION%)
TASK(/CPMB/CM_CONVERT,TOSELECTION,%TOSELECTION%)
TASK(/CPMB/CM_CONVERT,CLEARDATA,%CLEARDATA%)
TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,%CHECKLCK%)
TASK(/CPMB/CLEAR_SOURCE_CUBE,SELECTION,%TOSELECTION%)
TASK(/CPMB/APPEND_LOAD,INPUTNO,%TEMPNO1%)
TASK(/CPMB/APPEND_LOAD,ACT_FILE_NO,%ACTNO%)
TASK(/CPMB/APPEND_LOAD,RUNLOGIC,%RUNLOGIC%)
TASK(/CPMB/APPEND_LOAD,CHECKLCK,%CHECKLCK%)
I pass the content of the variable "%SELECTION%" to the task "/CPMB/CM_CONVERT". The "PROMPT" has introduced the user selection for "TIME" and "CATEGORY" dimensions into the variable "%SELELECTION%". And I want to add the fixed condition "ACCOUNT = M1" to this selection, so that the above task also includes this.
In this package I don't use any Script Logic.
Regards,
Miguel. -
Hi All,
Below is my full code.
I am using list view web parts and not working in IE browser but Its working fine in Chrome.
SP.ListOperation.Selection.getSelectedItems(context); - always returns null in IE but working fine with Chrome.
<div>
<tr>
<td>
<input type='button' value='Delete Service' onclick='javascript:DeleteSelectedItems();' />
</td>
</tr>
</div>
<script language='javascript' type='text/javascript'>
$(document).ready(function(){
var scriptbase = _spPageContextInfo.webAbsoluteUrl + "/_layouts/15/";
$.getScript(scriptbase + "SP.Runtime.js",
function () {
$.getScript(scriptbase + "SP.Core.js", function () {return true;});
$.getScript(_spPageContextInfo.webAbsoluteUrl + "/_layouts/15/SP.Runtime.js");
$.getScript(_spPageContextInfo.webAbsoluteUrl + "/_layouts/15/SP.Core.js");*/
function DeleteSelectedItems()
SP.SOD.executeOrDelayUntilScriptLoaded(itemDeleteFromList, 'SP.js');
function itemDeleteFromList()
var selectedItems = null;
var context = SP.ClientContext.get_current();
var currlist = context.get_web().get_lists().getByTitle("SourceMemory");
context.load(currlist);
selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
if(selectedItems != null && selectedItems != "" )
if(confirm('Are you sure you want to delete the memory(s)?'))
var item = null;
for (item in selectedItems)
var projectItem = currlist.getItemById(selectedItems[item].id);
projectItem.deleteObject();
context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
else
if (selectedItems == null || selectedItems == "")
alert('Please select a memory to delete.');
return;
function OpenNewFormPopup() {
var pUrl = "/sites/KGS/Lists/FunctionMaster/NewForm.aspx"
SP.UI.ModalDialog.showModalDialog(
url: pUrl,
width: 800,
height: 700,
title: "Add Service"
function onQuerySucceeded() {
window.location.href = window.location.href
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>Hi ,
For this issue, I'm trying to involve someone familiar with this topic to further look at it.
Thanks,
Eric
Eric Tao
TechNet Community Support -
How to add customize message on the variable selection screen in the query
Hi all,
Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
Thanks,
RaniHi Rani,
I faced a similar issue (for what I understand your request is).
My requirement for the Variable Screen was to do:
1) place a link to a ppt file
2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
We were using a Web Templ for BI7.0
I struggled trying to find out how to do it. My conclusions are:
- WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
- XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
Good luck,
Definetly in a Query I would say that no.
alex
PS: If anyone had a better insight, please feel free to share it.
Maybe you are looking for
-
Dell Inspiron 1520 - disk problem
Hi. I have Dell Inspiron 1520 and even if I set hdparm -B 254 /dev/sda or 255, disk still makes clicking noises. Hdparm command fixed that in ubuntu, here it doesn't. Is there any other way to stop clicking? Ty.
-
Exports slightly out of synch?
Seems like when I export my edits (shot in HD) the audio is out of synch with the video by just a couple of frames. Not usually a big deal, but ruins the precision of my faster paced edits. Tip?
-
I can't open the help content, already installed all the upgrades...any ideas or possible solutions?
-
Dear Gurus, I have to activate quota arrangement in our organization. I have done the following steps to active the quota arrangement, 1)Activated the Quota arrange usage in material master. 2).Activated the Source list in material master. 3)Created
-
Having issues with iTunes syncing to iPhone 5...
Both are up to date, iPhone has 7.0.4 and iTunes 11.1.3. Not all of my songs will sync onto my phone, only 63 out of about 500. Anyone else having this issue? Or solved it? Ahhhhh so frustrating!!! I've tried -Turning off my find iPhone -Selecting pl