on 11-24-2008 9:17 AM
Hi All,
I need to have a button in the webdynpro that when a user clicks it will pop up a table that display a list of files already attached to a Generic Object Services(GOS) and also allow the user to delete the attachments and upload new attachments.
Can anyone advice me of any Function Modules or Methods that i can use to achieve those functions (retrive and display attachments in the GOS, delete existing attachment from GOS, upload new attachment to GOS).
Thanks and Regards,
weilong
Hi,
You can use this bapi 'BAPI_DOCUMENT_GETLIST' to get the list of documents. This bapi returns data in table form and the list of documents can be displayed in a Table in Web Dynpro.
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Do you know of any function module to delete a attachment from a Business Object?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You need to pass parameters as per the code below
****Data Types
CONSTANTS:lc_dokob TYPE dokob VALUE 'KNA1',
lc_dokar TYPE dokar VALUE 'LEG',
lc_dappl TYPE dappl VALUE 'BVO',
lc_sign TYPE c VALUE 'I',
lc_option(2) TYPE c VALUE 'EQ',
lc_docpart(3) TYPE c VALUE '000',
lc_docversion TYPE dokvr VALUE '00',
lc_status TYPE dokst VALUE 'AL',
ls_attc-doknr TYPE doknr,
ls_return TYPE bapiret2,
*****Function Module
CALL FUNCTION 'BAPI_DOCUMENT_DELETE_DIRECT'
EXPORTING
documenttype = lc_dokar
documentnumber = ls_attc-doknr
documentpart = lc_docpart
documentversion = lc_docversion
IMPORTING
return = ls_return.
Thanks
Vishal
Hi,
I tried using FM "BDS_DOCUMENT_DELETE" to delete an attachment but i get an error "Nothing Found".
I use the BDN_CON-LOIO_ID from the FM "BDS_GOS_CONNECTIONS_GET" to pass in the FM "BDS_DOCUMENT_DELETE" exporting parameter 'DOC_ID'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the following link. The link explain the process for BSP.
[GOS using BSP|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2519] [original link is broken] [original link is broken] [original link is broken];
May be you can use a class from the list of CL_GOS* classes to meet the requirement or function module BDS_GOS_CONNECTIONS_GET to get the list of documents attached with the object.
Regards
Rohit Chowdhary
Edited by: Rohit Chowdhary on Nov 25, 2008 11:01 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.