cancel
Showing results for 
Search instead for 
Did you mean: 

Calling another transaction in a new NWBC tab and keeping OBN

former_member195355
Participant
0 Kudos

Hiya,

I have two reports (web dynpro reports) that I've created.

Each report has buttons that are supoposed to open SAP transactions.

So I've added code to the buttons that make the OBN calls, the reports have been added to the PFCG, and then OBN details have been added to the report nodes within the PFCG to open the SAP transactions.

And this all works fine!

The problem is this - the business would like a button to open report 2, in a new NWBC tab, from report 1.

I can't seem to do this AND get the OBN buttons to work for report 2.

So Report 1 works perfectly, I'm using open 'external_window' from the web dynpro to open a URL that points to the web dynpro of report 2.

Report 2 appears fine but the buttons don't work and nothing happens when you click them.

Can anyone suggest how best to approach this problem i.e. open a new NWBC tab, for a report in your PFCG role.

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi H.M.

This code will launch the transaction QM01 in a new tab, i think you would be able to use this snippet to open a new report instead.

Do you need to pass parameters from Report 1 to report 2, otherwise you might be able to use a portal launchpad or create your own OBN?

       data: lo_lsapi TYPE REF TO IF_LSAPI.

data: lv_location type string.
lo_lsapi
= cl_lsapi_manager=>get_instance( ).
lv_location
= 'ls-tr://QM01?RIWO00-QMART=Q1'.

lo_lsapi
->navigate(

location     
= lv_location

mode          '1'

*                    history_mode  = iv_history_mode

title         = 'Create notification'

).

former_member195355
Participant
0 Kudos

Beautiful answer - many thanks!

parulkapoor8
Discoverer
0 Kudos

I tried this and it is working for me .

Thanks

Answers (0)