‎2010 Mar 02 9:53 AM
Hi,
I want to create a document with new version with the help of existing document in DMS. In my development of module pool
i can add new file and also i can create new version of existing document. all this i can do from my Z-development.
When on initial time when there is no dicument exist BAPI creating new document correctly with attached files. also i am able to create a new version of that document if i am excuting applicatin from my PC. if this appication run from another system to generate new version BAPI is giving me Error.
i am passing below data in DOCUMENTFILES(table parameter of BAPI) for existing File which is available already in older version.
DOC_HEADER-DOCUMENTTYPE = 'ABC'
DOC_HEADER-DOCUMENTNUMBER = '456'
DOC_HEADER-DOCUMENTVERSION = '00'
DOC_HEADER-DOCUMENTPART = '000'
FWA_DOCFILE-STORAGECATEGORY = 'ZDMS'.
FWA_DOCFILE-WSAPPLICATION = PFX_EXT.
FWA_DOCFILE-DOCPATH = F_FILEPATH.
FWA_DOCFILE-CHECKEDIN = ''.
FWA_DOCFILE-ACTIVE_VERSION = 'X'.
FWA_DOCFILE-DOCUMENTTYPE = WA_COMDOC-DOKAR.
FWA_DOCFILE-DOCUMENTNUMBER = WA_COMDOC-DOCNR.
FWA_DOCFILE-DOCUMENTPART = WA_COMDOC-DOKTL.
FWA_DOCFILE-DOCUMENTVERSION = WA_COMDOC-DOKVR.
FWA_DOCFILE-APPLICATION_ID = WA_DOCFILE-APPLICATION_ID.
FWA_DOCFILE-FILE_ID = WA_DOCFILE-FILE_ID .
FWA_DOCFILE-DOCFILE = F_FILENAME.
APPEND FWA_DOCFILE TO FIT_DOCFILE.
I am passing all those data which i am getting from BAPI_DOCUMENT_GETDETAIL2 for existing attached file. Need help.
‎2010 Mar 03 4:44 AM
‎2010 Mar 23 4:19 AM