on 10-21-2014 6:31 AM
Hi,
How to ristrict document type list in SAP Easy DMS?
Hi Anirudh,
You can restrict document types during creation of DIR using the FM Z_EASYDMS_GETDOCTYPES and during search you can retrict using FM
Z_EASYDMS_GETSEARCHDOCTYPES.
You need to implement the above Function modules. After that do reset RFC cache in Easy DMS.
Regards,
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Anirudh,
based on your description I would like to inform you that the
BADI EASYDMS_MAIN01 is used in EasyDMS and its methods are normally
called in the specific EASYDMS_ function modules. For further
information on this BADI and enhancements in EasyDMS please see the
SAP notes
1420745 - SAP Easy Document Management - Customizing and BAdI Docu
1368109 - Customer enhancements for SAP Easy Document Management 6.0
1368108 - Customer enhancements for SAP Easy Document Management
1347956 - Update: Badi EASYDMS_MAIN01- add methods
When I understood your requirement correctly you want to filter the
range of possible document type which can be selected in transaction
CV01N or EasyDMS, right?
From EasyDMS point of view the function module EASYDMS_GETDOCTYPES
(see note 1368108) can be used here.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari Prakash,
Its interesting to work on and am willing to learn. Can you please tell me how it will acts based on user id 's.
Sorry @anirudh. am interrupting you in the middle . If you working on this please expose your results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandu,
As i mentioned, Z_EASYDMS_GETDOCTYPES and Z_EASYDMS_GETSEARCHDOCTYPES. are called before listing the document types in Easy DMS we need to implment them and we put the logic for user id's in the implementation.
Following is the sample implemenation of Z_EASYDMS_GETSEARCHDOCTYPES.
FUNCTION z_easydms_getsearchdoctypes.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" DOCUMENTTYPES STRUCTURE TDWAI OPTIONAL
*"----------------------------------------------------------------------
DATA: ls_tdwai TYPE tdwai.
REFRESH: et_documenttypes.
if sy-uname eq 'xyz'.
ls_tdwai-dokar = 'ASM'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'B2X'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'DES'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'DGN'.APPEND ls_tdwai TO et_documenttypes.
endif.
if sy-uname eq 'ABC'.
ls_tdwai-dokar = 'DMO'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'DOC'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'DRW'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'DWG'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'FOL'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'QMH'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'ZHP'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'ZDB'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'ZD6'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'ZD7'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'NNN'.APPEND ls_tdwai TO et_documenttypes.
ls_tdwai-dokar = 'SY1'.APPEND ls_tdwai TO et_documenttypes.
endif.
ENDFUNCTION.
Hi Anirudh,
Document type list is same for all kind of users in entire system.So you can't restrict based on users id's. Educate the users the purpose of document type selection while creating attachment . please read the basics of DMS.
http://wiki.scn.sap.com/wiki/display/PLM/Basics+of+Document+Management
Regards,
Chandu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandu,
User don't want unwanted document type in document type tab list,is there any enhancement or user exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anirudh,
You cannot restrict document type list from browser . But you can able to restrict through authorization like once user can access particular document type only. In this area sap basis person will help you.
Regards,
chandu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.