Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DMS interface program required

ankurgodre
SAP Mentor
SAP Mentor
0 Likes
317

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

1 REPLY 1
Read only

Former Member
0 Likes
277

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