on 05-12-2010 5:03 PM
hi experts,
i have ALV table in which one of the columns is sales order number. I made the column as hyperlink so that user can click on it. when the user clicks on this i am calling an event handler method which is linked on_click event of the ALV interface controller . i am able to capture the sales order number in the method. Now i want to call va03 transaction for this sales order in a new browser window. we are going to integrate this application in portal. any ideas?. i heard something about the object based navigation. how to do this?
thanks
Edited by: sudhakar murthy on May 12, 2010 6:04 PM
Hi sudhakar, you could launch a popup window.
Check:
http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproapplicationtodisplayaPop-upwindowonthebrowser
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhakar,
Check out the below code to open a Transaction from WD in an external window and pass the value in that Transaction. I am passing the value here in the VF03 transaction's Billing document screen field .
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 ).
CONCATENATE host ':' port
'/sap/bc/gui/sap/its/webgui/?~transaction='
'*VF03 VBRK-VBELN=123456' " 123456 is the value you are passing into the Billing document screen field of the
INTO url. "VF03 transaction
*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 it helps you...
This might only exist in newer Enhancement Package/Support Package levels - but there is a class called CL_URL that helps you build URLs for a variety of different UI technologies. It has a method for SAPGUI for HTML (method ITS).
If you have access to this class, it is preferable to building the URL string manually.
Hi Jung,
I was actually using the LORD_MAINTAIN, but it seems that authorization checks coded into this application are different from standard VAO3 application. we have removed the sales order change authorisation for a user and asked to execute LORD_MAINTAIN and vao3 separately. user was able to change the order in WD but not from VA03. so that is reason i want to go back to r/3 tcode.
thanks
Store your VBELN value in a global attribute type vbeln and pass this value to the screen field. Ensure that you have marked the attribute as public and activated the component controller.
CONCATENATE host ':' port
'/sap/bc/gui/sap/its/webgui/?~transaction='
'*VF03 VBRK-VBELN=' wd_comp_controller-><Global attribute>
INTO url.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.