webdynpro GOS BDS 文档/附件 上传下载处理

本文档介绍了如何利用SAP的Business Document Service (BDS) 在WebDynpro应用中处理文档和附件的存储与检索,包括创建对象与附件的逻辑关系、配置BDS应用类和存储类别,以及使用BDN进行文档操作。
摘要由CSDN通过智能技术生成
 对于webdynpro 的GOS, 不可以做
但是可以用BDS实现部分



SAP BDS (Business Document Service) for storage of documents and attachments in SAP ECC
In some business scenarios there is need to attach/store external file to standard object like Material/ Purchase Order or to custom application like Loan Application; in such case we can use SAP standard methodology like SAP Office, BDS (Business Document Service), DMS (Document Management Service), GOS (Generic Document Services) to store actual files in system with logical relation with an object or Application so we can retrieve the same.


All these methodologies provide basic functionality which includes:


Attachment Creation for Object
This functionality will create logical relationship between attached object and actual SAP business object
Retrieving stored attachment and Display
BDS (Business Document Service)


Maintain Assignment of Business Objects to Document Classes – Tcode – SBDSV
As basic configuration, you need to create class (for Business Object) for your application e.g. Student Admission Application.
Maintain Storage Categories – Tcode – SBDSV2
Once you are done with creation of BDS Application Class, assign required document type such as BDS_ATTACH –Attachment, BDS_HTMLT- HTML template, BDS_IMAGE –Screen, BDS_SHEET          Table template, BDS_SLIDE Presentation, BDS_TEXT Text to BDS Application class name. You can create new Document class and document Type through SPRO configuration if needed.
BDN (Business Document Navigator)
BDN (Business Document Navigator) is a tool provided by SAP for mediating Documents.


Basic functions provided by BDN includes:


Store Document
Display Detail information about stored document
Display Documents
Display Version, Keyword for documents
Copy, Edit, Delete Documents
Store WWW address
These are some functionality examples provided by BDN.


These documents are stored in SAP Database Table (default for existing classes defined by SAP), but we can change this storage location, like if we want to store these documents in any external server. To achieve this we can create Content Repository, Content Category and assign it to Physical Document class.


Standard Function modules and BAPI’s are available to do all these functionality through ABAP code so we can use BDS to store documents for external applications. Below are some useful Function modules for BDS.


BDS_BUSINESSDOCUMENT_CREATEF


BDS_ALL_CONNECTIONS_GET


BDS_BUSINESSDOCUMENT_GET_INFO


BDS_BUSINESSDOCUMENT_GET_TAB


Class – CL_BDS_DOCUMENT_SET








1.1 Code for getting attachment from BDS and GOS


  DATA lt_signature        TYPE STANDARD TABLE OF bapisignat.
  DATA lwa_signature       TYPE bapisignat.
  DATA lt_comp             TYPE STANDARD TABLE OF bapicompo2.
  DATA ls_comp             TYPE bapicompo2.
  DATA lwa_attachment_list TYPE ty_s_attachment_list.
  DATA lt_con              TYPE TABLE OF bdn_con.
  DATA ls_con              TYPE bdn_con.
  DATA lt_sig              TYPE TAB
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值