cancel
Showing results for 
Search instead for 
Did you mean: 

EasyDMS : Function module to define allowed document types

Former Member
0 Kudos

Hello together,

I am working on EasyDMS 6.00 and have implemented the function module "Z_EASYDMS_GETDOCTYPES" to have a filtered list of allowed document types for creating folders and documents in EasyDMS.

But this FM does not seem to work, the list still contains all document types that are customized in R3.

Here is my implementation:


FUNCTION z_easydms_getdoctypes.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(FOLDERDOCUMENT) TYPE  BAPI_DOC_KEYS OPTIONAL
*"     VALUE(ISFOLDER) LIKE  BAPI_DOC_DRAW2-CADINDICATOR OPTIONAL
*"  EXPORTING
*"     VALUE(RETURN) TYPE  BAPIRET2
*"  TABLES
*"      DOCUMENTTYPES STRUCTURE  TDWAI OPTIONAL
*"----------------------------------------------------------------------

* default implementation: define some document types
* for documents and folders

  DATA: ls_tdwai TYPE tdwai.
  REFRESH: documenttypes.

  IF isfolder IS INITIAL.
    ls_tdwai-dokar = 'IMP'.APPEND ls_tdwai TO documenttypes.
    ls_tdwai-dokar = 'TST'.APPEND ls_tdwai TO documenttypes.
    ls_tdwai-dokar = 'DMO'.APPEND ls_tdwai TO documenttypes.
    ls_tdwai-dokar = 'DRW'.APPEND ls_tdwai TO documenttypes.
  ELSE.
    ls_tdwai-dokar = 'IMP'.APPEND ls_tdwai TO documenttypes.
    ls_tdwai-dokar = 'DMO'.APPEND ls_tdwai TO documenttypes.
  ENDIF.


ENDFUNCTION.

Any help would be great!

Thanks in advice,

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Andreas,

concerning the used function module I can tell you that it is called in Easy DMS. Before Easy DMS calls this module an availability check is made if it is activated too. So please check if the mentioned function module is activated in your system.

Further I can recommend you to delete the RFC Cache in Easy DMS and check again if the desired functionality is available now.

If this doesn't help the problem may be caused by the implementation of the function module.

Best regards,

Christoph

Former Member
0 Kudos

Hey Christoph,

thanks for your help, this solved my problem. After resetting the RFC-Cache I have only mentioned documenttypes in the dropdownlist.

Regards,

Andreas

Former Member
0 Kudos

Hi Andreas,

I understand you are using EasyDMS 6.0. I am getting the pop up for synchronisation screen again and again. Any action i try to do, the screen pops up. Is there a way to deactivate synchronization??

Also i tried synchronizing all teh documents which the system asks me to do, even after that next time i log on, it again pops up with the same screen.

Regards

Anuj

Former Member
0 Kudos

Actually I got the same behavior on my system but did not solve it yet

Sorry!

Hope someone else can help on this topic??? Maybe you should open a new topic...

Regards,

Andreas

patric_leidinger
Discoverer
0 Kudos

Hi Anju,

if you talk about the synchronization of the offline folder you can change the registry. There is a SAP NOTE 948254

You have to change the Registry key in the section

HKEY_CURRENT_USER\Software\SAP\EasyDMS\General

DisableSyncOnLogin (DWORD) If set to 1, this registry key disables automatic synchronization of offline folders at login.

Regards

Patric

Former Member
0 Kudos

Hi Anuj,

There is one catch with Patric's suggestion. If this registry is set, you will "never" get synch dialog box, so you will not be able to use the Synch functionality at all.

If you do not want to use this functionality, do not synch folder. So the pop up will not come.

But if you wish to use this functionality, then after synch you need to delete local files to avoid further pop ups in next logins.

Regards,

Anu

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All

I could not understand that, is there any difference between

DMS Vs Easy DMS?. If not why calling DMS & EasyDMS

Hope to get the information and thanks in advance

Regards

Sudhakar

Former Member
0 Kudos

To avoid synch dialog box pop up again and again, you need to go to easyDMS-Preferences-there do the delete local files.

This should fix this.

Regds,

Anu

Former Member
0 Kudos

I will give that a try if I am back at work.

DMS is the Document Management System module of SAP R3.

EasyDMS is a local installed GUI which connects via RFC to the R3 backend system (similar to the sapgui but simpler).

So its quite easier to use than the sapgui, it is integrated in the windows file explorer and supports all windows functions like drag'n'drop, save- and open dialogs, ...

Hope things getting clearer now...

Regards,

Andreas