cancel
Showing results for 
Search instead for 
Did you mean: 

Calling webdynpro abap application in NWBC

Former Member
0 Kudos

hi there,

inside an POWL feeder class i have enhanced the method handle_action to react to an click on an button. I want to start another webdynpro application "FITV_TRIP_FORM" to open the trip form in travel management POWL inside NWBC.

my code is like that:

CALL FUNCTION 'WDY_EXECUTE_IN_BROWSER'

  EXPORTING

    application                                            = 'FITV_TRIP_FORM'

    PARAMETERS                                     = lt_parameters

EXCEPTIONS

   INVALID_APPLICATION                  = 1

   BROWSER_NOT_STARTED           = 2

   ACTION_CANCELLED                     = 3

   OTHERS                                            = 4

The call of this FM is coming back with sy-subrc = 2 -> browser not started

When i call SE37 and TEST the FM with F8 with the same parmeters it works ! A new broswer window is opened and the form is displayed.

But when i call the FM inside the powl class i get the sy-subrc = 2 and the form is not popping up.

any idea why this only works in backend in sap gui and not in NWBC ?

br Martin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Martin,

I've a similar requirement for opening this form.

Can you please help me with the parameters passed in lt_parameters.

Regards,

Pratik.

ramakrishnappa
Active Contributor
0 Kudos

Hi Martin,

To call WD applications in NWBC, you need to use the role used for NWBC and there add your WD application under MENU tab.

Refer the below link

Side Panel Usage in NWBC

Regards,

Rama

Former Member
0 Kudos

hi,

i know that ! but i dont want to have the application on the side panel or in the menu, i want to call it directly from another application iside an enhancement point coding.

br martin

matteo_montalto
Contributor
0 Kudos

Hi Martin,

you could start debugging the function, in particular BROWSER_NOT_STARTED exception is raised by the fm when the CALL_BROWSER function provides an exception:

call function 'CALL_BROWSER'

         exporting

           url                    = char_url

         exceptions

           frontend_not_supported = 1

           frontend_error         = 2

           prog_not_found         = 3

           no_batch               = 4

           unspecified_error      = 5.

       if sy-subrc ne 0.

         raise browser_not_started.

       endif.


It could be useful to understand which exception is actually raised at runtime.


Regards,

Matteo

Former Member
0 Kudos

hi

i have tested the CALL_BROWSER, its ending up with sy-subrc = 0, see screenshot from debugging  ! but the  side www.google.com is NOT displayed in NWBC ! NOTHING happens.

when i start this from SE37 and F8 for testing FM with the same parameters the browser is opended and www.google.com is started.

so why does this NOT work inside nwbc ? ????

br Martin