on 03-30-2010 8:25 AM
Hello Experts,
I have requirement to change or display the transaction 'VA02' OR 'VA03' basd on the sales order number selected in the Web dynpro screen.
Please let me know how i can call the transaction from Web dynpro WITHOUT USING PORTAL.
Note : Web dynpro is not linked to any Portal.
Thanks and Regards,
Rahul Sinha
You can display a standard tcode in your webdynpro application using ITS, try the following code
DATA: url TYPE string,
host type string,
port type string.
*Call below method to get host and port
cl_http_server=>if_http_server~get_location(
IMPORTING host = host
port = port ).
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
INTO url.
*get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
* call the url which we created above
lo_window_manager->create_external_window(
exporting
url = url
receiving
window = lo_window ).
lo_window->open( ).
Hope this helps!
Best Regards,
Radhika Vadher.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Radhika,
Thanks for the reply.
Onemore query .
The VA02 screen should be called when i select a row in the table created in Web dynpro which has the sales order number.
So is it possible to add the sales order number also in the code?
If yes,how can i do that.
As per my understanding the ITS link will be generated through transaction SICF and the link will have some parameters that we will define in the navigation link which will be attached to the table created in Web dynpro.
So how the program will open VA02 for the particular sales order number?
Waiting for your reply.
Thanks and Regards,
Rahul Sinha
Hi Radhika,
I am also facing the same issue and i have tried the solution suggested by you. I have given the url as below
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
'&VBAK-VBELN=1234'
INTO url.
But i am unable to view the details for the particular sales order number selected in web dynpro screen. I am getting the initial screen of VA03 .Please help me out.
Thanks,
Delphi.
Please concatenate the OKCODE = SHOW
DATA: url TYPE string,
host type string,
port type string.
*Call below method to get host and port
cl_http_server=>if_http_server~get_location(
IMPORTING host = host
port = port ).
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~TRANSACTION=VA03&%20VBAK-VBELN=' l_vbeln
'&~OKCODE=SHOW'
INTO url.
Hello,
I tried this approach with ME22N. Good side of it, it launches ME23N but not with the PO number that am passing in the URL.
Are there any other settings that need to be done or modify the url?
Thanks,
Kiran
Hello,
I am building my URL like this:
CONCATENATE 'http'
'://'
host
':'
port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=ME23N&%20MEPO_SELECT-EBELN='
lv_ebeln
'&~OKCODE=MEOK'
'sap-config-mode=true'
INTO url.
and then calling create_external_window. This way, it shows me the ME23N transaction but it opens up the last run PO in my system but not the one that I selected on the table.
Am I missing some thing? Please let me know.
Thanks,
Kiran
Edited by: kiran dasari on Jul 6, 2011 9:00 PM
Dear All,
I am trying to open a sales order from webgui (its) - here's my link:
I am getting following error message:
Requested function SHOW is not available here; Message No. V0104
Any ideas how I could open my sales order directly?
Thanks
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.