cancel
Showing results for 
Search instead for 
Did you mean: 

Export of applicationfiles - filename

Former Member
0 Kudos

Hello,

We want to export applicationfiles from DMS. This can be done easily with CV04N, and then use Distribution function. Applicationfiles are then written to the folder that is configured.

Problem is, the filenames generated by the system are meaningless (running number). The recipient of the files needs to know the relation between applicationfile and metadata (DIR data).

We would like to have the filename to be built up like this:

DOKNR_DOKAR_DOKTL_DOKVR_DAPPL_ddmmyyyy_nnnn (where nnnn is running number). We are aware there is no standard functionality for this.

How to achieve this (FM, BAPI etc)?

Will reward points.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

And then you can use shell functions to rename. Try class CL_GUI_FRONTEND_SERVICES method execute.

espen

Former Member
0 Kudos

Hi,

use BAPI_DOCUMENT_CHECKOUTVIEW2 to checkout the files. In table DocumentFiles you get a list of files (path and filename) back, which are checked out. Then you can rename the filename as you need.

regards

Iring