cancel
Showing results for 
Search instead for 
Did you mean: 

SOFM: Dsiplay method is not working when called from ABAP Webdynpro

Former Member
0 Kudos

Hi All,

I want to open an attachment from ABAP Webdynpro.

I have approached in this fashion:

1) Get the attachments as SOFM object key

2) On Click of a link on Webdynpro, I am calling a function module within which I am creating an instance of the SOFM object

3) Then I am calling the DISPLAY method

It is not opening.

But, if it opens when I driectly execute the function module. It open when I directly test the business object.

Any Idea ?

Thanks & Regards,

Deb

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

solved

Former Member
0 Kudos

Hi,

We have a same requirement,please let me the exact steps involved in this.

Regards,

tkn

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Display Method uses the Dialogue Module, You should not access such methods in web dynpro which are SAPGUI specific.

Web Dynpro Applications are run in Browser environment which cannot understand Dialog, it can understand only HTML.

Read the attachments and get the content and use FileDownload UI element to show it to user.

Abhi