‎2008 Nov 13 4:12 PM
Hello Experts,
My requirment is to invoke a URL on cliking submit button. I have a customer text box and a submit button in my screen.
So when ever we enter customer number in text box and click on submit button it shud invoke URL with customer at last of it.
https://X.XXX.XX.XX:XXXX/XXXXX/XXXXX.jsp?custId=0000006000. I have got info that we can call URL using the FM "PRGN_GENER_EXECUTE_URL" by passing url to NODE_DATA.
I am not that much familar with ABAP,
Please help me calling that URL.
‎2008 Nov 13 4:15 PM
you can even use call_browser FM
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = l_url.
‎2008 Nov 13 4:15 PM
you can even use call_browser FM
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = l_url.
‎2008 Nov 13 4:32 PM
Hi Jay,
Thanks for your prompt reply...
But your ans does not reslove my problem..
Can we do this with out using dailog programming? If so how can I achive that.
My req is a screen with text box for customer number and submit button, up on clicking the submit button get the customer number and add last to the URL and call the URL.
Please suggest best way and if possible a sample code so that I can do in less time.
Thanks in Advance,
Sandhya
‎2008 Nov 13 4:37 PM
Check this psuedo code:
parameter: pa_kunnr type kna1-kunnr.
button.
code: if sy-ucom = 'FC_Button'.
concatenate url pa_kunnr into URL_fin.
call browser FM
pass the url_fin.
main code:
REPORT zj_test.
PARAMETERS: p_kunnr TYPE kna1-kunnr OBLIGATORY.
DATA: url(100) TYPE c.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 2(10) push USER-COMMAND cli1.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN.
IF sy-ucomm = 'CLI1'.
url = 'sdn.sap.com'. "<<<<<<<you need to play with ur url here..
CONCATENATE url p_kunnr INTO url.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = url
EXCEPTIONS
frontend_not_supported = 1
frontend_error = 2
prog_not_found = 3
no_batch = 4
unspecified_error = 5
OTHERS = 6.
ENDIF.Edited by: J@Y on Nov 13, 2008 11:56 AM
‎2008 Nov 13 5:16 PM
Hi Jay,
Thanks for your very valuble reply.....
I have tried with your code in SE38on my SAP instance...
It dosent call the URL in IE.. I am using ECC 6.0
What do I need to do?
Thanks,
Sandhya
‎2008 Nov 13 6:06 PM
hmm....
looks like url = 'www.sdn.sap.com'.
www or http are the prerequisits this FM is looking for. Hope your URL have it...
‎2008 Nov 13 4:21 PM
yes you can use the FM PRGN_GENER_EXECUTE_URL. just pass the full URL to the node_data.
CALL FUNCTION 'PRGN_GENER_EXECUTE_URL'
EXPORTING
NODE_DATA = 'http://www.google.com'
* TARGET_SYSTEM = ' '
* LOGICAL_TARGET_SYSTEM = ' '
.