on 05-07-2013 8:02 PM
Hello,
I have 2 queries,
1. I am receiving an XML file from PI in to MII 12.2 which I need to write/insert in to SQL table. I want to use [Param.1] [Param.2] etc to do so.
I have a table created with 5 colums in db. My XML contains 3 rows and 5 data elements - how to use repeater/switch to assign these values to run time params of SQL query which has insert in to statement ?
2. Can MII receive and process the Custom Idocs/Z Idocs from ECC the way it receives and understand standard IDOCS like MATMAS,LOIPRO etc.
Many Thanks in advance for your help !
Best Regards
Ankit
Ankit,
1. You can execute your SQL query in a loop or send the whole XML to the SP which parses the xml and inserts records.
I would recommend second approach of sending whole xml to SP if you are inserting large chunks of data.
2. Yes, It is possible to receive any idoc type. What all you need to to configure message processing rule and write transaction to insert that data into your DB.
Thanks
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Hari and suraj for your valuable inputs and making SDN a thirst quencher for knowledge seekers !
cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.