on 07-20-2015 8:45 AM
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:
mandt | DAPPL | APPLB | ARCHIVID | CVTEXT | APPSFX | DATEIFRMT | |||||||||||
015 | X | * | Acrobat Reader |
(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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.