cancel
Showing results for 
Search instead for 
Did you mean: 

Open sapgui from nwbc with side panel (using api)

former_member241943
Discoverer
0 Kudos

Hi experts!


I have one problem with NWBC for desktop and side panel.

The challenge is that using wda api (or nwbc api) open sapgui transaction in nwbc and side panel have to be active for this sapgui transaction.

NWBC for desktop version 4.0.

SAP ERP 6.0 EHP 6.

When I logon to nwbc I see side panel that customized using pfcg role. I implemented side panel for sapgui transaction in nwbc.

I implemented wda application to open sapgui transcation.

See below.

As resut in nwbc new tab(window) with sapgui transaction opened BUT side panel is absence in new tab(window) in nwbc. It is very confused.

The challenge is opening new sapgui transcation with side panel .

NWBC for html and sapgui for html is not suitable for my case.  

This is my source from wda application to open sapgui in nwbc.

-----------------------------------------------------------------------------

     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 = 'VA42'
   CANVAS_TRANSACTION__CLNT_TYPE = 'sapgui'
   CANVAS__WINDOW = cl_nwbc=>canvas__window__app
  ) .

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

Please, help...

Best regards,

Timur Tabakov.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I think that I found the solution.

thanks to Nik T.

former_member241943
Discoverer
0 Kudos

Eike!

This is cool!

I try to check it.

Thanks.

Best regards,

Timur.

Former Member
0 Kudos

Hello Timur,

I have almost the same problem.

Did you solve this problem?

Kind regards,

Eike

Damean
Active Contributor
0 Kudos

Timur

   Your code above looks fine for me; but I probably need to understand your statement "The challenge is opening new sapgui transcation with side panel" ...

  I presume that you open the Tcode VA42 successfully. Is the issue because there's no Side Panel associated with this Tcode?  Or you have the Side Panel, but you need to write code to open it?

Regards

Damean

former_member241943
Discoverer
0 Kudos

Hi Damean!

Thank for reply.

In pfcg role Side Panel is associated with VA42.  And Side panel is opened when I start  Tcode VA42 manually (or in nwbc menu).

BUT If VA42 opened using like code above then side panel   is not opened.

This is problem.

Best regards,

Timur Tabakov.

Former Member
0 Kudos

This is interesting. I believe that there was a similar issue when transactions were opened from the NWBC Favourites (user saved favourites) - this was fixed in a release of the NWBC desktop client (PL10 I think). So this might be a bug that needs fixing... if I were you I would raise it with SAP support.

Damean
Active Contributor
0 Kudos

Timur

    I think I've similar issue in the past. The key issue ... When I open up the transaction, it does NOT seems to be associated with a Side Panel related Role & I just could NOT find a BAPI that could open up a Tcode within a particular role.

   I believe there maybe a work around by making the side panel role "global" ... however I abandon this design shortly. Reason ... I found a better solution via the use of Launchpad Chip. Primary value .. I could add my multiple Tcode without hardcoding and the role based designed make security role changes far more easier.

Regards

Damean