cancel
Showing results for 
Search instead for 
Did you mean: 

How to get abapName property of model classes in program

Former Member
0 Kudos

Hi, all.

i'm using NW2004s SP10 WDJ.

As you know, when we import the models(aRFC model) into NWDS, we

can see abapName(which indicates BAPI or RFM name), defaultScope,

isExecutable... properties from property view of each model node.

How can i get this abapName property in program? i tried to get these values

using ICMIModelClass or related ones, but i couldn't find the above value.

Best Regards.

Sejoon

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sejoon,

What is your task?

I understand that you want to get ABAP name from Java name but for what? RFC? Structure? Field?

Actually, all Java names are mangled from ABAP names, so sometimes it's possible to restore them back via simple algorithm. Sometimes, but not always -- names like /A/B is valid in ABAP, but after they are transformed into AB in Java there is more then one way to convert them back, i.e. process in unpredictable.

Btw, for field/structure name you may try com.sap.tc.webdynpro.services.api.WDUtil class.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi, Valery.

Let me be more specific.

What i want to get is the values of properties as shown in the first

picture of the following blog even though this blog is not relevant to

my question.

/people/bertram.ganz/blog/2006/01/27/web-dynpro-adaptive-rfc--how-to-change-logical-system-names-after-model-import

The purpose is to write down ABAP RFM name when we call in the log

or trace.

Best Regards.

Sejoon