cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Document Description

former_member185558
Active Participant
0 Kudos

What is the best way to update document description?

We are trying to use BAPI_DOCUMENT_CHANGE2  but it is not updating DIR description.

We also tried using Commit post this BAPI.

Thanks and regards

Accepted Solutions (1)

Accepted Solutions (1)

benedikt_wagner_mdt
Active Participant
0 Kudos

Hi Niketan,

BAPI_DOCUMENT_CHANGE2  is the correct way.

Could you please send the code?

I guess there is one of following mistakes:

  • DMS key is not provided in parameters DOCUMENTTYPE, DOCUMENTNUMBER, DOCUMENTPART and DOCUMENTVERSION
  • DOCUMENTDATA-DESCRIPTION is set to new text but DOCUMENTDATAX-DESCRIPTION is not set to 'X'
  • function module BAPI_TRANSACTION_COMMIT has to be executed after change

Using this the text in the actual language will be set/changed.

To change other languages you could use table Parameter DOCUMENTDESCRIPTIONS.

Regards,

Benedikt

Answers (1)

Answers (1)

former_member185558
Active Participant
0 Kudos

Thanks Benedikt,

I rechecked and tested for error and it worked.

Error was it is not accepting Document Number without zeros

e.g. I have to enter 0000000000000010000077105

for Document 10000077105

Dont know if there is any workaround.

Regards