cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg calling Transaction code in Webdynpro ABAP

former_member186491
Contributor
0 Likes
2,473

Hi All,

Can I call Transaction code in Webdynpro ABAP Portal Application. If so, how can this be possible? Can anybody give me a lead?

Thanks.

Kumar Saurav.

View Entire Topic
Former Member
0 Likes

Hi

You can you the below code to call a T code from webdynpro ABAP:

1: Call below method to get host, port and protocol

cl_http_server=>if_http_server~get_location

2: concatenate protocol '://' host ':' port '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='your tcode name' into url

3: 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( ).

4: Call the url which we created above

lo_window_manager->create_external_window(

EXPORTING

url = url

RECEIVING

window = lo_window ).

The T code will be executed using the integrated ITS

Thanks

Vishal kapoor

former_member211591
Contributor
0 Likes

Hi...

is it required to have SAP GUI installed to make 'webgui/~transaction=XXX' work?

BR

ismail

ssharma28
Participant
0 Likes

Hi Vishal,

We are calling a transaction through webdynpro using this URL which you mentioned in your comment.

we have passed the parameters to skip initial screen.

This was working fine before upgrade. Now we have upgraded system ehp7. here in new system, the same transaction is getting opened up with selection screen and prepopulated fields which we are passing from the webdynpro.  What could have changed or do we need to do some settings to skip initial screen?

Thanks,

Seema

ssharma28
Participant
0 Likes

The problem is solved using OKCODE ONLI.

Thanks,

Seema