on 2011 Mar 02 9:45 AM
HI Experts,
I need to delete the table (all records) first then need to insert records in the Sql Database.
after ececuting the Interface table is deleted and only first record is inserted in the database. I want to insert all the records which are from the outbound payload.
I am using 2 statements 1 is for DELETE and 2nd is INSERT
MT_IB
_STATEMENTDELETE
__EMP_QUALIFICATION
___ACTION(delete)
Table
____access (didnt mapped in the mapping)
Xyz
Mno
_STATEMENTINSERT
__EMP_QUALIFICATION
___ACTION(insert)
Table
____access (Mapped)
Xyz
Mno
I didnt found and errors in the comm channel, while checking the paylod in the comm channel i see only 1 record is inserted.
key tag mandatory is disabled in the comm channel.
is there any thing wrong in my structure?
Thanks in Advance
Vankadoath
>
> HI Experts,
> I need to delete the table (all records) first then need to insert records in the Sql Database.
> after ececuting the Interface table is deleted and only first record is inserted in the database. I want to insert all the records which are from the outbound payload.
>
> I am using 2 statements 1 is for DELETE and 2nd is INSERT
> MT_IB
> _STATEMENTDELETE
> __EMP_QUALIFICATION
> ___ACTION(delete)
> Table
> ____access (didnt mapped in the mapping)
> Xyz
> Mno
> _STATEMENTINSERT
> __EMP_QUALIFICATION
> ___ACTION(insert)
> Table
> ____access (Mapped)
> Xyz
> Mno
>
> I didnt found and errors in the comm channel, while checking the paylod in the comm channel i see only 1 record is inserted.
> key tag mandatory is disabled in the comm channel.
> is there any thing wrong in my structure?
> Thanks in Advance
> Vankadoath
I think that the error is that you have to pass in insert structure, one raw at time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
u can refer this help for stored procedure structure.
http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
chirag
>
> Do one thing...
>
> call stored procedure and in that stored procedure first delete all the records from the table n then instert all the records.
>
> I cam across the same scenario and it is done by the stored procedure.
>
> chirag
Usually i prefer SP for jdbc adapter (unfortunately jdbc statement have some restriction)...
For Stored Procedure, refer to this:
http://wiki.sdn.sap.com/wiki/display/XI/Advantages-DisadvantagesofStoredProcedureinJDBCScenario
/people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
For SP:
http://download.oracle.com/docs/html/B16022_01/ch3.htm#i1017636
User | Count |
---|---|
57 | |
11 | |
7 | |
6 | |
6 | |
6 | |
6 | |
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.