on 06-02-2014 10:32 AM
Hello everybody! I have to work with DMS documents on the portal. Do You know, how display the attached files of DMS document in WEB Dynpro?
Pavel Truhlář
Hi Pavel,
By using the below F.M we can display DMS Document.
CALL FUNCTION 'CVAPI_DOC_VIEW'
EXPORTING
PF_DOKAR = 'ZAP'
PF_DOKNR = LS_DMS_TABLE-DOKNR
PF_DOKVR = '00'
PF_DOKTL = '000'
PF_HOSTNAME = 'DEFAULT'
PF_APPL_START = ' '
PF_GET_URL = 'X'
IMPORTING
PFX_URL = V_URL
EXCEPTIONS
ERROR = 1
NOT_FOUND = 2
NO_AUTH = 3
NO_ORIGINAL = 4
OTHERS = 5.
After getting the V_URL Create External Window.
LO_API_COMPONENT = WD_THIS->WD_GET_API( ).
LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
LO_WINDOW = LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW(
URL = LW_URL ).
BR,
Jack.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavel,
You need to pass that attachment document number,type and version.
CALL FUNCTION 'BAPI_DOCUMENT_DELETE'
EXPORTING
DOCUMENTTYPE = LW_DRAD-DOKAR
DOCUMENTNUMBER = LS_DMS_TABLE-DOKNR
DOCUMENTPART = LW_DRAD-DOKTL
DOCUMENTVERSION = LW_DRAD-DOKVR
IMPORTING
RETURN = LW_RETRN.
When u want to create one attachment that time u get one document number. That Number u need to save in ur Ztable. Next Time when u want to delete that document,simply pass that DOKNR(Doc Number) And Remaining Parameters like above.But before that u need todo some configuration for DMS in SPRO. Actually that Configuration my functional has done that's why i didn't touch that configuration. Then u know That parameters like TYPE,PART And Version. At time of creation,Display,Change And Delete this parameters with Document combination is mandatory then only updation will happend.
Regards,
Jack.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.