Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change description RMS document

Former Member
0 Likes
1,458

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

7 REPLIES 7
Read only

former_member189779
Active Contributor
0 Likes
1,329

Hi

Are you doing commit work after your BAPI call?

You need to do it by BAPI_TRANSACTION_COMMIT

Read only

0 Likes
1,329

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

Read only

0 Likes
1,329

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'.

Read only

0 Likes
1,329

Hi

I forgot to say, that I am already doing that.

Kim

Read only

0 Likes
1,329

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.

Read only

0 Likes
1,329

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

Read only

0 Likes
1,329

I have found this FM

SRM_REC_UPDATE_NODE_DESC

But it is not released.

Anyone trying to use this?

Kim