cancel
Showing results for 
Search instead for 
Did you mean: 

Problems querying a user defined table with a Parameter

Former Member
0 Kudos

I am making a query for an API. I make the query in the query editor. I get there by clicking tools->queries->user queries-> select a query

In the editor I write the following:

select * from "@FR_RETAILADDR" where "U_FR_STORECODE" = [%code]

that does not work. I am given the following error:

"" (SWEI)

Any user defined table does not allow a parameter to be given. I can do the exact save with the OCRD table.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It works, but SAP B1 does not know that it works. so just run the query in the api and it will work.

Answers (1)

Answers (1)

former_member233854
Active Contributor

Try this

select * from [@FR_RETAILADDR] where U_FR_STORECODE = '[%0]'