cancel
Showing results for 
Search instead for 
Did you mean: 

How to load DDIC type by name?

Former Member
0 Kudos

Hi all,

The problem: I'd like to get reference to IDataType declared in the same project from static class initializer knowing only type name.

Any suggestions?

P.S. I know how to do this using non-documented utility class from repository package, but I'm looking for more standard approach.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved using DdDictionaryPool & IBroker

See /people/valery.silaev/blog/2005/08/11/stringoperator-isimpletype-const for details.

VS

Former Member
0 Kudos

Anyone?...

Former Member
0 Kudos

Well just a try

...

DataProvider dataProvider = new DataProvider(<jcoclient>);
IDataType dataType = dataProvider.getDataType(<name>,<locale>);

Regards

Pran

Former Member
0 Kudos

Pran,

I came almost to the same solution. The only difference is that I want to use Local (Java) Dictionary, rather then ABAP DDIC.

So in <b>documented</b> package com.sap.dictionary there are 2 <b>undocumented</b> classes these are particularly interested to me:

DdJavaProvider and DdDictionaryPool. First seems to be more feasible (then only problem is to create utility class to maintain weak hash map of class loader -> dictionary pairs). Second requires dictionary name to operate and I have no clue how to get it.

But the problem again is combo of documented package / undocumented classes. I'd like to here opinion of someone from WD team...

VS