cancel
Showing results for 
Search instead for 
Did you mean: 

How to ristrict document type list in SAP Easy DMS

Former Member
0 Kudos

Hi,

How to ristrict document type list in SAP Easy DMS?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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


Answers (5)

Answers (5)

christoph_hopf
Advisor
Advisor
0 Kudos

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

former_member204787
Contributor
0 Kudos

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.

0 Kudos

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.

former_member204787
Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Chandu,

User don't want unwanted document type in document type tab list,is there any enhancement or user exist.

former_member204787
Contributor
0 Kudos

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.