Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

using oMultiLanguageTranslations

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

replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question