on 11-08-2011 5:18 AM
Dear All,
Scenario: IDoc to JDBC
PI need to delete all the existing records in the SQL table then need to insert the records.I have created a two statements in the target structure.
Statement1
-> TableName
-> action : DELETE
-> Table : TableName
Statement2
-> TableName
-> action : INSERT
-> Table : TableName
->Access
-> Elements
I am getting below error while try to delete the records in the table.
JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'Tablename' (structure 'Statement1'): java.sql.SQLException: FATAL ERROR document format: structure 'Statement1', no key element found
Note: we use above structure in the another interface without specifying any Key for Delete operation(Server is same but different database for this two interface) and it works fine. Although the Primary keys has been set in the SQL table i am getting the above error.
let me know what are the setting need to make in PI and SQL DB to achieve this.
Regards,
Manikandan Shanmugam
Edited by: Manikandan Shanmugam on Nov 8, 2011 6:19 AM
The straucture what you have deined for Delete is not correct, you should have key field in statement structure then only you can perform Delete operation.
refer below link
http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/7b6e85fde93673e10000000a114a6b/content.htm
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
In ID, open your JDBC Receiver CC and then uncheck the Key Tags Mandatory option under the processing tab.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.