SAPBEXgetResultRangeByID not available in VB macro

Hi,
I'm trying to create a VB macro in Excel. In help.sap.com I have seen I hace a set of functions I can use. Among them, I have the mentioned one.
In Sub SAPBEXonRefresh, I have put:
Dim q1 As Range
Dim q2 As Range
q1 = SAPBXgetResultRangeByID("SAPBEXq0001")
q2 = SAPBXgetResultRangeByID("SAPBEXq0002")
When I try to compile I get error Sub or Function not defined??
Do I have to put any declaration sentence or include module??
Thanks and regards.

Hi Oscar,
Two problems with your VB code. 
1.  When you want to use one of the BEx API functions, you need to reference the SAPBEX.xla add-in.
2.  When you want to assign a value to an OBJECT (a range is an object), you must use the key word "Set"
So, the format needs to be:
Set q1 = Run ("SAPBEX.xla!SAPBEXgetResultRangeByID", "SAPBEXq0001")
- Pete

Similar Messages

  • Livecache lock handler not available in APO

    Hello Experts,
    We are getting the error "Livecache lock handler not available" error when we are running planning jobs in SAP APO.
    We are using parallel processing profiles for DP background processing jobs (Macro calculations) and I am getting this error only when a job is run with PP profile.
    Below are the parameters of the parallel processing profiles:
    Application: DP background processing
    No of parallel processes: 2
    Block Size: 500
    The error message is written in the spool generated for the background job and the job fails. Eventually the process chain fails in which the job is included.
    Please provide some pointers if anyone has come across the same error.
    Regards,
    Raghu

    Hi JB,
    Thanks for the note, Basis check the solution in the note and system seems to have met the requirements.
    But one thing is likely to increase the MaxSQLLocks in the system as the demand of the locks is more than the availability. So basis is looking at this dimension to increase the number of locks in the system.
    Will update soon in case of any conclusion.
    Regards,
    Raghu

  • Livecache lock handler not available

    Hello Experts,
    We are getting the error "Livecache lock handler not available" error when we are running planning jobs in SAP APO.
    We are using parallel processing profiles for DP background processing jobs (Macro calculations) and I am getting this error only when a job is run with PP profile.
    Below are the parameters of the parallel processing profiles:
    Application: DP background processing
    No of parallel processes: 2
    Block Size: 500
    The error message is written in the spool generated for the background job and the job fails. Eventually the process chain fails in which the job is included.
    Please provide some pointers if anyone has come across the same error.
    Regards,
    Raghu

    Hi JB,
    Thanks for the note, Basis check the solution in the note and system seems to have met the requirements.
    But one thing is likely to increase the MaxSQLLocks in the system as the demand of the locks is more than the availability. So basis is looking at this dimension to increase the number of locks in the system.
    Will update soon in case of any conclusion.
    Regards,
    Raghu

  • Could not load an object because it is not available on this machine

    Have been trying to use the BI Publisher Add-in in Word 2010 on Windows 7 64 bit. The problem is that BI Publisher appears as an Add-in but when I try to log in a lot of error message appers " Could not load an object because it is not available on this machine". The next error is ' The macro cannot be found or has been disabled because of your Macro settings'.
    I have followed others on this forum with a similar issue and it appears that there may not be a solution. My macro settings are set to allow all. I tried removing and renaming the EXD files and still doesnt work.
    On the same machine I have installed add-ons of Publisher 11g, this could be a problem???
    Help meeeee.

    Hi
    I would check out other posting - Getting BI Publisher to work after down grade from Word 2010 to Word 2007
    The problem is cached EXD files.
    1. Close Word
    2. Do a search on C drive *.EXD (include hidden files)
    3. Rename them to .BAK
    4. Go back into word and you should be able to Load Data
    Removing/renaming the EXD files in the following folders resolved the issue for me.
    C:\Documents and Settings\[user]\Application Data\Microsoft\Forms
    C:\Documents and Settings\[user]\Local Settings\Temp\Excel8.0
    C:\Documents and Settings\[user]\Local Settings\Temp\VBE
    C:\Documents and Settings\[user]\Local Settings\Temp\Word8.0

  • "Do not generate SQL" VB macro

    is it possible to get the property "Do not generate SQL" in  VB macro?
    thanks

    Hi Cyril,
    I know you were looking for that, but it's not available as attribut in the current object model as Suresh said.
    Then again why would you insist on doing this via the macro iso in the dp itself?
    Are you adding a new dp via vba?
    Or are you using the macro for more than one document?
    Just curious about the why...
    Sorry I can't be of more help,
    Marianne

  • ADI - Excel is not running, or is not available.

    Hi friends,
    I am trying to upload the journal entries through ADI. When I try to do this I get the following error
    "Excel is not running, or is not available. You cannot upload at this time.".
    We are on 11.5.9 and the excel we are using is 2003. This was working absolutely fine earlier. Can some one let me know what the issue could be. Please note the Macro>Security> Options> Publisher Options. This is checked too.
    Thanks

    Hi;
    "Excel is not running, or is not available. You cannot upload at this time.".
    We are on 11.5.9 and the excel we are using is 2003. This was working absolutely fine earlier. Can some one let me know what the issue could be. Please note the Macro>Security> Options> Publisher Options. This is checked too.It was working before? So what have you been changed on your system? patch etc?
    Please check below which could be helpful for your issue:
    Journal Upload Errors With Excel Is Not Running, Or Is Not Available, You Cannot Upload At This Time [ID 243893.1]
    Hope it helps
    Regard
    Helios

  • My app store wont let me download apps, says they are not available in the uk please help??

    my app store wont let me download apps, says there not available in the uk?? please help??

    Try This...
    Close All Open Apps...  Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • Getting error while opening a saved for later notification: The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action.

    Hi All,
    While opening a saved for later notification, we are getting "The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action". error.
    This is a custom notification.
    Please help.
    Thanks
    Raghava

    HI All,
    Please help on this issue.
    Thanks
    Raghava

  • Laptop (Running Windows 8.1) no longer able to print and now see message Active Directory Domain Services is not available

    Have a very recent Lenovo Ideapad Laptop running Windows 8.1. Connected via USB port to HP LaserJet Pro CM1415 frw Color MFP Printer. Was able to print fine nearly 2 weeks ago, but something recently happened - either a new windows or office 2013 update
    or perhaps I blew away a certain file by mistake. I can see the printer installed but cannot print to it from anything (Word, Notepad, IE, Firefox etc.). The one thing to note is that usually when I plug or unplug a USB related device, Windows 8.1 recognizes
    this and makes a certain chime noise, but with the printer USB cable it never makes that noise - making me think that it never fully recognizes the printer. Also when I select the printer (from within the control panel) and right click for properties (via
    admin rights) It never lets me fully connect to it.
    I have tried all the usual remedies - remove, install all drivers, reinstall printer, Windows update, start/stop print spooler and all other printer related services,  etc. Its really annoying because this printer was working fine nearly 2
    weeks ago. Looking for any advice now. Thanks.
    -Chris

    Hi Chris,
    à
    I have tried all the usual remedies - remove, install all drivers, reinstall printer, Windows update, start/stop print spooler and all other printer related services, etc.
    I noticed that you had reinstalled the printer. Just a confirmation, when un-install this printer, please check
    if this printer still exist in registry. For more details, please refer to following KB.
    Registry entries for printing
    If printer entry still exist in registry, please delete that printer entry and re-install this printer again,
    then check if this issue still exists. (Please backup registry entries before operating registry. It will help us to avoid unexpected issue.)
    àand now see
    message Active Directory Domain Services is not available
    By the way, would you please let me know where/when get this
    Active Directory Domain Services is not available error message? Or provide a screenshot of it?
    (Please hide all protected or private information) Please check if all services are running correctly on the computer. Meanwhile, please refer to following article and check if can help you.
    Printer
    Problem: Active Directory Domain Services is currently unavailable – Why does windows say no printers are installed?
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
    does not guarantee the accuracy of this information.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • My external hard drive is not recognized by Time Machine; "The backup disk is not available" according to Disk Utility

    I'm not completely tech savvy, but I'm having troubles with my external memory & time machine.  I'm a student, and thus its very important to me to be able to back up my computer.
    I wanted to back up my Time Machine the other day.  I clicked the icon at the top of the page (beside the battery icon, etc.) and the message "The backup disk is not available".  I have a 500GB Seagate passport (ie: http://www.bestbuy.com/site/Seagate---FreeAgent-GoFlex-500GB-External-USB-2.0-Po rtable-Hard-Drive---Silver/9929098.p?id=1218196478444&skuId=9929098)
    My macbook pro is version 10.7.5 Mac OS X Lion.  My external memory is only about a year old. It hasn't been dropped or anything; it permanently sits secured to my desk.
    What appears when I click "Repair Disk":
    Verify and Repair volume “Time Machine Backups”
    Checking file systemChecking Journaled HFS Plus volume.
    Detected a case-sensitive volume.
    Checking extents overflow file.
    Checking catalog file.
    Incorrect block count for file shutdown_time
    (It should be 1 instead of 0)
    Invalid node structure
    Rebuilding catalog B-tree.
    The volume Time Machine Backups could not be repaired.
    Volume repair complete.Updating boot support partitions for the volume as required.Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    After clicking "Repair Disk" this message pops up: "Disk Utility Stopped Repairing 'Time Machine Backups'  Disk utility can't repair this disk. Back up as many as your files as possible, reformat the disk, and restore your backed-up files."
    I don't want to wipe my memory on my external disk just in case the disk doesn't restore (as I do not have another disk to back up my computer on to).
    What is going on? Why is this happening out of the blue? How can I fix this?

    Sounds like it either has, or is about to die.
    If you don't need anything off the old drive, then yes, replace it immediately with something a little more reolaable. I use WD Caviar Black personally. But anything that has a known low failure rate.

  • In Pages 5.2, some fonts "not available", yet present in Font Book and working in other apps

    Using Pages 5.2, I open a document created in a previous version, and I get error messages about certain fonts within a font family being "not available" in OS X.  However, these supposedly unavailable fonts are present in Font Book and work just fine in all other apps running on OS X.  In fact, I still have the older version of Pages on my system, and it still finds the fonts without issue.  The specific fonts troubling me at the moment are Myriad Pro Semibold It and Myriad Pro Cond.  Pages 5.2 replaces them with Helvetica.  I have wasted hours of time trying to resolve this problem, and I am at a total loss.  What can I do?

    Like so many other thing is is probably gone. Why not use Pages 09 that has about 100 features more than Pages 5. If you haven't deleted it it should still be in Applications/iWork 09 folder.

  • My rue la la app for ipad suddenly dosent work so I deleted it now when I try to reinstall it the app store says that it not available in the us. It is still on my Iphone and working properly. What is this all about?

    My rue la la app for ipad stopped working. I deleted the app and tried to reinstall it,  it is no longer available in the app store and when I research it on safari and find it when i try to install it says that it is not available in the us store. What is that all about?

    My app did the exact same thing. It is still unavailable on the App Store and when Rue La La's site directs you to download their app, the "not available in the U.S. message appears. This happened to me last night. The app wasn't working, I deleted it and was just going to reinstall but was unable to find the app. I figured it was some glitch but I have tried multiple times this afternoon to no avail.

  • On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available". When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way,

    On a Mac, in Adobe Photoshop CC 2014, when adding audio to an edit, i get the message "Could not complete your request, because Dynamiclink is not available".
    When performing the exact same operation in Adobe Photoshop CC, i can add audio in the same way, no error message. Any ideas to solve this, anyone? Would be greatly appreciated.

    I tried to update and it keeps telling me to get the Application Manager. And this is what happens
    Adobe Application Manager failed and it told me to download the Adobe Support Advisor.
    Adobe Support Advisor told me that there was an issue:" cpsid_82829s1: "A restart is pending," bootstrapper error has occurred. "Token Number: 40-87772-063201122012
    I followed the instructions it gave me to correct this issue:
    If you receive the error "Installer has detected that a machine restart is pending. It is recommended that you quit the installer, restart try again," do the following:
    #Restart the computer and try the installation again.
    #If the installation fails, delete the InProgress registry key: 
    Disclaimer: This procedure involves editing the Windows registry. Adobe doesn't provide support for editing the registry, which contains critical system and application information. Make sure to back up the registry before editing it. For more information about the registry, see Windows registry information for advanced users on the Microsoft support site, or contact Microsoft. 
    Launch Windows Registry Editor.
    (Windows XP) Choose Start > Run, type regedit in the Open text box and click OK.
    (Windows Vista/ Windows 7) Choose Start, type regedit in the Search box, and press Enter.
    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
    Delete the InProgress key.
    I was not able to find the "InProgress" key.

  • Saving master page in search template throws error "UserAgent not available, file operations may not be optimized"

    Hi Folks,
    I was trying to save basic search template master page "seattle.master" after making change to the template.
    I have added just "CompanyName" folder and update the line below in seattle.master.
    Change is this : <SharePoint:CssRegistration Name="Themable/CompanyName/corev15.css" runat="server"/>
    When I save it, and refresh page on browser, it shows "Something went wrong" error.
    ULS says the following error : "UserAgent not Available, file operation may not be optimized"
    Pls let us know if there is a solution.
    Any help Much appreciated !
    Thanks,
    Sal
    

    Hi Salman,
    Thanks for posting this issue, 
    Just remove this below given tag and check out. It might be happened that your control is conflicting with others. 
    Also, browse the below mentioned URL for more details
    http://social.msdn.microsoft.com/Forums/office/en-US/b32d1968-81f1-42cd-8f45-798406896335/how-apply-custom-master-page-to-performance-point-dashboard-useragent-not-available-file?forum=sharepointcustomization
    I hope this is helpful to you. If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Data Federator data source not available causes Universe Connection error

    I created a Data Federator project that connects to 20 servers across US and Canada.  All data sources are SQL Server 2005.  The DF project maps 40 source objects into 4 target objects.  I created a universe based on the DF project and we have been quite pleased with Webi query response.  Today one of the source servers was taken off line and this generated a connection error when trying to access the universe (not trying to access the data source that failed).  We do not want the universe connection to error when one source server is not available u2013 is that possible?
    If the answer is no then I see us abandoning what appears to be a great solution for real time distributed reporting and resorting to ETL and moving data.

    Hi Chapman,
    Can you be little elobrate on what you have done to solve the issue.
    Thanks,
    Dayanand

Maybe you are looking for

  • Traffic light  repaint not working via button

    I created a traffic light, a button is pressed and the colors should cycle yellow>green>yellow>red etc.. as a normal traffic light would when i press the start button, the repaint(); doesnt work, system.output shows me the number which corresponds to

  • How to password-protect PDFs to prevent editing?

    I'd like to print a PDF from within Word and password protect it to prevent editing of the PDF. I don't need encryption (one of the default PDF services), I need password protection against editing. If there's a way to do this without resorting to Ac

  • Lightroom 5.5 will not launch after CC update

    My Lightroom 5.5 was working just fine.  Yesterday after doing an update on Creative Cloud, and rebooting the computer, LR will not launch.  When I click on the icon, it opens the splash page for a split second, then crashes.  Any suggestions of what

  • How to play music or voice audio from my computer though my sterio system.

    How can I play music or voice audio from my iMac G5 computer though my sterio system. I have tried everything I can think of. I just can not get the audio from my computer to play though my sterio system. I want to take the audio from my computer and

  • Shuffling Albums on iPod Nano gen 7

    How can I shuffle albums on the iPod nano generation 7 instead of just shuffling songs?