Question:
Hi there,
Regarding Business Connector scenario:
IDOC from SAP -> xCBL XML format, post the xCBL XML to a URL.
I have created a routing rule automatically in the Business Connector
by sending an IDOC from SAP. In the routing rule I have selected the transport type XML,
and specified the URL to be posted to.
This works fine, an IDOC XML is posted to the URL.
Now I have inserted a map step, in order to map from IDOC (Orders) to xCBL format, in the generated service "Default.wm.PartnerMgr.flows...ORDERS", but it seems like the incoming IDOC record list is missing in the pipeline.
Any ideas how I can access the IDOC data, and send the result xCBL XML document via the OutboundProcess (seems like the OutboundProcess is getting the IDOC data from somewhere?) ?
Or is there a better way to implement the scenario?
Thanks in advance,
David
Answer:
Hi,
your routing rule should be changed to B2B Service. it will call the service that you create to map and send xml.
Good Luck
SSII
Answer:
Your method simply forwards the Idoc to the URL in an xml format.
In order to send it you have to create a flow service that will receive the IDOC and then map it to the xml document, then send it to the URL.
regards,
Svl
Answer:
Great! Thanks!
Seems to work now with B2B service. (besides that somehow the
BC wanted to create another routing rule with other sender/receiver, the previous routing rule
had numbers sender: 16403 and receiver: 000022071 which were not defined as Logical systems. I have to check if someone changed the model/partner profiles/etc. in the SAP system)
Anyway, does anyone know how to wrap the XML with a SOAP 1.1 envelope?
Best regards,
David
Answer:
The BC deals with the soap protocol in standard (I think it's from version 4.6). Go and see the public package SOAP folder. Go and see the SAPBCBuiltInServices.pdf file to help you...
have fun
S.
Answer:
Hi all,
Regarding Business Connector scenario:
IDOC from SAP -> xCBL XML format, post the xCBL XML to a URL.
How do you convert IDOC to xCBL format ?? does exist any built-in service to do that ??? or you have to develop it ??
thanks in advance
Ralph
Answer:
Hi,
any responses that can hep me ??
thanks in advance
Ralph
Answer:
How do I post the IDOC from the SAP BC to an URL? I am able to send the IDOC (DELVR03 type) to a service in SAP BC. I have created a record referencing http://ifr.sap.com. I have also created the mapping step where I map the individual data fields to from the IDOC to a custom fields (customer format).
My problem is how do I proceed to create an XML file to post to an URL from here? Do I need to create another step after the mapping or is there a service that I need to invoke?
I sincerely appreciate any help.
rr
Answer:
Create another step in your flow service after the mapping for:
RecordToDocument - to convert XML structure into a single string
and then:
pub.client:http - to post this string to your URL.
The input fields that I fill in in the HTTP flow step is:
url = "your url"
method = "post"
data->string = "string that is the result of recordtodocument step above"
headers->Content/Type = "text/xml"
Hope this helps.
Matt.
Answer:
Matt,
Thanks for your reply. I am going to try that now.
Regards,
rns