cancel
Showing results for 
Search instead for 
Did you mean: 

Archivelink API - DAPPL determination

matteo_montalto
Contributor
0 Kudos

Hi all gurus,

I'm working on a completely custom routine in order to store attachments to SRM's business objects (such as shopping carts, Purchase order and so on) and I'm apparently stuck on a very simple task: how to determine the value of the DAPPL field, given an uploaded file?

As far as I've seen lurking in customizing on an ERP machine, there's a customizing table, which is the TDWP, in which DAPPL values are bound to file extensions.
For instance, here's a row of the table:

mandtDAPPLAPPLBARCHIVIDCVTEXTAPPSFXDATEIFRMT
015PDFX*Acrobat Readerpdf*.pdf

(omitting extra columns..)

So it seems that, looking at the file extension of the uploaded file, I could easily retrieve the DAPPL value from this table.
Unfortunately, I can't find this table on a SAP SRM installation.
The only thing I can do is to retrieve the mimetype; however, converting mimetype into DAPPL (doc class type) seems not that trivial.

Any suggestion is highly appreciated!
Thanks,

M.

Accepted Solutions (0)

Answers (1)

Answers (1)

matteo_montalto
Contributor
0 Kudos

Solved by myself: table TOADD does the trick. Eventually, a method allows to get the doctype from MIME type:  CL_ALINK_SERVICES=>GET_DOCTYPE_FROM_MIMETYPE.