on 02-02-2010 1:24 PM
Hi
is it possible to change only the description of the originals with BAPI_DOCUMENT_CHANGE2.
I always get the error 26 252 (Original has already been checked in and stored).
With CV02N it is possible to change only the description (replace the application).
best regards
stanis schwarzenauer
hi!
do u set the X in DOCUMENTDATAX-DESCRIPTION ?
best regards
harald
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stanis,
I just tried this on SE37 and it does work, if you do it right.
Set up a document with one original (keep it simple for testing)
Run the BAPI_DOCUMENT_GETDETAIL2 for that document
Look at the DocumentFiles table that is returned.
Find the values for ApplicationID and FileID for that original. They may look the same but often are slightly different, so be sure to copy each one by itself.
Set up to run BAPI_DOCUMENT_CHANGE2 for the same document
In the DocumentFiles table create an entry with WSApplication, ApplicationID, FileID, and Description (the description you want).
No other fields in the DocumentFiles table need to be populated. The file is identifed by the two ID numbers and updated by the BAPI. WSApplication would be PDF, WRD, etc, according to your SAP configuration settings for Originals Applications.
Dan Thames
Edited by: Dan Thames on Feb 17, 2010 3:43 PM
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.