Skip to Content
author's profile photo Former Member
Former Member

Problem with query on External Table

Hi, I' ve this type of problem:

I've an external table (not linked to Sap B1), and I must create a report joining this table to a SapB1 table (OSLP).

When I try to create the query, using query generator, I can't add the parameter to search.

So, i can do

"Select FIELD from MYTABLE",

I can do

"Select FIELD from MYTABLE where FIELD = '1'",

but i can't do

"Select FIELD from MYTABLE where FIELD = N'[%0]'".

Somebody can help me? there is a workaround for this problem?

Regards

Marco

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 07:51 PM

    My guess is that B1 tries to find column descriptions in order to show it in the query parameter entry dialog. In the case of External tables there is no such information and this is why that parameter doesn't work for you.

    Maybe you could try a 'complex query'. Take one table.column that has a suitable description for your purpose. Use that column to populate a variable and finally use that variable in your WHERE clause.

    Check this:

    Query with 2 variables

    HTH

    Juha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.