Variable in Excel

Hi,
I created Variable on location infoobject user want to select the location
I created and save the query when I execute the pop window is not coming and its not asking enter the location?
any thoughts?

Randy,
Does your query run?  It is possible that the variable has been personalised which means you wont be asked for it (it's a user specific setting).
When  your query is ruin, will you select Change Query - Change Variable Values and see if there us a yellow smiley face on that characteristic. If there is. delete the personalisation by click it once nd take the option to Reset Personalization.
Regards
Gill

Similar Messages

  • Error when executing query with variables in excel

    When I execute a query in excel, it gives some errors if it has some variables (From Date, To Date etc):
    Error Specify a value for variable From Date
    Error Specify a value for variable To Date
    I need to execute the query and then save a view. I want to do this in excel as I am not able to save a view if I execute in a web browser.

    Hi Sanjeev.
    Of course Excel supports input of variable values.
    What version of BW/BI both backend and frontend are you using?
    Please check if you can execute the query in TA RSRT. You could try to generate the query again here.
    Hope it helps.
    BR
    Stefan

  • CR XI R3:  Issue exporting shared variable to Excel - with workaround

    Hi,
    I have a report that uses a subreport to calculate a field based on the existance (or not) of data in a database other than the main report database.  When I use a shared variable to pass this field back to the main report and display it on a detail line (in the main report), it works fine - until I try to export the report to Excel.  When exported, the value that gets exported on all detail lines of the report is the final non-blank value of the shared variable, not the value that it contained when the detail line was initially generated.  I am using a shared variable because there are multiple values that I want to pass back to the main report. 
    Luckily, only one of the shared variables are being printed, so the workaround that I am using is to use the subreport to print the field instead of passing the value back in a shared variable and displaying that (and hiding the subreport on a separate format).
    Is this a known issue with R3 exporting to Excel?  (It was happening in R2 as well...)
    HTH,
    Carl

    Simplified somewhat, what this report is doing is looking up open orders in one database and checking to see if something specific happened to it in another database.  If so, it generates the XML that needs to be applied to the first database to update it.  The XML references the order number and line number.  What I mean is that instead of the data coming out as
    Order Line  XML Snippet
    12345 1234 ...<order>12345</order><line>1234</line><status>received</status>...
    22345 2234 ...<order>22345</order><line>2234</line><status>received</status>...
    32345 3234 ...<order>32345</order><line>3234</line><status>received</status>...
    42345 4234 ...<order>42345</order><line>4234</line><status>received</status>...
    I get
    Order Line  XML Snippet
    12345 1234 ...<order>42345</order><line>4234</line><status>received</status>...
    22345 2234 ...<order>42345</order><line>4234</line><status>received</status>...
    32345 3234 ...<order>42345</order><line>4234</line><status>received</status>...
    42345 4234 ...<order>42345</order><line>4234</line><status>received</status>...
    I have Base Column Widths on Details, so there should be no merging attempted, but I'll check and make sure.
    It seems to me, though, that the DLL is being told the wrong value to export...
    Carl

  • How to extract list of object and formula used in variables as Excel for a particular Webi Report

    Hi,
    Is it possible to get the list of variables and objects, and variable formula used in a webi report extracted in excel or PDF in BO XI R3.1?
    Thanks In Advance,
    Shenbu

    Hi Shenbaga,
    You can try to get this information using the report engine sdks of BusinessObjects which is specific to webi reports.
    Please refer to the link to download the dev guide and api referrence for XI 3.1
    SAP BusinessObjects BI 3.x and Lower - Developer SDK Library
    Refer to the Report Engine Java SDK dev guide and api referrence.
    Go through the dev guide in detail and you would be able to use the report engine sdks as per your needs.
    Additional Note: There have been changes in report engine sdks from XI 3.1 to BI 4.0 and you would not be able to get all the features available in XI 3.1 report engine sdks in BI 4.0.
    Hope this helps.
    Regards,
    Chandrahas

  • Display Filters and Variable on Excel Broadcast

    Hello,
    How do I show filters and variable used on the excel output format from broadcast? Currently when broadcasting query in excel format only query results show in the excel. How do I make the filters and variable show at the bottom of the excel broadcast output after the results?
    Thank You

    Try with Workbook Display check boxes options. But you won't get them as Footers.

  • Powershell Variable from Excel.VBA Macro

    Hi Guys!
    I don't know if what i'm asking you is achievable.
    I've learned how to pass variables/arguments from powershell to Excel/VBA Macro but i need to do the opposite thing.
    This is an example of what  i want:
    Powershell                                                                      
                       Excel/VBA Macro
    $Input=1   ---------------------------------------------------------------->   Sub Macro(input)
    $excel.Run("Macro",$Input)                                                              
      Output=input +6
    $output (Expected 7)   <----------------------------------------------------  return Output
    I don't know how to do this can you help me please?
    A

    Ok guys those are the script.
    Macro:
    Sub CreatePWD()
    Dim PWD As String
    Dim i As Integer
    Dim Max As Integer
    Dim F1 As Worksheet
    Set F1 = ThisWorkbook.Worksheets("Foglio1")
    Max = F1.Range("A1").Value
    For i = 1 To Max
    If Int((2 * Rnd) + 1) = 1 Then
    PWD = PWD & Chr(Int((90 - 65 + 1) * Rnd + 65))
    Else
    PWD = PWD & Int((9 - 0 + 1) * Rnd + 0)
    End If
    Next i
    MsgBox PWD
    End Sub
    Powershell:
    $Excel = New-Object -ComObject excel.application
    $Excel.visible=$false
    $Version = "C:\Users\Alberto Corona\Desktop\Cartel1.xlsm"
    $WorkBook= $Excel.workbooks.open($Version)
    $WorkSheet= $WorkBook.worksheets.item(1)
    $WorkSheet.cells.item(1,1)=5
    $Excel.Run("CreatePWD")
    $WorkBook.save()
    $WorkBook.close()
    $Excel.quit()
    The result of macro is like "52UT7" i want a variable in powershell called $PWD that contain the value of the macro. 
    Hope the problem is clear now.
    Thanks
    A

  • How to get variable value in BI 7.0 Workbook (Excel 2007)

    Dear experts,
      We are creating workbooks with BI 7.0 BEx Analyzer Addon 7.10 (Excel 2007).
    And we'd like to get the variable value (that are passed to the backend using the variable screen) so that we can reuse it as an input value for planning function execution later.
      Any idea on how we can achieve this is high appreciated.
    Thanks in advance,
    Shady

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • Need help with Dynamic Excel File Name please.

    I am try to output an excel file with dynamic date. 
    Here what I done.
    I am using SQL 2012.
    Create Execute SQL Task Connect Type: Excel
    Create Data Flow Task set to DelayValidation: True
    Create OLE DB Sourc
    Create Data Converstion
    Excel Destination
    Excel Connection, Expression, select ExcelFilePath
    @[User::sXLFilePath] +  @[User::sFileName] + RIGHT("0" + (DT_WSTR, 2) DATEPART("DD", GETDATE()), 2)+ RIGHT("0" + (DT_WSTR, 2) DATEPART("MM", GETDATE()), 2) + RIGHT((DT_WSTR,
    4) DATEPART("YYYY", GETDATE()), 2) +".csv"
    C:\ExcelOutPut\SOX_CAM_SQL_Report_010215.xls
    What I try to accomplish is output the file with each day append to it, date must be DDMMYY.
    I google it and found many samples, tested it, and none of them is work for me. 
    Any suggestions or some examples to share is greatly appreciate. 
    I am new to SSIS.  I found one poster have similar issue and inside the posted below, there was one suggestion to create variable and connection string but how do I bind that variable to Excel Connection manger.
    Please help.
    Thank you so much in advance.
    Ex: SOX_CAM_SQL_Report _020215.csv
           SOX_CAM_SQL_Report _030215.csv
    --Similar issue:
    https://social.msdn.microsoft.com/Forums/en-US/bda433aa-c8f8-47c9-9e56-efd20b8354ac/creating-a-dynamic-excel-file?forum=sqlintegrationservices
    Suggestion in the above posted but where can bind this to Excel Connection Manger. 
    Please help provide step by step.  Thanks.
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\temp\\" + "ExcelTarget" + (DT_WSTR,4)DATEPART("yyyy",GETDATE())  +
    ".xls" + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"
    And yes, as you were intimating, the delay validation on the dataflow should be set.

    Hi NguyenBL,
    According to your description, you created ssis package to export data from database to excel, when the package runs, you want to create new excel and name the file with time stamp. If that is the case, we can achieve the goal by following steps:
    Create a script task used to create excel files.
    Create a data flow task to export data from database to excel.
    Add OLE DB source to data flow task.
    Add Excel Destination to data flow task.
    Create connection manager for OLE DB and Excel.
    Click Excel Connection Manager, in Properties window, click (…) button next to Expressions, then set ExcelFilePath with expression like below:
    "C:\\ETL Lab\\CreateNewExcel\\ExportData_"+REPLACE((DT_STR, 20, 1252)(DT_DBTIMESTAMP)@[System::StartTime], ":", "")+".xls"
    For detail information, please refer to the document:
    https://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Javascript Example to Read Variable Value  in WAD 7.0

    Hi,
    I am looking for a JavaScript example of how to read the value of a variable in the 7.0 WAD.  If anyone has done this and would like to share that would appreciated.
    Thanks,
    Mel

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • How to Read Variable Values in WAD 7.0 Using JavaScript

    I found a how to: How to Read Variable Values in WAD 7.0 Using JavaScript on SDN.
    I get a Javascript error:
    bics.getElementsByTagName is not a function
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    Thats my script:
    function currency()
    var varnm = "SFS_CP_CURR"; // Name of the variable to be read
    root = document.childNodes[0]; // <HTML>
    body = root.getElementsByTagName("BODY")[0]; // <BODY>
    xml = body.getElementsByTagName("XML")[0]; // <XML>
    bics = xml.childNodes[0]; // <BICS_VIEW>
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    varl = vars.getElementsByTagName("VARIABLE"); // gives no. of variable in DP
    for ( i = 0; i <= varl.length; i++ ) // Loop one by one
    vari = vars.getElementsByTagName("VARIABLE")<i>;
    varnam = vari.attributes[0].text; // get variable name
    mem = vari.getElementsByTagName("MEMBER")[0];
    varval = mem.attributes.getNamedItem("name").value; // read variable value
    if (varnam == varnm) //check varname in loop needs to be read
    if (varval == "ZMON") // check for value1 and fire command1
    SFS_CP_M();
    if (varval == "ZKON") // check for value2 and fire command2
    SFS_CP_K();
    break;
    Where's the mistake?

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • How take variable value in WAD 7.0 from query

    Hi experts,
    We have some queries with the same type of data but with different structure. All have the same variables entry and we want to execute through WAD one of them based on the values entered in the variables screen.
    Could you help us saying how we can take that variables values entered in order to use in the Web template code?
    We are using WAD 7.0 and QD 7.0.
    Thanks in advance.

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • Include variables in excelsheet sent from Broadcaster

    when I mail the report as a excel attachment - is there any way I can include the variable's that have been passed thru variant be displayed in the excelsheet - just like the way we get when we do a PDF - default print version- with all the variables, dynamic and static filters. I tried playing around, but not sure where I should be looking at - at the Query Precalculation template or is there some setting in broadcaster wizard or just some other IMG config.
    Appreciate if anyone can throw some light on it
    Thanks,
    Voodi

    Hi Voodi,
    Did you find a way to include the variables in excel sent from BEx Broadcaster.
    If you had found anything regarding this please let me know.I have this requirement.
    Thanks
    Raj

  • BI 7.0 Workbook excel 2003 formula for comparision

    Hello Friends I have a requirement to create a workbook in BI where I have 7 columns on left side of excel workbook and 7 columns on right side of excel workbook in the same sheet of workbook. so Requirement is to put the Code 0, 1, 2, 3,4,5,6
    if column 1 on left match with column 1 on right and like that column 2 on left match with column 2 on right
    But the below excel formula is not working it always give me 7 which is a false value even though the data in columns 1 & 1 match each other
    Can u please suggest me the step by step formula or any VB Code that I can put to get this done. I am not good in VB so please tell me the exact steps. thanks for all sdn help
    formula not working
    =IF((E15=V15),0,IF((F15=W15),1,IF((G15=X15),2,IF((H15=Y15),3,IF((I15=Z15),4,IF((J15=AA15),5,IF((K15=AB15),6,7)))))))
    Thanks
    Soniya

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • Outlook.mailitem - diferent replace result when not displayed

    Hello everybody!
    I am developing an app to generate personalized emails from Excel file and .msg template.
    In the template, I insert "variables" like this: ^name^,
    which means that is is a placeholder for values from "name" column in source
    Excel file.
    this template is saved as .msg file on local disc and used as an argument in.CreateItemFromTemplate()
    after loading the template , it cycles from all the columns and rows of the Excel file and replaces the inserted
    variables:
    loading excel:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim fpath As String
    OpenFileDialog1.ShowDialog()
    fpath = OpenFileDialog1.FileName
    workbook = APP.Workbooks.Open(fpath)
    worksheet = APP.ActiveSheet
    Dim CellData As String
    Dim LastCol As Long
    Dim LastRow As Long
    Dim bunka As String
    LastCol = workbook.ActiveSheet.UsedRange.Columns.Count
    LastRow = workbook.ActiveSheet.UsedRange.Rows.Count
    objData = worksheet
    DataGridView1.ColumnCount = 1
    DataGridView1.Columns(0).Name = "Column"
    DataGridView1.Columns(0).Width = 130
    For i = 1 To LastCol
    bunka = worksheet.Cells(1, i).Value
    Combo_To.Items.Add(bunka)
    Combo_SaveName.Items.Add(bunka)
    Dim row As String() = New String() {bunka}
    DataGridView1.Rows.Add(row)
    Next
    Dim btn As New DataGridViewButtonColumn()
    DataGridView1.Columns.Add(btn)
    btn.HeaderText = "Use"
    btn.Text = "+"
    btn.Name = "btn"
    btn.Width = 50
    btn.UseColumnTextForButtonValue = True
    btn.CellTemplate.Style.BackColor = System.Drawing.Color.Green
    Combo_To.SelectedIndex = 1
    End Sub
    after that the DataGridView1 loosk like this:
    the "+" buttons are used to insert text variables into the mail body.
    code for inserting is, this works fine:
    Private Sub grdData_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
    Dim colName As String = DataGridView1.Columns(e.ColumnIndex).Name
    If e.RowIndex < 0 Then Exit Sub
    If colName = "btn" Then
    Dim variable As String
    variable = "^" & DataGridView1.Item(0, e.RowIndex).Value & "^"
    My.Computer.Clipboard.SetText(variable)
    objOutlookMsgY.GetInspector().Activate()
    SendKeys.Send("^v") 'Paste
    End If
    End Sub
    code for generating email from template:
    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    Dim sessionName As String
    Dim docas As Object
    Dim variable As String
    Dim dosazeno As String
    Dim SavePath As String
    Dim objOutlookMsgTEMP As Outlook.MailItem
    worksheet = APP.ActiveSheet
    objOutlookMsgY.SaveAs("C:\temp_msg2.msg")
    clip = objOutlookMsgY.HTMLBody
    MsgBox("clip saved")
    sessionName = InputBox("Name this session:", "New Session", Today & "_")
    SavePath = RootFolder & "\" & sessionName & "\_Initial session"
    My.Computer.FileSystem.CreateDirectory(SavePath)
    For radek = 2 To workbook.ActiveSheet.UsedRange.Rows.Count
    ToolStripProgressBar1.Maximum = workbook.ActiveSheet.UsedRange.Rows.Count - 1
    objOutlookMsgTEMP = objOutlook.CreateItemFromTemplate("C:\temp_msg2.msg")
    ' objOutlookMsgTEMP.Display()
    For i = 1 To DataGridView1.RowCount
    variable = Convert.ToString("^" & worksheet.Cells(1, i).value & "^")
    dosazeno = Convert.ToString(worksheet.Cells(radek, i).value)
    'wait(50)
    Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
    objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, dosazeno)
    objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, dosazeno)
    'wait(50)
    objOutlookMsgTEMP.To = worksheet.Cells(radek, ToCol + 1).value
    Next
    objOutlookMsgTEMP.SendUsingAccount = accounts(Combo_From.SelectedIndex + 1)
    Dim objDoc As Microsoft.Office.Interop.Word.Document
    Dim objBkm As Microsoft.Office.Interop.Word.Bookmark
    'On Error Resume Next
    objDoc = objOutlookMsgTEMP.GetInspector.WordEditor
    objBkm = objDoc.Bookmarks("_MailAutoSig")
    If Not objBkm Is Nothing Then
    objBkm.Select()
    objDoc.Windows(1).Selection.Delete()
    End If
    objDoc = Nothing
    objBkm = Nothing
    objOutlookMsgTEMP.SaveAs(SavePath & "\" & worksheet.Cells(radek, Combo_SaveName.SelectedIndex + 1).value & ".msg")
    ' objOutlookMsgTEMP.Send()
    ToolStripProgressBar1.Value = radek - 1
    objOutlookMsgTEMP.Close(SaveMode:=Outlook.OlInspectorClose.olDiscard)
    Next
    End Sub
    for replacing is used this:
    .....objOutlookMsgTEMP.Display()
    objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, valueFromExcel).....
    or
    .....objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, valueFromExcel).....
    after replacing, the new message is saved as .msg or send
    the problem:
    everything works fine when the message is displayed while replacing. But when not displayed, only SOME variables
    are replaced. I don't really understand why there is such difference in the result and why only SOME are
    not replaced. I have tried changing the columns's names but found no connection between it and the result. when the message is displayed it takes like 10 times longer and makes the PC unusable.
    real example:
    the tamplate:
    ^jmeno^
    ^email^
    ^prij^
    ^jmeno3^
    ^sec code^
    result, message displayed:
    Jakub
    [email protected]
    Dxxx
    16
    266548
    result, message not displayed:
    ^jmeno^
    [email protected]
    ^prij^
    4
    449447
    I have also tried adding some Wait functions, didn't help. I would really appreciate if you could help me
    figure this out and explain why this happens. Thank you

    Please also copy the below two vars from the debugger window and paste here as it is.
    Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
    Also send us you message template, you can send only the section where the two non working vars exist.
    Fouad Roumieh

  • Urgent Save as button in BI Web application designer

    Hi All,
    I have a requirement where I am using button group web item for SAP standard command "Call Save DialogSave_as". In my clientsite I have web application with two tabs and more than two tabs. For web applications with two tabs save as button on top of tabs works fine for both drilldowns. I mean one save as button for both tab reports drilldown and save in portal functionality works fine. How can I use same scenario for web application more than two tabs.
    For example: I have two tabs in web apllication with two reports. The user drilldown on both of them and want to save drilldowns in portal by one click on button "save as", which works fine. But he want same functionality in web application with more than two tabs.
    Can anyone help me in this. I greatly appreciate your help. I think I need to write some Java script program for this, which I am not familiar with. If I need to write Java sciript can you send me code.
    Thanks
    Baba.

    Hi,
    I have just seen your reply. As per my understanding, you would like to provide an option "Personalization". In this case, you can give an option to the user as Tool Bar which consist of "CSV", "Variable Sele", "Excel", "Personalization", "Delete Personalization" etc Buttons.
    As soon as the use click on Personlization after Filters, drill down it gets saved until he delete personalization.
    To give this type of option, you can go with below code in your "tool bar" template,
    Button to "Personalization"
    A href="<SAP_BW_URL CMD='PERSONALIZE'>">  IMG style="WIDTH: 10px; HEIGHT: 10px"
    alt="Personalize Report" src="xyz.gif" border=0></A
    <!--
    Button to "Delete Personalization"
    -->
    A href="<SAP_BW_URL CMD='RESET_PERS'>"> IMG style="WIDTH: 10px; HEIGHT: 10x"
    alt="Delete Personalization" src="xyz.gif" border=0></A
    And, in main template check the below setting
    "Use Personalized template, If available"
    Hope this help you.
    Regards,
    -Vijay

Maybe you are looking for

  • Value sets and Report Parameters

    Hi these are my requirements i have developed report using scott where the parametes are dname empinfo (1)If i select Department 1o then in parameter empinfo should display the value only from department 10 (2) i have created a value set for report p

  • Untrusted server cert chain  - another one

    Hi We have an application communites with our partners via HTTPS. We , partners and us, purchase our server/client certificate from Verisign The partners send data to us thru W2k IIS which then forward the data to our Application Server (JRun). We se

  • ITunes Downgrade

    How do I downgrade from Itunes 6 to Itunes 5.0.1? I can't locate a download for older versions.

  • Upgrade from 4.6C to ECC-6 Points will be awarded.

    Dear Guys Can any body provide me documentation for the preparation of upgrade from 4.6C to ECC-6.We have done many modification in standard system and exits how can we upgrade those in ECC6. Thanks

  • Word 2013 Comparison Feature--incorrect marking of existing text

    I've got a user who is working with a client on a document.  The document has been sent back and forth between our office and the client several times.  My user tried to run a comparison on his last sent version against what the client returned.  Wor