Calling FM in external system from XSLT
Hi,
I know that in XSLT interpreter provided by SAP supports calling function modules.
I need to call FM in external system from XSLT in message mapping and its result insert into one of element result XML message.
Do you think it is possible ?
If so is available any documentation for that.
Any help is appreciated.
Thank you.
Marian Morzol
Hi Vijaya,
this is very helpfull document for me. However I need some other explanation.
Does it meen that I need to write "Helper java class" ( e.g. in text editor - Notepad) and deploy the source to to Entegration Engine directory or an Adapter Directory ( maybe using Visual Administrator).
It is not clear for me.
I have XI 3.0 running on Windows 2003 Professional so to copy some files to some folders should not be a problem but I need an exact guide what I have to do.
Thank you.
Marian
Similar Messages
-
Call to Web Sevice in external system from SAP CRM
Hi,
I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
Can you please tell me:
1. What settings/object needs to be maintained in SAP in order to make this call.
2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
Please explain in detail
Thanks,
MikeMike,
You should honestly search the SDN site for consuming web services with ABAP. There are some good examples.
However the general procedure is easy:
1. Generate an ABAP proxy using the WSDL provided to you by the external program
2. Configure an HTTP destination for the server of the web services (needed for HTTPS calls)
3. Configure the logical port for the web service using lpconfig
4. Write the abap code to call the webservice via the proxy. Works very similar to FM call in my opinion.
To expose a webservice(bapi being called from outside) you need to do a little more work
1. Create a web services for the RFC enabled function module via SE80
2. Use wsadmin and wsconfig to make the service available
3. Publish the service out to the UDDI as needed.
Once again this code is pretty well documented in the standard help and SDN. Do a simple search on ABAP proxies and you will find what you need.
Take care,
Stephen -
Calling a web service in external system from SRM
Hi folks,
A web service is created in the external system and I need to access this web service from a BADI. Can you tell me how can I call this web service (the external system is giving me a URL) and how I'll get a return. Please let me know in detail.
Thanks,
PremPrem,
Hi. You can call the service via HTTP protocol. Pass them values (SET_DATA), and receive a response (GET_DATA), via xml/html.
In your code you would need to create the xml data to pass them, and evaluate the returned xml.
Process...
Data setup
1) Create the XML to send them
Working with the external service
2) Open the HTTP connection
2a) cl_http_client=>create_by_url (IF_HTTP_CLIENT)
2b) lr_client->authenticate
3) Call the to send them the XML
3a) lr_client->request->set_data
3b) lr_client->send
4) Call the lr_client->receive to return the response
5) Close the connection lr_client->close
Data evaluate
6) Evaluation the returned XML and process.
Hope this helps
Cheers
Rob
Code example below.. (There are loads of SAP examples depending on which release you are on).
Process the call to the HTTP client - logic copied from RSHTML01 *
Open IF_HTTP_CLIENT
call method cl_http_client=>create_by_url
exporting
url = l_url
importing
client = lr_client
exceptions
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
others = 4.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
raising oops.
endif.
Authenticate the user
if not g_int_type-usr is initial.
move: g_int_type-usr to l_user,
g_int_type-password to l_password.
call method lr_client->authenticate
exporting
username = l_user
password = l_password.
endif.
Allow for Cookies
lr_client->propertytype_accept_cookie = lr_client->co_enabled.
Set the server protocol
select single gsval into l_server_protocol
from z77s0
where grpid = c_grpid
and semid = c_server_protocol.
if sy-subrc eq 0
and not l_server_protocol is initial.
move l_server_protocol to l_st_server_protocol.
call method lr_client->request->set_header_field
exporting
name = '~server_protocol'
value = l_st_server_protocol.
endif.
Send out the XML
Set body to XML data
lr_client->request->set_data( g_xxml ).
save_xml( i_role = cl_xml_document=>c_role_oreq ).
l_request_length = xstrlen( g_xxml ).
If Data is sent through then we need certain flags set
lr_client->request->set_header_field(
name = 'Content-Type'
value = zcl_tem_bsp=>c_xml_content ).
call method lr_client->request->set_header_field
exporting
name = '~request_method'
value = 'POST'.
Set length of string to the header fields
if not l_request_length is initial.
move l_request_length to l_st_request_length.
lr_client->request->set_header_field(
name = 'content-length'
value = l_st_request_length ).
endif.
Send the request
call method lr_client->send
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
http_invalid_timeout = 4
others = 5.
check_for_error 'Send'.
Receive the response
call method lr_client->receive
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
check_for_error 'Receive'.
Determined returned XML or HTML
g_xxml = lr_client->response->get_data( ).
Determine the header fields for failure validation
if lr_client->response->get_header_field( '~status_code' )
between 200 and 299.
save_xml( i_role = cl_xml_document=>c_role_ires ).
else.
l_status_code =
lr_client->response->get_header_field( '~status_code' ).
l_descript_1 =
lr_client->response->get_header_field( 'error' ).
l_descript_2 =
lr_client->response->get_header_field( 'errortext' ). -
Need to call up a webservice created in external system from SAP
Hi folks,
A web service is created in the external system and I need to access this web service from a BADI. Can you tell me how can I call this web service (the external system is giving me a URL) and how to capture the return value from the web service. Please let me know in detail.
Thanks,
PremHi,
I have the same requirement and have created a new Proxy-Object, uploaded the WSDL file (locally) and Created a Logical port.
In the Logical Port under the tab Call Parameter I've defined the URL of the web-service.
Since I was not able to upload the WSDL by selecting the option URL/HTTP Destination due to error message "HTTP error (return code 400, message "ICM_HTTP_CONNECTION_FAILED")
Message no. SPRX090" so uploaded the file locally.
However, when testing the service, I didn't received a sucess message but:
<CX_AI_SYSTEM_FAULT>
<CODECONTEXT>Local</CODECONTEXT>
<CODE> ERROR_WEBSERVICE_RUNTIME_INIT </CODE>
<ERRORTEXT> Error when instantiating the Web service runtime (Error when initializing SOAP client application: ' error_text' ) </ERRORTEXT>
<LANGUAGE />
</CX_AI_SYSTEM_FAULT>
</cls:CX_AI_SYSTEM_FAULT>
What might be the Problem ?
/Manik -
Call safari or external app from BI Mobile App
Hi everyone,
Is it possible to call from a link embedded in a Dashboard safari or an external App from Oracle BI Mobile App?This question seems to be unanswered all over this forum...I'd love a response.
-
FTP file on Appserver to an external system from ABAP
Hi,
I am trying to FTP a file that my program writes to the APPSERVER directory. I used FTP_CONNECT, FTP_COMMAND and FTP_DISCONNECT.
I am able to connect to the external system and change to the directory where I have to write the file using cd. The problem arises when I use lcd command to switch the local directory. Although, i specify the path, lcd /usr/sap/icomm/iface/outbound/, on execution of this command, the system points to my C:\Documents and Settings\rkademani\SapWorkDir.
How can I make it point to my appserver?
Further, this program will be scheduled as a background job in Production. I have tried to schedule this as a background job, even then it gives me the same error.
Please help. Thanks in advance.
RKWhat error do you get? When I hit "test" I see:
Connection test SAPFTPA
Connection type: TCP/IP connection
Logon: 155 msec
0 KB: 1 msec
10 KB: 15 msec
20 KB: 2 msec
30 KB: 3 msec
The only visible settings are "Activation type = Start on Application Server, and the Program = sapftp... in the RFCDES table in SE16, I see:
Destination Type Options
SAPFTP T H=%%SAPGUI%%,N=sapftp,R=N,
SAPFTPA T N=sapftp,R=N,
Jonathan -
Call function in external .js from stage.onCompletion
I have my edge composition, and some functions in sim.js
within the stage.onCompletion event, I have:
$("<script type='text/javascript' src='sim.js'></script>").appendTo("#Stage");
how can I call functions, e.g. "testMe()" that are in sim.js from within the stage.onCompletion event?
$("testMe()"); was my first thought, but no. what am I missing?Lloydie maybe you can help me with this similar problem here (i think it is similar)
I am uncertain that i can use "transform" in edge, transform belongs to jquery.transform.js library. I am particulalry interested in animate({transform:.... to animate rotation and scales.
Can I call the transform.js into the stage like the way you called your custom .js?
Can we import additional libraries ? -
Embedding a call to an external system using a JavaScript?
Hello
I just been given a widget to a new system ... with the words "Place the code below where you want to interface to the system"
<script language="javascript" type="text/javascript" charset="utf-8"
src="https://euro.FREDnet:8443/plesk-billing/app-modernbill-order/javascriptwidget.php?wwid=3;whoisWidget=0"
</script> Sorry to report my knowledge of Java is poor so before I looking for a solution...
Is this possible in Apex?
Thanks
Pete
Edited by: Pete88 on Mar 26, 2009 11:09 AMHi
You need to put this in the HTML header of the page then call it however you fancy.
If you need more info, let me know.
Ben -
Xslt: calling custom Service Application Proxy from xslt
Hi,
Basically, i have creted my custom service application and i wrote webpart to consume it. I have a requirement, to add a button in the SharePoint-Blog XSLTListViewWebPart located in the ~/blog/post/post.aspx page. In this page, they have 2 XSLTListViewWebPart,
and i want to add a button in it to call my service application webservices. I have 2 problems:
a. how to get the target url of my service app because in Custom Service App, it add reference to my AppClientService class in my service app:
using
(SPSite
oSite = properties.OpenSite())
AppServiceClient
serviceClient = new
AppServiceClient(SPServiceContext
.GetContext(oSite));
serviceClient.InsertTest("UserName"
b.
how to integrate the calling of my custom Service Application in the XSLTListWebPart?
Any
article about custom application with xsltListWebpart would be appreciated.
Thank you.
Thank
you.
Regards,
JerryIn the blog.xsl file below span tag renders the author
So you can use RenderAuthor template to display the author name
<!-- For the author field, render it using the span style and preceed it with the word "by"-->
<span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/> -
HOW TO INTERACT TO EXTERNAL SYSTEM FROM OBIEE.
Hi Guys,
REQUIREMENT
My requirement is need to navigate to a ADF page from my OTBI content passing along login/authentication credentials of ADF page,Such that ADF page should open seamless...
So far am able to navigate to ADF page ,but every time need to enter the user/login credentials.--- This is the big headache
So any idea on how to approach this requirement.If any, please share the threads .
Thanks,
GovardhanaYou can achieve this by using Action Links.
http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/
J- -
Call to Web Sevice in External (non SAP) system from SAP CRM
Hi,
I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
Can you please tell me:
1. What settings/object needs to be maintained in SAP in order to make this call.
2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
Please explain in detail
Thanks,
MikeHi Oliver,
I have gone through the documentation and had been able to create a proxy object, uploaded the WSDL file (from local directory) and created logical port,
However, when testing the service, I didn't received a sucess message but
<CX_AI_SYSTEM_FAULT>
<CODECONTEXT>Local</CODECONTEXT>
<CODE>ERROR_WEBSERVICE_RUNTIME_INIT</CODE>
<ERRORTEXT>Error when instantiating the Web service runtime (Error when initializing SOAP client application: ' error_text' )</ERRORTEXT>
<LANGUAGE />
</CX_AI_SYSTEM_FAULT>
</cls:CX_AI_SYSTEM_FAULT>
What might be the Problem ? -
Call to webservice External (non sap) system from SAP CRM
Hi,
I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
Can you please tell me:
1. What settings/object needs to be maintained in SAP in order to make this call.
2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
Please explain in detail
Thanks,
MikeHi,
Check this
Calling web service from ABAP - version 4.6C -
Calling a secured external web service from ABAP
Hi,
I've created a client proxy from a wsdl to call a secured external WS from ABAP.
The question is: how to pass in the user/password in the client proxy?
thanksHi Rika,
have a look to the blog: https://weblogs.sdn.sap.com/pub/wlg/1645. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Screen shots are "old" but the concepts are already there. Serach the chapter "SAP Side - Setup".
Basically: define your RFC destination via SM59 of type G. There you'll define the target host and the user/password.
Then in LPCONFIG you can specify the defined RFC destination.
Have a look also to http://help.sap.com/saphelp_nw2004s/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/content.htm
and to
http://help.sap.com/saphelp_nw04s/helpdata/en/da/11df3a9b10355ae10000000a11405a/content.htm
Sergio
PS
Kindly close the thread and award appropriate a points to the answer given.
Message was edited by:
Sergio Ferrari -
Hi,
We are trying to develop interface with external system to calculate the shipping costs for a delivery. We will establish RFC connection between SAP and External system.
Do we need SAP .NET connector to send and receive data from/to SAP. SAO shouls act as client and external system as server. If we have to use SAP .NET connectore, can anyone explain me the detailed process of using SAP .NET connector and connecting to external system.If there is anyother way without using SAP .NET connector, i.e by using RFC function modules, can you please xplain that process too. What is the program ID for RFC destination in SM59?
I appreciate your help.
Thanks,
Ashok.setting the program id you need a person with the knowledge of both the system, with the current input it will be difficult to help with that.
since you are in 4.6C the available options are
1. DCOM connector
2. .net connect
3. JCO
4. or a plain http call to your external system.
Regards
Raja -
Send price conditions to external system
Hello,
I would like to send the price conditions to a non SAP system. The IDOC COND_A02 seems to be the solution for sending the price conditions modifications to this system but is there a programm to send an initial set of idocs with all conditions (like RBDSEMAT for materials)? I cannot find any.
Thanks in advance for any help provided.
JulienJulien,
You can send prices to external system from pricing reports, transaction V/LD. For example, I used this to send sales prices to an external system using pricing report 15. Here you can enter your material selection criteria including, condition type. This will generate a report which you can then send to external systems. I apologize, but I do not remember the menu path from the report result off hand.
Ram,
Make sure you have activated change pointers for message type COND_A, create or change a price and excute RBDMIDOC for COND_A.
Maybe you are looking for
-
Problem in creation date while transporting KM content through ICE offline
The problem that I am facing is we transported the KM content successfully, but the problem is for some of the files the creation date is changed to the current date. Is there any way to get those dates. Points will be awarded for helpfull answers
-
Invalid column name 'SKEY_VAL' Error when Populating a planning dimension
I'm trying to populate a planning dimension from a view in MSSQL. I thought that I had mapped the all of the required columns in my interface in ODI, but I am getting the following error: 207 : S0001 : com.microsoft.sqlserver.jdbc.SQLServerException:
-
Trouble connecting to Canon iR-ADV C5030/5030
Hello, I have a new MacBook Air (OS X 10.9.2), and I am having trouble printing from my office's Canon iR-ADV C5030/5030. Does Canon have the appropriate drivers for OS X 10.9.2? I'm a new Mac user and utterly lost! Thanks!
-
I want to update my phone to the new iOS 6, but it says that I need to be connected to wifi to download and instal. The issue is that whenever I go to the wifi button it is grey and doesn't allow me to click it or turn on wifi. PLEASE HELP!!!!!!!!
-
Parental controls on iphone 5c
Just got an iphone5c for my kid. How do I set up parental controls?