对于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
但是可以用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