on 2022 Jul 07 7:27 AM
Hello all,
I want to copy files from document info record A to document info record B in ABAP. Is there a suitable BAPI / FM for this? Even after various searches I have not found anything suitable.
How could this be implemented?
Scenario:
In a "reference" document info record there is a blank file template (e.g. a writable PDF or similar) as original.
When versioning a document info record of type X, all data of the previous version should be transferred (object links, classification, descriptions etc. but no files / originals).
For this I use the BAPI BAPI_DOCUMENT_CREATENEWVRS2 with the appropriate flags. This is working fine.
Afterwards however now also the blank template file from the reference DIS is to be added to this new version.
How is this possible?
The only BAPI i found coming close to this ist "BAPI_DOCUMENT_CREATEFROMSRC2", but this is only possible for new documents, not to take over originals in an existing DIR.
Thanks!
Update:
Found a similar question here in the forum.
Will test if FM "CV120_KPRO_LOIO_COPY" is working.
Request clarification before answering.
FM "CV120_KPRO_LOIO_COPY" is doing the job!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.