cancel
Showing results for 
Search instead for 
Did you mean: 

Call transaction 'VA02' from Web dynpro screen without using portal

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello Experts,

I am able to access the standard transaction using ITS but still i am unable to link the number (say sales order number ) with the URL.

Could you please let me know how i can open the sales order for the particular sales order number?

Thanks and Regards,

Rahul Sinha

Former Member
0 Kudos

Pass the Screen field name as the parameter along with its value

for eg: VBAK-VBELN=XXXXXXX

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

Dear All,

I am trying to open a sales order from webgui (its) - here's my link:

https://servername:xxxx/sap/bc/gui/sap/its/webgui?sap-client=082&~transaction=VA03&VBAK-VBELN=454733...

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

0 Kudos

try UER1 as the OKCODE for Sales Overview in VA02 instead of SHOW.
You can check the code via Menu>System>Status>GUI Status>Function Keys.

Regards,

Silvana

Former Member
0 Kudos

Hi Rahul,

Kindly look into this thread it might be helpful.

Regards,

Sana.