cancel
Showing results for 
Search instead for 
Did you mean: 

cl_bds_document_set=>create_with_table

Former Member
0 Kudos

Hi all,

I need to upload file to BDS in web dynpro. i used FM BDS_BUSINESSDOCUMENT_CREATEF but that works good only in abap.

from link , i learnt that method cl_bds_document_set=>create_with_table should be used in web dynpro. Can any 1 please tel what value does parameter CONTENT takes. and what other functions to be used in order to upload file to BDS other than this method

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>

> Hi all,

>

> I need to upload file to BDS in web dynpro. i used FM BDS_BUSINESSDOCUMENT_CREATEF but that works good only in abap.

>

> from link , i learnt that method cl_bds_document_set=>create_with_table should be used in web dynpro. Can any 1 please tel what value does parameter CONTENT takes. and what other functions to be used in order to upload file to BDS other than this method

HI,

1.content is of type SDOK_SDATX data element which is of RAW datatype. You can use this for binary data like excel,doc,pdf etc.

see this document [https://cw.sdn.sap.com/cw/docs/DOC-19850|https://cw.sdn.sap.com/cw/docs/DOC-19850]

2.create_with_files method is also used for uploading. My suggestion is to do a simple search on scn like "BDS upload" would give you more hits.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Thank you for replying, now file is uploding.

My requirment is also that, displaying the uploaded file. for that i am using 'SCMS_DOC_URL_READ'. Files which are uploaded through the FM 'BDS_BUSINESSDOCUMENT_CREATEF' in abap are displayed. Files which are uploading using method CL_BDS_DOCUMENT_SET=>CREATE_WITH_TABLE are not displaying. using this method is it possible to display?

In oaor transcation also files through this method are not displayed.

Edited by: Bhavya belagal on Dec 24, 2010 9:20 AM

Former Member
0 Kudos

>

> Hi,

>

> Thank you for replying, now file is uploding.

> My requirment is also that, displaying the uploaded file. for that i am using 'SCMS_DOC_URL_READ'. Files which are uploaded through the FM 'BDS_BUSINESSDOCUMENT_CREATEF' in abap are displayed. Files which are uploading using method CL_BDS_DOCUMENT_SET=>CREATE_WITH_TABLE are not displaying. using this method is it possible to display?

> In oaor transcation also files through this method are not displayed.

>

> Edited by: Bhavya belagal on Dec 24, 2010 9:20 AM

Hallo Bhavya,

please avoid nested discussion. would have been better if you started this as new discussion.

Have you seen in the repository that these files are available after CL_BDS_DOCUMENT_SET=>CREATE_WITH_TABLE ?

SCMS_DOC_URL_READ gives you the URL. control if you have had supplied a correct parameters .

see the link for getter methods from CL_BDS_DOCUMENT_SET

[https://cw.sdn.sap.com/cw/docs/DOC-9739|https://cw.sdn.sap.com/cw/docs/DOC-9739]