SAP(IDOC) ---PI---webservice
Hi
Is it possible or not to send IDOC to webservice via PI ?
I need a necessary things and steps to setup in PI (BPM etc) to send the IDOC from SAP to Webservice via PI
thanks
manian
Hi,
Yes You can send the Idoc to Webservice Very Well through XI
If you want Response back to SAP means we need to configure BPM else no need of any BPM
ALE Settings
Steps
SAP XI
1) RFC Destination (SM59)
a) Choose create.
b) Specify the name of the RFC destination
c) Select connection type as 3 and save
d) In the technical settings tab enter the details SAP SID/URL and system number#.
e) Enter the Gateway host as same details above SID/URL.
f) Gateway service is 3300+system number#.
g) In the Logon /Security tab, enter the client user & Password details of Destination system.
h) Test the connection and remote logon.
2) Create Port (IDX1)
a) Select create new button
b) Enter the port name as SAP+SID (The starting char should be SAP)
c) Enter the destination client.
d) Enter the RFC Destination created in SAP R/3 towards other system.
e) Save
3) Load Meta Data for IDOC (IDX2)
a) Create new
b) IDOC Message Type
c) Enter port created in IDX1.
SAP R/3
1) RFC Destination (SM59)
a) Choose create.
b) Specify the name of the RFC destination
c) Select connection type as 3 and save
d) In the technical settings tab enter the details SAP SID/URL and system number#.
e) Enter the Gateway host as same details above SID/URL.
f) Gateway service is 3300+system number#.
g) In the Logon /Security tab, enter the client user & Password details of Destination system.
h) Test the connection and remote logon.
2) Create Port (We21)
a) First Select Transactional RFC and then click create button
b) Enter the destination port name as SAP+SID (The starting char should be SAP)
c) Enter the destination client.
d) Enter the RFC Destination created in SAP R/3 towards other system.
e) Save
3) Create Partner Profile (WE20)
a) Create New
b) Create the Partner no. name as same the logical system name of the destination system.
c) Select Partner type LS
d) Enter details for Type: US/USER, Agent, and Lang.
e) Click on the + button to select the message type.
f) Select Partner no. and LS which ever create above.
g) Select Message type
h) Select Process code related to the Message type.
I) save.
In SLD u2013 System Landscape Directory
TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
Ts for Third Party (Logical system):-
BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
BS for Third Party (Logical system):-Enter the XI logical system name.
In Transaction SALE
Define and Assign the logical system name.
IR
1)Import the Idoc in IR for Sender Side Structure and use this Idoc itself as DT MT and MI. No need to create
2) Import the wsdl file given from the webservice team
3) create MI for this webservice
4) create Mappping and interface mapping
ID
1)No need to create any Sender CC for Idoc, why because Idoc Sits on ABAP Stack and can directly interact with the IS
2) Create Receiver SOAP CC
3) Create Receiver Determination and Interface Det
4) Create Receiver agreement
5) no need of Sender agreement
REgards
Seshagiri
Edited by: N V Seshagiri on Aug 12, 2008 7:01 AM
Similar Messages
-
SAP(Idoc) = XI = ThirdPart(WebService)
Hello friends!
I have a problem with development of acknowledgement system with SAP(Idoc) <=> XI <=> ThirdPart(WebService) scenario.
My case:
Scenario looks like:
SAP(Idoc) <=>(Idoc adapter) XI (SOAP adapter)<=> ThirdPart(WebService)
It must work this way:
SAP system send IDOC, then XI map it and send it via SOAP-adapter to third part webservice. Then webservice answer to XI with structure сontains "TRUE" or "FALSE",
and then XI must inform SAP ALE/IDOC system if current information from idoc was successfully added to webservice or not.
But how can I get it? As far as I understand ALE/IDOC system I have to create ALEAUD by myself, put status of idoc depends on webservice return and send ALEAUD idoc to SAP.
I'am right?Hi,
You can use BPM for this Idoc--Soap Sync Process
Design objects:
Data type & Message Type
1) Import the IDOC and Later you import the Idoc, doble click on it a export it to your driver, next import it as External Definition for reason becouse if not, you wont be able to create a MI type synch with IDOC and genericResponse structure
2) Create data type for your Response Type of IDOC
3) Import the WSDL File For Request and the Response Type
4) Create the Message types according to the Data types which we created
Messgae Interface:
1) Outbound synchronous:
output message will be ur idoc external definition file
input message will be ur message type that u have created.
2) Abstract Outbound Synchronous:
use the same as in Outbound Synchronous
3) Inbound Synchronous:
input message will be ur request message of RFC/WebService
output message will be ur response message of RFC/Webservice
4)Abstract Inbound Sunchronous:
input message will be ur request message of RFC/WebService
output message will be ur response message of RFC/Webservice
Mapping
Request Message Mapping:
b/w ur idoc external definiton and request message of RFC/WS
response Message Mapping:
b/w ur Response message of RFC/WS and ur message type
Interface Mapping
Import MI(abstract) of IDOC
Import MI of WS
select the mapping for request and response Tab
BPM
1) In container window define a variable named IDoc_ABS with category abstract interface and
type (select the MI of IDOC alone)
define a variable named GenericRespnse_abs with category abstract interface and type (select
MI of genericResponse alone)
2) Create a Recieve Step --> in property message select the container you define before of idoc.
3) Define a Send Step--> mode synchronous
select MI type abstract and sync (idoc and genericResponse)
for property request message selects container Idoc_ABS
for property response message selects container GenericRespnse_abs.
Save your Changes and thats all for BPM
*Configuration *
1) Create scenario
Assign BS and create comunication channels with QoS (quality of service) type BE
2) Import your BPM
Create a Receiver Determination
-->in the target service select the BPM. Save
-->In overview windown at foot windowns select MI IDoc_abs only. nothing else
Create a Receiver Determination
-->here the system who send data is BPM
-->in the target service select the BS of receiver system.Save
-->In overview windown at foot windowns select interface mapping and assing communication channel
what we do here. the flow is next
1) Receive data from sender system and send it to BPM
2) BPM call bs of target system (WS). how? because in interface determination you selected
before the interface mapping
Regards
Seshagiri -
IDoc to webservice and get the response back into another IDoc.
Hi guys
We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
Questions:
1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
2. Is there a Async to Sync bridge in BPM?
3. How do I use this bridge in my scenario and customize it?
4. If not possible, provide me the related docs using BPM for the same scenario.
Appreciate your quick response
Regards
NaiduHi,
this link may help u............,
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1134. [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403. [original link is broken] [original link is broken] [original link is broken]
Regards,
Azeez khan. -
Hi
I am using the BPM for the IDOC to Webservice Synchronous Scenarion...
When i trigger the IDOC from SAP it stuck in the Queue ...when i checked in the SXMB_MONI and when i clicked in PE it taking me to the INbound Queue ..
When i opened the Queue its showing the SYSFAIL ..and when i double click on that its shoes me Permanent ERRor in BPE Inbound Processing..
In BPM i used the Receive and Send Synchronous and Send Asynch steps ..
Did i miss Any thing
SVHI,
I think for IDOC to Webservice you are going for Async to Sync bridge with BPM and have the similar steps as mentioned in below link.
Asyn - Synch BPM - Async/Sync Communication using JMS adapter without BPM (SP 19)
If there is some other flow plz let me know. Also let me know the exact error that you are facing with it.
Thanks
Swarup -
Hi
I have a scenario where i have to map Idoc to webservice and webservice response to another idoc ..
is this possible ..
SvHi sv
check this links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
Testing XI exposed Web-Services
Testing XI exposed Web-Services
Invoke Webservices using SAPXI
Invoke Webservices using SAPXI
http://help.sap.com/saphelp_nw04/helpdata/en/cd/d988966a2211d3805400c04f99fbf0/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10c73036-f019-2b10-20bc-f15a25be9588
regards
srinivas -
Want to create IDoc to Webservice Scenario
Hi All,
I wan to do Idoc to Web Service Scenario, I have already done Idoc to File Scenario and I have mapped the file of both end in ESR and I am done with Configuration in Integration Directory.
Now If I want to convert it to IDoc to Web Service Scenario, what all steps need to be done. and also want to know that How we can access and Send the files from Web Service to PI 7.1. As such web service is not available need to create the same also.
Can anyone provide How to guide on this scenario.
Regards,
Nitin Patil
Edited by: Nitin Patil on Dec 19, 2008 2:44 PMHey,
as you have familiar with idoc to file, the idoc to webservice scenario is not different.
You need to do the ALE settings on the R\3 side. import the Idoc in XI.
Now for mapping purpose you need the source and the target structure.
In case of webservice you need to import the WSLD (unlike the file in which you wold have created the data type and message type)
In order to import the WSLD, you need to do following things.
Ou require NWDS and the following settings needs to be done
Deployement of Web Services:-
Step 1)
Goto Windows->Open Perspective->J2EE development.
Step 2)
Goto File->new->Ejb module(give project name).
Step 3)
Right Click on the <project name> eg. work_ejb select new->Ejb.
Step 4)
Give an appropriate EJB name and default package (eg. com.xxx.yyy).
Also select stateless Ejb.
Click next then next and then next.
Step 5)
Add method with an appropriate name.
Mention the return type and also assign the required parameters.
Logic is written in the EJB module bean.
Step 6)
Right click on the <project name> and build.
Creates .jar
Step 7)
Goto File->new->Enterprise Application project(to create EAR)
Step 8)
Give project name, assign EJB and build.
Creates EAR.
Step 9)
Right Click on the EJB.
Goto new->Web services.
Specify name of the web service.
Specify EAR in the WEB service.
Step 10)
Build EAR.
Build Ejb.
Step 11)
Goto Windows->Prefrences->SAP j2EE engine.
Give the message server host name.
Step 12)
Right Click on EAR and deploy.
Step 13)
Goto-> http://<host name>:<port no.>/index.
Step 14)
Choose the web service name,test it and download it(default WSDL).
Step 15)
Import port(WSDL) in External definition of SAP PI.
After you import the wsld, you need to follow the same procedure as idoc to file.
regards,
Milan -
IDOC To WebService Asynchronous
Hi Sap All.
i have got an issue in an IDOC to Webservice Asynchronous.
the Issue is the IDOC has got 10 fields which should be mapped with 10 fields in webservice(XSD) structure but then after mapping to the webservice structure of 10 fields ,all the 10 fields in the reciever webservice should be converted into a single long string which should be passed to reciever via an SOAP reciever channel.
the reason y pi need to convert all 10 fields of reciever webservice structure to a single long string is :
i have got a target url as http://trsdevapp1:9080/xxwww/services/ServiceHandler/wsdl/ServiceHandler.wsdl which pi need to send the data to,but when i type this url in my soap test tool it has given me the structure with only one long string where pi need to send the data to.
can any body help me in doing this .
regards.
VarmaHi Varma,
The XSD hwta you have it has 10 fileds and you have done mapping accordingly,that is the reason you getting data with 10 fileds.
If you want to append to onse sttring then get XSD for only new structure , like how you want to append ,like you want to genarate one string ??
check out this blog
/people/jyothi.anagani/blog/2010/06/17/convert-the-input-xml-to-string-in-pi-71-using-standard-graphical-mapping
Regards,
Raj -
IDOC to Webservice (Async/Sync scenario)
Hi Experts,
Can you please help me out need to design an SEnario
IDOc to webservices useing SOAP. to External WEbservice,
I need some step to design.and Need to validate VEndor Number in that. in External webservice.
Reg's
Rajhi raj,
u can use asynch/synch bridge in bpm for synch idoc-xi-soap.
for bpm refer:
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
for soap adapter refer;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
for idoc refer:
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi - ALE settings for R3-XI
u can refer all these links and complete ur scenario.
[reward if helpful]
regards,
latika. -
How can i use C# method to SAP IDoc
Dear Friends
i have to do one scenario in which i have to connect to database let us say SQL Server but i can't touch Database directly i can call a C# method(3rd party application is in .NET) and using XI i have to send it to SAP iDOC.
can any one help me in this how to proceed
Thanks in Advance.
Ishika<i>Do you have any document for that on how to do it with webservices.</i>
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
See this
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Regards,
Prateek -
SAP Idocs -How to handle response from target system
Hi,
I am working on a scenario in which I will send Idocs asynchronously from SAP thro a SOAP adapter to a webservice deployed on the target system.
After the Idoc data is posted in the target system,the target system will send the acknowledgement for the receipt(basically response message).How to handle this scenario?
SAP Idoc( outbound asynchronous)---> SAP XI3.0(soap adapter) ---> Target system(inbound synchronous)
Do I need to go for BPM to handle this situation?
Is there any alterantive to BPM.
If any of the forum members who have worked on the similar scenario could help me in finding a better solution,I will be thankful to them.
Thanks,
LeoHi Udo,
Thanks for the info.My scenario is like this.
SAP R/3 Idoc -> SAP XI 3.0 <-> Webservice in the target system.
The webservice in the target system will receive the Idoc as a request messsage and send a response message synchronously.
Since Idoc is sent asynchronously( I believe Idocs sent from SAP are always asynchronous),there is no Proxy waiting in SAP R/3 to receive the response message from the target system.
If I go for BPM for the above scenario,will the BPM steps look like the following.
1)Receive Idoc from SAP.
2)Send Idoc sysnchronously to webservice
3)Receive the response from the webservice synchronously.
4.Post the response message to a proxy which can handle it further in SAP R/3.
Please note that my knowledge in BPM is limited and correct me if I am wrong.
Thanks in advance
S.Banukumar -
Hi,
<i>"RFC-enabled function modules, function groups that contain an RFC-enabled function module, BAPIs, and XI message interfaces can be made available as Web services without any additional programming."</i>
http://help.sap.com/saphelp_nw04/helpdata/en/e5/a68d10f4eb894087fc9c1c3f9ae433/content.htm
I like to know if IDoc's can also be exposed as a Webservice..? If Yes, How.
Cheers,
Siva Maranani.
Message was edited by: siva marananiHi siva,
Have you achieved this thing?
Have you succeeded to expose IDoc as webservice?
If yes then how you have done it?
Thanks in Advance,
Bhavik -
Update Business Partner via SAP Business One Webservices
Dear all,
We use the SAP Business One Webservices to add/update businesspartners and items.
We can add/update items without any problem.
We can also add businesspartners without any problem.
But when we try to update a businesspartner.
We always get the error message : "Entry already exists in following tables:"
This is the code we use to update BusinessPartner:
Dim bpsService As BP.BusinessPartnersService = New BP.BusinessPartnersService()
Dim msgheader As BP.MsgHeader = New BP.MsgHeader()
msgheader.SessionID = sSessionID
msgheader.ServiceName = Global.BP.MsgHeaderServiceName.BusinessPartnersService
msgheader.ServiceNameSpecified = True
bpsService.MsgHeaderValue = msgheader
' fill business partner class
Dim oBp As BP.BusinessPartner = Nothing
Dim myBPParams As BP.BusinessPartnerParams = New BP.BusinessPartnerParams()
myBPParams.CardCode = sCardCode
' Call GetByParams command
oBp = bpsService.GetByParams(myBPParams)
oBp.CardName = "Test update BP"
Can someone tell me what is going wrong when I call this function :
bpsService.Update(oBp)
Kind regards
BartHi Bart,
I think the problem is because you are using the BPService twice without initializing it one more time in the middle.
You call first GetByParams and then Update.
The following code works for me:
myBPService = New BusinessPartnersService()
Dim myBP As BusinessPartner = New BusinessPartner()
Dim myBPParams As BusinessPartnerParams = New BusinessPartnerParams()
' Create Header
Dim msgHeader As MsgHeader = New MsgHeader()
msgHeader.SessionID = B1WS_WindowsSample.GlbData.sessionID
msgHeader.ServiceName = MsgHeaderServiceName.BusinessPartnersService
msgHeader.ServiceNameSpecified = True
myBPService.MsgHeaderValue = msgHeader
myBPParams.CardCode = MainForm.CardCodeTextBox.Text
myBP = myBPService.GetByParams(myBPParams)
myBPService = New BusinessPartnersService()
' Create Header
msgHeader = New MsgHeader()
msgHeader.SessionID = B1WS_WindowsSample.GlbData.sessionID
msgHeader.ServiceName = MsgHeaderServiceName.BusinessPartnersService
msgHeader.ServiceNameSpecified = True
myBPService.MsgHeaderValue = msgHeader
System.Console.Out.WriteLine("Update a BP")
myBP.CardName = "CardName MOD"
'/ call Asyncronous Add
myBPService.Update(myBP)
Hope it works also for you
Regards
Trinidad. -
HI
I am doing IDOC to Webservice Synchronous scenario using the BPM.. when i execute the scenario
i am getting error : SOAP: call failed: java.net.UnknownHostException:
In the receiver SOAP Communication Channel i dont have the SOAP Action.. is this mandatory
to fill the SOAP Action in the Receiver SOAP Communication Channel...
S VHi SV,
In ur altova XML spy ..open the WSDL, find out what is your
<soap:address location="
http://sapapp02.xxx.xxx.xxx.com:8002/XISOAPAdapter/MessageServlet?channel=:
xxx:CC_xxxy (this is just example soap address in WSDL)
u copy the SOAP address location from ur WSDL
( http://sapapp02....xxxy)
and paste in SOAP Comm. Channel connection parameters.
Check it again.
I think the SOAP URL which u use in Altova xml spy and SOAP CC is different.
Plz try and let me know the response.
Thanks
Prabaharan
Edited by: Prabaharan on Aug 13, 2008 12:39 AM
Edited by: Prabaharan on Aug 13, 2008 12:50 AM -
Issues in SAP(Idoc)-XI-File scenario
Dear All,
I am working on SAP(Idoc)-XI-File scenario. But in the Receiver agreement i am not able to see the idoc in order to specify some conditions there.
Please suggest if I have to do any settings in order to specify some conditions in the idoc.
Warm Regards,
N.JainHi nishu jain ,
U can specify the conditions in Reciever Determination.
1.Go to Scenarios
2.Choose your business scenario
3.Click Service without party
4.Double click Reciever Determination
5.U wil get screen in which there is a option called Configured Recievers.
6.Click there.then u wil get the screen with
Left Operand Op Right Operand
7.There u can specify the condition.
Reward points if u find this useful.......
Regards,
gyanaraj -
Hi,
I am doing IDOC-XI-Webservice-XI-FIle,
I am using Asyn-synch bridge.
While I am creating Synch_ABS ( IDOC & File ) it is showing that u cannot create interface with IDOC & non IDOC,
How should i proceed the scdenario.
Regards,
Jayasimha JangamHey,
Create a request structure for webservice
Create a response structure for webservice.
Create a Structure for file.
Map the idoc with the webservice request structure.
Map the webservice response structure with the file structure.
Abstract asynchronous interface:- Idoc
Abstract synchronous interface
Request:- request webservice
Response:- response webservice
Abstract asynchronous interface:- file
BPM design
Receive step:- abstract asynchronous interface
Transformation step:- mapping between Idoc and webservice request
Send step:- abstract synchronous interface
Transformation step:- mapping between Webservice response and file
Send step:- abstract asynchronousp:- file
regards,
Milan
Maybe you are looking for
-
Performance problem for mass transactions after upgrade from 4.7 to ECC6.0
Hi All, After upgrade from 4.7 to ECC 6.0 (IS-U), mass transactions such as FPY1, FPVA, FP04M are taking very long time to complete. for example, before upgrade the jobs sceduled for FPVA transaction take around 5k-6k seconds. Whereas after upgrade t
-
HELP! Need Hypethreading in Windows XP PRO
Sup I please need some help here to get Intel (HT) Hypethreading to work in Windows XP Pro. I have a Intel SL6Z3 Pentium 4 2.4GHz with HT technology, MSI 875P Neo mainboard (i875P An Intel Chipset that supports HT techology), AMI Bios 1.9 that sup
-
I've been unable to print a converted document.
-
I have songs on my computer i dont have on my phone
i have downloaded eminem curtain call and the eminem show.on my iphone, on neither of the albums i have sing for the moment. but wierd enough it is on my computer. how do i get sing for the moment on my iphone 4s, i havetried to sync my phone with it
-
Advice for logical workflow for color correcting and color grading
I am an experienced user of PPRO CS5. I am a novice with color correcting and color grading. I am also just barely competant in AE CS5. It has been suggested that I use AE for color correcting my footage. Can you advise me as to the most logical