Macro not working in BEx Analyzer (Refresh selection Screen)

Hi All,
We have migrated work book for 3.x to 7.x and work book having lot of macros calculated and using multiple quires in single work books for inpt selection screen written Macro same macro is not working after Migration to 7.x
7.X Macro code below..
Sub BW_Prod_Year_Summary()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E9")
End Sub
Sub BW_Prod_Year_Summary_Period()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G9")
End Sub
Sub BW_Query_for_YTD_and_Monthly_View()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J9")
End Sub
Sub BW_Prod_Perform_prev_month()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M9")
End Sub
Sub BW_Prod_Perform_prev_month_Detail()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P9")
End Sub
Sub BW_3_Months_Volume_Comparison()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("S9")
End Sub
Sub BW_Query_for_Current_RE()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E40")
End Sub
Sub BW_Query_for_Previous_RE()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G40")
End Sub
Sub BW_Query_for_Business_Plan_this_year()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J40")
End Sub
Sub BW_Query_for_Actuals_last_year()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M40")
End Sub
Sub BW_Query_for_Forecast_next_year()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P40")
End Sub
Sub BW_Query_for_Forecast_Accuracy()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("S40")
End Sub
Sub BW_PDR()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E132")
End Sub
Sub BW_SDR()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G132")
End Sub
Sub BW_TDQ()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J132")
End Sub
Sub BW_SSDR()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M132")
End Sub
Sub BW_DDR()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P132")
End Sub
Sub BW_Blocked_Stock()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E195")
End Sub
Sub BW_Age_of_Stock()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G195")
End Sub
Sub BW_Historical_WOS()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J195")
End Sub
Sub BW_Current_WOS()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M195")
End Sub
Sub BW_Current_WOS_Details()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P195")
End Sub
Sub BW_Historical_STO()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E243")
End Sub
Sub BW_Future_STO()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G243")
End Sub
Sub BW_Product_Groups()
Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J243")
End Sub
Please help me on this..!!
Thanks
Prakash

Aglukas,
Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
1) Run workbook, the query result display on the screen.
2) In Excel 2007, I click on Developer tab ->Macro.
3) Enter Macro name (Macro1) and click on Create button.
4) I have VB editor open with following:
Sub Macro1()
End Sub
5) So added the following code to Macro routine in VBA Module:
Sub Macro1()
With ThisWorkbook.Sheets("Sheet1")
Stop
.Activate
.Cells(15, 1).Interior.Color = RGB(220, 254, 250)
End With
End Sub
6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
When I run/refresh the workbook, I didn't get into debug mode at all!!!
What is wrong in above steps?
Please advice, thanks.

Similar Messages

  • Macro not working in BEx Analyzer

    Can you please explain why my Macro is not working?
    We're on BI 7 with Excel 2007. I have done the following:
    1) Open Workbook from BEx Analyzer and the result display on the worksheet. The was inserted in C10 and therefore, the result was display from C10 onwards.
    2) I have created a Macro with the following code:
    Sub Macro1()
    ' Macro1 Macro
        Range("C5").Select
        With Selection.Interior
            .Pattern = xlSolid
            .PatternColorIndex = xlAutomatic
            .Color = 65535
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
    End Sub
    3) When click to run the Macro manually, I can see the color of C5 is changed.
    4) Now I have include this Marcro in Workbook Setting ->Exits tab, Run Macro on Refresh. Here I enter my Marco name.
    5) In Workbook Setting ->General tab, I also set the Refresh Workbook on Open option.
    6) I have also set the Trust Center setting: select Trust access to the VBA project and Enable all macros.
    7) Then I save the Workbook.
    8) when I re-open the Workbook, the color of C5 is not change!!!
    Can you please help.

    Aglukas,
    Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
    1) Run workbook, the query result display on the screen.
    2) In Excel 2007, I click on Developer tab ->Macro.
    3) Enter Macro name (Macro1) and click on Create button.
    4) I have VB editor open with following:
    Sub Macro1()
    End Sub
    5) So added the following code to Macro routine in VBA Module:
    Sub Macro1()
    With ThisWorkbook.Sheets("Sheet1")
    Stop
    .Activate
    .Cells(15, 1).Interior.Color = RGB(220, 254, 250)
    End With
    End Sub
    6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
    When I run/refresh the workbook, I didn't get into debug mode at all!!!
    What is wrong in above steps?
    Please advice, thanks.

  • BEx Analyzer : missing Selection screen for NON- SAP_ALL User

    we have upgrade our BW from 3.1 to BI 7.0. Now we are testing and detect that Queries which are started by User who has user specific roles (not SAP_ALL like we as developer) this Selection Screen is missing. This leads to a complete selection of all data of the cube and this leads to very long runtime or auto logout.
    What is wrong in our configuration?
    Has anybody made the same experience ?
    Thank You, Frank HInzmann
    Schindler Informatik Ebikon (Switzerland)

    Frank,
    Any chance that somehow that user has set personalisation on all the variable values?
    Regards
    Gill

  • Working in BEx Analyzer but giving error dump in Web Analyzer

    Hello Experts,
    I have a BEx Query, that has couple of customer exits for initial filter selection, and some base KFs and conditions as part of definition. When I run this query in RSRT or in Bex it was running fine, and results showing up in 3 to 5 seconds hardly 10 seconds.
    but the same query throwing error in Portal / Web Analyzer.
    error contains;
    Error Summary : error processing the current request
    root cause: The initial exception that caused the request to fail was:
    java.lang.UnsupportedOperationException
    Messages: warning there is a condition on Plant and Material to suppress results.
    contest: under this heading many line of HTML code
    when I debug the query in RSRT, I found any issue, all the exits, and the query is quite OK.
    does anyone has any idea, whats going wrong?
    we cannot suspect the portal / Java patches or anything, Because we have other queries running good.
    could someone give me some idea..how to go through this portal/web related errors.?
    Appreciate your time and help

    Thanks for your help.
    This issue was caused by "Bad programming in Customer Exit". Exit is trying to give too many Single values as selection to certain batch characteristics plus some are redundant. So code logic modified to fetch distinct values hence problem solved.
    it worked in BEx analyzer but not in Web is just because of its limitations. As I said there is no syntax errors in the exit rather bad logic.
    Thanks Again

  • The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

  • WinHelp, Windows 8 and Ultrabook - macros not working

    Our products are generated for WinHelp 2000 using RH9 for Word
    The user has symptoms typical of macros not working. This has normally been caused by the user not properly doing the step described in the Knowledgebase article at http://support.microsoft.com/kb/917607 regarding " How to enable macros on a single computer after you install the WinHlp32.exe"
    I have updated a machine to Windows 8, performed the Knowledgebase article items and our products work fine. I have also verified that the user's machine has the correct registry settings, so it looks like Windows 8 is not the culprit. That leaves the Ultrabook
    This combination of Windows 8 and Ultrabook is quite new and I am hoping someone using WinHelp 2000 has already run into it.
    Please let me know if so.
    Thanks

    David
    On rereading this, I am not sure I follow.
    You say "I have updated a machine to Windows 8, performed the Knowledgebase article items and our products work fine."
    So on your machine it is OK but not on that of a user who has an Ultrabook, is that the case? If so, I'm not sure how to help as it is machine specific. Are you 100% sure they downloaded the right viewer and installed it with admin rights?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    There are several possible causes for the Black Screen issue
    *1. Permissions in the Library* : Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    *2. Minor Database corruption*: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    *3. A Damaged Photo*: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    *4. A corrupted iPhoto Cache*: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    *5. A corrupted preference file*: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Regards
    TD

  • Drop-down menu not working on palettes when on second screen.

    Running OS X 10.10.2 on a Macbook Pro with a second screen. The applications are displayed on a large 24 inch monitor and palettes are on the built-in laptop screen. Often, but not always, the drop-down menu on the palettes will not work when on the built-in screen. If the palette is dragged to the larger monitor it works fine. Sometimes it works appropriately and there is no telling when it will work or not work. When you click on the drop-drown icon it highlights but no menu appears. The happens with CC 2014 Illustrator, InDesign and Photoshop.

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • BEx web report selection screen entries retain when closing and opening the report again

    Hello all,
    please help me in the below query.
    Till last month the entries we made in BEx web report selection screen are retained in the selection screen even when we close the web report and open it again from portal without logging off. But recently this functionality is missing and the entries in selection screen are not remembered when we close and open the same report again. It is a good feature for the users. Have you come across this issue?

    No...I think i can reframe the question very clearly......For ex:  we are opening a Bex Web report...so initally we would be prompted by the variable selection screen...in which we have to give the entries(Values) for those variables like Cal month, Sales org, Company code, etc.....Later on the report will get open based on the values we have given......
    Now if we close the particular report without logging off then if i try to open the same report that selected values are missing.....earlier it used to remember the values we have given until we log off....But now that functionality is missing....It was very useful feature.....Can you please tel me what can be done to resolve this??
    I hope the explanation would be clear now.

  • TS3694 I performed an iOS 7 software update on my iPhone yesterday, and now the phone is not working at all. The iPhone screen shows to connect to iTunes to restore. I've have done this, and still the iPhone is not working. What going on?

    I performed an iOS 7 software update on my iPhone yesterday, and now the phone is not working at all. The iPhone screen shows to connect to iTunes to restore. I've have done this, and still the iPhone is not working. What going on?

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • Why is my text messaging app is not working at all, is a blank screen? Help!!!

    My text messaging app is not working at all is a blank screen when I open it! Help!!!

    Abdussalam.A,
    you mentioned that Terminal does not work at all for your MacBook Pro. What currently happens when you run Terminal? In what way does it not work?

  • While updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    while updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    Disconnect the iPad, do a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is 'appsolutely' safe!, reconnect and follow the prompts.
    If that does not work then see here http://support.apple.com/kb/HT1808

  • If I do NOT use any event, except AT SELECTION SCREEN, Do I get any issues?

    Hi Experts,
    Pls. let me know that, If I do NOT use any event, except AT SELECTION SCREEN, Do I/prog. get any issues? (am also using AT SELECTION SCREEN OUTPUT for list box preperation).
    For some reason(execution of the report prog. with ENTER button), am using ONLY these 2 events.
    For full detials, pls. see my other thread with title,
    Is it possible to execute a REPORT prog. with pressing of ENTER button?
    thanq

    Hi
    srinivas see this program
    i am executing this program with out any event it is not showing any error but not giving output
    when i put start-of-selection then it is showing output
    *& Report  ZNNR_REPORT33
    REPORT  ZNNR_REPORT33 NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X' user-command uc1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    ***********SCREEN MODIFICATIONS*******************
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF R1 EQ 'X' AND SCREEN-GROUP1 EQ 'S2'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
        IF R2 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ********END OF SCREEN MODIFICATIONS*****************
    ***************SCREEN VALIDATIONS *****************
    at selection-screen.
      SELECT SINGLE *
               FROM EKKO
               INTO EKKO
               WHERE EBELN IN S_EBELN.
      IF SY-SUBRC <> 0.
        SET CURSOR FIELD 'S_EBELN-LOW'.
        MESSAGE E999 WITH TEXT-005.
        clear S_ebeln-low.
      ENDIF.
    ********end of screen validation*****************
      IF R1 EQ 'X'.
    *ULINE AT /1(48).
        WRITE : SY-VLINE ,2 'MATERIAL NUMBER',
                21 SY-VLINE , 22 'PLANT',
                27 SY-VLINE , 28 'STATUS',
                43 SY-VLINE , 44 'GRUP', 48 SY-VLINE.
        ULINE AT /1(48).
      ENDIF.
      IF R2 EQ 'X'.
        WRITE : SY-VLINE , 2 'PO NUMBER',
               12 SY-VLINE, 13 'ITEM',
               18 SY-VLINE,19 'MATERIAL NUMBER',
               37 SY-VLINE, 38 'PLANT',
               44 SY-VLINE, 45 'GRUP',
               49 SY-VLINE.
        ULINE AT /1(50).
      ENDIF.
    start-of-selection.
    *set pf-status '100'.
      IF R1 EQ 'X'.
        SELECT MATNR
               WERKS
               PSTAT
               EKGRP
           FROM MARC
           INTO TABLE IT_PLANT
           WHERE WERKS = P_WERKS.
        LOOP AT IT_PLANT.
          WRITE : SY-VLINE , 2 IT_PLANT-MATNR COLOR COL_KEY,
                 21 SY-VLINE , 22  IT_PLANT-WERKS COLOR COL_KEY,
                 27 SY-VLINE ,28 IT_PLANT-PSTAT COLOR COL_NORMAL,
                 43 SY-VLINE ,44 IT_PLANT-EKGRP COLOR COL_NORMAL.
        ENDLOOP.
      ENDIF.
      IF R2 EQ 'X'.
        SELECT EBELN EBELP MATNR WERKS LGORT
               FROM EKPO
               INTO TABLE IT_PONO
               WHERE EBELN IN S_EBELN.
        LOOP AT IT_PONO.
          WRITE : SY-VLINE , 2 IT_PONO-EBELN COLOR COL_KEY,
                 12 SY-VLINE , 13 IT_PONO-EBELP COLOR COL_KEY,
                 18 SY-VLINE , 19 IT_PONO-MATNR COLOR COL_NORMAL,
                 37 SY-VLINE , 38 IT_PONO-WERKS COLOR COL_NORMAL,
                 44 SY-VLINE , 45 IT_PONO-LGORT COLOR COL_NORMAL, 49 SY-VLINE..
        ENDLOOP.
      ENDIF.
      ULINE AT /1(50).
      WRITE :/10 'PAGE NUMBER', SY-PAGNO, '/' ,SY-PAGNO.
      ULINE AT /1(50).
      WRITE :/10 'PAGE NUMBER', SY-PAGNO.

  • My iphones buttons are not working and it shows a black screen whith apple logo on it what should i do now?

    my iphones buttons are not working and it shows a black screen whith apple logo on it what should i do now?
    and i have to post sth importent on instagram tonight so its ergent please help....

    Greetings motahare,
    After reviewing your post, I have located an article that can help with iOS device issues. It contains a number of troubleshooting steps and helpful advice for the issue you are experiencing:
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Finger sensor not working and some time iphone 6 screen also hang/pause  for few seconds

    In my iphone6 finger sensor not working and some time iphone 6 screen also hang/pause  for few seconds.

    Try cleaning the sensor, remove all fingerprints from the settings, and the start over in recognizing prints. There are a number of things that make prints hard to read, sweat, lotion, dirty hands, etc.

Maybe you are looking for