cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to JDBC

Former Member
0 Kudos

Hi All ,

I am doing a IDOC to JDBC scenario .. I will be getting a material master IDOC and i need to insert that data in multiple database tables .. i am considering to use stored procedure for doing this .. but the question i have is .. in my case each segment in IDOC is like a Array of type structure ..so how do i pass this structure array to store procedure . so that it can loop through the array and insert in appropriate tables.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You cannot pass an array of parameters as argument to Stored Procedure. But you can put logic into the stored procedure to insert into mulitple tables and make the statement tag in XI 0..unbounded. So you would be making a call to the stored procedure for each child structure in the IDOC.

Thanks

Praveen

former_member192798
Active Contributor
0 Kudos

Hi,

This is all you require:-

/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

also check out this link where IDOC to JDBC is already discussed:-

Hope this helps.

Regards.

Praveen

Former Member
0 Kudos

Hi Praveen ,

Thanks for your reply, i know how to use stored procedure if it is a single record , i need to know how i can use in case of multiple records.

regards,

Tarun.