How to map IsVirtualNode attribute?
Here is the step to recreate the issue
1. Create a new class named "MyAppServers" from "Microsoft.Windows.Server.Computer" class
2. Create a filtered registry discovery for "MyAppServers". As test, you can just set it to check whether key HKLM\Software\Microsoft\Windows exist.
3. Now in discovery attribute mapper page comes the question. Since "MyAppServers" is created from "Microsoft.Windows.Server.Computer" class so it inherited attribute "IsVirtualNode". When I enter the following in discovery
mapper
$Target/Property[Type="Windows!Microsoft.Windows.Server.Computer"]/IsVirtualNode$
I got error as following
Error 1:
: Failed to verify Discovery [MyAppServers.RegDiscovery]
Failed to verify referenced module : ID=DSInvalid configuration specified for Module [DS]Host reference error in expression: $Target/Property[Type="Windows!Microsoft.Windows.Server.Computer"]/IsVirtualNode$
The specified ClassType was ['Microsoft.Windows.Server.Computer'] and the resolved ClassType (evaluating the /Host references) was ['Microsoft.Windows.Computer'].
Please check the number of '/Host' references in this expression.
Hi,
Would it be possible that you post the XML Code so i can have a look on it?
Update: I had created a MP for some of myApp Servers some time ago. Could you try to use Windows.Computer as base class for your class and add a IsVirtualComputer Property to it and map this property with:
$Target/Property[Type="Windows Microsoft.Windows.Server.Computer"]/IsVirtualNode$
That works fine for me
Thanks
Christoph Maresch | My blogs: blog.cmaresch.at | XING:
Christoph Maresch
| Linkedin:
Christoph Maresch
Similar Messages
-
How to map levels attributes in "Analytic Workspace Manager"?
In the dimension table created by OWB I have a dimension with 2 levels of 1 hierarchy:
in the lowest level I have 2 attribute (ID (Key), Name) and the highest level just 1 attribute (Name). So 3 column to map!
In the target dimension in AWM, It gives me a dimension with 2 members (that i must map), how I have to map the source column?
thanksMaybe map both the top level "name" and "id" fields in AWM back to the single relational column?
HTH,
Scott -
Mapping private attribute in workbench
Hi,
The mappingworkbench will not generate a toplink-deployment-descriptor.xml for directly mapped attributes that have accessibility private. Other comments in this forum and weblinks that date from Webgain-Toplink describe that this should be possible.
So my questions are:
- where can I find current toplink documentation that describes how to map private attributes?
- how can I get around the fact that the mapping workbench does not accept methods with private accessibility?
Thanks for your insights,
Joost de Vries
NederlandHi Donald,
First; what I want to do is create a 'value object' [cf. Fowler], that is: a java object that can be given values for its attributes at creation time, but not afterwards.
So the way I try to accomplish that is by making the mutator (set-method) private.
This is how to recreate the situation: I have a working mapping. I change the set method of an attribute to private. I restart jDeveloper (*), I generate the toplink-deployment-descriptor.xml. The generation fails with the message 'Method setDjiNummer(Integer i) has private access in class org.myOrg.MyClass'.
Sincerely,
Joost de Vries
Nederland
(*) by the way: is there a better way to make sure the Toplink Workbench sees changes made to java classes? -
Problems to map organization attribute from IDM 7 to my own Resource
Hi
I have a problem mapping the organization user attribute to my resource. My Resource xml looks like:
" <AccountAttributeTypes>\n"+
" <AccountAttributeType name='accountId' mapName='loginName' mapType='string'/>\n"+
" <AccountAttributeType name='email' mapName='email' mapType='string'/>\n"+
" <AccountAttributeType name='firstname' mapName='firstname' mapType='string'/>\n"+
" <AccountAttributeType name='lastname' mapName='lastname' mapType='string'/>\n"+
" <AccountAttributeType name='organization' mapName='organization' mapType='string'/>\n"+
" </AccountAttributeTypes>\n"+
but when I try to get the organization attribute in my resource it comes null. I get it like follows:
WSAttributes attributes = user.getWSAttributes();
attributes.getValueAsString("organization")
Does anyone know how to map organization attribute to a Resource?
Thanks.I can pass the Organization attribute to my Resource configuring this in MetaView tab.. But only pass me this attribute when I update an account.
in my resource xml is:
static String gfResourceXml =
"<Resource name='ResourceAdapter' class='com.qoslabs.jes.idm.ResourceAdapter' typeString='ResourceAdapter' typeDisplayString='ResourceAdapter'>\n"+
" <Template>\n"+
" <AttrDef name='accountId' type='string'/>\n"+
" </Template>\n"+ <AccountAttributeTypes>\n"+
" <AccountAttributeType name='accountId' mapName='loginName' mapType='string'/>\n"+
" <AccountAttributeType name='password' mapName='password' mapType='string'/>\n"+
" <AccountAttributeType name='email' mapName='email' mapType='string'/>\n"+
" <AccountAttributeType name='firstname' mapName='firstname' mapType='string'/>\n"+
" <AccountAttributeType name='lastname' mapName='lastname' mapType='string'/>\n"+
" <AccountAttributeType name='organization' mapName='organization' mapType='string'>\n"+
" <AttributeDefinitionRef>\n" +
" <ObjectRef type='AttributeDefinition' name='organization'/>\n" +
" </AttributeDefinitionRef>\n" +
" </AccountAttributeType>\n" +
" </AccountAttributeTypes>\n"+
"</Resource>\n"; and in metaview tab in Admintrator console I configure like this:
AttributeName: organization
Sources: None
How to set Identity Attribute : Set to value
Store attribute in IDM repository: checked
Targets: MyResourceAdapter organization Create, UpdateHow can I configure the meta view to pass me the attribte organization when I create a user account?
Thanks,
Message was edited by:
ima_dev -
How to map search help dinamically to a context attribute
Hi,
I need to map search help dynamically based on selection screen radio button, Please let me know how to map search help dinamically to a context attribute
Best regards,
AlleiahHere is the sample code,
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'KTONR' (attribute Name)
value_help_mode = '121'
value_help = 'PREMJ'.(Help Name)
Regards
Vishal -
Hi experts
I want to create a java map. My requirement is given below.
I/P xml>>
<?xml version="1.0" encoding="UTF-8"?>
<TradeplaceMessage productionMode="production" xmlns="http://zhm.....">
<TransportEnvelope>
<Routing><To>abcd</To><From>
I want to rename attribute value xmlns to a new name XSX
Thanks in advance
Dhanish JosephDhanish,
Please check htis thread:
How to add xmlns attributes in main node
This should solve your query.
Refer contribution from "Fariha Ali ", where you have to implement java mapping and apply the code suggested in the thread.
Let us know if issue still persists.
Divyesh -
How to map a collection of object in TopLink?
For (simple) example, I've a XSD that defines:
<xsd:complexType name="AttachmentType">
<xsd:sequence>
<xsd:element name="docID" nillable="false" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="MyDocType">
<xsd:sequence>
<xsd:element name="attachment" nillable="true" minOccurs="0"
maxOccurs="unbounded" type="tns:AttachmentType"/>
</xsd:sequence>
</xsd:complexType>
This XSD is referenced by a WSDL. Using JDeveloper to generate a Java Web Service using the WSDL and will get the following classes:
public class AttachmentType implements java.io.Serializable
protected java.lang.String docID;
public AttachmentType() { }
public java.lang.String getDocID() { return docID; }
public void setDocID(java.lang.String docID) { this.docID = docID; }
public class MyDocType implements java.io.Serializable
protected AttachmentType[] attachment;
public MyDocType () { }
public AttachmentType[] getAttachment() { return attachment; }
public void setAttachment(AttachmentType[] attachment)
this.attachment = attachment;
Now I want to generate a XML document from MyDocType. I use TopLink (JAXB) to do the mapping. However, how to map the 'attachment' of type AttachmentType[]? TopLink seems only allowing List/Set/Collection container options.
Anyone can help?
Note: I have to use the classes generated from WSDL.
Thanks!!Thanks. I'm using TopLink Workbench for the mapping
and have no idea on how to specify the XML
transformation mapping for array attribute. Can you
tell me more?I was putting together an example of the transformation mapping but came up with a better way. It turns out that a transformation mapping isn't ideal because you have to take over some of the responsibility for converting XML to objects. A better solution is to intercept the calls to the getter and setter for the AttachmentType[] and convert between an Array and List. Just map the Array as a composite collection in the workbench and customize the attachment attribute mapping in code.
Each mapping in TopLink has Accessor object responsible for getting and setting values in objects. If you choose method or direct access the mapping will have a different Accessor class. So the solution is to use an Accessor that converts the List TopLink builds into an Array of the correct type on set. On get, the Accessor creates a List from the Array.
You can introduce a custom Accessor using an After Load method. I've put a complete example up on my googlepages account[1]. The key code is listed below. Note that this code assumes you're using direct instance variable access. Also, this code works with TopLink 10.1.3.2 and the TopLink 11 preview. It won't work with previous versions.
The After Load class that changes the mapping accessor:
public class MyDocCustomizer {
public static void customize(ClassDescriptor descriptor) {
XMLCompositeCollectionMapping mapping = (XMLCompositeCollectionMapping)
descriptor.getMappingForAttributeName("attachment");
InstanceVariableAttributeAccessor existingAccessor =
(InstanceVariableAttributeAccessor) mapping.getAttributeAccessor();
ListArrayTransformationAccessor transformationAccessor =
new ListArrayTransformationAccessor(AttachmentType.class, "attachment");
transformationAccessor.initializeAttributes(descriptor.getJavaClass());
mapping.setAttributeAccessor(transformationAccessor);
}The custom InstanceVariableAccessor subclass:
public class ListArrayTransformationAccessor extends
InstanceVariableAttributeAccessor {
private Class arrayClass;
public ListArrayTransformationAccessor(Class arrayClass, String attributeName) {
super();
this.arrayClass = arrayClass;
this.setAttributeName(attributeName);
public Object getAttributeValueFromObject(Object anObject)
throws DescriptorException {
Object[] attributeValueFromObject =
(Object[]) super.getAttributeValueFromObject(anObject);
return Arrays.asList(attributeValueFromObject);
public void setAttributeValueInObject(Object anObject, Object value)
throws DescriptorException {
List collection = (List)value;
Object[] array = (Object[]) Array.newInstance(arrayClass, collection.size());
for (int i = 0; i < collection.size(); i++) {
Object element = collection.get(i);
Array.set(array, i, element);
super.setAttributeValueInObject(anObject, array);
}--Shaun
http://ontoplink.blogspot.com
[1] http://shaunmsmith.googlepages.com/Forum-519205-OXM-Array.zip -
How to join navegational attributes with infoset
Hi Experts,
How to join navegational attributes with infoset? the infoset based on ODS and both having navigational attributes,
my requirment is to join Vendor account group navigational attributes with infoset,
or else plz
povid stps to crete...
In the infoset how to join Info Object CHAR1 to the CHAR1 in the ODS object which makes all the attributes of CHAR1 accessible in the Infoset..
plz suggest with steps,
regards,
Edited by: Sap-10564461 on Apr 20, 2010 11:34 AMHi,
Consider that you have a cube/ODS which has 0MATERIAL. Say you have switched on the nav attribute Material group in the cube.
Now since an infoset acts on a table level, it cannot read nav. attributes directly. Hence you will not be able to find 0MATERIAL__MATGROUP in the infoset.
Now if you want to get able to obtain MATGROUP, you need to add 0MATERIAL to your infoset. One you have added 0MATERIAL, you will be see the attributes of this infoobject as fields.
Map 0MATERIAL from the cube to 0MATERIAL from the info object. Join type is inner join. Now check the MATGROUP field under the infoobject table indicating that this field needs to be fetched by the infoset.
Now when you run a query on the infoset, you will be able to use MATGROUP from 0MATERIAL.
Hope this helps.
Regards. -
How to map the node which i have created dynamically into the view
Hi All,
Many thanks to all ur answers in advance.
I have created a node dynamically.I want to display the fields which i have fetched in that node.
i dont know how to map the node which i have created dynamically into the layout of the view.
Other than Using ALV is there any other way to do.
for example usin table controlHi,
use the reference variable of view to access the corresponding UI element and then use the method of that UI element to do data binding with context node.
for ex:
Context node = flights
element = inputfield, ID = inp_name
data view type ref to if_wd_view.
data lr_inp type ref to cl_wd_input_field.
lr_inp ?= view->get_child_element( ' INP_NAME' ).
use following methods of input field to define the data binding.
SET__DDIC_BINDING( )
BOUND__PROPERTY( ).
BOUND__PRIMARY_PROPERTY( ). " for input field it is value property.
Get the reference of view from wddomodifyview method as importing parameter(view). Store this parameter as controller attribute.
Thanks,
Rahul -
Two nodes has different namespace.
They can not be mapped.
Error message is
Expected : name 'BBB' namespace - abc.sap.com
Found : name 'BBB' namespace - cba.sap.com
I guess they need something I should do to map the nodes that has different namespace.
How to map the nodes at the glaxy?Hi Yeongsik,
when the two nodes corresponds to different namespaces , u will get thei error message.
Error message is
Expected : name 'BBB' namespace - abc.sap.com
Found : name 'BBB' namespace - cba.sap.com
better go for map Automatically option.
First map the nodes , then map each attribute of node A to node B to get rid of error message.
Thanks and regards -
How to map steam as a material?
Hi Gurus,
I have a process where steam is product which I am manufacturing in the plant.
This steam is further used to make another finished material.
Since steam is produced in house, it cannot be mapped a pipeline.
Since we cannot maintain stocks of steam, how to map the material type of steam?
Pl advice me.
SriniHi Srini,
You can assign MRP views by modifying the attributes of material type PIPELINE. Rather create a new type referencing pipeline material type but include MRP views which should take care of the production part. Hope this is of some help.
Regards,
Sreekant. -
Hi
My client is Automobile industry.In the presales process my company delivers the goods to the dealer.On transit the goods are damaged.Instead of returning the goods the dealer him self repairs the goods and sends the credit memo to the company.The company will send the engineer for inspection and give the clearance certificate for the dealer.With reference to this we have to create the credit the customer.
How to Map it SAP....?
Plz send me the reply
Regard's
Prasad.Dear Prasad,
As you r not taking d goodS back (or dealer is not sending them back) thus it's not a case of a Returns. Also there is no issue with d invoice either thus even Invoice Corrrection Request will not b generated.
Thus it's a simple case of creating a Credit Memo Request for the required amount i.e the amount claimed 2 b spent by d dealer. This will obviously have a block which can b removed by d engineer who went for inspection (or some1else depending on d working of d organisation). Once the billing block is removed the dealer can b issued a Credit Memo in d usual way.
Hope it answers ur query.
regards
PARAM -
I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.
Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
Edited by: Daniel on Nov 28, 2011 9:59 AM -
How to Map the Unit field in case of DSO and INFOCUBE
Dear Experts,
I have a issue ,Please help me to solve this
I have DSO as provider ,
And, i have to map transformations btw the Datasource and DSO.
In generic Data source, i have unit fields like BASME,MEINS (Quantity units) & STWAE (currency field)
and normal Quantity fields like KWMNG,OAUME(quantity related),OAUWE (value related).
In DSO data fields as Key figure info objects like 0Quantity (which have 0Unit as unit of measure) and some other key figures which have there respective unit of measure in info object definition.
So you Please tell me how to map the Quantity ,Amounts, unit fields to key figures that we have.
(How it will be for both DSO and Info cube is there any difference?)
Edited by: AnjunathNaidu on Jan 18, 2012 1:20 PMNavasamol ,
If it is works ,will u please tell me what is the difference ,if the transformations btw data source and DSO and
what is the difference btw data source and info cube and btw DSO to Infocube or cube to cube .
And i have seen the Quantity fields and there respective unit fields are mapped directly to key figure info object
in case of Info cube . Its working fine .
If only 1:1 mapping allowed in DSO data fields key figures and there respective unit of measure characteristic.
why this difference btw DSO and Info cube can any one explain me in detail.
Expecting your valuable suggestions.
Thanks & Regards,
Anjunath Naidu
Edited by: AnjunathNaidu on Jan 18, 2012 4:05 PM -
Hi Experts,
how to map promotional items with sales employee wise.
and what is the difference bet sample and promotional items
Regards,
AmarI have no idea abt your process, but you can create new order reason as promotional items and assign to FOC order, you can create sales employee as customer and create FOC with customers ( sales employee).
Maybe you are looking for
-
I'm a new user - recent convert from longtime Windows to Apple. Thought having desktops and computing aligned with phones and tablets would help. Not so far. I have a MacMini running Mavericks 10.9.1, and an iMac running Mavericks 10.9.1. File Sha
-
Need to pull vendor address information from PO
Hi Friends.. I am creating a shipper instructions smartform and need to display shippers address in the form.. For that purpose i need to pull the vendor address information from the PO... Can some one tell me the data extraction logic involved here
-
Datasource not visible in rsa1
Hello, my datasources are not visible in rsa1 -> source systems. I tried replicate, check connection, repair connection, run report RSAOS_METADATA_UPLOAD, upload metadata, etc. Now I have no clue. In roosource datasourse is active (in sourcesystem).
-
Hi, I am new to Abap. Can any one tell me what is the maximum laength of a table can be....In help.sap. i found that it is 18 characters... but when i am trying it here it is allowing to give only 16 letters... And the other error i am getting is th
-
Dear all, Can anyone explain how to reverse ARE1? Cheers