cancel
Showing results for 
Search instead for 
Did you mean: 

Execute a web dynpro application after executing a Bapi

Former Member
0 Kudos

Hi,

I am using a button that execute a Bapi to generate a file on a remote server. At the end of this execution, I would like a web dynpro application to automatically be sent to retreive the remote file and display it in a new Window. Is there a way to get that working ?

Thanks a lot.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

not solved

Former Member
0 Kudos

Hi

Try this:

- create event 'select' with mapping scope 'selected data rows' from out port of the table

- pass it into 'out' element (give him some significant name like 'displayFileEvt'

- look at the properties of ''displayFileEvt' : name & EMCM event - you can use it in order to catch this

in your WD application

Try this link in order to understand EPCM

[http://help.sap.com/saphelp_nw04s/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw04s/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm]

and this link to know what to do in your WD application

[http://help.sap.com/saphelp_nw70/helpdata/EN/79/3857422d095542e10000000a1550b0/content.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/79/3857422d095542e10000000a1550b0/content.htm]

good luck

Ola

Former Member
0 Kudos

Hi

If the button is in VC model so your problem is that you can't create multiple events.

In order to slove this your bapi should return some table row when file was created and you should put bapi's result in VC table. Becouse first row is always selected in table you can use this selection as event to call your WD application.

Let me know if u have any more questions.

Ola

Former Member
0 Kudos

Ola, thank you for your help. What do you mean by creating an event on the selection of the first row ?

Can I manage it through VC or do I have to program it in my webdynpro application ?