cancel
Showing results for 
Search instead for 
Did you mean: 

Function module to add document to http content repository

Former Member
0 Kudos

Hi

Can anybody tell me the function module to add document to http content repository which is configured in OAC0.

I have found SCMS_HTTP_CREATE_FILES.

There is one more : BAPI_DOCUMENT_CREATE2, but I am not sure whether this can be used to add documents to http content repository.

If yes what all parameters do I need to pass to this BAPI?

Kindly help

Thanks

Ruhi Hira

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Answered

Former Member
0 Kudos

hi ,

just try like this, i given ex,

Allcoate document data

ls_doc-documenttype = 'DRW'.

ls_doc-documentnumber = '4711'.

ls_doc-documentversion = '00'.

ls_doc-documentpart = '000'.

ls_doc-statusextern = 'AF'.

ls_doc-laboratory = '001'.

    • Check in original 1 simultaneously in the R/3 Database

REFRESH lt_files.

CLEAR lt_files.

lt_files-storagecategory = 'SAP-SYSTEM'. [here u enter storage categori what u created for HTTP CS in OACT]

lt_files-docfile = 'c:\temp\drawing.txt'.

lt_wsapplication = 'TXT'.

APPEND lt_files.

lt_files-storagecategory = 'VAULT'.

lt_files-docfile = 'c:\temp\drawing.dwg'.

Note: if this not works CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'

pass value as mentioned above.

Benakaraj

??P