on 2007 Dec 22 7:45 AM
Hello,
I am working on a scenario, where i need to create an RFC and export to XI Server. I have done this much. Right now i need to consume the above mentioned with an ABAP code from an R3. I tried to create the Client proxy, where i am getting stucked at the part of specifying the URL. Any ideas on this sub?
Proper ans. will be rewarded..
Thanks
Vinod V
The following links should help you :
Client Proxy:
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Activation of ABAP Proxies:
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
coding ABAP Proxies /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
Communication between SAP System & Webservice Using Proxies
/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
/people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
Proxy Generation
http://help.sap.com/saphelp_nw04/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
Smarter Approach for coding ABAP Proxies:
/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
ABAP Proxy Runtime
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
you have two options
1)client proxy to call a service using XI server and
2) to call web service.
The general programming model of the ABAP proxy runtime supports synchronous communication.
Procedure
To send a message using the ABAP proxy runtime, call the corresponding client proxy in your application program.
You can select a client proxy in the Object Navigator and drag it to the editor by using Drag&Drop.
...
1. Declare the following variables:
DATA:
Reference variables for proxy and exception class
lo_clientProxy TYPE REF TO [Generated proxy class],
lo_sys_exception TYPE REF TO cx_ai_system_fault,
Structures to set and get message content
ls_request TYPE [Output message type],
ls_response TYPE [Input message type].
2. Complete the structure ls_request for the request message.
3. Instantiate your client proxy.
TRY.
create proxy client
CREATE OBJECT lo_clientProxy( LOGICAL_PORT_NAME ).
LOGICAL_PORT_NAME is the name of the logical port that you want to use, which is used to define the receiver. You can omit this parameter if you are using a default port or the XI runtime (see runtime configuration).
4. To send a message, call the corresponding client proxy method. WSDL allows several such methods (specified by the element <operation>). In XI, there is only one method, with the default name EXECUTE_SYNCHRONOUS or EXECUTE_ASYNCHRONOUS. Catch at least the exception cx_ai_system_fault:
do synchronous client proxy call
CALL METHOD lo_clientProxy->execute_synchronous
EXPORTING output = ls_request
IMPORTING input = ls_response.
CATCH cx_ai_system_fault INTO lo_sys_exception.
Error handling
ENDTRY.
I hope this will help you.
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Refer the below weblog:
First u need to do the configuration for ABAP PRoxy:
ABAP Proxy configuration:
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
Client proxy:
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Do let me know if u need further information.
Thnx
Chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chirag,
thanks for the reply. I have tried as the link expained, But its giving a message telling 'No access to System landscape at present', when i use the TCode SXMB_ADM at Global Configuration Data. I am getting more information on this problem. Do you have any suggustions on this matter?
Vishal and priya, thanks for your reply. I think you guys didn;t get my Question. Please check it again and give me suggestions. Thank you..
Vinod V
Edited by: Vinod V on Dec 22, 2007 6:20 PM
User | Count |
---|---|
62 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.