ABAP webservices XIF adapter?
Hi,
We are going to invoke SAP CRM objects web services via SOAP. Do we need a J2EE engine? Can't we do it with ABAP enginer? without it, is it difficult to figure out the details of WSDLs to use? If so how..
Thanks,
Vijay
HI
As CRM Server works on the Pricncple of WAS technology java+ ABAP it can understand that only a J2ee server is must to undertand this WAS technology and get convert ABAP to JAva lang so J2ee is used , but SOAP is for connection with other Softwares eventhough SOAP is used you use J2e is neccessary, where as Xif is only a External Interface Adapter
to allow the data into CRM and out from CRM by activation , a simple program ALE and SOap get Coverted into Xif format
to convert the data for convience of CRM Server
Reward
Venakt
Similar Messages
-
How to consume a ABAP webservice in a webdynpro app?
Hi,
I have a BAPI in ABAP that is exposed as a webservice. I want to use this to build a webdynpro app so that i can consume this webservice. This BAPI returns the Employee data. As soon as the person logs into the portal i am going to pass his login id to this BAPI so that it retrieves the Employee data for that user id. But i need to know the procedure of consuming this webservice in a webdynpro app. Any pointers in this regard will be greatly appreciated.
Thanks,
Arun E VHi Arun,
Consumption of a web service is univesal I guess so it wont matter if it is an ABAP webservice. For consumtion of webservice in Web Dynpro you can go through the following tutorials
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf</a>
Do reward points if it helps
Regards
Sid -
Consuming ABAP Webservice in Webdynpro app
Hi,
I have wrote a webdynpro app for consuming ABAP webservice. I used the procedure in the link below
http://wiki.sdn.sap.com/wiki/display/WDJava/ConsumingABAPWebServiceinJavaWD
Everything seemed to be went well, I created model and Webservice destinations. I have written the code for calling the webservice, which does not return data as part of response. I mean though the RFC returns data at the backend,its not showing the returned records in the webdynpro table.
I have also tried checking the same by setting external break point. when the webservice is executed from my webdynpro app,it goes to the ABAP debugger and i could clearly see the records in the export parameters of RFC,but the same is not returned in the reponse object.
Could any one let me know what could be missing. Any help is greatly appreciated?
I have used the following code in Init method of my View
Request_ZMYRFC input=new Request_ZMYRFC (model);
wdContext.nodeRequest_ZMYRFC ().bind(input);
ZMYRFC req= new ZMYRFC (model);
req.setPUserid("EDLAS00C");
req.setPLtc("E");
input.setMYRFC (req);
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentRequest_ZMYRFCElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeZMYRFCResponse().invalidate();
wdContext.nodeReturn_res().invalidate();
wdContext.nodeItem_res_ret().invalidate();
wdContext.nodeILtcg_res().invalidate();
wdContext.nodeItem_res_ltcg().invalidate();
catch(Exception e)
manager.reportException(e.getMessage(), false);
Thanks
Santhoshsantosh,
Check provider system defination in nwa for webservice.After this mapp the provider system and service group after wd app deployed.This is mandatory while consuming webservice in webdynpro for latest versions of CE7.11 or later.for reference check this article/document. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
Thanks,
Murthy.
Edited by: Murthy Karaka on Mar 22, 2010 12:59 PM -
Consuming ABAP Webservice from Android device
Dear Experts,
I am ABAP developer (limited knowledge on android) trying to connect Android device to a.SAP Webservice
Through trial and error and help from SDN and Android forums i managed to link up the ABAP webservice and android using KSOAP2 API.Its working perfectly now but only when i save the username password for SAP access in the webservice settings in transaction SICF.I need to access the service by passing the username and password values through the SOAP request header but so far my efforts have failed me.im presently using the following code to pass my auth values.
I would be grateful if you can point me in the proper direction.
String NAMESPACE = "mynamespace (works properly without auth)";
String METHOD_NAME = "mymethod (works properly without auth)";
String SOAP_ACTION = "mynamespace/mymethod (works properly without auth)";
String URL = "myURL{works properly without auth)";
SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
Request.addProperty("Purchaseorder","4500001168");
Request.addProperty("Username", "myusername");
Request.addProperty("Password", "mypassword");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(Request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject response = (SoapObject)envelope.bodyIn;
String testValue = response.getProperty("PoHeader").toString();
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setMessage(testValue);
alertDialog.show();
catch(Exception e)
e.printStackTrace();
Thanx & Best RegardsHi,
you can develop a custom Transport class wich extends the: HttpTransportSE class by authentication features.
example:
public class AuthTransportSE extends HttpTransportSE{
private String username;
private String password;
public AuthTransportSE(String url, String username, String password) {
super(url);
this.username = username;
this.password = password;
protected ServiceConnection getServiceConnection() throws IOException {
ServiceConnection midpConnection = new ServiceConnectionSE(url);
addBasicAuthentication(midpConnection);
return midpConnection;
protected void addBasicAuthentication(ServiceConnection midpConnection) throws IOException {
if (username != null && password != null) {
StringBuffer buf = new StringBuffer(username);
buf.append(':').append(password);
byte[] raw = buf.toString().getBytes();
buf.setLength(0);
buf.append("Basic ");
org.kobjects.base64.Base64.encode(raw, 0, raw.length, buf);
midpConnection.setRequestProperty("Authorization", buf.toString());
Afterwards you can initialize the Webservice with:
AuthTransportSE androidHttpTransport = new AuthTransportSE(URL, userName, pasword);
Cheers,
Dennis. -
Creation of IBASE with the XIF adapter
Hello,
I am trying to create IBASES using the XIF adapter (LSMW). The actual creation of the IBASE is no problem, but creating an IBASE with a partner + address connection seems not to work. In HELP.SAP there are examples of IBASE craetion with components but not with partner relationships.
What do I need to fill in the E102CRMXIF_IBASE_PARTNER structure, does anyone have any documentation on this subject?
Thanks advance!
Arjan.Hi Arjan,
Do you have any documentation of this process 'Creation of IBASE with the XIF adapter'. Please post it.
Thanks in advance.
Sameer Ahamad -
XIF Adapter : Upload of Business partner(Using LSMW) Telephone Numbers
Hi all
I'am uploading BP data using XIF Adapter and I am using the LSMW-IDOC Method (Basic type:CRMXIF_PARTNER_SAVE_M02)
Here My client came with 4 telephone numbers, can any one please help me how can I uploade these 4 telephone numbers. when I am trying to upload by default it was accepting only the first telephone number and leaving the others
Thanks in advance
Warm regards
bmsHi Thierry,
thank you for that suggestion. I've already found [ODS for Marketing Attributes|http://help.sap.com/saphelp_crm50/helpdata/en/07/d545a50869754fbad8062e17c2ea0e/frameset.htm] when I've searched in the CRM Documentation. I've just asked my BI colleague to do the extract to BW. I will then write a Web Service on the BW which can be called from the external system.
Best regards
Gregor -
How to use ABAP Webservice to Trigger the start of BPMN
Hello,
My scenario is that i define a webservice in the SAP ECC system and import it in the process composer as the service interface. As to the start event, i set the above service interface and operation as the trigger service.
After then, i call this webservice in the user exit of a T-Code. However, the BPMN is not started by this webservice call.
Anyone can explain on this and tell me how to use the ABAP webservice as the starting event service interface?
Thanks in advance
ErickHi Erick,
When you develop a process model and use some arbitrary service interface in the message start event then this will be exposed on the Java / BPM system you deploed the process definition on.
That allows you to start the process via this web service once you know its endpoint.
So in case you want to start your process from the ABAP side you would need to call this endpoint on the Java side out of your ABAP system.
Simply calling the web service / code on your ABAP system and hoping that this will also invoke the Java stack won't work I AFAIK.
Best regards,
Martin -
Hi Experts,
Can any once explain about ABAP Web services , can handles high volumes of data and how much it is good in terms performance ?
Which is the best one in ABAP webservices and XI webservices?
Regards,
Praveen KumarHi
Web Services Development in ABAP [original link is broken]
https://www.sdn.sap.com/irj/sdn/webservices-elearning
http://www.sappro.com/downloads/UDDI.pdf -
Do you think middleware or XIF adapter is based on SOA?
Hi,
For current CRM 5.0 version, do you think middleware XIF adapter is based on SOA? Or classic tech.?
How about it in new CRM?Long,
Technically a lot of the so called SOA applications that are "hyped" still use ancient technologies beneath the surface, and only have a very shiny enterprise service layer or SOA layer on top.
Now is the design of XIF middleware an SOA design? Probably by the strictest defintion the answer is no. However if you look at the general design of CRM the application is more tailored to supporting the shiny interfaces of SOA than say some parts of ERP.
My favorite case in point is that in ECC 5.0/6.0 inbound vendor master creation via IDOC processingstill uses a BDC session to create the vendor. In CRM BDC is not used anywhere, and the application is designed in a layered approach with several API layers that represent the logical layers.
The newer CRM releases have an enterprise services tool, that allows you create new services based on BOL objects. However there is a lack of "predefined" scenarios in CRM. You might consider this a drawback, however this allows for flexibility. The other benefit is that because of the design of the CRM system, putting an new UI layer does not involve re-writing all layers of the application.
Is this what the SOA purists want, maybe not, but for the pratical side of the house, CRM provides us the flexibility needed to do what is necessary. I see the adding of SOA shiny interface features as the added bonus.
Take care,
Stephen -
Strange problem in XIF adapter?
Hi ,
I met a strange problem, I used to XIF adapter and IDoc to replicate BP to external system. When I update and save a BP in system, there's no IDoc generated when I check BD87. But if I use CRMXIF_PARTNER_TEST, the IDoc can be generated and sent out of system.
What's the reason?Hi,
The issue is resolved by applying a new patch.
Regards,
Joe. -
JAVA webservice to ABAP Webservice
Hi,
There is a Webservice developed in Java and published.
The same webservice we are now develping in ABAP. Though there is no change in the functionality of the webserice, the WSDL generated for ABAP webservice is looking different than the one for JAVA. How to resolve this issue? I do not want to ask the service consumer to regenerate the Clinet Proxy for the new WSDL.
Could you please help me in resolving this issue?
Thanks & Regards,
Kishore Babu THello Johannes,
Which WSDL do I need ? In the wsnavigator I can choose RPC or Document, and then Default or SAP_WSDL to download the WSDLs.
Try this: [Accessing a Service|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b8/a3cca166d440c29931c0c5494c32e5/frameset.htm]
And do I need to publish the webservice (which I want to consume) on the Java stack ? or ist it already published when the wsnavigator can access it ? (the service resides on the Java stack, and I want to consume it from the ABAP stack from the same system)
In short, no. You can safely use the Web service without publishing it - as Olivier explained, you need only the WSDL.
The "publishing" term is usually used when you register (publish) a Web service in the UDDI server or the Services Registry. Publishing is only relevant if you want other people to be able to locate the registered service in the UDDI server.
Hope this helps,
Rossen -
Regarding the xif adapter and ascii adapter
Dear experts
I have a requirement where i have to connect the crm system to non sap systems using the xif adapter and ascii adapter could you tell me what are the configurations steps to be followed for this.
Thanks & Regards
Rao1) Don't use the ASCII adapter
2) Use the LSMW with the XIF adapter instead
As the previous posters said, it depends on what you want to convert, which will determine how to use this. A quick example of the XIF adapter with the LSMW is located in my blog here:
/people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter
Plus do a search on this forum for more information on using the XIF adapter.
Take care,
Stephen -
Interface to external using XIF adapter and Middleware
Hi Team,
I have to download Customers, Prospects and Employee data from ODS and ORACLE systems into CRM. Data should flow in both ways. its 2 way connection and Nightly sync is expected but not real time. can i use XIF adapter with Middleware for this? or it should be done only using XI. i will make sure to appreciate your response by awarding points.
Thanks.Hi Team,
Anybody extracted Data from External ( ORACLE, SQL Server) into CRM using XIF Adapter and Middleware BDOCs? Please respond if it is possible to do this way.
Thanks in advance. -
Hi,
I want to understand the functionality of the CRM Middleware XIF Adapter with IDOCs.
For example:
If a business partner is created and IDOC is triggered and a flat file is generated in a specific location.
If I want to import a Business Partner from a 3rd party system I customize IDOCs Inbound...
The questions is.
How does the XIF Adapter knows when the file is created in the specific location?
For Example:
If I want to import an Object (ex. BP) that is not standard so an Idoc for that object does not exist...what do i need to do?
Do I need to create a BDoc and an Idoc?
Only an Idoc? Only a Bdoc? an Idoc based on an Idoc?
Thanx in advanccedhi
In the Middleware through XIF adapter we can integrate the data with third party system
The XIF adapter provides..
-a service in the message flow
-Idoc and XML interfaces for external systems
the steps for IDoc outbound processing are..
Create and RFC destination
Create a logical system
Create a Receiver Port
Create a Partner Profile
Enter outbound Parameters
Create a Site
Maintain Subscriptions and Publications
Assign maintained site a interface type
Inbound Processing requires following settings..
Create a logical systeam
Prepare sender and receiver systems
Setup logical systems
Name logical systems
Create a Partner profile
Enter a suitable Message type in the inbound parameters
The system generates Bdoc and with the above settings we convert it to the Idoc
hope it gives some clarity
regards
Venu -
Monitor XML-Messages sent by the XIF adapter
Hello to everybody,
I am looking for a possibility to monitor all XML-messages that are sent by the XIF Adapter to external servers. I would like to see the detailed XML messages.
Does there exist anything?
Thanks and regards
MichaelaHi Michaela
XML messages can be sent to the SAP infrastructure where the XML messages can be mapped in to other XML schemata.CRM business connector communication.IDocs should be used:An IDoc transfer is quicker in comparison to SOAP/XML because the IDoc document contains no metadata information(tags)unlike an XML document ,and therefore ,the size of documents sent down line is substainally smaller in comparison.More information about XIF adapter may be found in the SAPNet vai the alias:crm:ci about the external systems.
Cheers
Maybe you are looking for
-
How to restrict the results in the search help
Hi Friends, My current assignment calls for a program using search help. The scenario is.. there are different radio buttons for organizational units and if a unit is selected, corresponding users need to be displayed in the screen. Multiple selectio
-
Hi, We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include t
-
Is System Restore the only way to sort out the 11.1.4 install problem?
After everything else, went for system restore to get 11.1.3 back. Apple owe me two hours of my life!
-
IFRIC 1 in IFRS ---- Is it possible in SAP to discount a liability figure
Hi All, As per IFRIC 1 in IFRS: To measure decommissioning provision, the periodic unwinding of discounting shall be recognised in income statement as finance cost as it occurs. Is it possible in SAP to discount a liability figure and charge to inter
-
Hi All, I have an ALV report in which i am using reuse_alv_list_display and this executes with certain details like Delivery no , sales organisation , reference no, transport group, shipping point and so on . the report gets displayed as below show