Can't use parameter in query if using another database

Hi there, I logged on SAP Business one for company A,  and try to run the following query:
select t0.field1 from \[company b\].\[dbo\].\[table1\] t0
where t0.filed2 = '\[%0\]'
And I got errors.
If '\[%0\]' is replaced by a real value it works.
select t0.field1 from \[company b\].\[dbo\].\[table1\] t0
where t0.filed2 =  1234
So you can't use parameters in a query if you're using a  database that is not your current company?
Thanks.
Edited by: Leslie Woodward on Feb 22, 2010 7:40 PM

That is right. All data have to be in the same company to use '[%\]' variables.
Thanks,
Gordon

Similar Messages

  • How can I use two database in Dataset in SSRS?

    Hi,
    I am using one query to generate my SSRS report. In that query I am using subquery. Now I am pulling data from multiple tales.
    DB used in sub query is different than the rest of the tables DB.(So total I am using 2 DB(Database))
    So I see that in SSRS, I can connect query(In DataSet Properties) to one DATA_SOURCE only, how can I use other database which is I used in sub-query?
    I have to move this SSRS into PROD and I can't hard code that sub-query's DB name in my query.
    Please give me suggestion. Thanks!!
    Vicky

    In SSRS 2008 R2 you can use the Lookup function (http://technet.microsoft.com/en-us/library/ee210531.aspx ) and LookupSet function (http://technet.microsoft.com/en-us/library/ee240819.aspx
    Depending on your security set up, you can reference a table in a second database on the same server using a three part name:  database.schema.table.  This is more likely to work for you if you wrap your SQL command in a stored procedure.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Can we use different Databases (Oracle & SQL Server) in one report?

    Post Author: venki5star
    CA Forum: .NET
    Hi there.
    Can we use different databases (Oracle & SQL Server) in a same report?
    If possible how?
    Another question,
    Can we change the Provider Name at runtime of the given report. If so the above question is useless...
    Thanks in Advance.

    I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
    I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all.

  • How can i use another icloud account in my iphone? can i pay one?? where?

    how can i use another icloud account in my iphone? can i pay one?? where?
    My phone has reached the maximum number of free accounts activated where can I buy one to use?

    You can't buy another one.  You have to reuse one of the accounts previously set up on your phone, or create a new one to use on another iOS device (running iOS 5 or higher) or Mac (running OS X 10.7.2 or higher), if you have one.

  • Can i use another storage flash for my apple air mackbook(change from current 128Gb to 256GB without any issue)

    Can i use another storage flash for my apple air mackbook(change from current 128Gb to 256GB without any issue)

    There are some upgrade options available from do it yourself sites.
    See the MBair SSD upgrades on mid way down this page:
    http://eshop.macsales.com/shop/SSD/OWC/

  • Can I use Other database as the repository, Sybase/SQL Server? Urgent!!!

    Hi all,
    Can I use Other database as the repository, Sybase/SQL Server? Urgent!!!
    And Can I use other database store business data and sync with lite?
    Thanks ahead!!!

    Jonathan,
    No, it is not possible to use any other database than Oracle (8.1.7) or later .
    Oracle Lite will only work with Oracle.
    Regards

  • Can I use flashback database to recover it?-----QNo.115

    I have dropped a tablespace through RESETLOGS.
    Can I use flashback database to recover it?-----

    5.3.1 Limitations of Flashback Database
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/rpfbdb003.htm

  • Can i  use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?

    Can i  use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?

    4195bee8-4db0-4799-a674-18f89aa500cb wrote:
    i dont have access to My Oracle Support can u send text or html of document please?
    Moderator Action:
    No they cannot send you a document that is available only to those with access to MOS.
    That would violate the conditions of having such service contract credentials.
    Asking someone to violate such privileges is a serious offense and could get that other person's organization banned from all support and all their support contracts cancelled.
    Your post is locked.
    Your duplicate post that you placed into the Audit Vault forum space has been removed (it had no responses).
    This thread which you had placed in the Solaris 10 forum space is moved to the Audit Vault forum space.
    That's the proper location for Audit Vault questions.

  • Can I use logical databases in a WebDynpro ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the existing logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hello, Tiberiu.
    You cannot use LDB directly within your WDA programa. BUT, you can fetch results from this LDB by using FM LDB_PROCESS. This function module can be called anytime from any kind of ABAP program. But you will still have to create the screen, as it only processes data, not screens.
    Regards,
    Andre
    PS: Pls reward points if it helps.

  • Can I use logical databases in a WebDynpro for ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the exisinting logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hi
    Please let me also know the solution to this. I am a beginner to WebDynpro  and want to know if I can make use of LDB's as we do in our normal HR programming do develop a WDA in HR.
    Thanks and regards,
    Uma.

  • Can i use single database connection in a hole java application?

    can i use single database connection in a hole java application?.I have so many forms to use database connection.

    Theoretically you can. Not only theoretically. I've seen lots of application which only uses one database connection (they were using, oracle or mysql)
    The first reply given here assumed that the answer to
    your question depends only on the design of your
    application. That is not true.Yes it's true. Nothing in the original questions says that you aren't allowed to open or close the single connection that you have. It's looks more like the OP is interested in sharing a connection (i.e having a singleton or a connection pool with only one connection)
    It does also depend on the behaviour of the database
    in the background.
    Most databases have a time out for connections that
    are idle Not a problem. Most implementations of connection pools and applications which keeps a connection open have a timer which calls e.g. select * from dual (if you are using oracle) when the connection has been idle for X minutes.
    (some, like db2 on z/OS, even cancel
    connections, that are not idle, if they are open a
    certain amount of time or have reached a given limit
    of cpu seconds.)You would also have that problem if you had a connection pool with several connections.
    In essence: If you have no control over the time
    your application runs (and therefore your connection
    is open) or over type or the configuration of the
    database you are accessing, you can't do it.See above.
    The closest thing to what you want would be using
    PooledConnections, iif those are supported for the
    database you want to access.Not true.
    Kaj

  • How can i use Unix database in java?

    How can i use Unix database in Java?
    Message was edited by:
    JPro

    I have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
    My answer to that would be, search the Internet for a JDBC driver.

  • Can I use another monitor with my iMac desk top?

    Can I use another monitor with my iMac desk top? Our monitor screen is going out and would like to have another option then replacing the whole thing! I think A LCD TV would be less expensive than the repairs to our iMac.( OS 10.6.8 )

    Yes, but we need to know exactly which year model you have? So that we can advise you on exactly which adapter you need for you iMac.
    see > How to identify iMac models
    Plus, adding that Computer Monitors make better displays than TVs and comparatively cost a little less than TVs.
    For examples of monitors that have both DVI and VGA inputs:
    see > LG 21.5" Widescreen FlatPanel LED HD Monitor E2242T - Best Buy
    or > HP 20" Widescreen FlatPanel LED Monitor W2071D - Best Buy

  • Irc account keeps disconnecting cannot use IM what is nick at the beginning of the name ..can i use another name ? thank you

    hello i am trying to set up instant messaging ....the account keeeps disconnecting after a few seconds and i cannot make it work
    it keeps saying nick ... what is nick at the beginning of the name ..can i use another name ?
    if i use mozilla for IRC what is the server name ?
    what other details do i need to type in ?
    Thunderbird is running on a single home PC which only has Open Suse 13.1 x64 linux on it ( no Windows )
    thank you

    'nick' is your nickname which you entered when you set up the IRC chat. You can register your nickname by entering "/msg nickserv register <password> <email address>"
    Then when you start next time enter "/msg nickserv identify <password>"
    You can get a list of nickserv commands by entering "/msg nickserv help"

  • Can we use oracle database Instead of Cloudspace?

              hi there,Can we use oracle database instead of Cloudspace with the current implementation?
              If possible can you please send me the example
              1.ra.xml
              2.weblogic-ra.xml
              files for connection to oracle. i would really appreciate any support.
              thanx, raghu.
              

              Prasen,
              Could you tell me what specifically should I use for Oracle database instead of
              jdbc:cloudscape:rmi:CloudscapeDB;create=true.
              Can I use jdbc:weblogic:oracle for jdbc:cloudscape:Commerce? I am not familiar with
              Cloidscape URLs and drivers.
              Thanks,
              David
              prasen <[email protected]> wrote:
              >Raghu,
              > It depends upon your implementation of ResourceAdapter, particularly
              >your managedConnectionFactory. In the example we
              >supplied(BlackBoxNoTx.rar) it(database specific parameters) is being
              >passed to the ManagedConnectionFactory as one of its config-properties.
              >
              >Also ResourceAdapters have nothing to do with Databases. It just happens
              >that in the supplied example a Database Connection is being exposed as a
              >ResourceAdapter.
              >
              >Now if you want to use oracle database you may want to look into teh
              >source code of BlackBoxNoTx.rar's implementation.
              >
              >Hope this helps.
              >
              >regards,
              >prasen
              >
              >raghu wrote:
              >>
              >> hi there,Can we use oracle database instead of Cloudspace with the current
              >implementation?
              >> If possible can you please send me the example
              >> 1.ra.xml
              >> 2.weblogic-ra.xml
              >> files for connection to oracle. i would really appreciate any support.
              >> thanx, raghu.
              

  • If I buy iPhone 6 at an Apple Store, Can I use another country USIM?

    If I buy iPhone 6 at the Apple Store, Can I use another country USIM?
    I mean, is it unlock phone? It can use any mobile company (three, EE, Vodafone....)  and any country USIM?
    Is it would warranty?  Can I repair in any country? if I buy iPhone6 or 6+ at an Apple Store.
    I don't want a contract so I will buy an iPhone6 at AppleStore in Bright.
    I want to know exactly. I need to make sure about the warranty, country unlock. Like that...

    Apple has not announced when it will begin selling unlocked iPhone 6.
    As of now, they do not offer an unlocked option.

Maybe you are looking for

  • Validity table for a Non-Cumulative key figure

    Hi, I need to make changes to a validity table for a Non-Cumulative key figure. I know initially it is done thru Extras- > Maintain Non-Cumulative value but subsequently how to change the parameters ? Best Regards, -Anurag Dev

  • How can I see how much data passes through my Time Capsule?

    I am thinking of using a cellular data plan at home. My current, rural internet provider is slow and unreliable. I use a MiFi as a backup and have 4G service which is much faster and rarely goes down. I need to see how much data is downloaded and upl

  • Report 9i crashes after slight changes in PL/SQL's SQL statement

    Hi, I'm using Oracle 9i Report Builder. In my Data Model I have an object (formula column) which I use PL/SQL to get a value. In the PLSQL i have 9 SQL statements which I open. It was working ok until I add the 10th stment. So, I'm wondering if there

  • Can't access Qmaster Preferences?

    I am trying to setup a new Qmaster render farm, but have run into trouble right out of the gate. I installed Qmaster on our server, and 2 of our production boxes. On all three machines when I go to Qmaster Preferences I get a dialog box that asks for

  • New form

    Trying to create a web form.  For ordering product. how do I assign a value to a product and total?