Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

getting file save dialog

Former Member
0 Likes
562

hi,

i am reading an attachment data using BBP_PDATT_GETDETAIL in SRM7 . The export table gets the attachment data(file name , file type etc.,). the attachment data is stored in field of type below

SDOK_SDATXRAW1022

now what i want to do it is when user clicks on a button i should read the data and present a standard dialog that comes when we are download any file from internet ( with 'open' 'save' and 'cancel' options). when the user clicks on open the document should open. is there any class or FM to do this?

thanks

Moderator Message: FAQ. Please search the forum. Thread locked.

Message was edited by: Suhas Saha

hi,

i am reading an attachment data using BBP_PDATT_GETDETAIL in SRM7 . The export table gets the attachment data(file name , file type etc.,). the attachment data is stored in field of type below

SDOK_SDATXRAW1022

now what i want to do it is when user clicks on a button i should read the data and present a standard dialog that comes when we are download any file from internet ( with 'open' 'save' and 'cancel' options). when the user clicks on open the document should open. is there any class or FM to do this?

thanks

Moderator Message: FAQ. Please search the forum. Thread locked.

Message was edited by: Suhas Saha

2 REPLIES 2
Read only

venkateswaran_k
Active Contributor
0 Likes
515

Hi

Use following function.

    call function 'WS_DOWNLOAD'
        exporting
                   filename                      = e-file
                   filetype                      = 'DAT'
        tables
                   data_tab                      = it_group.

Where, e-file  is the name of the file in which you want to save

            it_group - is the intenal table data that you want to save..

Regards,

Venkat

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
515

WS_DOWNLOAD is an obsolete FM, do not suggest to use this