cancel
Showing results for 
Search instead for 
Did you mean: 

using oMultiLanguageTranslations

Former Member
0 Kudos

Hi,

i want to use oMultiLanguageTranslations to translate userfield of usertable but

sap give me an error message "the field cannot be translated", error number -5002.

Dim crt As SAPbobsCOM.MultiLanguageTranslations

crt = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMultiLanguageTranslations)

crt.FieldAlias = "U_DESMER" '(userfieds)

crt.TableName = "@ALS_TMER" '(usertable)

crt.TranslationsInUserLanguages.LanguageCodeOfUserLanguage = 13

crt.TranslationsInUserLanguages.Translationscontent = "Prova"

lret = crt.Add()

If lret <> 0 Then

err = oCompany.GetLastErrorDescription

oApp.MessageBox(err)

End If

anyone can help me?

Thank

Valentina

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
Active Contributor
0 Kudos

Hi Valentina,

This feature is only available for "Master Data" objects (B1's own objects + UDOs)...

See the description of the MultiLanguageTranslations object taken from SDK Help Center:

<i><b>Description</b>

The MultiLanguageTranslation object enables to translate alphanumeric data of specified fields in master data objects (such as, BusinessPartners and Items) to foreign languages and then print documents in the translated language. This functionality is used by companies that trade with foreign business partners that require documents in their language.</i>

Sorry,

Frank

Answers (0)