Macros in Work Book

Hello Gurus,
i need some information on Macros,i have one report there i want to move "#" kefigure values to upper row, i want to write a macro in workbook to compress the rows,i.e the values in row with Rating type # should be written into the row with Rating type of some value. the row with rating type # should be deleted.
So please any one provide me MAcro Programme for this compressing row.
Thanks in Advance,
Raju

Hi Raju
The # can be excluded from teh report without writing a macro.
Go to the query change mode....go to rating type....restrict data.....select # from the left panel to right panel....right click and select exclude from selection....save the query...
All the data with # will get excluded.........
Cheers
Chanda

Similar Messages

  • Work book taking longer time to open

    Hi,
    We created a workbook and embedded one  input ready query in it.  The query when executed separately takes 1 minute to load.  But when the work book is opened for the same selections, it takes 3-5 mins. 
    There is no Macros written in the workbook and no functions are called while loading work book.
    What might be the reason for this.  Is there any way by which we can improve the performance?
    Please suggest.
    Thanks,
    Seetharaman

    Hi there,
    Open BEx Analyzer.
    Click on global settings (before opening the workbook) and mark the option "Repair workbook while running" (option available since BEx Analyzer support package 5 and above)
    Now open the workbook (it will still take the 3-5 minutes).
    Now save the workbook
    Remove the option you have just marked before ("Repair workbook while running").
    Close BEx Analyzer and test it again.
    Diogo.

  • Code to get the all Records in Work Book

    Hi,
    I have a Report to show on work book, Now I am used REFERENCE to get the data.
    In Work book i have used formula for one cell and i draged that to few rows(for example 100).
    Here my problem
    If i get below 100 records there is no problem, if it exceds 100 i won't get the records.
    some times I get in my result <b>REFF #</b>
    to solve this problems any macro code or any other solution?
    cause my report is dynamic report some times it give 1000 records some times 100, it should be automatically .
    i know dragging the cell poor quality of coding.
    any code which help my problem will be appreciated.
    Thanks
    Priya

    Hi Priya,
    I do not understand the problem.  Please show the formula you are using.
    Does the REF# problem occur when you first put the formula in the cells, or only after the query is refreshed?
    If the former, you have an Excel problem.  If the latter, the problem is that BW will delete the old query result table before it inserts the new query result table, and the REF# means that the reference cells were deleted.  In this case, the solution is simple and a simple macro will fix the problem for you.
    I can help you if I understand which problem you are having.
    - Pete

  • 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.

  • Work book migration problem : error in graph

    Hi all,
    I have a work book ,created in 3.x ...now we are on 7.0 So when iam migrating i got error .
    I have resolved  other errors..but one error is remained , problem with the graph....
    on X axis with values it is showing header row also..how can i avoid header row...? to not display in graph....
    As data table  source controlled by BI  so ia mnotable to maintain range for graph....
    Problem is when it is with out scalling factors it is displaying correctly in graph also..
    When iam selecting option to display scalling factor it is showing header row also in graph... coz of that graph was showing wrong data...
    cal day    Quantity
    above is with out scalling factor display..everything correct
    blank     Quantity
    cal day       KG
    When iam selecting scalling factor sys will add one more row to display... this is the problem sys did not set automaticaly to consider or to leave first 2 rows...
    How can resolve...? In 3.X it is working fine...... (There is no macro )
    Thanks
    BK
    Edited by: BK BI on Jun 8, 2010 8:56 AM

    Hi,
    Go to the workbook in development system. Find out the technical name of the workbook ( in query designer you wil find in properties).
    Copy it and go to the production system. Assign it to the required role you want. It will be visible in the perticular role in production.
    I would still suggest if possible transport the role from dev to prod. (to keep all systems in line with each other)
    Hope this helps.
    Regards,
    Viren

  • Migration of queries and work books to BI7

    Hi,
    I would like to Migrate all the existing 3.X queries and work books to BI7.0 in Development box.
    Is it possible to capture these changes into a transport request, if possible how do I capture.
    Please guide.
    Regards,
    Sharma. IVN

    Sharma,
    Its better to collect all queries of a Infoprovider in a single request as u can avoid locking of dependent objects in different requests..Migrating workbooks would be tricky if u have any macros.Have a look at below links on migrating front-end objects
    SAP NetWeaver 2004s BI - Define your Publishing Strategy Part 2
    SAP NetWeaver 2004s BI - Define your Publishing Strategy Part 1
    Migrating Advanced BEx Analyzer Workbooks - What VBA is Supported?
    Chandu

  • Work book error

    hi,
    when i am trying to change query global def after opening the work book in BEx getting a error message 'failed to load control 'rich textbox' fromrichtx32.ocx. your version of richtx32.ocx may be oudated. make sure you are using the version of the control that was provided with your application"
    thanks in advance

    Hello Krishna,
    Goto BEX Analyzer -> Bex Explorer -> Installation check.
    This will this will run a macro to check the Front End GUI installation, Excel  and displays various informations.
    Details marked in Yellow are warning and Red are errors.
    Warning, sometime can be ignored but not errors.
    You can see the following OSS Notes as well
    Note 575066 - Missing files "msvcp60.dll", "msvbvm50.dll", "msvbvm60.dll"
    Note 956143 - Warnings displayed by an installation check
    Thanks
    Chandran

  • Link queries dynamically in a work book

    Hi,
    I have a workbook which has two queries (both of type transaction data), embedded. Both of them have a document number which is unique and could exist in both the queries. I want to link the two queries and in my third sheet in the work book I want to print Key figure values of both the queries if two key characteristics ex: doc number and date are the same. Please let me know if there is any thing to be done in the Bex analyzer side other than a "Vlookup" in excel.
    Thanks

    You can use excel macros to achieve this.

  • How to Creat Work book

    Hi Bw guru's,
    please explain how to create work book using querries.
    thanks in advice.
    kumar.

    hi kumar...chk these..
    Workbooks into which queries are inserted are no different in appearance than other Excel workbooks. They can be saved as files, copied, sent and (using Excel functions) edited however you like and even supplemented with other data.
    Ad-hoc query is the one that the user/developer would want to create/use for researching/validating something. This may be to validate the data also. This differs from Production query as it would not be used everyday and would be just be used for that moment.
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/89883989676778e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    http://searchsap.techtarget.com/searchSAP/downloads/chapter-august.pdf
    workbook
    1) A workbook delivers the interface for your query.
    2) In a workbook, you can embed design items and customized macros, and you can format its appearance for a highly customized look and feel. The end-user will typically open a workbook and navigate within it execute its queries and see current data.
    3) A query ad ho in WAD means that in your Web application, you want to be able to display data in a table or graphic, similar to in the Web Analyzer.
    You can do this by using the Dropdown Box Web item and linking the commands for showing and hiding Web items to it.
    hope it helps..

  • The work book does not exist in the document store

    Hi Forum,
    Has anyone come accross this error "The work book does not exist in the document store" I just changed the description of my Work book in Development and saved. Now it wont open. The error message is "The work book does not exist in the document store". I already have this work book in Q. So I cannot create another one with a different tech. name. Someone please help

    Youcan no longer display a workbook. You receive an error message when opening: <Internal error>: 1201 document storage
    Cause and prerequisites
    In very rare cases, when you store a workbook, you might not be able to open it again.
    Solution
    Function module BDS_PHIOS_GET_RIGHT has to be changed so that the last available version of the Workbooks can be displayed.

  • Saving a query in Work book

    hi experts,
    I have made the changes in query and the changes is not reflecting in the work book of that query.. can u give solution for this....
    regards,
    preety

    Dear Preety,
    After saving the Query SAVE it as a EXISTING WORKBOOK.
    Regards,
    Ramkumar.

  • BW Work Book as an iView in Portal

    We are on BW 3.5 and EP 6.0, using BEx Application Designer i am abel to create work book which is based on a query, i can create an iview for EP6.0 in BW System.
    But how can i see this work bok in SAP Enterprise Portal.
    there are fre requisites i.e establishing sso between BW and SP, setting JCO connections some 13 steps i did all these.
    how we can see an iView which creted in BW,display it in EP.
    is there any steps?
    rrmxp asks for WBID, if i enter an WBID it opens an Excel.

    Hello
    How r u ?
    Our server is in another country, so they have temporarily stopped the server. They are saying that it will take some time for starting up one of the servers. Now we are working on another project. so i have to wait till they start the other one.
    Hey do u have yahoo or msn or google messenger ? coz this Topic keeps on going back and back man. If u have add my ID
    [email protected]
    [email protected]
    [email protected]
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • How to display the Overall result value at the top of work book

    Hi,
      How can i display the value of  Overall result(Sum of the Total) column at the top of the work book in Text field.
    Thanks
    Sreadhar

    Go to Query Global properties in Query designer and you can find a setting to show result rows on top. This setting will show overall result as first row in the report. But I don't think you can show it in Text field in WB.

  • I NEED ADOBE WORK BOOKS FOR CS5 TRAINING CLASSROOM IN A BOOK

    I am studying Adobe CS5. I need work books for ActionScriptt 3.0 for Adobe Professional CS5,Adobe Flash Professional,Adobe After Effects CS5,Adobe Photoshop CS5,Adobe INDesign, CS5, Adobe Flash Catalyst CS5,  Adobe Fireworks CS5,Adobe Illustrator CS5,,Adobe Dreamweaver CS5, Adobe Premiere Pro CS5 I have completed all the Adobe Training Manuals. I need work books for more training. Where can I Buy The Books?
    [email protected]

    You can buy Classroom in a Book for CS5 products at Adobe Press.
    Find some examples here:
    http://www.adobepress.com/search/index.asp?page=1&query=cs5&showResults=Store&searchagain= Search+Again&subject=Adobe+Aft…

  • How to create the default empty work book with company logo and address????

    Hi Guru's
    I am working in ECC5.0 (BW 3.5), i wann create the default empty work book with company logo and company address. so when i am executing any query's that should open in the default empty work book.
    greatly appreciated your help. will assign pt's for sure.
    thanks and regards
    Mohan

    Hi Mohan,
      Report designer is used in BI 7.It is a seperate application used for formatting
    the report.
    For BW3.5,go through this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/33/746e393cf65c1ae10000000a114084/frameset.htm
    This would help you
    Regards,
    Senoy

Maybe you are looking for

  • Error occured when installing SAP J2EE engine on windows xp

    hi guys, I received the following error while installing the sap j2ee engine. Program is starting... Please wait! Starting standalone GUI using:   SAPinst port  : 21200   HTTP port     : 4239   GUI style     : wizard   GUI mode      : normal   comman

  • SVG connector lines missing when opened in Illustrator CS5

    It has taken a while to jiggle SVG files saved in Inkscape and get them to open in Illustrator CS5. The files are basically a flow chart with some text and connecting lines between the rectangular boxes. Now we are getting  text and rectangular boxes

  • I installed Canon software on my macpro laptop and it takes forever to startup and shut down

    Hello.  I recently got a Canon Rebel T3 and in order to download photos to my macbook pro I had to install their software.  Well, after installing it, it takes VERY long to shut down and start up my laptop.  Can someone help?  I already deleted the s

  • Warning message pops up everytime i open iTunes?

    Everytime i open iTunes this message keeps popping up. iTunes Setup Assistant: Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning so

  • How to do Conflict Resolution in Integration Directory - Urgent

    Hi,      We are having a problem when trying to change some objects in the integration directory.   Error :         "The following objects have previous versions that are no longer active. Reciever Determination urn:sap-com:document:sap:idoc:messages