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

Update characteristic values with CTMS

Former Member
0 Likes
1,920

Hello

I have been struggling with this issue for several days and the deadline is getting closer now !

I try to update some material characteristics during the User Exit of material saving. My routine is triggered within the program XMG0.

The goal is to force some given characteristics to take fixed values depending on a third characteristic value.

First I call the FM CTMS_CLASS_DDB and then CTMS_DDB_SET_VALUE, it is modifying all right my values.

I finish with CLAP_FETCH_VALUES and CLAP_DDB_SAVE_CLASSIFICATION.

The problem is that any other characteristic which has been modified manually by the user is lost.

The edited values are simply deleted, not even the old values remain.

It is like the buffer was reset during this operation.

Do you know how to use properly the FM in group CTMS ?

Any advice would be welcome.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,291

Finally I solved my problem by changing of User Exit. I used "EXIT_SAPLCLFM_002" instead of "EXIT_SAPLMGMU_001" and then I could access directly to the internal table of the characteristics being updated and it was much easier to edit.

Hello

I have been struggling with this issue for several days and the deadline is getting closer now !

I try to update some material characteristics during the User Exit of material saving. My routine is triggered within the program XMG0.

The goal is to force some given characteristics to take fixed values depending on a third characteristic value.

First I call the FM CTMS_CLASS_DDB and then CTMS_DDB_SET_VALUE, it is modifying all right my values.

I finish with CLAP_FETCH_VALUES and CLAP_DDB_SAVE_CLASSIFICATION.

The problem is that any other characteristic which has been modified manually by the user is lost.

The edited values are simply deleted, not even the old values remain.

It is like the buffer was reset during this operation.

Do you know how to use properly the FM in group CTMS ?

Any advice would be welcome.

1 REPLY 1
Read only

Former Member
0 Likes
1,292

Finally I solved my problem by changing of User Exit. I used "EXIT_SAPLCLFM_002" instead of "EXIT_SAPLMGMU_001" and then I could access directly to the internal table of the characteristics being updated and it was much easier to edit.