cancel
Showing results for 
Search instead for 
Did you mean: 

Assign value to ocrd, langcode

0 Kudos

Hello everyone

I try to assign a language code to a new business-partner, depending on where he lives. F.e. user enters 1200 for CH-Geneva, programm consults a table with zip-codes and gets "Geneva" for city name and "22" for french. City name works well, but combobox language-code can't be changed. I always get an error message:

if I use ComboBox.....Value = "22"; error is "Valid Value - Value does not Exist 66000-62".

if I use ComboBox.....Selected.Value = "22"; error is "Not allowed when the ValidValue is already loaded in SAP"

My question: Is it possible to assign another language-code to this combobox (combobox contains all necessary languages)? If yes, how to do it?

Thank you so much in advance for your help!!

Fritz

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

To change combo select value use

if you want to select by value then

ComboBox.Select("22",SAPbouiCOM.BoSearchKey.psk_ByValue) or

if you want to select by Description then

ComboBox.Select("CityNAme",SAPbouiCOM.BoSearchKey.psk_ByDescription)

Hope it helps you

Regards

Vishnu

0 Kudos

Hi Vishnu

Thank you for trying to help me but it doesn't work. This combobox seems to be an exception. However I try (ByValue or ByDescription) I get an error-message.

If I find it out, I will tell the solution here for other people with same problem.

Regards

Fritz

0 Kudos

Hi everyone

The solution is easy: The combobox language-code must be visible. If not, you get an error.

Regards, Fritz