Skip to Content
avatar image
Former Member

cl_bds_document_set=>create_with_table

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 BDS_BUSINESSDOCUMENT_CREATEF , 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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 24, 2010 at 07:34 AM

    >

    > 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 BDS_BUSINESSDOCUMENT_CREATEF , 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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 24, 2010 at 08:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      >

      > 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]