ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Select stament in ESQL

Post new topic  Reply to topic
 Select stament in ESQL « View previous topic :: View next topic » 
Author Message
boogey
PostPosted: Fri Aug 24, 2007 12:39 pm    Post subject: Select stament in ESQL Reply with quote

Novice

Joined: 01 Jan 2007
Posts: 21

Hi,
I am using the following statement to query the database,
(THE (SELECT ITEM N.TECSYS_CODE FROM Database.{cSOURCE}.{cSCHEMA}.{cTABLE } AS N WHERE N.SAP_CODE = VKORG ));

Souce, schema, table names are delclared as external variables. This select statement doesn't return any value, no errors too.
I did select query in Oracle databse, for the same VKORG value, it resulted the exact value
I hard code the value VKORG in messge flow, then it resulted the exact value.
But i IF pass the VKORG value from input , it doesn't result any value.

Where did i go wrong?

Someone please help me.

Thanks
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Aug 24, 2007 9:40 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Whats the datatype of VKORG, and how you hardcoded it

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
boogey
PostPosted: Fri Aug 24, 2007 10:10 pm    Post subject: Reply with quote

Novice

Joined: 01 Jan 2007
Posts: 21

Hi,
VKORG is string , if copy the value from the input and hardcode it in the message flow, it works fine.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Aug 24, 2007 10:38 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

I am having some doubts.

1. Ensure that the string you are getting through input doesnot have spaces or some other characters while storing to VKORG
You can check that in debug level.

2. Make it as VKORG as CHARACTER and search it.

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
boogey
PostPosted: Fri Aug 24, 2007 11:00 pm    Post subject: Reply with quote

Novice

Joined: 01 Jan 2007
Posts: 21

Hi,
I trimmed the leading and trailing spaces and stored the VKORG value as character, i verified the value in the debugger too. but it didn't work
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Aug 24, 2007 11:43 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Would you mind to paste the full ESQL here

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Aug 25, 2007 9:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Oracle site often use synonyms that are user dependent. You may not be allowed to use schema for your query... Talk to your oracle admin
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tosaurav
PostPosted: Tue Aug 28, 2007 6:16 am    Post subject: Reply with quote

Acolyte

Joined: 16 Jan 2007
Posts: 62

Try this....

Grab the incoming value into variable of Character datatype first and then pass new variable to query
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Aug 28, 2007 7:18 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi tosaurav,
tosaurav wrote:
Try this....

Grab the incoming value into variable of Character datatype first and then pass new variable to query

boogey wrote:
Hi,
I trimmed the leading and trailing spaces and stored the VKORG value as character, i verified the value in the debugger too. but it didn't work

Regards.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Aug 28, 2007 12:57 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Remember that you should not post directly to SAP tables.
VKORG for instance is meaningless without the language conversion routine....

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Select stament in ESQL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.