‎2010 Feb 19 12:30 PM
Dear all,
We are implenting DMS in our organisation for which , I have a requirement where in I need to make a program (interface) which can attach & send the scanned image of objects (Ex: Invoice) to a specific location on DMS server.
The data on DMS will be archived data.
Any help in the designig of the program will be of great help from any of you.
Regards
Ankur
‎2010 Mar 05 4:19 AM
Hi,
In the DMS interface I did, I used FM: 'BAPI_DOCUMENT_CREATE2'.
And there is a Note: Note 504692, you could check it out, in this Note, you can find the sample code below:
CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
EXPORTING
DOCUMENTTYPE = ls_draw-dokar
DOCUMENTNUMBER = ls_draw-doknr
DOCUMENTPART = ls_draw-doktl
DOCUMENTVERSION = ls_draw-dokvr
DOCUMENTDATA = ls_Doc
DOCUMENTDATAX = ls_docx
HOSTNAME =
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
SENDCOMPLETEBOM = ' '
PF_FTP_DEST = 'SAPFTPA'
PF_HTTP_DEST = 'SAPHTTPA'
CAD_MODE = ' '
IMPORTING
RETURN = ls_return
TABLES
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS =
OBJECTLINKS =
DOCUMENTSTRUCTURE =
DOCUMENTFILES = lt_documentfiles_new
LONGTEXTS =
COMPONENTS =
.
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
ELSE.
COMMIT WORK and wait.
ENDIF.
Cheers