Can I precalculate a BEx query and email the results as an attachment?

We are on BW 3.5, currently pulling data from R/3 4.6C (but upgrading to ECC 6.0 in mid-July). I have been successful (once, once I was able to talk my email administrator into letting a  .js file through) in sending an email, but the results are in HTML in the body of the email.  I need to send the results as an Excel spreadsheet attachment.  From all of the SAP documentation I've read, it seems this should be possible, but I haven't been able to make it happen. It seems to ignore the setting in the Broadcast scheduling screen. I've tried it with both "Execute" and time-based scheduling.
Many thanks for any documentation, pointers, or magic tricks.

Hi,
This can be done via Information Broadcasting.
Pls check
http://help.sap.com/saphelp_nw04/helpdata/en/a5/359840dfa5a160e10000000a1550b0/frameset.htm
For Bi 7
http://help.sap.com/saphelp_nw70/helpdata/en/a5/359840dfa5a160e10000000a1550b0/frameset.htm
Eddy
PS. Reward useful answers and earn points yourself

Similar Messages

  • IF ELSE Statement in BEx Query based on the results

    Hi experts,
    I want to realize the following IF/ELSE statement in a BEx Query in respect to the result values
    If the result of KF1 equals 0, than set the KF2 to 0, Else (KF1 NE 0) show the value of KF2
    Background: I want to report the order backlog. In the example above we have an incoming order value of 23.700,80 EUR in periode 12.2013 and an turnover of 22.370,80 EUR in periode 01.2014. The order backlog in ST (KF1) is 1 ST (12.2013) - 1 ST (01.2014) = 0 ST. The order backlog in EUR (KF2) is 23.700,80 EUR (12.2013) - 22.370,80 EUR (01.2014) = 1.330 EUR. The Order and Invoice is finished, but we have an positive order backlog in EUR (reason: less turnover as incoming order).
    For this case I want to realize the IF/Else statement to check if the oder backlog in ST = 0, if yes, than set the order backlog in EUR also to 0.
    Any best practices?
    Many thanks and best regards,
    Michael

    Hi Suman,
    thanks aigain for your reply!
    I have tried your proposal before you have posted it.
    In my special case the following if/else statement works successfully:
    CKF = calculated key figure
    Formula1 = (CKF1 == 0) * 0 + (CKF1 <> 0) * CKF2
    In my case the CKF2 is the result value from "Incoming Order value" - "Turnover"
    So I had to define a separate Formula (1:1 equals to CKF2) and then I was able to set "*CKF2" in the statement.
    The statement CKF2 = (CKF1 == 0) * 0 + CKF2 is not possible (because it´s not possible to calculate from CKF2 itself).
    Now it works
    Best regards,
    Michael

  • How to auto save output with date added to file name, and email the results?

    Hi,
    We found a script to capture disk space usage, that automatically places the results into an Excel file. We would like the script to autosave this file to a specific directroy with the date ran as part of teh file name. We would then like these results to
    be emailed to us if possible. (also if possible to highlight cell in red that is 5% OR less available disk space would be great)
    Here is what we have:
    $erroractionpreference = “SilentlyContinue”
    $a = New-Object -comobject Excel.Application
    $a.visible = $True
    $b = $a.Workbooks.Add()
    $c = $b.Worksheets.Item(1)
    $c.Cells.Item(1,1) = “Machine Name”
    $c.Cells.Item(1,2) = “Drive”
    $c.Cells.Item(1,3) = “Total size (GB)”
    $c.Cells.Item(1,4) = “Free Space (GB)”
    $c.Cells.Item(1,5) = “Free Space (%)”
    $c.cells.item(1,6) = "Name "
    $d = $c.UsedRange
    $d.Interior.ColorIndex = 19
    $d.Font.ColorIndex = 11
    $d.Font.Bold = $True
    $d.EntireColumn.AutoFit()
    $intRow = 2
    $colComputers = get-content "C:\Servers.txt"
    foreach ($strComputer in $colComputers)
    $colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
    foreach ($objdisk in $colDisks)
    $c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
    $c.Cells.Item($intRow, 2) = $objDisk.DeviceID
    $c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
    $c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
    $c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
    $c.cells.item($introw, 6) = $objdisk.volumename
    $intRow = $intRow + 1
    $d.EntireColumn.AutoFit()
    cls
    Thank You

    Hi Phorbin1128,
    The script below amy be helpful for you to save the Excel file with date in filename, and send email with the attachment of the excel report.
    $erroractionpreference = “SilentlyContinue”
    $a = New-Object -comobject Excel.Application
    $a.visible = $True
    $b = $a.Workbooks.Add()
    $c = $b.Worksheets.Item(1)
    $c.Cells.Item(1,1) = “Machine Name”
    $c.Cells.Item(1,2) = “Drive”
    $c.Cells.Item(1,3) = “Total size (GB)”
    $c.Cells.Item(1,4) = “Free Space (GB)”
    $c.Cells.Item(1,5) = “Free Space (%)”
    $c.cells.item(1,6) = "Name "
    $d = $c.UsedRange
    $d.Interior.ColorIndex = 19
    $d.Font.ColorIndex = 11
    $d.Font.Bold = $True
    $d.EntireColumn.AutoFit()
    $intRow = 2
    $colComputers = get-content "C:\Servers.txt"
    foreach ($strComputer in $colComputers)
    $colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
    foreach ($objdisk in $colDisks)
    $c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
    $c.Cells.Item($intRow, 2) = $objDisk.DeviceID
    $c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
    $c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
    $c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
    $c.cells.item($introw, 6) = $objdisk.volumename
    $intRow = $intRow + 1
    $d.EntireColumn.AutoFit()
    $date=Get-Date -f yyyy-MM-dd
    $filename = "D:\test\"+$date+".xlsx"
    $b.SaveAs($filename)
    $a.Quit()
    Send-MailMessage -SmtpServer xxxxxxxxxx -To [email protected] -From [email protected] -Subject "test mail" -Body "file name is: $new_file" -attachment $filename
    For more detailed information about the cmdlet Send-MailMessage, please refer to this article:
    Send-MailMessage
    I hope this helps.

  • Can you create a test online and get the results filter in the report tab?

    Im brand new to this software and i had a big concern about it.
    This is a great tool to create surveys and forms to fill out but i was wondering if you can create a quiz.
    By a quiz i mean that instead of sending me back the data the user click in the multiple choice is it
    possible for me to get instead if they got it right or wrong.
    I want to retun if they got it right a boolean variable (true or false)
         logic ex)
         if (answer == true)
             return "correct"
         else
              return" "incorrect"

    Hi;
    You can certainly create a Quiz using FormsCentral but there is nothing built in to "grade" the quiz and no integration with any grading systems like flubaroo.
    You might be able to use "Formulas" on the "View Response" tab to identify correct/incorrect answers. 
    This describes a bit about how to use Formulas (they can be done in a column as well as a row): http://acrobatusers.com/tutorials/how-to-work-with-formulas-in-formscentral
    This is a list of the forumulas available in FormsCentral: http://helpx.adobe.com/acrobat-com/formscentral/help/formula-syntax-built-in-functions.htm l
    Thanks,
    Josh

  • How to divide the totalorderprice in 1st query with totalorders in 2nd query and save the result in new column

    SELECT o.OrderID,SUM((od.UnitPrice * od.Quantity) - (od.Discount/100))+ o.Freight AS TotalOrderPrice
     FROM [Order Details] as od join Orders as o on o.OrderID=od.OrderID
     GROUP BY o.OrderID, o.Freight
    select distinct o.employeeid, count(o.OrderID)as totalorders from Orders o group by o.EmployeeID

    As suggested above, you need a common key for JOINing the queries (CTE-s):
    WITH CTE1 AS
    (select distinct o.employeeid, count(o.OrderID)as totalorders from Orders o group by o.EmployeeID)
    CTE2 AS (SELECT o.OrderID, SUM((od.UnitPrice * od.Quantity) - (od.Discount/100))+ o.Freight AS TotalOrderPrice
    FROM [Order Details] as od join Orders as o on o.OrderID=od.OrderID
    GROUP BY o.OrderID, o.Freight)
    SELECT
    FROM CTE1 INNER JOIN CTE2 .....
    CTE example: http://www.sqlusa.com/bestpractices2005/cte/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Can't modify a Bex query, it is tied to a released transport

    Hello BW expert,
    I could not change a existing Bex query. It is always tied to a released transport.
    I have tested I can create a new BEx query and transport it to QA without errors.
    The issue is when I opened an existing query, it has a error.
    Bex transport request xxxxx is not available or not suitable.
    double click the errors, below is the details.
    No request has been set up as the standard transport request for BEx objects.
    The (set up) request 'DB2K901272' (for the package '' ) has already been released.
    The (set up) request 'DB2K901272' (for the package '' ) is not of the type 'transportable change request'.
    I have released transport 901272  before opening the query, I don’t know why this query is still tied to it.
    I tried to create a new BEx transport (DB2K901277) and opened the query again, but an error is still there.
    Third, I tried to collect all query elements for the query in the transport connection, and  put them in a standard transport, then I opened the query, but it is still tied to the same released transport.
    I never see an error like this before. Is there something we could change in the setting so the query is always in changeable mode?
    Thanks in advance!
    Jun

    Hello Vinod,
    I tried, still have the same issue. 
    I collect the query by query elment, select all the elements and the query in the transport connection, then click the the BEx transport. I see a Bex transport created, but no elements are included in the transport, it is a empty transport request. could this be the issue?
    Thank you very much!
    Jun

  • BW Bex query and Webi question

    Hi All.
    Just a quick question on Bex queries. We are selecting a Bex query as a source for universe. However on the webi side we only want to see a subset of the data.
    1) The question is Would this rerun the entire BEX query on the BW side ? Or is there a better way to design the universe ?
    2) Also are there any best practices on how to desing Webi reports from BW BEX queries and also Infocubes etc ?
    Thanks in advance.

    Hi puneet,
    The WebI builds a query on the BEx results. The query is related only to those items used in the WebI report. However, the BEx query must have the results in it, as the WebI does not execute it. I am not aware of a best practices document.
    Regards
    Alan

  • Function Module to Execute BEx Query and Save as work book.

    Hi
    I have a requirement for executing the Query after the data is loaded into the cube and save as Workbook and emailing to the user. Is there any Function module to Execute the Query and saving as Work book? . Please suggest me the way how to approach the problem.
    Thanks for your help in advance.

    Hi,
    It is possible to execute the Query and send the result as workbook vial email to the user.
    For that use should use Information Broadcaster.
    Steps:
    1. Goto information broadcaster.
    2. Choose object type as "Query"
    3.Click create new setting.
    4. Give description and choose distribution type as "Broadcast E-mail"
    5.Choose output format "XML(MS Excel)
    6.In recipient tab Give valid e-mail addres which you want to send.
    7.Save it. and give technical name
    8.Click schedule.
    9.choose "Execution with Data Change in the InfoProvider " correspondig infoprovider will be shown (check the check box)
    10. that's it. whenever data loaded in your infocube, it will be automatically executed and send to user mail.
    <removed> if u want more information let me know.
    Regards,
    Senthil Kumar.P

  • Using Powershell Script Run simple query in MS Access 2007 and export the results of query to Excel

    Hi Experts,
    I have a Access 2007 DB file and 2 Big tables inside that (bigger than the size that can be easily handled by MS Excel 2007).
    My requirement is automate using powershell scripts the below things.
    1. Create a SQL query in Access DB and save that in access DB
    2. Run the saved query and export the result in excel sheet where I can create the charts and Pivots. Thanks in advance
    Prajesh

    Do you have to use the Access query, couldn't you just recreate the query in Powershell?  Here's a link with good info that references an existing script for querying an Access database:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script.aspx
    Once you have your dataset you can pipe it to
    Export-Csv -NoType c:\pathtofile\output.csv

  • IR scheduling and exporting the results to an output directory

    Hello,
    I am trying to schedule an IR job and have it to export the data to a network output folder. I am able to add the output folder and also i verified that i do have access to that folder. But, when i run this job it fails to put the file in that folder. But, the same job if scheduled to email the results as an attachment it works.
    What other settings should i be using to get this to work? Or Am i missing any data.
    We are on Hyperion 9.3.1 and it is on windows 2003.
    Thanks
    srikanth

    Check to make sure the user who is running the job service has read/write permissions to the network folder.

  • How can i transfer all my datas and email form old Mac G5 to new iMac ?

    How can i transfer all my datas and email form old Mac G5 to new iMac ?

    Generally Mugration Assistant will suffice importing all Data ito a new user, but you can manually import it...
    Users/YourUserName/Library/Mail
    Users/YourUserName/Library/Mail Downloads
    (Could be a different folder here if you chose such in Mail Prefs)

  • Can I buy an iTunes voucher and get the code sent straight to my email?

    Can I buy an iTunes voucher and get the code sent straight to my email?

    If the iTunes Store sells gift certificates in your country, yes, but you'll need to provide a credit card issued in that country to make the purchase.
    Regards.

  • Can I directly access BEX query from web version

    Hi expert,
            Can I directly access BEX query from web version ? I know we can access bex query from webi rich client.
    Many Thanks,

    Hi,
    Yes, you can access BEx query via BICS connection (OLAP Connection).
    In SAP BusinessObjects BI 4.0 you have multiple options to connect your SAP BusinessObjects BI client to your SAP NetWeaver BW system.
    Direct BI Consumer Services (BICS)
    SAP BusinessObjects BI 4.x Relational Universe (UNX)
    SAP BusinessObjects XI 3.1 OLAP Universe (UNV) used in a SAP BusinessObjects BI 4 environment
    Web Intelligence
    Yes
    Yes
    Yes
    SAP BusinessObjects Dashboards
    Yes
    Yes
    No
    Analysis, edition for Microsoft Office
    Yes
    No
    No
    Analysis, edition for OLAP
    Yes
    No
    No
    SAP BusinessObjects Explorer
    No
    Yes
    No
    SAP BusinessObjects Design Studio
    Yes
    No
    No
    Visual Intelligence
    No
    Yes (1)
    No
    Predictive Analysis
    No
    Yes (1)
    No
    Design Studio
    Yes
    No
    No

  • Future of BEx Query and BEx Query Designer

    Folks, I understand SAP's future reporting tools is BO suite. All of us need to move to the new tools which are better or more reliable in 2010. Meanwhile our customers are reluctant to use BEx tools for any new development. Being on the techi side I dont see how BEx Query will be replaced by Voyager or Polestar or WebI or Crystal. I just need to report on my multiprovider without a universe layer. Have any of you experts come across documentation that layed out future of BEx tools explaining the end of support period? I have see roadmaps for tool availability but no dates for end of support.
    Thanks in advance.

    AFAIK,
    Bex Query designer and BEx query will continue... Polestar might be proposed as an alternative for BEx but then it is meant for ad-hoc analysis ... but BEx query and Query designer have specific query requirements also...
    Voyager etc will start coming in...

  • I need to know the user who has created/modified a SAP Bex Query and WAD

    Hi!
    I need to know the user who has created and modified a SAP Bex Query and SAP  Web Application Designer. Does it possible to know this information by a table or view?
    Best Regards
    Ramon Sanchez

    Hi,
    In BEx query, when you click "Queries" to open the query, the list of queries are displayed. Highlight the query, click on the "Properties On/Off' icon(right most on the top), you would see all the details.
    In WAD, before opening the template, click on "Properties On/Off'" icon to see the details.

Maybe you are looking for

  • Error while opening work item in Inbox sbwp for verifcaion of right invoice

    Hi, I am working on SAP workflow with IXOS. I faced  a problem in opening the workitem when it came into the inbox. In nomal scenario when i click on the workitem under workflow folder in my inbox, it opens the attached document in document viewer, i

  • Midi input is not working (..correctly)

    Midi input is shown, and all is working. But.. after some hits on my midi drums (guitar hero drumkit with wireless usb adapter and miditar hero software running) the sound in garage band stops until i choose another instrument . Input light is still

  • Loss of T key metadata function in v.3.1.3

    I use Aperture 3 as my main photo organizer. I also use a lot of keyboard short-cuts. When I upgraded from v. 3.1.2 to 3.1.3 I lost the functionality of the T key. The T key would bring up an abbreviated metadata dialog box whenever the mouse curser

  • Dell 948 printer won't work!

    I have a Dell 948 all in one printer and I tried plugging it in but OS X says there are no drivers at all for it. It's kind of disappointing because I just switched from a PC and was told that everything would just work with a mac but that does not s

  • Can you change the output resolution on appletv 2

    HAving issues seeing video on a runco 61 " plasma with vivx processor. Also using hdmi to dvi converter. I want to change from 720 p. Is it possible ? In the apple menu there is an option for hdmi out that wont change from auto.