cancel
Showing results for 
Search instead for 
Did you mean: 

How start a sap gui screen from wd4a within the business client

mmgc_riel
Participant
0 Kudos

Hi,

The most of our transactions are using the sap gui interface.

We moved to an ERP system and are using WD4A and the business client.

Within a wd4a application i want to jump to  a sap gui screen for displaying details of the entity.

I cannot write details screens for all enities in wd4a in one year.

How can i jump to a sap gui transaction or detail screen?

Accepted Solutions (1)

Accepted Solutions (1)

m_aravindan
Active Participant
0 Kudos

Hi   ,

                       

                      Check the following links which will give you an idea ..

http://www.saptechnical.com/Tutorials/WebDynproABAP/SAPGUI/Index.htm


http://sapignite.com/call-sap-tcode-using-webdynpro-for-abap//

Regards

Aravindan

mmgc_riel
Participant
0 Kudos

I solved the problem by starting an external window

    DATA:

      lv_url            TYPE string,
      lo_nwbc          
TYPE REF TO cl_nwbc,

       lo_api_component  TYPE REF TO if_wd_component,
      lo_window_manager
TYPE REF TO if_wd_window_manager,
      lo_window        
TYPE REF TO if_wd_window.

lv_url
= cl_nwbc=>url_construct(
               canvas_transaction
= '/CIVBS/CNSLOG'.

lo_api_component
= wd_comp_controller->wd_get_api( ).
lo_window_manager
= lo_api_component->get_window_manager( ).
lo_window
= lo_window_manager->create_external_window(
url
= lv_url ).

lo_window->open( ).

Answers (1)

Answers (1)

former_member199125
Active Contributor
0 Kudos

Just call the tocde using URL with the help of webgui services.

FYI

But when you are navigating to SAP GUI( HTML version ) you have to control the sapgui window to stop accessing the other tcodes.(otherwise endusers can access entire server).

to avoid this you have to pass some parameters in webgui service.

Check this links, it will help you

http://wiki.sdn.sap.com/wiki/display/HOME/Article+-+Employ+SAP+GUI+for+HTML+instead+of+an+Internet+s...

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=25427

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375

Regards

srinivas