Consuming webservice in a webdynpro component
Hi Experts,
I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.
Can any body give me a step by step approach to consume that webservice in my webdynpro Component.
If possible, Provide me some good material for consuming webservice in a webdynpro component.
Awaiting for a useful reply.
Thanks,
Ramanan.p
hi,
Few indroductory sessions
/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
It is possible to create webservice in ABAP as well as in Webdynpro.
ABAP Webservice:
http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
http://www.sappro.com/downloads/SAPXI.pdf
Webdynpro Webservice:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM
Similar Messages
-
Consuming WebServices in ABAP WebDynPro via webservice proxy code
Hi,
My requirement is to consume a webservice using WSDL(basic authentication) in WebDynPro ABAP. then based on the SOAP response I need to show a pop up message whether the response valid or not.?
I first tested the webservice by creating LPCONFIG Logical Port and generated WebService Proxy class.
It got response correctly with basic authentication enabled each time I send a request.
Secondly I generated webservice proxy code using service calls on creating webdynpro test application with some UI elements. Service call created Nodes,attributes and method correctly.
it's giving me error when it tries to invoke webservice method through generated code.
Question is that How do we code authentication to the webservice method via WebDynPro ABAP code.
I appreciate anyone who worked on this area and taken basic authentication via coding. or worked successfully through coding.
Thanks
Praveenhi
Refer this:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
It might be usefull for u.
Regards
Vivekananthan.S -
XI Webservice Exception within Webdynpro component
Hi All,
I have created a model for an XI webservice within the webdynpro project and created 2 view one for search and the other for search results and have accordingly associated the context variables of these views to the import and response parameters of the web service.
Now when I execute the method associated with this service I receive a service exception as enclosed below :
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized
Can someone please tell me if there any settings to be done on the client or server settings.
Thanks in advance.
Best regards,
DivyaDivya,
please go through this documentation and see if it helps.
http://help.sap.com/saphelp_nw04/helpdata/en/ab/08194116bfb167e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/bf/27fd3b651f6a1ce10000000a11402f/frameset.htm -
Consuming webservice in ABAP Webdynpro
Hi all,
I am using SAP ECC 5.0.Can I consume External webservices using ABAP Dynpro.Sending related links will be highly appreciated.
Regards
Sandeep.Sthe thread is marked as answered? is it resolved or are you still looking for an answer
-
Consuming Webservices in webdynpro ABAP
Hello,
I want to work with consuming Webservices in Webdynpro ABAP. Can anybody give an example for the same.
Any help would be highly appreciated.
Thanks.Hello
Here is a link.
It has many links for the webservice consumption in abap and web dynpro
Consuming webservice in a webdynpro component
actaully process on a high level is like this.
1. first you need to create an client proxy., For creating this go to SE80
and follow this link
http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/content.htm
2. then you can consume this service using the service call option of the web dynpro
here go to the web dynpro comp and right click on it and create-> service call
and use the proxy created in the first step here.
it will create one custom controller which you can use.
thanks
sarbjeet singh -
Change Tracking Webdynpro Component Error
I am using CE 7.11 SP04 with MDM 7.1 SP04.
Installed all the 2 webdynpro components.
Configured change tracking on MDM, also configured change tracking iView on CE.
Issue1:
When I run change tracking as an iView through Portal , the logoff button on change tracking iView throughs null pointer exception.
Issue2:
I am consuming the change tracking webdynpro component on my custom webdynpro wrapper.
I have added the following code to pass the id and lookup table as per the how tto guide to consume MDM webdynpro's.
RepositorySchemaEx schema = MetadataManager.getInstance().getRepositorySchema(wdContext.currentContextElement().getUserSessionContext());
GetPermanentIdFromRecordIdCommand cmd = new GetPermanentIdFromRecordIdCommand(
wdContext.currentContextElement().getUserSessionContext());
TableId tableId = schema.getTableId(ASSIGNMENT);
cmd.setRecordIds(ids);
cmd.setTableId(tableId);
cmd.execute();
int[] permIds = cmd.getPermanentIds();
if (permIds != null && permIds.length > 0) {
int permId = permIds[0];
wdThis.wdGetMDMChangeTrackerInterface().setPermanentId(permId); // until here it works fine
wdThis.wdGetMDMChangeTrackerInterface().selectLookupTable(""+tableId.getIdValue()); // it throws null pointer exception here in SAP delivered change tracking component. Not sure whether it is SAP bug. Has anyone faced same issue?
Any help is appreciated!}
Here is the error
java.lang.NullPointerException: while trying to invoke the method com.sap.mdm.ChangeTrackingBean.setLookupTableId(int) of an object loaded from field com.sap.mdm.MdmChangeTrackerComp._tracker of an object loaded from local variable 'this'
at com.sap.mdm.MdmChangeTrackerComp.selectLookupTable(MdmChangeTrackerComp.java:812)
at com.sap.mdm.wdp.InternalMdmChangeTrackerComp.selectLookupTable(InternalMdmChangeTrackerComp.java:333)
at com.sap.mdm.MdmChangeTrackerCompInterface.selectLookupTable(MdmChangeTrackerCompInterface.java:140)
at com.sap.mdm.wdp.InternalMdmChangeTrackerCompInterface.wdInvokeMethod(InternalMdmChangeTrackerCompInterface.java:148)
at com.sap.tc.webdynpro.progmodel.generation.ExternalControllerPI$ExternalInterfaceInvocationHandler.invoke(ExternalControllerPI.java:339)
ThanksJDBC Alias should be provided as the Application Parameter for webdynpro not in the URL.
-
Consuming MII WebService in Java WebDynpro
Hello,
We are facing a strange situation...
We define a transaction in MII to be consumed as WebService in Java WebDynpro. This transaction is a simple query on a DB returning 4 fields :
Shift code : SHIFT
Shift description : DESCRIPTION
Start time : START_TIME
End time : END_TIME
It works fine, we use the import adaptative web service wizzard in netweaver developper studio to use this WS...
But if we to an update on the webservice, changing a field name for example (SHIFT -> SHIFTCODE), we start to have trouble...
We got then the very helpful error message :
Exception on execution of web service with WSDL URL '<sever>/WebServices/GetShift' with operation 'Xacute' in interface 'XacuteWSSoap'
If I display the model info using wdContext.currentRequest_XacuteElement().modelObject().associatedModelClassInfo().getModelInfo().toString()
I got the following (extract) :
<ModelClassPropertyInfo name="SHIFT" dataType="com.sap.tc.webdynpro.model.webservice.types.string(java.lang.String)" readOnly="false" qName="SHIFT" required="true" backendType="null"/>
As you can see, the model definition is NOT updated and we still have SHIFT as name instead of SHIFTCODE...
If someboby has an idea, it will save us our life ;o)
Thank you
PS:it the same behaviour if we add a field...Oliver -
Did you try to reimport the WS model ..? If yes and still doesn't work...Try to delete the old proxy in webdynpro ( adoptive ws) and import again.
To avoid code changes,you can give same old name while fresh import.
Adoptive WS in webdynpro is not really like Adoptive RFC .It has some limitations.
Thanks
Hari -
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 Webservice in WebDynpro - Content-Type issue
Hi,
I am getting a shortdump when consuming WebService in WebDynpro.
I trace it back to the class CL_SOAP_HTTP_TPBND_ROOT method GET_HTTP_HEADERS whereby the
value = 'text/html; charset=iso-8859-1' while the constants tsrc_soap_11_http_content_type = 'text/xml' ; tsrc_soap_bx_http_content_type = 'application/x-sap-bxml' ; tsrc_soap_mtom_http_cont_type = 'application/xop+xml' ; tsrc_soap_mp_http_content_type = 'Multipart/Related'. Because of this Content-Type difference my WebDynpro application dumps?
Any ideas how to solve this problem?
Thanks.
Regards,
Amelhi,
Few indroductory sessions
/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
It is possible to create webservice in ABAP as well as in Webdynpro.
ABAP Webservice:
http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
http://www.sappro.com/downloads/SAPXI.pdf
Webdynpro Webservice:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM -
Getting error while consuming webservices
Hi Colleagues,
In our application we are calling External webservice through WSDL file. I have deployed the WSDL files on server and get the WSDL URL using "WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(), "file.wsdl")". I am able to call the service from WS Navigator.
I have consumed webservices uisng Adaptive webservice model and given the service group configuration ,created a provider system, assigned the provider system to the application through SOA Management-->Application Communication
Now when i tried to run the webdynpro application i am getting following error
Could anyone please let me know how to overcome this?
Exception i am facing is given here:
com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: BORM_SWDC_API_SLM_SP_GET_DLPortType using destination : dwd.SystemHome.50000
at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSEndpoints(WSQueryImpl.java:198)
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1448)
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:1025)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:578)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:338)
... 76 more
Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for web service mass config parameters service reference ID 'BORM_SWDC_API_SLM_SP_GET_DLPortType_service_sap_com_BASIC' and application name 'demo.sap.com/softcomp'. Check mass configuration has been done properly.
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:522)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:435)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:403)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:381)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateModelInfo(WSModelInfo.java:317)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateModelInfo(WSModelInfo.java:292)
at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:68)
at com.sap.demo.softcomp.model2.Model2.<init>(Model2.java:63)
at com.sap.demo.softcomp.softcomp.comp.SoftcompComp.wdDoInit(SoftcompComp.java:127)
at com.sap.demo.softcomp.softcomp.comp.wdp.InternalSoftcompComp.wdDoInit(InternalSoftcompComp.java:266)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:253)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:553)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1338)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoPreprocessing(AbstractExecutionContextDispatcher.java:146)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppPreprocessing.doService(DispatchHandlerForAppPreprocessing.java:35)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoPreprocessing(ExecutionContextDispatcher.java:100)
at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:74)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:571)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:602)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:252)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:677)
... 48 more
Caused by: com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: BORM_SWDC_API_SLM_SP_GET_DLPortType using destination : dwd.SystemHome.50000
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1459)
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:1025)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:578)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:338)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:321)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:282)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:514)
... 73 more
Caused by: com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: BORM_SWDC_API_SLM_SP_GET_DLPortType using destination : dwd.SystemHome.50000
at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSEndpoints(WSQueryImpl.java:198)
Please let me know how to overcome this?
Thanks in Advance
Regards
SwethaHi Swetha,
Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for web service mass config parameters service reference ID 'BORM_SWDC_API_SLM_SP_GET_DLPortType_service_sap_com_BASIC' and application name 'demo.sap.com/softcomp'. Check mass configuration has been done properly.
some configurations for consuming services using service group is missed out.
check this article for consuming service :
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46]
Thanks and Regards -
Invalid WSDL while consuming webservice
Hi ,
I have done with soap to proxy interface in PI7.1 EHP1,
Now i am trying to publish the sender agrement to service registry i am facing the issue as
Service Registry configuration issue
because of this i have created wsdl file from display wsdl tool in directory using the
http://<host>:<J2EEport>/XISOAPAdapter/MessageServlet? channel=<party>:<service>:<channel>
and now i tryed tested this wsdl file by using soapui its working fine.
the same wsdl when i am using in creating a webdynpro applicaiton to consume this wsdl file i am getting as invalid wsdl file.
i have followed the link to create a consume webservice
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/
Kindly suggest me is there any new way to create wsdl in 7.11 as i see old version 7.0 wsdl are wroking fine while creating a model in webdynpro application.
Regards
Vijay G
Edited by: vijay Kumar on Jun 9, 2010 1:31 PMHi,
Since you are using PI 7.1, you need not to define the websierce by using wizard in the integration directroy.
In PI 7.1 it is not required to manually formulate your sender SOAP URL, generated WSDL contains all the required information.
Directly Go to Integration Directory - - - -> Sender Agreement - - - > Display WSDL
This would help you:
http://www.riyaz.net/blog/pi-71-publishing-service-interface-as-a-webservice-in-sr/technology/sap/527/
Regards,
Abid Mazhar -
IE Script error when double clicking on a view in Abap Webdynpro component
Hello experts,
I am running mini SAP trial version 2004 with Internet explorer 7.0 and also installed gui patch 23.
I am making a sample application in SE80 and when double clicking on a view in Abap Webdynpro component I get following error:
<b>Internet Explorer Script Error</b>
An error has occured in the script on this page.
Line: 1
Char: 1
Error: 'wdp_show_menu' is undefined
Code: 0
URL: http://satellite5200:8000/sap/bc/wdvd/painting.html?_vdrespkey=EOJ6V1JQMX0VLTQ7AP6DQM64Y&_vdframe=painting&sap-client=000
Do you want to continue running scripts on this page?
Thanks in advance.
BhupendraHi Bhupendra,
If you are seeing this error in the Se 80 editor , i guess you can ignoire that ...While running the application it will not show any error.
Thanks
Anzy -
Webdynpro component in new tab.
Hi Experts,
I am tring to add a new tab in the struture level of a Project .
I successfully added a new tab and created a webdynpro component for the Tab as well .
However, when i see in the application , the tab does not show the created component. When right click and check the detail, it still shows the component DPR_MAINFRAME / DPR_PROJECTS_STRUCTUR . Kndly advice.
Thanks,
Siva.Hi
Use this table DPR_CUST_TABC to register your component to WD framework.
Regards
Praveen -
How to add a new url link in a view of an existing webdynpro component?
How to add a new url link in a view of an existing webdynpro component?
hi ,
refer SAP online hep :
Implementing Enhancements in a View
http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/233f2189f74f08e10000000a114a6b/frameset.htm
To enhance the layout of the view, you can create new UI elements. This procedure is no different u2013 from a technical viewpoint u2013 from creating UI elements in components themselves. All UI elements created within the enhancement implementation can then be processed as usual.
Enhancements means inserting user developments into SAP development objects at predefined positions.
The Enhancement Framework enables you to add functionality to standard SAP software without actually changing the original repository objects, and to organize these enhancements as effectively as possible.
refernce :
have a look at this article
How to Create Enhancement Implementation in Web Dynpro ABAP
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81&overridelayout=true
as pointed correctly by Saurav in earlier thread
regards,
amit -
How to call a RFC of a remote system from an ABAP webdynpro component
Dear Experts,
I am a newbie in ABAP Webdynpro.
I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
How do I do that ?? Please help.
Regards,
Mamai.Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
And the regarding the method of calling it depends on your FM.
if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
if it is simple straight forward RFC you can directly call it.
for creating RFC service call call use this method
1. Starting the Wizard
To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
through the creation process.
Press Continue.
2. Choice of Controller
On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
embed service calls in view controllers.
a. Select radio button Use Existent Controller
b. Do not change the default entry for component: <CC name>
c. Enter for controller COMPONENTCONTROLLER
d. Press Continue.
3. Service Type and Service Selection
a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
destination here. Press Continue.
b. Select the service: for Function Module enter <RFC name>. Press Continue.
4. The Required Methods and Context Elements
On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
required by the service call as well as to the required methods. The proposed names are based on the names of the
embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
box.
a. Adapt Context: Select from Nodes/Attributes . Press Continue.
b. Specify Method Name: leave all entries as provided: Component: Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
5. Completing the Choice
When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
and contexts at your disposal for using them within your Web Dynpro component.
or if you want to call directly the use the call statement with destination
Maybe you are looking for
-
Any opinions on if I should repair my old powerbook or just buy a new one?
Alright, here's the situation. I have a Tipowerbook 867 (upgraded to 512 ram) that's a bit over two and a half years old. Over this two plus year period, I have used this powerbook quite a lot, pretty much every single day for several hours at a mini
-
Sender SOAP Adapter issue with webservices for authorization.
Hi All Issue: As we are developing a Web Service to fetch account balance from SAP(upon receiving the account no from client) and have given the wsdl file to J2EE application to call or make use of the service. But as a part of that service they ex
-
Is it ok to connect my nokia asha 501 to portable ...
is it ok to connect my nokia asha 501 to portable micro usb charger? Moderator's Note: the title of this is post has been changed as it is moved from an existing thread.
-
Hi All, MS released MP for Monitoring Office 365, In my environment office 365 is in Cloud , Can you please guide me how can i monitor office 365 with the help of MP
-
Font Capture: Illustrator.exe - エントリ ポイントが見つかりません
起動時にメッセージが出て起動しなくなりました. [エラーメッセージ] Font Capture: Illustrator.exe - エントリ ポイントが見つかりません プロシージャ エントリ ポイント ?DrawImage@SurfaceInterface@drawbot@dvaui@@QEAAXAEBUImageInterface@23@AEBV?$PointT@M@geom @dvacore@@M@Z がダイナミック リンク ライブラリ dvaui.dll から見つかりませんでした. OK