on 03-22-2011 4:43 PM
Hi,
is there a possibility to call an URL directly in an action? I want to press a button and call via WEB GUI a transaction in SAP. Now I have solved it with a new view with field 'link to url' but i want to get the call directly.
Thanks for propsals and regards
Mandalee
hi mandalee,
Do you mean to say that you want to call a transaction code in WEB GUI by pressing a button?
If it is your requirement than in the event handler of your button write the following code , i am calling the transaction MM01 .
CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = 'http://sapdef.lntinfotech.com:8000/sap/bc/gui/sap/its/webgui?~TRANSACTION=MM01'
MODAL = ABAP_FALSE
HAS_MENUBAR = ABAP_TRUE
IS_RESIZABLE = ABAP_TRUE
HAS_SCROLLBARS = ABAP_TRUE
HAS_STATUSBAR = ABAP_TRUE
HAS_TOOLBAR = ABAP_TRUE
HAS_LOCATION = ABAP_TRUE
RECEIVING
WINDOW = LO_WINDOW.LO_WINDOW->OPEN( ).
The ITS is the interface between the Internet and R/3 which Gives
HTML view of each and every SAP tcode....
So to display a standard tcode in your webdynpro application you can use ITS.
as a example here is the URL which can help you to open VA01 Tcode..
Call this URL using LINK TO ACTION or Link to URL UI Elements...in ur webdynpro component...
http://<url>:portno/sap/bc/gui/sap/its/webgui?~TRANSACTION=VA01
<url>:portno = your application server (you can easily find it from your webdynpro application Properties)
If your need something more plz clarify.
regards,
Monishankar C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Monishankar,
I would like to add some points with your comments to get the url of the transaction.
The below piece of code helps to get the url of the Transaction.
DATA lv_url TYPE string.
CALL METHOD CL_ITS_RUNTIME=>GET_URL
EXPORTING
IN_PROTOCOL = "Optional
IN_HOST = "Optional
IN_PORT = "Optional
IN_APPLICATION_NS = "Optional
IN_APPLICATION = "Optional
IN_LANGUAGE = "Optional
IN_CLIENT = "Optional
IN_TRANSACTION = 'VA01' "Pass the Transaction "Mandatory Field
IMPORTING
OUT_HOST =
OUT_PORT =
OUT_LOCAL_URL =
OUT_ABS_URL = lv_url
OUT_PROTOCOL =
.
Pass this lv_url value to Create External Window method.
Thanks,
Sudar
Edited by: sudarm on Mar 24, 2011 12:23 PM
You can simply add it to your favourites in the SAP GUI !
When you first login, on the left navigation bar, there is a folder called "favorites". Right click and select the option to add a generic URL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank your for your helpful comments, now I think I will solve it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may have to be more clear about your problem.
What you mean by
is there a possibility to call an URL directly in an action
Is your concern is to execute the SAP gui application on the same window ?
otherwise , you can just copy the coding from link to action to the button action., that will serve your purpose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.