cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Mapping from OOM VisualBasic

01-20-2017 7:11 PM
555 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi!

I want to get a mapping from OOM. I use VBScripts:

------------

'Get DataSource

set ds = ActiveModel.findchildbyname("TEST",PDOOM.cls_datasource)

'Get mapping

set m = ds.GetMapping(c)

------------

When I'm trying to get field's mapping (use method structural.Feature.Class) i catch error "The object don't support this op[tion or method: 'structural.Feature.Class'"

-------------

For each structural in m.StructuralFeatureMaps

Output structural.Feature

Output structural.Feature.Class

------------

How i can do it?

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

It can be made so:

output CurrentObject.code 'Mapping to ClassCode

output structural.Feature.code 'Mapping to FieldCode

output structural.SourceFeature

output structural.SourceFeature.code 'Mapping from FieldCode

But in structural.SourceFeature i recieve long string "Shortcut of attribute 'ClassName.ClassFieldName'"

I want to keep only classCode Source.

How i can do it? 😃

And i know it!)

structural.MappedTo

Answers (0)