Calling URL in my code
Hello All,
I have some specific requirment where once the order gots created i need to call a URL.
for example one record is inserted into a sample table with ordernumber as 100
then my pl/sql code should call the URL http://vmyource.com/order/100.
please let me know how to do this.
Thanks,
kumar.
user624202 wrote:
then my pl/sql code should call the URL http://vmyource.com/order/100.
... and do what?
Similar Messages
-
Code to call url in abap program
code to call url in abap program using cl_http requests and save the outcome to a location in a file
See the below program
REPORT zbrowser .
TABLES : sscrfields.
INCLUDE .
CONSTANTS: htmlcntl_eventid_on_navigate TYPE i VALUE 1.
CONSTANTS: htmlcntl_eventid_navigate_com TYPE i VALUE 2.
DATA : h_html_ctrl TYPE cntl_handle,
repid TYPE sy-repid,
dynnr TYPE sy-dynnr,
cmd TYPE sy-ucomm,
flag,disp.
DATA : it_exclude LIKE TABLE OF rsexfcode WITH HEADER LINE.
SELECTION-SCREEN : FUNCTION KEY 1,
FUNCTION KEY 2,
FUNCTION KEY 3,
FUNCTION KEY 4,
FUNCTION KEY 5.
General Browser to View
Files/Pictures & WebPages
© 2005 SAP AG 2
SELECTION-SCREEN COMMENT 45(50) comment1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(28) comment2 FOR FIELD url.
SELECTION-SCREEN POSITION 31.
PARAMETERS : url(1064) LOWER CASE .
SELECTION-SCREEN PUSHBUTTON 79(4) open USER-COMMAND open.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
comment1 = 'ABAP INTERNET EXPLORER'.
comment2 = 'Enter URL/Filename To Open :'.
open = icon_transfer .
sscrfields-functxt_05 = icon_sap.
sscrfields-functxt_04 = icon_booking_stop.
sscrfields-functxt_03 = icon_refresh.
sscrfields-functxt_02 = icon_arrow_right.
sscrfields-functxt_01 = icon_arrow_left.
repid = sy-repid.
dynnr = '1000'.
it_exclude-fcode = 'ONLI'.
APPEND it_exclude.
it_exclude-fcode = 'INFO'.
APPEND it_exclude.
*Changing GUI status
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
p_program = repid
TABLES
p_exclude = it_exclude.
CALL FUNCTION 'CONTROL_INIT' .
IF sy-subrc <> 0.
EXIT.
ENDIF.
CALL FUNCTION 'HTMLCNTL_CREATE'
EXPORTING
owner_repid = repid
link_repid = repid
dynnr = dynnr
handle = h_html_ctrl
EXCEPTIONS
control_install_error = 1
create_error = 2
General Browser to View
Files/Pictures & WebPages
© 2005 SAP AG 3
OTHERS = 3
IF sy-subrc <> 0.
EXIT.
ENDIF.
CALL FUNCTION 'HTMLCNTL_INIT'
EXPORTING
h_control = h_html_ctrl
left = 1
top = 2
width = 143
height = 37
register_event_on_navigate = 'X'
cb_form_navigate_complete = 'ON_CONTROL_EVENT'
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2
dp_create_error = 3
dp_install_error = 4
dp_error = 5
create_browser_error = 6
init_error = 7
OTHERS = 8
IF sy-subrc <> 0.
EXIT.
ENDIF.
CALL FUNCTION 'CONTROL_FLUSH'.
AT SELECTION-SCREEN.
cmd = sscrfields-ucomm.
CASE cmd.
WHEN 'OPEN'.
PERFORM load_html_page.
CALL FUNCTION 'CONTROL_FLUSH'.
WHEN 'FC01'. "BACK
CALL FUNCTION 'HTMLCNTL_GO_BACK'
EXPORTING
h_control = h_html_ctrl.
IF sy-subrc <> 0.
EXIT.
ENDIF.
General Browser to View
Files/Pictures & WebPages
© 2005 SAP AG 4
PERFORM get_current_url.
WHEN 'FC02'. "FORWARD
CALL FUNCTION 'HTMLCNTL_GO_FORWARD'
EXPORTING
h_control = h_html_ctrl.
IF sy-subrc <> 0.
EXIT.
ENDIF.
PERFORM get_current_url.
WHEN 'FC03'. "REFRESH
CALL FUNCTION 'HTMLCNTL_DO_REFRESH'
EXPORTING
h_control = h_html_ctrl.
IF sy-subrc <> 0.
EXIT.
ENDIF.
PERFORM get_current_url.
WHEN 'FC04'. "STOP
CALL FUNCTION 'HTMLCNTL_STOP'
EXPORTING
h_control = h_html_ctrl.
IF sy-subrc <> 0.
EXIT.
ENDIF.
WHEN 'FC05'. "GO TO HOME
CALL FUNCTION 'HTMLCNTL_GO_HOME'
EXPORTING
h_control = h_html_ctrl.
IF sy-subrc <> 0.
EXIT.
ENDIF.
PERFORM get_current_url.
CALL FUNCTION 'CONTROL_FLUSH'.
WHEN OTHERS.
General Browser to View
Files/Pictures & WebPages
© 2005 SAP AG 5
CALL FUNCTION 'CONTROL_DISPATCH'
EXPORTING
fcode = cmd.
CALL FUNCTION 'CONTROL_FLUSH'.
ENDCASE.
CLEAR cmd.
CALL FUNCTION 'CONTROL_FLUSH'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR url.
PERFORM get_file_name.
PERFORM load_html_page.
*& Form get_page_name
Get Page Name
FORM get_file_name.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
def_path = 'C: '
mask = ',.,..'
mode = 'o'
title = 'Browse to Open'
IMPORTING
filename = url
RC =
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDFORM. " get_page_name
*& Form load_html_page
TO load the file (URL)
General Browser to View
Files/Pictures & WebPages
© 2005 SAP AG 6
FORM load_html_page.
CALL FUNCTION 'HTMLCNTL_SHOW_URL'
EXPORTING
h_control = h_html_ctrl
url = url.
IF sy-subrc <> 0.
EXIT.
ENDIF.
flag = 'X'.
ENDFORM. " load_html_page
*& Form get_current_url
Get Current URL
FORM get_current_url.
CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL'
EXPORTING
h_control = h_html_ctrl
IMPORTING
url = url.
ENDFORM. " get_current_url
Callback form for the event 'NavigateComplete'
callback on_control_event.
CALL FUNCTION 'CONTROL_GET_EVENT_PARAM'
EXPORTING
h_control = h_html_ctrl
param_id = 0
CHANGING
return = url.
PERFORM get_current_url.
endcallback.
Reward Points if it is helpful
Thanks
Seshu -
Transaction Launcher : calling URL and fill return values in the UI
Hi SDN,
We have a requirement, I am putting an example of it below:-
1. Call URL www.bank.com/branchlocator.htm?postcode=???????
2. pass postcode of confirmed BP to the branchlocator field postcode
3. the website will return nearest branch post code.
4. Return this postcode from the bank website, back into the webui address field.
Is it possible to achieve the above scenerio? if yes then any guidelines on how to achieve this?
Hope I am clear in the requirement. Any inputs/suggestion will be helpful.
Thanks,
PankajHi Shai,
the webservice is working well, trying to test it with webservice navigator.
He also returns the correct number of rows (because there appears slider beneath the table output and I also counted the rows), but there is no data displayed in visual composer.
I have got no further ideas, what the problem is...
THank you for your support.
Kind regards, PAtrick. -
Calling url from a form - err using ".value" method
I'm trying to call url from a form, which seems to be the subject of many of these Posts.
I have a form with a combo box/LOV and a button. The LOV will read a url into the combo box from a table of url's.
I used the following code in the "OnClick" Java Script Event Handler section, which I pieced together from other posts in this and other forums. (i.e. I'm a pl/sql programmer trying to use Java Scripts for the first time).
OnClick
var X = FORM_DRWING.DEFAULT.A_DRILLDOWN_PATH.value;
run_form(x);
When I attempt to run this form from the "manage" window, I get a run time error "FORM_DRWING is undefined" upon clicking the button. FORM_DRWING "IS" the name of the form!
The runform() function in the "before displying form" pl/sql code section is
htp.p('<script language="JavaScript1.3">
< !--
function runForm(v_link)
window.open(V_LINK);
//-->
</script>');
This code was from yet another Post.
Any help would be appreciated.
Thanks, Larry
nullHi Larry,
the problem could be that you need to preface your form with 'document.'.
i.e.
var X = document.FORM_DRWING.DEFAULT.A_DRILLDOWN_PATH.value;
Regards Michael -
SAP BW 7 - Call URL from Right Click Menu
Is it possible to make a http call from the right click menu? I know this was possible in 3.5, but the new code seems to have limited my ability to edit the options that appear when I right click on a field and I need to make a call out to another web server for some external data. Is this possible?
Any information that anyone has about a potential work around would be great!!
Thx.Kristine,
Have you tried using RRI (Transaction RSBBS)? You can call URL , pass values etc.
-Saket -
How to call URL from BADDI??
Hi,
I have a requirement to call URL from BADI, i tried to use 'CALL BROWSER' function module,
it works when we are working in GUI, but for portal/PCUI it gives sy-subrc = 2 ( Front end Error)
How to call a pop up page or URL from poral??
Thanks,
Manoj
Edited by: Manoj Lakhanpal on Sep 27, 2010 10:27 AMHi!
I'm using this code for calling a browser, you might try out as well...
MOVE 'http://www.sap.com' TO command.
CONCATENATE 'url.dll,FileProtocolHandler'
command
INTO command
SEPARATED BY space.
MOVE 'rundll32' TO lv_application.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
APPLICATION = lv_application
PARAMETER = command
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
others = 8
Regards
Tamá -
Error in application accurred please call support quoting error code 2907
error in application accurred please call support quoting error code 2907
I suggest you call support and quote error code 2907.
-
Dear Sir, i have problem in my Iphone 5 that during receiving any calls always appeare message that error in application occurred please call support quoting error code 2907. I need to solve my problem.
The problem this message always appeare when receiving the calls and requesting either accept or cancel.
Can you advice me if i have wrong application or i need to remove some applications. -
How to call URL to collect user input ?
Hi all,
I am writing a Swing applications and at some points, I need to call a URL (external web page) to collect user input. It invokes passing certain parameters to web page so that the web page can be displayed in some certain form. After the user input all data in web page, press "submit", my Swing application needs to get the input back. I suppose that calling URL is trivial but how can I get the input back ? Any input will be greatly appreicated.
Note: the web page will be displayed in one JFrame but it may not related to this problem.
C.K.response.sendRediresc("http://.......);
public void sendRedirect(java.lang.String location)
throws java.io.IOException
Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root.
If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.
Parameters:
location - the redirect location URL
Throws:
java.io.IOException - If an input or output exception occurs
java.lang.IllegalStateException - If the response was committed or if a partial URL is given and cannot be converted into a valid URL -
hi This event is logged in SharePoint 2010 logs often please help trace the issue also it precedes with Project server WCF code execution which alos is quite slow in execution, means PWA site runing slow. why does status read
provisioning while i am not running anything.
please help!!!
10/03/2011 14:39:23.46 w3wp.exe (0x306C)
0x2FC4
SharePoint Foundation Topology
e5mc Medium
WcfSendRequest: RemoteAddress: 'http://moss:32843/a667a0a96d314e5e9e6c8fe4866c5db4/PSI/PWA.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IPWA' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/AdminReadSiteMapTyped'
MessageId: 'urn:uuid:0751dbdd-76c0-4410-ac73-2f1782e1513b'
91b87b3b-e9ad-43b9-9e8c-e553ba7e2f6c
10/03/2011 14:39:23.46 w3wp.exe (0x1B58)
0x1BA0
SharePoint Foundation Topology
e5mb Medium
WcfReceiveRequest: LocalAddress: 'http://moss.ccl.local:32843/a247f7273c09486999c9f111798cab59/ProfilePropertyService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://Microsoft.Office.Server.UserProfiles/GetProfileProperties'
MessageId: 'urn:uuid:772a5c58-c0e4-4b0f-9142-f634fee413a9'
3cd5bfa5-2e40-458e-9718-788887b44dbe
10/03/2011 14:39:23.46 w3wp.exe (0x1B58)
0x1BA0
SharePoint Foundation Monitoring
nasq Medium
Entering monitored scope (ExecuteWcfServerOperation)
3cd5bfa5-2e40-458e-9718-788887b44dbe
10/03/2011 14:39:23.64 w3wp.exe (0x1B58)
0x1BA0
SharePoint Foundation Monitoring
b4ly Medium
Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=179.589584709789
3cd5bfa5-2e40-458e-9718-788887b44dbe
10/03/2011 14:39:23.64 w3wp.exe (0x306C)
0x3170
SharePoint Foundation Monitoring
b4ly High
Leaving Monitored Scope (ExecuteWcfOperation:http://Microsoft.Office.Server.UserProfiles/GetProfileProperties). Execution Time=205.109867315539
10/03/2011 14:39:23.64 w3wp.exe (0x306C)
0x3170
SharePoint Foundation Monitoring
b4ly High
Leaving Monitored Scope (ExecuteOnChannel:GetProfileProperties). Execution Time=206.500546857212
10/03/2011 14:39:23.74 Microsoft.Office.Project.Server (0x0DAC)
0x0FA8 Project Server
Provisioning
8zdn Medium
[SERVICE] ProjectQueueService14: Getting list of Sites for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
10/03/2011 14:39:23.74 Microsoft.Office.Project.Server (0x0DAC)
0x0FA8 Project Server
Provisioning
128v Medium
[SERVICE] ProjectQueueService14: Adding Site: ef3acaf4-3e7a-4819-80e0-8e7a85ca417b to sitelist for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
10/03/2011 14:39:23.77 Microsoft.Office.Project.Server (0x0CD4)
0x0FA4 Project Server
Provisioning
8zdn Medium
[SERVICE] ProjectEventService14: Getting list of Sites for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
10/03/2011 14:39:23.77 Microsoft.Office.Project.Server (0x0CD4)
0x0FA4 Project Server
Provisioning
128v Medium
[SERVICE] ProjectEventService14: Adding Site: ef3acaf4-3e7a-4819-80e0-8e7a85ca417b to sitelist for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)
0x300C SharePoint Foundation
General
84yj Medium
Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)
0x300C SharePoint Foundation
Sandboxed Code Service
ei0p Monitorable
- Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc) at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError) at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32
retry, Int32 retryInterval) at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading perf counters for process "SPUCWorkerProcess".
10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)
0x300C SharePoint Foundation
General
84yj Medium
Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)
0x300C SharePoint Foundation
Sandboxed Code Service
ei0p Monitorable
- Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc) at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError) at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32
retry, Int32 retryInterval) at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading perf counters for process "SPUCWorkerProcess".
10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)
0x300C SharePoint Foundation
General
84yj Medium
Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.Hi there,
A quick search showed the result on fourm thread:
It's related to SHarePoint foundation error & this issue occurs when the account under which SPUserCodeService is configured to run does not have the necessary permissions to access the performance counters on the server.
http://social.technet.microsoft.com/Forums/eu/sharepoint2010setup/thread/9fbcf2a3-1b1f-4fd8-a9b4-dc63ed753973
To read in support article.
http://support.microsoft.com/kb/983081Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82 -
How to call a screen /t-code by double clicking on the output of an alv?
Hi,
I want to call a screen / t-code on double clicking on the output of an alv report.
Suppose we click on a value in the "Pur Req" feild of the ALV output it should open the the transaction code and give us the details of that particular value. How can I do that?
Thanx in advance..If you displaying ALV using Classes..( CL_GUI_ALV_GRID)... You need to create event receiver and register the double click event handler method dynamically.... Here's the sample code...
* C L A S S E S *
class lcl_event_receiver definition.
public section.
methods: handle_double_click
for event double_click
of cl_gui_alv_grid
importing e_row e_column.
endclass.
* CLASS lcl_event_receiver IMPLEMENTATION
class lcl_event_receiver implementation.
method handle_double_click.
data: l_cc like line of gt_cc.
data:
g_row type i,
g_value(10),
g_col type i,
g_row_id type lvc_s_row,
g_col_id type lvc_s_col,
g_row_no type lvc_s_roid.
* Read the double click cell
call method gr_grid->get_current_cell
importing
e_row = g_row
e_value = g_value
e_col = g_col
es_row_id = g_row_id
es_col_id = g_col_id
es_row_no = g_row_no.
clear wa_itab
read table gt_itab index g_row_id into wa_itab.
case g_col_id.
when 'EBELN'. "Show Process Order
if not wa_itab-ebeln is initial.
set parameter id 'BES' field wa_cc-ebeln.
call transaction 'ME22N' and skip first screen.
endif.
call method gr_grid->set_table_for_first_display
exporting
i_consistency_check = g_consistency_check
it_toolbar_excluding = gt_exclude
is_variant = gs_variant
i_save = g_save
i_default = 'X'
is_layout = g_layout
changing it_outtab = gt_cc[]
it_fieldcatalog = gt_fieldcat[]
it_sort = gt_sortcat[].
create object event_receiver.
* Register the 'Double Click' event handler method dynamically.
set handler event_receiver->handle_double_click for gr_grid. -
Can we call webserrvice from javascript code?
Hi Gurus,
Can we call webservice in "Javascript" code?
Any pointers, samples?
Appreciate your time.
ThanksHello,
Yes you can, and we have in OracleAS 10gR3 create javascript for you.
Take a look to the following:
1- deploy a Web Services in OracleAS 10g R3 (10.1.3)
2- go to the test page
3- Click on the Javascript Stub page
This utility creates a javascript linbray allowing Ajax calls to SOAP based Web Services:
- create SOAP request from simple Javascript objects
- create an XMLHttpRequest object to call synchronously or asynchronously
- get back the response from and deserialize the SOAP object to Javascript
Regards
Tugdual Grall -
Url in links adding calling url as prefix resulting in not found
when i try to call a URL from a menu or document link (either in self or blank) it creates an entry that reflects the new URL being called as a subpage of the calling URL.
so if i am on website www.mysite.com and i link to www.yoursite.com it creates:
www.mysite.com/www.yoursite.com
any ideas would be helpful. thanks.Do you mean you are coding the HTML yourself?
Firefox will interpret links that do not start with a protocol (e.g., http://) (or with //) as being on the same site displaying the page. For links to external sites, make sure to use the full URL starting with the protocol, or at least starting from the //.
Does that fix it? -
Retrieve caller url in doGet()
In ine of my page there is a link to one of my servlet. Also this servlet can be directly by tyiping on address bar.
I need to get the calling url withing the doGet method in the servlet.
both request.getHeader("referer") and request.getAttribute("javax.servlet.error.request_uri") return a null values
Pls help meYou can use the request.getRequestURL()
-
How to create a list of Vendor's Account group, to call by a macht -code?
Hi All,
Could anyone tell me how to create a list of Vendor's Account group, to call by a macht -code?
Thanks
GandalfHi,
Use this report S_ALR_87012086 and select the account group single or multiple ranges from dynamic selection.
Thanks
Javed
Maybe you are looking for
-
How do I create an Apple ID for my kids which are linked to my Apple ID so that they can make purchases without me having to tell them my user/password?
-
Purchase order (STO) schedule line change through BAPI_PO CHANGE
Hi Gurus, we have requirement in user exit of MIGO ; to change the purchase order(STO) Scheduline change through BAPI_PO_Change. Current process. STO -> outbound delivery through VL10B -> PGI -> MIGO to the receipt It is working fine MIGO if we give
-
How to execute a mapping in sql plus?
hi, OWB generate a package code from the mapping, for example if I have a package named map1, what is the request to execute ,in SQL PLUS, map1.main() which is the function main of this package? Thank you
-
Emoticon/Smileys not displaying... I get TEXT ;-) instead!
Hi, This just started out of the blue. DIdn't do any update or anything. I click to send a SMILEY face in my ichat and on my end I see the TEXT version of the smiley instead of the cute image. What can be causing this? I tried to quit iChat and open
-
Hi, We are compressing a cube with zero elimination. All KFs are cumulatives with aggregation behavior of SUM. For some reason certain rows for which all KFs are zero are not being eliminated from the E fact table. I have looked back over past requ