cancel
Showing results for 
Search instead for 
Did you mean: 

Save file in BDS via Web Dynpro

0 Kudos

Hello,

I use the UI Element "FileUpload" to provide a "browser" functionality, to browse and enter the path to a file (e.g. word document).

I want to save the document in BDS.

How can I do this?

I found the method create_with_files of class cl_bds_document_set, but deep inside the method / class with function module SCMS_FE_START_REG_SERVER it is checked if it runs on the GUI and returns an error.

Can someone tell me a method or function module to save a file in BDS (class BUS7051 (notification) classtype BO) via Web Dynpro?

Thanks,

Josephine

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I used FM BDS_BUSINESSDOCUMENT_CREA_TAB quite often in the past to upload documents in a content server. Make sure the business users have proper role authorization (auth.objects S_BDS_D, S_BDS_DS) to allow document upload.

In case where you have problem generating an ARFC model with data type "xstring", build a wrapper in the backend and send document content under BASE64 encoding. Decode in the backend before uploading with method cl_http_utility=>if_http_utility~decode_base64( ).

cheers