Is it possible to call a URL from a table entry
Hi Abap Experts,
Is it possible to call a URL when we double click on the record of a table
for example I have a table zmanifest in which if i double click on the tracking number(table field)
it should go to UPS website
Thanks & Regards,
Tharun.P
Hi
It depends on what you mean to do a doubleclick, i.e. where you want to do it?
If you mean a program created ad hoc, yes you can else I don't think
Max
Similar Messages
-
Is it possible to call web service from ABAP SAP 4.6 c..If yes how
Hi Friends,
Is it possible to call web service from ABAP-SAP 4.6 c..If yes Could you please let me know how.
Thanks in Advance.
Murali Krishna K
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:09 PM
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:11 PMOlivier CHRETIEN wrote:>
> Hi Terry,
>
> So these function modules must use the SAPHTTPA RFC destination which uses the exe saphttp.exe ?
>
> How much abap code lines do you have for a web service call ?
> Do you have to code the call specifically for each different web service ?
> Are you able to use the WSDL ?
>
> Nice job if you have coded your own private SOAP runtime !
>
> But I don't think this is an easy solution for everybody...
>
> Regards,
>
> Olivier
Yes, SAPHTTPA (runs on application server) and/or SAPHTTP (runs on front-end pc), one of which, is required for HTTP communication. So far, nothing too elaborate as far as SOAP goes, but the logic is simplistic. Here's some sample code:
DEST = 'SAPHTTPA'.
TRANSLATE HOST TO LOWER CASE.
MYURL = 'wssrvTest/Service.asmx/GetByOrderItem'.
CONCATENATE HOST MYURL INTO MYURL.
REQUEST_HEADERS-DATA =
'Content-type: application/x-www-form-urlencoded'.
APPEND REQUEST_HEADERS.
CLEAR REQUEST_HEADERS.
*........Convert Order Number to External Format........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ORDER
IMPORTING
OUTPUT = ORDER.
*........Convert Item Number to External Format.........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ITEM
IMPORTING
OUTPUT = ITEM.
*........Convert Material Number to External Format.....................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = MATERIAL
IMPORTING
OUTPUT = MATERIAL.
CONCATENATE 'sOrder=' ORDER
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sItem=' ITEM
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sMaterial=' MATERIAL
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CALL FUNCTION 'HTTP_POST'
EXPORTING
ABSOLUTE_URI = MYURL
RFC_DESTINATION = DEST
BLANKSTOCRLF = 'X'
TABLES
RESPONSE_ENTITY_BODY = RESPONSE_BODY
REQUEST_ENTITY_BODY = REQUEST_BODY
RESPONSE_HEADERS = RESPONSE_HEADERS
REQUEST_HEADERS = REQUEST_HEADERS
EXCEPTIONS
CONNECT_FAILED = 1
TIMEOUT = 2
INTERNAL_ERROR = 3
TCPIP_ERROR = 4
DATA_ERROR = 5
SYSTEM_FAILURE = 6
COMMUNICATION_FAILURE = 7
OTHERS = 8.
CHECK SY-SUBRC = 0. "more appropriate msg goes here
LOOP AT RESPONSE_BODY.
IF RESPONSE_BODY+0(7) <> '<string' AND
RESPONSE_BODY+0(8) <> '</string' AND
RESPONSE_BODY+0(5) <> '<?xml'.
SPLIT RESPONSE_BODY-DATA AT '=' INTO FIELD_NAME FIELD_VALUE.
TRANSLATE FIELD_NAME TO UPPER CASE.
CASE FIELD_NAME.
WHEN 'HEIGHT'.
HEIGHT = FIELD_VALUE.
WHEN 'WIDTH'.
WIDTH = FIELD_VALUE.
WHEN 'LENGTH'.
LENGTH = FIELD_VALUE.
WHEN 'WEIGHT'.
WEIGHT = FIELD_VALUE.
WHEN 'QTY'.
QTY = FIELD_VALUE.
ENDCASE.
ENDIF.
ENDLOOP.
Hope this helps...
Terry
Edited by: Terry West on Feb 4, 2008 3:08 PM -
Possible to call a transaction from a planning book using a macro button?
Hi All,
Is it somehow possible to call a transaction using a macro button in the planning book? Also, the current selection should be passed as input parameters to the transaction.
In my example, I am trying to run the transaction /SAPAPO/MC90 - Release to Supply Network Planning from the Demand Planning Planning Book/Data View. This way if planners need to change forecasts mid month for specific selections, they can easily transfer to SNP without having to go out of interactive planning.
Thank you,
MariaHello Maria,
It's possible to call a transaction from a planning book using a macro button.
What you can do is ..... Create a function module and inside it use the command "Call Transaction Tcode" (ABAPer can do this) to call ur specific transaction. And this module can in turn be called from your macro. Please find the below link which explanis how to call a function module from a macro. Do let me know if you need more information on this.
Calling a function module from APO Macro
Regards,
Siva. -
Calling a url from a pl/sql proc
HI!
I was wondering if anybody has code that they can share calling a url from a pl/sql proc.
Thanks!!Thanks - tell me if I am wrong but it does not seem to be what I need. does this package have the capabilities of doing the following... I want to call a pl/sql procedure - I am not in any browser window and by calling this proc it will bring up a browser window with the given url.
-
It it possible to call web service from SAP 4.6 c..If yes how
Hi Friends,
It it possible to call web service from SAP 4.6 c..If yes how
Thanks in Advance.
Murali Krishna KIt is not possible to directly call a web service from SAP 4.6c.
Indeed, web service enablement is available as from Web AS 6.20, thus as from SAP R/3 4.7
So as described above, the solution is indeed to make use of PI(XI) for this.
Rgds,
Karim -
Is it possible to call ctx_doc.filter from Java?
Hello all,
Is it possible to call ctx_doc.filter from Java?
If so, do you have a code sample?
Thanks,
MarvinI have some Java code using ctx_doc.markup that can help:
try {
//make db conn
OracleCallableStatement stmt =(OracleCallableStatement)conn.prepareCall("begin "+
"ctx_doc.markup(index_name=>'text_idx', "+
"textkey=>?,"+
"text_query=>?,"+
"restab=>?,"+
"starttag=> '<a>',"+
"endtag=> '</a>' "+
"); " +
"end; ");
... // register other parameters
stmt.registerOutParameter(3, OracleTypes.CLOB);
stmt.execute();
oracle.sql.CLOB text_clob=null;
text_clob = ((OracleCallableStatement)stmt).getCLOB(3);
// read the CLOB by chunks
int chunk_size=text_clob.getChunkSize();
Reader char_stream = text_clob.getCharacterStream();
char[] char_array = new char[chunk_size];
for(int n=char_stream.read(char_array);n>0; n=char_stream.read(char_array)){
out.print(char_array);}
}catch (SQLException e) -
Is it possible to call Java routines from FMS?
Say I have a game package, most of which
are written in Java. I am thinking
to leave the core logics in Java, but
change the user interface into Flash,
and serve it over FMS. Now is it
possible to call Java routines from
FMS?
I'd appreciate any suggestions.Yes! You can use SOAP(or XML-RPC) to call Java routines.
Relevant link:
http://www.adobe.com/devnet/flashmediaserver/articles/fms_web_services_05.html
Btw, does anyone know if there is XML-RPC package for
FMS? -
How to call a URL from forms ?
Dear All,
I would like to invoke / call a URL from forms. I know we can make a call Using Web.show_document. But this will execute in a browser.
What i need to do is, i have to send a request to by calling an URL, that should not visible to any body.
This is my requirement, please help if you know.
Thanks
Balajihi,
here is a quick example : (data from url returns as a clob. you need to write it at db. and call from forms.)
FUNCTION Get_DataFromUrl(pUrl IN VARCHAR2,pProxy IN VARCHAR2,pData IN OUT CLOB) RETURN NUMBER IS
vRcv UTL_HTTP.HTML_PIECES;
vData CLOB;
eNoDataReceived EXCEPTION;
BEGIN
UTL_HTTP.SET_DETAILED_EXCP_SUPPORT(TRUE);
-- Get data pieces from Url
vRcv := UTL_HTTP.REQUEST_PIECES(pUrl,Proxy => pProxy);
IF vRcv.COUNT < 1 THEN
RAISE eNoDataReceived;
ELSE
-- Append varchar2 table data into clob variable
DBMS_LOB.CreateTemporary(vData,FALSE,DBMS_LOB.CALL);
FOR i IN 1..vRcv.COUNT LOOP
DBMS_LOB.WriteAppend(vData,LENGTH(vRcv(i)),vRcv(i));
END LOOP;
-- Copy local data into return variable
DBMS_LOB.Copy(pData,vData,DBMS_LOB.GetLength(vData));
DBMS_LOB.FreeTemporary(vData);
END IF;
RETURN SUCCESS;
EXCEPTION
WHEN eNoDataReceived THEN
RETURN FAILURE;
WHEN UTL_HTTP.INIT_FAILED THEN
RETURN FAILURE;
WHEN UTL_HTTP.Request_Failed THEN
RETURN FAILURE;
WHEN OTHERS THEN
RETURN FAILURE;
END Get_DataFromUrl;
hope this helps.
Engin. -
Hi!
i have created a website using ARCIMS - (if you are not familiar with ARCIMS it is software that is used to create maps) I now want to call URL (website) from a button on my form. I have tried to use web.show_docuement and I am getting errors such as 'register failk'.
I was able to run this same URL succesfuly from my browser. any ideas please?!?Kayla.
web.show_document() is the right buit-in to do this and it works the same as calling a URL from a Browser. if it says "register failed" (not sure if I am correctimng your error message the right way) then this does not look like a Forms error message but one coming from teh program you call. Please check teh URL that is composed before calling web.show_document(). Check for invisible characters added to it.
Frank -
Urgetn - Can you call a url from a workflow?
Hey,
Does anyone know if you can call a url from a workflow?
Your urgent attention would be grateful.I have done this in a form. You could put a manual action to call the form then display the url (Technical Reference 3-14)
<Field>
<Display class='Link'>
<Property name='name' value='Request
Group Access'/>
<Property name='URL'
value='user/processLaunch.jsp?newView=true'>
<Property name='id' value='Group Request
Process'/>
</Display>
</Field>
Hope this helps
BigBenny -
Calling a URL from a Java Stored Procedure
Hi,
I'm trying to call a URL from a Java Stored Procedure in Oracle 8.1.7(Windows 2000). The ultimate goal is to call this stored procedure from a database trigger. The status of the object remains invalid in the database even after compilation and publishing without any errors. The code follows. Any suggestions/alternatives to accomplish this would be appreciated.
Java Stored Procedure:
CREATE OR REPLACE JAVA SOURCE NAMED "UPDATEATTR" AS
import java.net.*;
import java.util.*;
import java.io.*;
public class UpdateAttr {
public static String testmain() {
ObjectInputStream is;
URL url;
String uri =
"http://www.yahoo.com";
try {
//calling the URL
url = new URL(uri);
URLConnection yahooConnection = yahoo.openConnection();
} catch (Exception e) {
e.printStackTrace(System.err);
return "TEST_SUCCESSFUL";
Code to Publish it:
CREATE OR REPLACE FUNCTION setNewAttributes return VARCHAR2
AS LANGUAGE JAVA NAME
'UpdateAttr.testmain() return String';
Thanks in advance.
RisSmall mistake in the previous post. The object still has a status of "INVALID" though. The Java stored procedure should actually read:
Java Stored Procedure:
CREATE OR REPLACE JAVA SOURCE NAMED "UPDATEATTR" AS
import java.net.*;
import java.util.*;
import java.io.*;
public class UpdateAttr {
public static String testmain() {
ObjectInputStream is;
URL url;
String uri =
"http://www.yahoo.com";
try {
//calling the URL
URL yahoo = new URL(uri);
URLConnection yahooConnection = yahoo.openConnection();
} catch (Exception e) {
e.printStackTrace(System.err);
return "TEST_SUCCESSFUL";
Code to Publish it:
CREATE OR REPLACE FUNCTION setNewAttributes return
VARCHAR2
AS LANGUAGE JAVA NAME
'UpdateAttr.testmain() return String';
/ -
Calling a URL from WD for ABAP 2004s
Hi,
In our scenario we would like to call workflow items from a web dynpro for abap application. We do not use a portal.
I have build an alv from where the user can select his workflow tasks. A button then calls a method to trigger workflow. Within the method I have te workitem and the correct url available.
Please let me know how to call the url and if possible let the url start the session in the current browser window (the window from where I started the url).
Message was edited by: Raymond Does
Solved it. Solution can be found in the Quiz example.
Message was edited by: Raymond DoesHi Yash,
There is the code :-)
<Field name='fieldname'>
<Display class='Link'>
<Property name='name' value='link to launch jsp'/>
<Property name='URL' value='http://localhost:8080/idm/output?param="hello"'/>
</Display>
</Field>
thanx
Shant -
Is it possible to call a movieClip from the Flash library using XML?
Instead of using "test_1.swf" or "test_2.jpg" in the <IMAGE> tags shown below, we are wanting to call a movieClip from the same library as the .FLA via XML.
Is this possible using XML and AS3?
< ?xml version="1.0" encoding="UTF-8"?>
< all>
< GROUP>
<IMAGE>test_1.swf</IMAGE>
<QUESTION>Question example #1</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
<IMAGE>test_2.jpg</IMAGE>
<QUESTION>Question example #2</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
< /GROUP>
< /all>data.xml:
< ?xml version="1.0" encoding="UTF-8"?>
< all>
< GROUP>
<IMAGE>MC1</IMAGE>
<QUESTION>Question example #1</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
<IMAGE>MC2</IMAGE>
<QUESTION>Question example #2</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
< /GROUP>
< /all>
// a.s.
var urlLoader:URLLoader=new URLLoader();
urlLoader.addEventListener(Event.COMPLETE,completeF);
urlLoader.load(new URLRequest("data.xml"));
function completeF(e:Event):void{
var xml:XML=XML(e.data);
var instance:*=stringToClassInstanceF(xml.GROUP.IMAGE[0]);
addChild(instance);
function stringToClassInstanceF(s:String):*{
var C:Class=Class(getDefinitionByName(s));
return new C(); -
How to encrypt Password while calling Portal URL from Abap
Hi all,
My requirement is to call portal from R/3 4.6C. As part of it I'm calling Portal URL along with user id & Password by using the FM CALL_BROWSER. The problem here is User ID & Password are visible everyone in the URL.
Is there any way that I can encrypt sothat it doesn't become a security issue?
I really appreaciate for your help.
Thanks
Seshucan you please mention the abap code by which you are sending the username and password to a portal via url.....
are you able to log on to the portal...please share your code ......
Edited by: Ashutosh Shukla on Apr 18, 2008 9:17 AM -
Call external URL from ABAP userexit, capture data and return it to SAP?
My apologies if this question has been asked before, but I've searched for a few hours today and haven't found anything directly related to my question. Thank you in advance for any help you may be able to provide!
I would like to be able to make a call from an SAP userexit during Sales Order Entry in the VA01 transaction in the SD module to an external website, allow the user to capture some data in the external site and then pass that data back into the userexit where I can use it to populate internal tables, etc.
I'm completely unfamiliar with Web Dynpro programming, but this seems like a good place to start my search for a solution.
Does this sound like a problem that can be solved with Web Dynpro and what documentation or code examples should I reference to go about building such a solution.
I should also note that I'm hoping to build a solution that could be called from any userexit in R/3, SAP ERP, SAP CRM, etc. and would obviously need to learn about what dependencies to consider (ex: SAP GUI version, SAP product release number, Web AS release, etc.).
EricThank you for the response. Let me provide some additional information.
The external application will be a Hosted Web page. It is not an SAP system.
The external application will be a web page served by a separate system outside of the company domain(shouldn't matter what the technology is I would think - but the web page will be hosted by a different company than the one calling the URL) that would appear as a web page in which the user will enter data, logic will be performed on that data and then some or all of the data would need to be passed back to the calling point in SAP.
For practical discussions it doesn't matter to me if the call in ABAP occurs in an SD userexit, in a custom report, in an HR screen or in a CRM business partner screen. There will be many places where this external application may be called from and I'm just trying to figure out how to call an external HTTPS URL and return data from that web page to the calling point in ABAP.
I hope that clarifies my question.
Thanks!
Eric
Maybe you are looking for
-
Dashed line with jdk1.1.8?
Hello Does anyone know how to make dashed lines with jdk 1.1.8? Yes, that means no Graphics 2D nor BasicStoroke class. Also how do you make the line wider with 1.1.8? I appreciate any response. Thanks michiko
-
Problem with viewing permissions in DTR perspective
Hello, After I created a DTR client and logged on to the DTR Server, I couldn´t see any "View Permissions for URL" in the Menu! Please help me!
-
What is the safest way to get 2012 US Holidays on iCal?
What is the safest way to get 2012 US Holidays on iCal?
-
Creating Custom Buttons in Captivate 3
In the first version of Captivate, I was able to create my own image buttons, including the three states of the button (over, down, click). When I select one of the included buttons in Captivate 3, the three states of that button are added automatica
-
is there a way to reduce the fan speeds, sleeping the display, and possibly put the disks to reduced mode while the computer is at the login window? i don't want to put it to sleep. my reason to want this is that i want the computer to still be acces