cancel
Showing results for 
Search instead for 
Did you mean: 

Calling R/3 Transaction from WDA

Murali_Shanmu
Active Contributor
0 Kudos

Hi,

I have created an Applciation with 1 View, which is empty. I have put this piece of code in the Init Method.


data l_componentcontroller type ref to ig_componentcontroller .
data l_api_componentcontroller type ref to if_wd_component.
data l_sapgui_manager type ref to cl_wdr_sapgui_integration.

l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).


if l_sapgui_manager is not initial.
l_sapgui_manager->fire_start_transaction( transaction = 'ZRUN' ).
endif.

When I run my application, nothing happens. It just shows the blank view and does not call the Transaction ZRUN.

Any Help ?

Regards

Murali.

Accepted Solutions (1)

Accepted Solutions (1)

mohammed_anzys
Contributor
0 Kudos

The value of l_sapgui_manager is initial all the time.

l_componentcontroller->wd_get_api( ).

will not populate l_sapgui_manager .....

mohammed_anzys
Contributor
0 Kudos

Hi Murali,

sapgui_manager will be populated only when you are calling a webdynpro application inside an SAP GUI , which nmeans saomething like you create an SAP GUI and then you create a frame inside that and embedd the webdynpro application inside that.

If you are runnning the application through the browser , it will be always initial.

Thanks

Anzy

Murali_Shanmu
Active Contributor
0 Kudos

Thanks for your reply. So U mean to say that I will not be able to call a Transaction from WDA on the Browser.

Regards,

Murali

Answers (0)