on 05-28-2015 2:26 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.