cancel
Showing results for 
Search instead for 
Did you mean: 

How to set temporary Microsoft download folder

former_member185537
Participant
0 Kudos

Hello Experts,

I have been using the DMS system for a while and I have an issue. I am downloading and creating a document in the DMS system and the SAP is using a the SAPGUI folder for one of the users and using the system32 folder for another folder when creating the file.

Is there any parameter to set this folder as constant when creating a document like this. This is causing inconsistency in creation of the document in the DMS system

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Venkat,

If I got this right, then you want to have a specific upload directory set for being used in DMS when you add an original right?

Maybe you can use BADI DOCUMENT_MAIN01 with method AFTER_READ_DATA. I think that here you need to influence the current temporary directory for the SAPGUI class CL_GUI_FRONTEND_SERVICES and here check methods

  • GET_TEMP_DIRECTORY
  • GET_UPLOAD_DOWNLOAD_PATH

Best regards,

Christoph

former_member185537
Participant
0 Kudos

Hello Christophe,

Thanks for your reply.

I am using a custom transaction which uses the BAPI_DOCUMENT_CREATE2 already. When I am using the transaction, the folder path in the PC that the system considers to download the Excel file(later viewed in the cv04 as attachment) is different from the one that another users ID is using. And also the xl file that is created is not having all the data that is needed for other users. How can data be lost when getting saved only for a particular user. I notice that the path that the system uses to download the file to the PC while saving is different from the one that I get as against the one another person is getting.

I am not sure about this behaviour.

former_member185537
Participant
0 Kudos

Hello Christophe,

Also on the consistency of the creation of documents, it fails some times, but is successful some times. Are there any notes for this kind of inconsistency

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Venkat,

in case you are using BAPI_DOCUMENT_CREATE2 how do you download the file first?

Because I think that in your scenario you download first the file and then hand it over to the CREATE2 BAPI. In this case the focus should be to influence the download path for the file maybe.