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

want to create Document new version with BAPI_DOCUMENT_create2

Former Member
0 Likes
443

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.

2 REPLIES 2
Read only

Former Member
0 Likes
400

is there any another BAPI to solve the above problem..?

Read only

Former Member
0 Likes
400

Solved from My side.