‎2012 Mar 06 8:45 AM
Hi
We are currently trying to develop a WDA to handle the documents in RMS. But we have a problem regarding updating the description for the document.
We are using the Bapi BAPI_SRM_DOC_CHANGEPROPERTIES, but the description doesn't get updated.
But if we logon to R/3 and go to scaseps transaction and push refresh button the same record, the description gets updated.
Have anyone tried changing the description using this FM?
Kim
‎2012 Mar 06 8:56 AM
Hi
Are you doing commit work after your BAPI call?
You need to do it by BAPI_TRANSACTION_COMMIT
‎2012 Mar 06 8:59 AM
Hi
I am using the the parameter DO_COMMIT = Abap_true.
As I see it, it is a refresh problem. But how to call this refresh via FM?
Kim
‎2012 Mar 06 9:13 AM
I think that you should change both the physical and the logical description. That means that you must call the BAPI twice, once with WHOLE_DOCUMENT=space and anoother one with WHOLE_DOCUMENT='X'.
‎2012 Mar 06 9:15 AM
‎2012 Mar 06 9:29 AM
Now I understand. Your problem is not the document itself, but the corresponding node in the record, isn't it? There is no automatic solution for that. You need to write more code to find all the records that use your document and update the corresponding nodes. Not an easy task because I think that there are no BAPIs for that.
‎2012 Mar 06 9:31 AM
Yes maybe you are right.
So I need to get record node an "push" an update for that node?
Anyone who has made this implementation?
Kim
‎2012 Mar 06 10:31 AM
I have found this FM
SRM_REC_UPDATE_NODE_DESC
But it is not released.
Anyone trying to use this?
Kim