Skip to Content

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

DI enum and String definition

Hi all,

I have a question on "How to" and best practice...

There are several enum like SAPbobsCOM.BoResolutionUnits.rsu_Days and the Table Result is "D", or "H" - hours..

that means  the Object it self SAPbobsCOM.ServiceContracts oCT

need to have a Value like  oCT.ResolutionUnit = SAPbobsCOM.BoResolutionUnits.rsu_Days;

But where is the conversion to Days? is there a dictionary available or a table ?

And if I like to use this in a user form... I have to convert this from Combobox valid values to excepted enum...

So the question is, where are the valid values stored? And are there any standard functions available for conversion? Or just C# normal ways...

putting the Valid Values into a list or dictionary and retrieve this with a getenummerator?

Thanks for any input.

Best regards


Former Member
Not what you were looking for? View more on this topic or Ask a question