cancel
Showing results for 
Search instead for 
Did you mean: 

change only description in linked originals with BAPI_DOCUMENT_CHANGE2

Stanis
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi!

do u set the X in DOCUMENTDATAX-DESCRIPTION ?

best regards

harald

Stanis
Explorer
0 Kudos

Hi

I do not want to change the document information description.

I want to change the description in the lines of the originals.

best regards

Stanis

Former Member
0 Kudos

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

Answers (0)