Change physical attribute in DataSourceConfiguration file

Hi experts,
we are using a LDAP system as EP user store.
The attribute displayname ist mapped to the attribute displayname in the LDAP system:
<attribute name="displayname">
      <physicalAttribute name="displayname"/>
</attribute>
Now to my question:
Is it possible to cange this attribute to have two physical attribute in the displayname?
Like:
<attribute name="displayname">
      <physicalAttribute name="sn"/>
      <physicalAttribute name="givenname"/>
</attribute>
Or perhaps XPath is possible?
Thanks for your help.
Best regards,
Manuel

Hi Anatolly,
You can assign a new value to the JCA property using either the mediator as BPEL.
In the mediator click on the assign value option and add the right assign to the JCA property jca.db.DataSourceName.
In BPEL doucle click on the invoke to the DB adapter, go to the properties tab and add the right assign to the JCA property jca.db.DataSourceName.
(edit)
If you want to use a configuration file to set the value, I suggest a BPEL property, the value can be replaced using a config file and can be assigned to the JCA property by using ora:getPreference("prefName as string");
When using a mediator you can't use a preference and you might use a placeholder that you replace when you compile the SCA composite. With ANT in combination with hudson you can easily replace the value (hardcoded) per environment.
Cheers,
Robert van Mölken
Oracle Integration Specialist
Message was edited by: robertvm

Similar Messages

  • File Adapter receiver channel : change encoding attribut in xml file

    Hi,
    How can I change the XML encoding attribut
    from:
    <?xml version="1.0" encoding="UFT-8"?>
    to:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    in my File Adapter, receiver channel ?

    Hi,
    plz chk the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    &#9679;      Select the File Type of the document:
    &#9675;       Binary
    &#9675;       Text
    Under File Encoding, specify a code page.
    The default setting is to use the system code page that is specific to the configuration of the installed operating system.
    The content of the message is converted to the corresponding code page before the message is saved as a file.
    Permitted values for the code page are the existing Charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
    Regards

  • How to change the attributes of an XML file

    hi peeps 'ope you can help me here i need to change the attributes of an xml file, i parse it first using a DOM parser but i cant find a way to change the attributes in the XML file, setAttribute() works only at runtime and doesn't change the attribute in the file itself. I can't find a method that will answer my question. I've searched through the forum and found similar threads....they say in order to write and change the attribute i must use the write() method of the XmlDocument class defined in com.sun.xml.tree.XmlDocument. But, i found another thread, and it says that com.sun.xml.tree.XmlDocument is not safe to use and i should use org.apache.crimson.tree.XmlDocument.....i can't find the XmlDocument class and the API for this package so i really dont know where to start...hope you guys can help me! thnx

    thanks for responding roland....i already found the solution...i didn't use the XmlDocument class because i can't find any documents about it except for JAXP 1.0 here is my code snippet...i used the TransformerFactory and Transformer class to write
    import org.w3c.dom.*;
    import org.w3c.dom.traversal.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Document doc = null;
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    dbf.setValidating(false);
    doc = db.parse(fileGetFile); //this is the XML file
    n1 = (Node)doc.getDocumentElement();
    e1 = (Element) n1;
    NodeList nodeList = doc.getElementsByTagName ("File");
    //just insert whatever you want to do with the XML...parse it..set/change the attribute..etc....sample snippet below changes the attribute downloaded to "no"
    for(int iWriteFailed = 0; iWriteFailed <nodeList.getLength() ; iWriteFailed ++){     
    n2 = nodeList.item(iWriteFailed);
    e2 = (Element) n2;          
    e2.setAttribute("downloaded", "no");}
    try{
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    transformer.transform(new DOMSource(doc), new StreamResult ( new FileOutputStream ( fileGetFile) ) );}
    catch(Exception trans){}
    thanks for responding and keeping the information interchange alive here in the forum...
    Pau

  • Changing physical path in FILE TCODE using ABAP CODE

    Hi all ,
    I want to change physical path linked to logical path in TCODE FILE dynamically using ABAP program. Is it possible.
    If yes then how?
    Thanks for your help.
    Regards,
    Uday.

    s

  • Custom dataSourceConfiguration file

    Hi All,
    I have EP6 which is connected to LDAP.
    I want to connect the EP to R3 and use SSO.
    The username in AD and R3 are not the same.
    However, the username in R3 is the employee id which exists in AD as one of user's attributes.
    I want to custom the dataSourceConfiguration file and use this 'employeeID' as the username in the portal.
    My current configuration file is:
    dataSourceConfiguration_ads_deep_readonly_db
    If I'll change the follwing lines:
    <attribute name="j_user">
    <physicalAttribute name="<b>samaccountname</b>">
    to
    <attribute name="j_user">
    <physicalAttribute name="<b>employeeid</b>">
    Will it work?
    What do I need to do in order to implement this change?
    Thanks,
    Omri

    Omri,
    here is an example:
    LDAP Username: omri
    LDAP EmployeeId: 0815
    Solution 1: Mapping employee id to j_user
    Portal User: 0815
    Ticket R3 User: 0815
    -> Users have to login to portal using employee id.
    Solution 2: Mapping employee id to REFERENCE_SYSTEM_USER
    Portal User: omri
    Ticket R3 User: 0815
    -> Logon ticket r3 user is different to portal user.
    Hope this helps,
    Philipp

  • Error while uploading master data attributes thru flat file

    while uploading master data attributes thru flat file i am facing the below errow. can nyone let me know plz.
    Error 8 when compiling the upload program: row 227, message: Data type /BIC/CCDEIO_MAT5_ATTR was found in a new

    This just means that you changed the transfer rules/transfer structure and have not refreshed the workbench yet.  The infopackage data hasn't been updated ... this is similar to a datasource update, where you need to replicate to make sure BW knows the latest version. 
    The best way to correct this error is to reload RSA1.  Every time I make a change to the tr/ts, I always run /nrsa1 to refresh the workbench. 
    Brian

  • Error: 2330. Error getting file attributes: C:\Program Files (x86)\adobe\reader 9.0\reader\amt. GetL

    Hi!
    I got this error while trying to uninstall my Adobe Reader MUI 9.5.4.: "Error: 2330. Error getting file attributes: C:\Program Files (x86)\adobe\reader 9.0\reader\amt. GetLastError: 117". The message pops after a long long while.
    I have to remove my Adobe Reader because whenever I try to open a pdf I get the error: "Adobe failed to load it's core DLL" (something like that). I want to remove and re-install adobe reader.
    I ran TDSSKiller and nothing was found abnormal.
    I checked the registry and everything seems fine.
    I tried to repair/change the current Adobe Reader version and nothing happens.
    I tried to install a newer version of Adobe reader but the installer freezes at 96%.
    I'm using Win7. Can anyone help? Thanks!

    You may also find this useful:
    http://helpx.adobe.com/acrobat/kb/reader-core-dll-error.html

  • Physical attributes for index on temp tables (using physical model)

    I need create index on temp tables.
    When I generate DDL, it includes physical attributes like ‘LOGGING NOCOMPRESS NOPARALLEL’.
    I get error "ORA – 14451 (unsupported feature w/temporary tables)"
    I’ve to use physical model in OSDM. How do I get rid of physical attributes in DDL for index?

    Hi,
    Thanks for reporting this problem.
    You can remove the LOGGING clause by opening the Properties dialog for the Index in the Physical model and setting its Logging property to the blank option.
    However it's not possible to suppress the NOCOMPRESS and NOPARALLEL at the moment.
    I've logged a bug on this.
    As a workaround, you could do a global edit on the DDL file to remove all instances of NOCOMPRESS and NOPARALLEL.
    David

  • SQL*Loader-510: Physical record in data file (clob_table.ldr) is long

    If I generate loader / Insert script from Raptor, it's not working for Clob columns.
    I am getting error:
    SQL*Loader-510: Physical record in data file (clob_table.ldr) is long
    er than the maximum(1048576)
    What's the solution?
    Regards,

    Hi,
    Has the file been somehow changed by copying it between windows and unix? Ora file transfer done as binary or ASCII? The most common cause of your problem. Is if the end of line carriage return characters have been changed so they are no longer /n/r could this have happened? Can you open the file in a good editor or do an od command in unix to see what is actually present?
    Regards,
    Harry
    http://dbaharrison.blogspot.co.uk/

  • Changing Marketing attribute in BP Master

    Hello
    Can anybody tell me if we can change marketing attribute already maintained in BP Master details.
    Is it possible to go for mass change of a particular attribute like through loading an excel file having list of all BPs.
    I cannot do it by creating Target group as it will list all the BPs with that particular Attribute i want to change.
    I need to do it for around 500 BP master( not all BPs having that attribute)  so cannot manually change it.

    Hi ,
    You can also get this done by using ELM by mapping the fields in excel file to the fields of the BP.
    Create a mapping format using Tcode : CRMD_MKTLIST_MAP
    Upload the file using the T Code : CRMD_MKTLIST
    If you have any futher help let me know.
    Regards,
    Madhu

  • Dynamically Changing Location Attributes

    Hi All,
    Has anyone ever successfully set up a BefConsolidate event script with a dynamically changing location attribute. The FDM Admin manual says you can do this:
    RES.PblnValEntGroupOverride=True
    RES.PstrValEntGroup=”MyNewEntityGroup”
    It does not work for me when I sub in a new Validation Entity Group. Has anyone had luck with this? See my actual code below. The new validation group name is 281.
    Sub BefConsolidate(strLoc, strCat, strPer, strTCat, strTPer, strEntGroup)
    RES.PblnValEntGroupOverride=True
    RES.PstrValEntGroup="281"
    End Sub
    Thx,
    Mike

    Hello,
    Yes I am able to write to file before end if.  I also took out end if statement which to me would me FDM would fire the event for all locations without restriction.
    I have not tried the same code in other event script.  Would that work?  The RES statement specifically relates to a consolidation trigger.  I can try another event to see.
    Thanks.

  • Changing macro for master data files

    Hi experts!!
    we maintain master data(attributes,texts,hierarchy) for one infoobject in a Macro work book.The work book contains many sheets and we maintain data in one sheet and then click on 'do it all ' .....it updates all other sheets and at the same time generates two files....one for attribute and texts....one for hierarchy.....
    now my client wanted me to introduce one new level in hierarchy..so I added one more column in the sheet where we maintain data and clicked on 'Do it all'.......its generating two files as usual....in master data(attribute and text) file...data seems to be right...but hierarchy file seems to be wrong....I think I have to change Macro program(I guess) so it includes newly added column...Am I right?
    Can any one advise where and how I can do changes so it generates right hierarchy files?(because while I am running hierarchy process chain,its showing error like..'Error in Hierarchy structure')
    Thanks.
    SH

    Marta,
    A company called Inquera has a sample MDM repository available for SAP employees and approved partners. It can be downloaded from their <a href="http://www.inquera.com">web site</a>.
    This is only a sample repository. You need to have the MDM components already installed to use it (Console, Server, & Data Manager at a minimum).
    Thanks,
    Tim

  • Lightroom 4.1 change Unused psd, jpg, xmp file in catalog?

    I recently upgraded to LR 4.1 on a Win 7x64 machine. I noticed that a large number of jpg, psd and maybe some xmp files that are in my catalog had their last modified date set to the current date even though I did not edit them. Is this a possible issue with Lightroom 4.1? (I also upgraded to PS CS6 but did not edit the files in question).
    Another note: They tend to be older files (1 or more years old) and from one physical drive (which happens to have the older files) and not another.
    Thanks!
    Message was edited by: waforum123 : changed to add that jpg file dates were also changed.

    I think I may have figured this out. I deleted some keywords (from the keyword list). I think that Lightroom went through and re-wrote all the files that had those keywords in them thus generating a bunch of newly modifled jpg's, xmp's, psd's etc..

  • I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings?

    I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.

    You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.

  • Changes in server side java file not reflecting in Client side java code?

    Hi friends,
    iam using eclipse IDE, JBoss server, SWING GUI and Oracle DB
    ( looks like : SWINGGUI (Client) <--> EJB's (serverside) <---oracle )
    my problem is , when i make change in server side bean file, that changes are not reflecting in GUI programs.
    (for ex: iam adding settr and getter for a field and using that in GUI program. but its not identifying that setter or getter).
    please tell me what should i do for every change done to server side program, that should reflect / available to GUI?

    my problem is , when i make change in server side bean file, that changes are not reflecting in GUI programs.
    (for ex: iam adding settr and getter for a field and using that in GUI program. but its not identifying that setter or getter).what do you mean it's not "identifying" the methods?
    you have to call those methods you know
    are you getting NoSuchMethodError?
    please tell me what should i do for every change done to server side program, that should reflect / available to GUI?you haven't posted any code or error messages that might help us debug

Maybe you are looking for