BEx Analyzer - Edit Variables via VBA
Hi all,
I need to set the BEx variable values via VBA to change a selection for an input ready query.
Is there a way to do that?
Thanks a lot.
Best regards,
Christian.
I heard that are some functions in BW 3.5 with getBex and setBex.
But it isn`t supported for BW 7.0.
Similar Messages
-
BEx Analyzer: Formula Variable with Replacement path change Month with Day
Hi experts I'm facing this issue in BEx Analyzer.
I need to have some dates in format DD/MM/YYYY in Index Structure, in order to do this I've created a formula variable with replacement path referenced to 0CALDAY characteristic.
The formula works but it behaves in a strange way:
if the day is higher than 12 the displaied result is correct (DD/MM/YYYY)
if the day is lower or equal 12 the displaied result is wrong (MM/DD/YYYY)
I'm on BW 7.01 SP6 and BEx Analyzer 7.10 SP12, excel 2007.
anybody has faced this issue before?
any help will be appreciated
Daniele CortopassiHi Daniele,
This seems pretty strange. Pls. redo validation with the dump data, as being a flat struture BEx does not apply any logic changes. May be it might have been MM/DD/YYYY format as in workbooks. Else you may change the property of 0calday display as "Text". Business Explorer > Display > KeyMaster Data/Texts > Texts (Plese check this option). If you are using some text table you may maintain the same using BI0/TCALDAY (Similar to BI0/TCALMONTH2). Guess it should be an excel based issue; if not you may try the same in WAD/Report designer to verify the nature of the issue. If you don't face these inconsistencies in WAD/RD then you may change excel formatting options. Lastly, please let us know if the infoobject has some predefined settings in RSA1 > Infoobject > (BEx) Properites.
Thanks,
Arun Bala -
BEx Analyzer exit variable behaves differently from RSRT
Hello experts
I have an exit variable on a number of queries which is being filled out at I_STEP 1 with different values depending on which query is executed. This is a requirement for a number of reasons and cannot be changed. The user then has a different variable which is user input ready so he can select from one of the values I supply them. This variable is in the proposed values section of the query so it should only list the variables allowed for the user to select.
For example on query A, I want the exit variable to give the values 1,2 and 3. The user, on variable screen can select in the input-ready variable on of those values. In query B the same happens except the exit variable has values 3, 4 and 5.
If the user accesses one of these queries everything works fine. The problem happens when the user accesses query A, closes it and then accesses query B. In this situation he sees values 1,2,3,4 and 5 as available instead of only 3,4 and 5. It seems that the system shows him variables 1 and 2 despite the fact that he can't access them. This only happens in analyzer but not if I use RSRT. Is it a bug in Analyzer? I've tried debugging from RSRT the code to check if I forgot to clear something but I cannot find anything wrong but then again the problem does not happen in RSRT.
What can I try to do to solve this?
Thanks for your help.I've done some further researching and discovered the following:
1 - My exit variable is working fine. It gets the correct values.
2 - The user-input variable is not being filtered correctly. It looks like it does not show only the values allowed in the exit variable.
Is this right? I thought if I had a set of values in the filter of the query, they would automatically restrict user input variables that the query may use in the proposed values. -
Bex analyzer variable screen input ready?
Hi Experts,
If we open a query in the Bex analyzer (BI 7.0 netweaver 2004s), it seems only possible for us to enter variables in the dialog screen after the pushbuttons Ctrl + K for each variable. Is it possible to change the default setting in the BEx analyser variable screen, so that the variables are ready for input (without the ctrl + k)?
In the SAPhelp information, only the following information is provided.
Prerequisites
In the BEx Analyzer, you have executed a query that contains variables and you want to change or personalize one or all of the variables in the query.
Procedure
1. In the analysis toolbar, choose Change Variable Values or in the menu, choose BEx Analyzer ® Change Variable Values.
The Select Values for Variables dialog box appears. Follow the instructions to select a value to assign to the variable.
2. Specify a variant name and values for the variables for which you want to change the current values.
Switch to display mode or use the pushbuttons Ctrl + K to enter values.
Kind regards
Dennis
Message was edited by:
D.C.M. van den OordHello All,
We have a similar issue only in 2004s query designer when we execute a query via the web. We have the variable set up to accept multiple single values and we can pick multiple single values and add them, however, we cannot paste a list of, for example, personnel numbers from an excel spreadsheet into the web selection box to add multiple single values at one time. Does this functionality exist?
Regards,
Ann Bohn -
Error in BEx Analyzer during F4 Value help
Hello Experts,
We are facing a issue where on pressing F4 in Bex Analyzer in variable selection for cost center hierarchy; the operation hangs. I dont get any short dump but following error messages in the analyzer itself
RS_EXCEPTION Message Number 101
Inconsistent Input Parameter (paratmeter: <unknown>, value <unknown>
RSBOLAP Message Number 000
Program error in class SAPMSSY1 method: Uncaught Exception
We are on BI 7.0 SP17. I found a SAP note (1381562) which talks about similar error.
The confusing part is this particular query works fine in Dev, Quality and Test systems but errors out only in production.
Please let me know how relevant is this note. Also let me know if I should be looking at something else to correct this error.
Thanks,
GauravHi,
Please check your text file contains the exact same characteristics and key figures as defined in your planning funciton for your upload (also the sequence has to be the same)
Regards,
Marasa. -
The BEx Analyzer cannot generate VBA code due to the security settings
Hello experts,
when I try to open a query in BEx Analyser I get this error message for each Item of the Query:
Diagnosis
The BEx Analyzer cannot generate VBA code due to the security settings.
System Response
VBA code is not generated.
Procedure
Choose Tools -> Macro -> Security.
On the Trusted Publishers tab page, select Trust access to Visual Basic project.
Choose OK.
Close the BEx Analyzer and continue working as before.
Access to Visual Basic project is only needed when generating VBA code.
This only takes place in design mode or when 3.x workbooks are upgraded.
Of course I did exactly what was recommanded in the "procedure-section" of this error message. But BEx ist still not working!
I use SAP NetWeaver 7.0 together with MS Excel 2007
Thanks
AxelHello experts,
I am an additional person interested in the way this issue was solved.
I confirm that the issue is coming from the SP2 of Microsoft Office (I have another environnement without the SP2 and everything works well), and I am in a situation where I can't remove the update.
Regards
Guillaume P.
EDIT :
Solution found : I applied the bi710sp10p_1001-10004472.exe patch
(downloaded via the download maanger : Support Packages and Patches - Entry by Application Group" SAP Frontend Components" BI ADDON FOR SAP GUI" BI 7.0 ADDON FOR SAP GUI 7.10)
Edited by: GUILLAUME PETIAUX on Apr 13, 2010 10:29 AM -
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 remove Variables Personalization in the BEx Analyzer?
Hi All, Help us. Say please:
1. How to remove personal Variables Personalization for query/user in the BEx Analyzer with standart tools?
2. How to disable personalization button on varible screen?
Our users very often click this "bad" button and after that can't to find required criteria on selection criteria screen. We've studied BW Guides and Forum materials (may be not very thoroughly), but search usefull information only for Web Reporting. We've search corresponding table /BI0/APERS_VAR00 but fear to edit it directly.
Best regards, IgorHi All,
I think that best way to remove personalization of any var or infoobject could be done through the next logic.
we have ODS <b>0PERS_VAR</b>.
we need to remove line from this ODS with specific parameters like USERNAME and VAR_NAME or IOBJ_NAME.
<b>Step by step instruction</b>:
1. Create <b>update rule</b> from ODS 0PERS_VAR to the same ODS.
2. Write <b>'Start routing'</b> to update ODS with the next ABAP-code
LOOP AT DATA_PACKAGE.
DELETE FROM /bi0/apers_var00
WHERE tctusernm = DATA_PACKAGE-tctusernm AND
( tctvarnm = DATA_PACKAGE-tctvarnm OR
tctiobjnm = DATA_PACKAGE-tctiobjnm ).
DELETE DATA_PACKAGE.
ENDLOOP.
3. Activate update rule.
4. Update ODS Data in Data Target with <b>'full update'</b> !
5. At the selection screen of info-package <b>specify fields</b>
< 'TCTUSERNM' - username > AND
< 'TCTVARNM' - var name > OR < 'TCTIOBJNM' - infoobject name >
PS:\ As result <b>personalisation will be reseted selectively</b>.
if it help you, it is a chance to donate some points to me
best regards -
BEx analyzer variable screen Copy and paste the input values functionality
Hi all,
in bw 3.5 we have functionality on the variable screen we can do directly copy the values and paste in the input screen. But in BI 7.0 BEx analyzer I am not able to find it. Is it required to apply any patches?
Please guide me on this.
ThanksHello All,
We have a similar issue only in 2004s query designer when we execute a query via the web. We have the variable set up to accept multiple single values and we can pick multiple single values and add them, however, we cannot paste a list of, for example, personnel numbers from an excel spreadsheet into the web selection box to add multiple single values at one time. Does this functionality exist?
Regards,
Ann Bohn -
Hi Gurus,
is it possible to get a drop down box for a ready for input formula variable in the BEx Analyzer (not BEx Web!)?
We want to let the users choose scaling factors 1, 1000 or 1000000 (implemented via this formula variable). In the settings of the formula variable you can only choose a default value but there seems to be no option to provide all three factors in a drop down box like the ones for characteristic value variables.
We could prevent other entries in the variable pop up via customer exit (i_step 3) but the business is wishing an F4 input help like the ones for characteristic values.
Thanks for your help,
MarcoHi Macro,
Its not possible to get drop down box for a ready for input formula variable. Because it is possible only for characterstic value variables but not formula variable.u donnot get any drop down box like ready for input for formula variable.
Regards,
Premalatha.C -
Automated start of Excel BEx Analyzer via Web VBScript
Hi all,
at first... all the versions:
SAPGUI 6.40 Patch Level 19, BW 3.5 Addon Patch 9, BI 7.0 with NetWeaver 2004s, Excel 2002 SP3.
I got the following working code to start Excel out of our Intranet, start the BEx Analyzer and connect to our BW:
<html>
<head>
<title>Excel Script</title>
<SCRIPT LANGUAGE="VBScript">
sub bwreport()
Dim app
Dim myConnection ' As Object
Dim logonToBW2 ' As Boolean
' Launch Excel
set app = createobject("Excel.Application")
' Make it visible
app.Visible = true
' Open xla file
app.Workbooks.Open("C:ProgrammeSAPFrontEndBWsapbex.xla")
app.Run("SAPBEX.XLA!sapBEXinit")
' Logon to BW
logonToBW2 = False
Set myConnection = app.Run("SAPBEX.XLA!SAPBEXgetConnection")
With myConnection
.client = "001"
.User = "myuser"
.Password = "mypw"
.Language = "de"
.systemnumber = "00"
.ApplicationServer = "xxx.xxx.xxx.xxx"
.UseSAPLogonIni = false
.Logon 0, True
If .IsConnected = 0 Then
MsgBox "Verbunden"
.Logon 0, False
If .IsConnected <> 1 Then
MsgBox "Fehler beim Verbinden"
End If
End If
End With
app.Run("SAPBEX.XLA!SAPBEXinitConnection")
logonToBW2 = True
' Give the user control of Excel
app.UserControl = true
end sub
</SCRIPT>
<P> </P>
</head>
<body>
<button onclick= "bwreport()">Alternative Excel</button>
</body>
</html>
I'm still working on two issues here and hope you can help me:
1.
app.Workbooks.Open("C:\Programme\SAP\FrontEnd\BW\sapbex.xla")
The Webscript will be used by many BW-Users so the full installation path is not the same for all users. Is there a way to start the Analyzer without the full path ?
When I start Excel with "Excel.Application" via OLE out of my Script, then BEx is not automatically loaded, that's why I need the above line.
But when I start Excel manually, it's loaded automatically. So there has to be some way Excel "knows" the location of an installed BEx Add-In. Maybe there is some addition to say Excel to start all it's usual Add-Ins, or to start in standard behaviour ?
2.
app.Run("SAPBEX.XLA!sapBEXinit")
Before I added this line, I always got the BEx Analyzer title "xxxsapbexxxx" and was unable to use any macros or functionality of the BEx Analyzer.
I found hints and code examples to use "RunAutoMacros" so sapbex.xla is fully initialized but wasn't able to make it work in my code.
So I checked the macros of sapbex.xla and "sapBEXinit" seems to do the job although I'm not sure if this is a complete/clean initialization of the sapbex.
Thx,
Thomas
Message was edited by: Thomas Kassumeh
Message was edited by: Thomas KassumehWelcome to SDN.
First of all thanks for sharing the script, good work.
coming to your first question.
you can get the path by reading the system registry
its under <b>"SAP.BusinessExplorer.Analyzer\path"</b>
if you analyze the FM "RSAH_LAUNCH_EXCEL" in BW system, you can get the logic for your script.
Regards
Raja -
Variable hierarchy display not changed (BEx analyzer)
Hi
We have a BEx query, in which a drilldown characteristic is displayed as an hierarchy
Hierarchy display is active
Selected hierarchy:
Name - constant
Version - customer exit variable
Customer exit calculates version from manual input variable.
We need to view the report in BEx Analyzer.
When the query is opened, we select manual input variables and the hierarcy's version is set correctly.
The issue is that when we change manual input variables at runtime, the data is refreshed,
but hierarchy display is not changed. The selected hierarchy's version remains unchanged.
In order to change hierarchy display, we need to open characteristic properties and change the selected hierarchy manually
or we need to reopen the query and provide another manual input variables.
Our system version is 7.01 patch level 9
Is there any way to fix this problem
Or some workaroud?
Any help will be appreciated.
ThanksMichael, thank you for reply.
But I don't see how these notes may help me with my problem.
1753959 - I don't get a short dump
1745472, 1751321 - system displays all queried nodes, the problem is that if I input another variable, hierarchy version variable is calculated via user-exit properly (I see it in ABAP debugger), but displayed hierarchy has version, which was set when I opened query initially.
1717433 - nodes are returned with non-empty result. I can see that data is refreshed, hierarchy version is requested correctly, but is displayed incorrectly. We can see, for example, new hierarchy leaves, but in "n/a" node.
I tried to run the same report on system with version 7.01, patch level 12 and get the same behaviour.
My problem is similar to that described in notes 993151, 957219, but our system patch level is already higher. -
Variable screen not popping up in BEx Analyzer
Experts,
I'm facing a wierd situation while executing queries in 3.5 BEx Analyzer. When the query is executed using 3.5 BEx Analyzer varibale screen does not pop and report strats running wide open. The Varible input is optional. But if the report in executed using Web (From the 3.5 Query Designer) variable screen pops up. This happens with the same user ID.
Please let me know if you have any ideas, could this be something realted to authorizations. In the meantime, i'm trying to change the varibale to mandatory and see if the variable screen pops up.
ThanksHello
The standard behavior is not show the variable screen if it has no mandatory variables. In the webtemplate you may have the parameter forcing to show the variable screen added in the code. It is something like "force variable screen". Please check if you can see that parameter.
regards
Lucimar -
Working with documents via BEx Analyzer not using the portal
Hello,
i read that we are able to create (work) with documents (comments) via
BEx Analyzer. When i want to add a comment how it is described in the
help we get connected to the portal. We dont want to use the portal for
that. Therefore we searched a way to skip the portal. We read that in
BW Versions before 7.0 the portal was not connected but since 7.0 we
have the portal connectivity, but it should also possible to not use
the portal and to access directly the BI Server. I searched for the
Customizing to do so but i could not find it where to switch to the old
logic.
And another question is when we use the Portal with the knowledge base . The documents are stored in the document framework (SKWF). Is it the same as the Datawarehousing Workbench --> documents. This storage we want to use.
Can anyone give me a hint?
Kind regards,
MuratHi Murat,
We are also facing the same issue of when trying to create/access the documents from BEx analyzer it is connecting portal , we need to bypass portal and directly access the document browser in BW server.
In your thread you mentioned it is done. So can you please let me know how did you enable the old configuration?. It will be very much helpful to us.
Awaiting for your reply.
Thanks,
V.Senthilkumar -
Variable screen not seen when running BEx Analyzer
Hi Gurus,
when i execute my query in BEx Analyzer for some reason i dont see my variable screen and it gives me a message saying variable values not entered. If i run the same report in RSRT i do get my variable screen. It was all find till yesterday and for some strange reason i dont get to see my variable screen.
Can anyone help me
SuryaWhat version are you on?
Did you try resetting personalized variables? You may have hit that by mistake, happens a lot here. Not sure that would be the case with no values entered however.
Al B.
Maybe you are looking for
-
I cant download itunes programme for my samsung rv510 laptop, it says error occurs after I try to instal the 10.7 version? What do I need to do?
-
Adobe Premiere CC 2014 causing MBPr Crash
I've been having issues for the past three days with Adobe Premiere CC 2014 causing an entire system crash. I'll be editing or trying to render, and the computer will freeze, no beach ball, no cursor. The screen freezes for a while, then goes to blac
-
My video goes out and comes back on frequently
Hi, I have a mac mini and the video goes out (blue screen) with an error that says "Check video cable." It will then comb back on without doing anything but it can take several seconds or a minute to do so. This happens randomly not dependent on do
-
(TIP) importing video from 3G S into iPhoto....
I synced my old 3G, went to the Apple Store and brought home a new 3G S, then restored the 3g backup to the 3G S. I then shot some video and tried to import it into my Mac. It did not show up in iPhoto. I quit and restarted iPhoto, I rebooted the iPh
-
About Using CS SDK with adobe Digital Publishing Suite
Hello, I'm relativly new to the Creative Suite SDK. I'm developping extensions in flashbuilder mainly for indesign 5.5 I'd like to know if there is a way to access the overlay creator (and in the same way, the folio builder) via some coding with the