on 02-19-2008 12:06 AM
Hi Experts in XI,
I am just starting some work in XI today. I need to design a solution.
I have send a purchase order(PO) IDOC when its triggered by the end-user from R/3 and it should be received by another business system using WebServices. When the IDOC is posted we have to receive the acknowledgement. Once the IDOC is send the business sends the sales order information and once its sends the information we have to trigger an Idoc to the sender from XI.
This is the basic requirement.
Can anyone help me in finding a solution.
I thought of using Wrapper RFC instead of using an IDOC while sending, but in response how can
I trigger the IDOC to the R/3?
Thanks in advance.
Glen,
Please correct me if I understood ur reqmt wrongly!
Basically you are sending IDOC from R/3 to XI. Now XI has to send this to Webservice and get back the response. With the Response, you need to Post IDOC to R/3. Am I correct?
R/3-->XI>Webservice>XI--->R/3
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Raj,
Thanks for your response.
What you have understood is correct, but while mapping the IDOC to SOAP(Web services) there are some fields in another sales order record in R/3. How do i get that record details and one more thing is when i send the IDOC to xi the Purchase order status should be updated. Can I ask ABAPer to write BAPIS fr this. Can I trigger this BAPIs from XI?
Glen,
Yes u can trigger BAPI frm R/3. Since you said u need to send PO+Sales order data , I would say u can create BAPI and send it to XI. Also when the Purchase order status must be updated? When the data posted to Webservice or once we get the response from Webservice? Are u going to call Webservice Synchronously?
raj.
Raj,
we have to update the purchase order status 3 times,
once the idoc sent to XI,
then again when we get Acknowledgment
and at last when we get salesorder info. from the receiver(SOAP).
I have to do mapping from IDOC to SOAP right?
If yes
then there are some fields in Sales order record which are not in the Purchase order(IDOC) which is in R/3 , How to get that record into XI so that I can do the mapping ?
Can we use a BAPI so that it will get that sales order record and we can call that BAPI from XI?
Glen,
I'm sure u need BPM for this. How many balance fields to be mapped by using sales order create? Let say if it's 1 or 2 u can do lookup from Mapping and fill those fields. If the fields are more then what we can go ahead with the below flow in BPM.
Recieve IDOC -
>Transformation(To call BAPI sales Order)---->Synchronous Send(to get BAPI sales order)->Transformation(Use two messages as source IDOC and Response of Synchronous Send and target as SOAP)->Synchronous Call(to cal webservice)-->Send Asynch to R/3
raj.
Raj,
Thats great, thanks for your fast response. Actually I have to submit a report by today evening.
So the solution u gave will get the reponse from the webservice. Again when we receive the (invoice)response from webservice we have to check for some condition in that invoice and then we have to trigger a Goods received IDoc to the R/3,
then R/3 will trigger another IDOC with the Invoice information from R/3 database. We have to compare both the IDOC got from the R/3 and the Inovice(response) and then if they are ok,
then we have to trigger invoice verification.
So do u think we can do this in XI.
Thanks a lot for your help Raj.
The client wants to post Good receipt by checking some conditions, if the condition fails we wont send any good receipt. In both cases we have to wait for the Idoc(some invoice information) that to be triggered from R/3 and then we compare both the idocs and then trigger an invoice confirmed.
(Bit confusing, but its the client requirement)
raj,
Recieve IDOC -
>Transformation(To call BAPI sales Order)---->Synchronous Send(to get BAPI sales order)->Transformation(Use two messages as source IDOC and Response of Synchronous Send and target as SOAP)->Synchronous Call(to cal webservice)-->Send Asynch to R/3
In the above process where we can include another BAPI in order to update the purchase order at R/3 side.?
Glen,
> AS soon I receive the IDOC then I have to update,
You can keep Send step after Receive IDOC.
> then when I get Acknowledgment from Webservice then we have to update and finally when we get response then we have to update. So, we have to update 3 times totally.
What do u mean by acknowledgement and response. If you call webservice then only response will come back not the Ack! You are considering the Ack as response, if yes then after Synch call to webservice keep the send step.
Glen, I believe i'm taking u in the right track. I also suggest you to wait for other experts opinion on this.
raj.
Receive IDOC -
>Transformation(To call BAPI sales Order)
1) here when I receive the IDOC I have to update the PO status at R/3(can I update that by calling BAPI?)
and reg the ack and response..
2) According to me when the IDOC is posted to webservice(soap), dont we get an acknowledgment saying that msg received and then afterwards webservice(soap) will process the msg and send the response. Is this correct?
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.