on 2013 Dec 10 7:00 AM
Hi experts,
I am into developing MII interfaces for an Oil and gas major.
My requirement is to recieve Idocs from ECC containing master data records and then send the data fetched from SCADA back to ECC along with the master records.I am using MII 12.2 ver.
Can any one kindly tell me the ways to do it precisely i.e. how to recieve idocs from ECC directly and send the updated records back to ECC from MII
Thanks,
Praveen
Request clarification before answering.
Hi Praveen,
Go through below link
From MII to SAP:
From SAP:
1. Create BAPI with input parameter as you want to receive from MII
From MII:
1. Create Transaction and fetch all the required data.
2. In same transaction, call BAPI through SAP Jco Action block and pass fetched data to request parameters of BAPI (i.e. which has been developed in SAP).
3. And create scheduler for that transaction to execute based on your requirement.
Regards,
Praveen Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot guys for ur response....ur answers were really helpful...
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
One more thing, If you are receiving IDOCs from ECC containing Master Data Records, then you have to select Transaction as processing rule not Category in Message Listener. I have mentioned about Category based Message processing in the previous reply. In Category based transaction, you can go with above approach by creating a Scheduler.
So, only you have to select Transaction as a Message Processing Rule and Map the Transaction you have created for Data-Base insertion along with it's Input Property (InputXML).
So, whenever any Message will come from ECC to MII with the Same Message Name which has been given in Processing Rule, The BLS (Transaction) will be automatically called and IDOC Data will be stored into the Database.
And in Transaction Based Message Processing, No Scheduler is needed and no Query Message/ReadMessage Action block is needed.
Thanks and Regards,
Ushinar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Hope this will help you,
From ECC, IDOC/RFC/Web Service can come to MII and gets stored into the Message Listener Buffer, so, From Message Listener we have to fetch the Message XML.
In MII, create a Transaction to fetch the IDOC which is stored in SAP MII Message listener came from SAP ECC.
In that Transaction, you can go with the below approach,
QueryMessage : In QueryMessage Action Block you have to do the following configuration to fetch the required Message came from ECC into Message Listener. It can be IDOC or RFC or Web Service.
RepeatingQueryMessage : Now you have to put a repeater the JCoMessage of the XML Document of Message Buffer in SAP MII because there can be more than one message in your Message Listener.
ReadMessage : In the Read Message Action Block, we have a property, which is Message ID, and in the XML of the Message Buffer in MII, all the JCo Message has a unique Message Id, so you just have to map the Message ID of the Read Message and the JCo Message ID, so, through Read Message we can get all the JCo Message ID of all the JCo Messages in that Message Buffer List XML as we have JCo Message in the Repeater before it.
So, After that you can print the ReadMessage's - MessageDocumentXML and will get the required IDOC or IDOCs of same name.
And, you can use JCo Action Blocks to send data back to ECC from MII through BAPI or custom RFC either with Single input parameters or Multiple input parameters.
Thanks and Regards,
Ushinar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 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.