cancel
Showing results for 
Search instead for 
Did you mean: 

Call ABAP report with screen from WD application

Sharathmg
Active Contributor
0 Kudos

Hello All,

I have a technical requirment to call a ABAP report from the Web Dynpro screen.

When a user clicks a button in WD view, then the event's code should call a report and display the ABAP screen( as ITS) in a new window.

Is it technically feasible? If so, how do we call this report and pass values to it?

Any input on this is highly appreciated.

Thank you.

Regards,

Sharath M G

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If you use the portal or NWBC, you should consider using the Portal APIs for Object Based Navigation. This is the easiest way to perform such navigation and pass values. Otherwise you have to build up the URL string of the call to the ITS yourself (consider using class CL_URL to help). But overall, yes this is quite possible and very common.

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

Thank you all.

The solution was to create a Internet service to refer tot he transaction and then call the URL of the internet service in WD method.

Former Member
0 Kudos

Hello Sharath,

just create a report transaction from your report.

Then in SE80 create an ITS service referring to that transaction.

In WD ABAP call that ITS service using e.g. following code


DATA: API_COMPONENT TYPE REF TO IF_WD_COMPONENT.
DATA: WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
DATA: WINDOW TYPE REF TO IF_WD_WINDOW.

API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
WINDOW_MANAGER = API_COMPONENT->GET_WINDOW_MANAGER( ).
WINDOW = WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW( URL = <URL of your ITS service> MODAL = ABAP_TRUE ).

The way to pass parameters to that report could be 'Shared Objects'.

Kind regards

Andreas