cancel
Showing results for 
Search instead for 
Did you mean: 

Problem setting Column Preferences

lars_jnsson
Active Participant
0 Kudos

Hi!

I'm trying to set the ColumnPreferences for some UDFs in the BP master data. I'm using the example in the help file (UpdateColumnPreferences()) but I'm setting the EditableInForm to tNO for some fields instead of the width. After I have performed the UpdateColumnPreferences I get them again and can see that my new settings are set as supposed. I can also see that the values are stored in the table CPRF.

But it doesn't work in the form! It works only if I use the Tools->Userdefined Fields->Settings and click the Active checkbox for a field.

I've tried to login again but it doesn't help. And a funny thing, when logging out the values in CPRF reverts back to its inital settings!

Is there anyone out there that got this to work?

Regards

Lars Jönson

Accepted Solutions (0)

Answers (3)

Answers (3)

lars_jnsson
Active Participant
0 Kudos

Hi David!

Thanks for the solution. Even if I just did what you suggested before you suggested it (do you follow me?) it's a helpful answer because it means that I will drop my efforts to get it to work in the code. And that means hours spared.

I know that you are not a moderator, I was just hoping that a moderator should read it and react.

Regards

Lars Jönson

LittleFish

lars_jnsson
Active Participant
0 Kudos

Hi David!

That's actually what I just did, I updated the table when all was logged out. Worked fine!

But it would be nice to have a list of these "old problems" that is "common knowledge" among you all. Could spare us a lot of hours and pain... That's a task for the moderators of the forum, please start making such a list.

Regards

Lars Jönson

LittleFish

Nussi
Active Contributor
0 Kudos

Hi,

iam not a moderator - just a supporter here.

that's why i gave you the correct solution.

actually the list is in my head - whenever you have problems again and i know

the solution you can count on me (when i read your thread/question)

lg David

Nussi
Active Contributor
0 Kudos

Hi Lars,

that's an old problem.

the best time to change the "CPRF" settings is when no user is "logged in" in SAP.

thats how i do it: All Users logout - Now Change CPRF Table - Login again

lg David