Hello Experts,
I have to this code
ls_doc-documentnumber = doknr.
ls_doc-documenttype = dokar.
ls_doc-documentversion = dokvr.
ls_doc-documentpart = '000'.
ls_doc-statusintern = 'W1'.
ls_doc-description = 'Testing document'.
ls_doc-username = sy-uname.
ls_doc-validfromdate = sy-datum.
ls_doc-laboratory = '001'.
REFRESH lt_files1.
CLEAR lt_files1.
lt_files1-storagecategory = 'SAP-SYSTEM'.
lt_files1-docpath = p_file.
lt_files1-wsapplication = 'PDF'.
* lt_files1-description = 'Testing document'.
lt_files1-originaltype = '001'.
* lt_files1-checkedin = 'X'.
APPEND lt_files1.
CLEAR lt_drat.
* REFRESH lt_drat.
* lt_drat-language = 'EN'.
* lt_drat-description = 'Testing document'.
* APPEND lt_drat.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_doc
* HOSTNAME =
* DOCBOMCHANGENUMBER =
* DOCBOMVALIDFROM =
* DOCBOMREVISIONLEVEL =
* CAD_MODE = ' '
* PF_FTP_DEST = 'SAPFTPA'
* PF_HTTP_DEST = 'SAPHTTPA'
* DEFAULTCLASS = 'X'
IMPORTING
documenttype = lf_doctype
documentnumber = lf_docnumber
documentpart = lf_docpart
documentversion = lf_docversion
return = ls_return
TABLES
* CHARACTERISTICVALUES =
* CLASSALLOCATIONS =
* documentdescriptions = lt_drat
* objectlinks = lt_drad
* DOCUMENTSTRUCTURE =
documentfiles = lt_files1.
* LONGTEXTS =
* COMPONENTS =
ENDIF.
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
CLEAR ls_return.
ELSE.
COMMIT WORK.
CLEAR ls_return.
ENDIF.
This code is able to create a CV01N entries, but it is unable to upload the files, plzzzz help me is there anything additionaly i have to pass.
Thanks and regards
Karthik