Sender JDBC adapter -- Update SQL statement NOT work for the last record
I'm trying to use SAP XI to send records from Oracle database to As/400 using JDBC adapter. I've defined the communication channel for sender
(1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE NOT CU_ACTION_CD='P'
(2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE NOT CU_ACTION_CD='P'
Supposed that 3 records were retrieved from (1) and successfully updated to AS/400 but only the first 2 records in Oracle database are updated according to (2)
Any advise.
Pansy
Hi Pansy,
You select and update query is looking like wrong
kindly check below query,If you are using oracle
(1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE CU_ACTION_CD !='P'
(2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE CU_ACTION_CD !='P'
Thank you
Sateesh
Similar Messages
-
Sender JDBC adapter : Update SQL Statement : stored procedure
Hi,
Can we use a stored procedure in the sender jdbc adapter in 'Update SQL Statement'.
The problem i am facing is like, we are selecting data from two tables in 'SQL statement for query' and then in 'Update SQL Statement' , we need to delete that data from these two tables.
Please let me know if it is possible.
Thanks,
Rohityou can use a Stored procedure in the
Query SQL Statement
You have the following options:
· Specify a valid SQL SELECT statement to select the data to be sent from the specified database.
· Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
The expression must correspond to the SQL variant supported by the relevant JDBC driver. It can also contain table JOINs.
so have your whole select and update as part of this single Stored procedure -
JDBC Adapter - Update SQL Statement - Timestamp
Hi All,
I'm using a JDBC Sender channel to bring information from a database, when I bring the data I want to UPDATE a field inserting the date and time (timestamp) when you got the info.
Sender Communication Channel: JDBC
Query SQL Statement: SELECT * FROM PI_Factory
Update SQL Statement: ????????
Could you tell me how to do this?Hi
please try the below query in Update sql statement
update table_name set fieldname = systimestamp where .....
or
update table_name set fieldname = current_timestamp where .....
Regards
Ramg. -
Single of the week not working for the last 3 weeks.
Hi all!
I like do DL the single of the week, as there is quite an eclectic range of songs comming from there.
For the last 3 weeks I have been getting an error saying something like this.
We could not execute your iTunes request, The resource was not found. --> Losely transelated from Norwegian.
Screenshot of the error if there are any norwegians here with simular problem.
Get the error on all my devices. iPad / Phone / MBA / iMac.Are you runnig ITunes v6 also if you are you might be clicking on the new video column. The free downloads section got moved to the left. jfyi
-
SQL statement not working for an application
Hello,
Here is a sql statement which i am using to populate Department ID using another row in the table. Using these I am getting the values called department alias from different table and schema.
UPDATE tablename_4127 PT
SET "Deptid" = (select distinct(deptid) from datastore.get_department_alias
where upper(ltrim(rtrim(deptalias))) = upper(ltrim(rtrim(PT."Dept Descr")))
AND "Colid" = PT.COLID)
Please anyone help me with this.
Thank youHBUA wrote:
Hello,
Here is a sql statement which i am using to populate Department ID using another row in the table. Using these I am getting the values called department alias from different table and schema.
UPDATE tablename_4127 PT
SET "Deptid" = (select distinct(deptid) from datastore.get_department_alias
where upper(ltrim(rtrim(deptalias))) = upper(ltrim(rtrim(PT."Dept Descr")))
AND "Colid" = PT.COLID)
Please anyone help me with this.
Thank youhelp you how, since we don't have your table, data or requirements?
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
Calendar Issues - "Repitition is not working for the item you tried to access"
I ran into an interesting error when troubleshooting a calendar issue today, wondering if anyone has seen it.
Exchange 2010 SP2 latest RU, Outlook 2010
User changes then start time for a recurring meeting, changes in everybody's calendar but hers 9still shows in her calednar as the original start time)
Logged into OWA to see if her claendar reflected the correct start time there - no, still shows the old start time. So I open the meeting, have a quick look, and the following error pops up:
"Repitition is not working for the item you tried to access. It's possible either the start or end date are not correct"
Has anyone seen this error in OWA before?
TAGHi,
Please double check whether the updated start time and end time are changed properly in attendees’ calendar. Also confirm whether the updating message is in the organizer’s sent items both in OWA and Outlook.
Thanks,
Winnie Liang
TechNet Community Support -
I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?
Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.
-
I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.
You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.
-
I have not been able to update my fairy farm game for the last 5days as it quit at launch. I am afraid to delete and reinstall the game as i might lose all. Anyone knows if there is an update for this game? Please help. Thanks
Erdygirl please be aware you are posting to a public forum. I have removed your personal information from your previous post.
Please check your account at http://www.adobe.com/ to locate your serial number. You can find more information on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html. -
Function in select statement need to be called only for the last record.
Select state,
local,
fun_state_loc_other_details(19) details
from state_local
where pm_key=19
resuts:_
State Local Details
AP APlocal details1
UP UPLocal details1
MP MPLocal details1
i) The above query returns 100 records
ii) fun_state_loc_other_details is also getting called 100 times. But I want this function to be called only for the last record that is 100th record.
is there any way to do that?Thanks amatu.
One more small query. Can I do it on condition based.
Select state,
local,
fun_state_loc_other_details(19) details
from state_local
where pm_key=19
Like if one state it need to be called once.
AP -- 50 records
UP - 20 records
MP -- 10 records.
fyi: this record no. varies
I want the function to be called for AP once, UP once, MP once. -
Why is face time not connecting for the last two days
Why is Face Time not connecting for the last two days
Judging by all the posts on the forum, there seems to be an issue at Apple's end, although they have made no announcement on their status page. Some users have reported that Apple is aware of the issue. You can leave feedback for Apple at the link below.
http://www.apple.com/feedback/ -
Xi JDBC Adapter - Query SQL Statement & Update SQL Statement
Hi!
I configure the JDBC adapter sender (XI) to take data from Oracle database.
I set the Query and Update SQL Statement in the Processing parameters of the communication channel in this way:
Query SQL Statement :
SELECT * FROM XI_TABLE WHERE STATUS = 'WAIT' ORDER BY ROW_NUM
Update SQL Statement :
UPDATE XI_TABLE SET STATUS = 'DONE', DATE = SYSDATE WHERE STATUS = 'WAIT'
My question is :
If a new record with the field STATUS = 'WAIT' is added to the table (xi_table) during the time between the execution of the query statement and the start of the update statement, what will happen to that record during the update?
There is a way to avoid the update of that record? or to pass to the update statement only the record selected in the query statement?
Please, may you give me some example?
Thanks,
Francescohi,
did you check "Isolation Level for Transaction"
for the sender jdbc adapter?
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
Regards,
michal -
Sender JDBC Communication Update SQL Command Problem!
Hi all,
I am trying to do a SENDER JDBC Scenario in XI.
I fetch the Records from the table Once per day based on the Current Date.
I do not have any Update Credentials in the table.
I can only perform Select Querry.
But when i am trying to configure the SENDER JDBC Channel its asking me to enter value for Update SQL Command in Sender JDBC communication channel Process Parameters.
Its not accepting BLANK or ' * ' Values.
But i have only Select Querry credentials in the table. I can only pick the values cant Update the tables but.
In the Above scenario how can i configure the Sender JDBC CC without Updating the Table after fetching the value?
Please Advice
Regards,
Senthilprakash.Hi,
Specify the Update SQL Statement value as .
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
Thanks
SaNv...
Edited by: Sãnthosh Kûmãr V on Oct 8, 2008 10:44 AM
Edited by: Sãnthosh Kûmãr V on Oct 8, 2008 10:45 AM -
Jdbc adapter log sql statement to file
Hi,
I'm using a Proxy to Jdbc scenario.
In the Adapter Configuration the logSQLStatement is set to true.
Is it possible to log the sql statement shown in the Audit to a file?
Regards RalfHi
please try the below query in Update sql statement
update table_name set fieldname = systimestamp where .....
or
update table_name set fieldname = current_timestamp where .....
Regards
Ramg. -
Isight camera not working after the last update
After reboot of the last OS update
Isight camera not working...
i've tried photobooth, ichat, skype and it doesn't show up anywhere. in fact, when i go to system profiler, it doesn't show isight under USB connections at all.
just to give you a recap of what i've tried so far:
* restarting (obviously)
* resetting PRAM/SMC (by booting it the way it was specified in the isight troubleshooting thing)
* just shutting down my computer and taking the battery out for several hours
any Help pls
because i mast to use it as soon as possible in a conference*A few suggestions.........*
Try running repair permissions from your HD and afterwards run +repair disk+ from your software install DVD.
my isight camera is not working-not recognized with photo booth or ichat
To fix your iSight, shut down computer. Reboot in safe mode (press power button and then hold shift key down). After computer boots, restart again. Hopefully, your iSight will start working again.
Maybe you are looking for
-
If i buy a song from itunes, what are the restrictions as far as the number of times that I can burn the song to a disc? Does it depend on how many times I burn it as an mp3 versus a cd/song (wav?)?
-
Windows 8.1: Error in the presentation of the Authorware-plugin window, clipping
Hi all, there is a new bug in Windows 8.1, the AW-content is not centered relative to the size of the plugin window (which is set in the HTML-Object-tag), but relative to the resolution of the screen!! Therefore, only a part of the content is visible
-
Parallel and Alternative sequence in routing
dear gurus, please explain with examples what is meant by Alternative sequence and parallel sequence in routings and also what is group counter? Thanks and Regards, Jejesh
-
how to remove jailbreak from my iphone4 (5.1)? .. i want the original setting like a new iphone..please tell?
-
According to the FAQs and some forum posts that I found, this problem seemed to be solved with Dreamweaver Version 8.0.2. Why is this still happening to me?