on 12-27-2012 2:45 PM
Hi,
I am automating Opening a report through Bex analyzer using VBA macro.
I am facing issues while adding some values in the variable screen. In some blogs i had seen that this can be achieved by creating some range in the excel sheet
and calling this range through Bex built-in functions. Tried this approach but not able to as i am not aware of how to create a range.
Request you to let me know if any anyone has used VBA to add values in variable screen.
Thanks,
Farnaz
Hi Suman,
Thanks for the answer but my query was adding values in Variable screen of bex analyzer not saving a macro.
Regards,
Farnaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom,
Assuming you are aware of connecting to the Bex Report using Excel macro below are the Steps for adding value in the filter section of the report for "Business Unit" field.
Here strReportName is the variable name of Bex Report being launched.
Set rFnd = Selection.Find(What:="Business Unit", After:=ActiveCell, LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
Set ORange = Workbooks(strReportName & ".xls").Worksheets("Sheet1").Range("D" & CInt(rFnd.Row))
BExAnalyzer.SAPBEXsetFilterValue “MH000001” "0HIER_NODE", Orange
SAPBEXsetFilterValue syntax :
Hope this is helpfull.
Regards,
Farnaz
Hi Farnaz,
Can you share your entire code showing how to connect to BEx report using excel macro? I'm trying to convert my 3.x BEx workbook with macros to 7.4 BEx workbook but unable to get macros work even for BEx refresh. I'm specifically looking for how to connect to 7.4 BEx workbook via excel macro for refresh and setting variables. Any help is greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Farnaz,
Here you go,
How to set variables values via VBA.
http://scn.sap.com/thread/1306490
http://scn.sap.com/thread/1854040
http://scn.sap.com/thread/1853324
Hope it helps.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.