Concatenation of attribute values

Hi Friends,
We are on MDM 5.5 SP06 PL04.
We have a requirement where in we have to update a field in the main table based on the attribute values entered by the user in the lookup field [taxonomy] in the same table through the Data Manager..
Say, there are 5 attributes : A1, A2, A3, A4, A5. The value to be updated in the field would be the concatenation of the values entered in the attributes, separated by a space.
None of the attributes are mandatory, though at least one has to be populated.
Is it possible to carry out this requirement through assignments? If not, could you please suggest some alternatives to acheive the same?
Regards,
Anil Madhavan

Hi,
This requirement can be achieved using Assignment.
Say In record mode, You have a Record in your Main table of MDM data Manager which has a category associated with it.
This category is linked with 5 Attributes say A1, A1, A2, A3, A4, A5.
say A1 has value XYZ
A2 has value ABC
A3 has Value 123
A4 has Value 456
A5 has Value 789
so you want concatenation of all these three Attribute value as: XYZ ABC 123 456 789
Create an Assignment: give the Assignment field where do you want to have this concatenation value populated.
Now right click on this assignment-->Add Branch.
Select the Branch Value of that category: Write Assignment Expression here in this Add Branch Assignment as:
write Assignment Expression as below:
A1&" "&A2&" "&A3&" "&A4&" "&A5
Note: Select the Attributes names from Drop down Attributes tab.
Thanks and Regards,
Mandeep Saini

Similar Messages

  • Assignment on Attribute Values

    Hello,
    I have a requirement where I have  Material Description field of type text where i have to autopopulate values which is combination of all the attribute values assigned to classification of that material.
    For Eg.
    Material No: 111
    Material Description:Bricks,20cm,4cm
    Classifiication: Refactory Material
    Short Name : Bricks
    Length: 20 cm
    Thickness: 4 cm
    In the above example Short Name,Length,Thickness are the attributes linked to classification Refactory Material.
    And Material Description is concatenation of Attribute Values whcih need to be autopopulated.
    In MDM If we need to use attribuite values we have to create branch assignment which makes it static that is we have to write one branch assignment for each class.We have 100 classification as such so not finding it practical to write 100 branch assignment for each class.
    Is there any other workaround solution to autopopulate decsription field with combination of ATTRIBUTE VALUES.
    Thanks in Advance
    Regards,
    Neethu Joy

    Hi Neethu Joy,
    You can use the Function RSDMD_WRITE_ATTRIBUTES_TEXTS, which allows you to load Attribute or text in the load of a Master Data Atributtes or in a transactional load.
    Some links.
    SAP HELP
    [http://help.sap.com/saphelp_nw04s/helpdata/en/44/bd9b2916fd08cfe10000000a155369/frameset.htm|http://help.sap.com/saphelp_nw04s/helpdata/en/44/bd9b2916fd08cfe10000000a155369/frameset.htm]
    PDF
    [https://websmp205.sap-ag.de/form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002766042003E|https://websmp205.sap-ag.de/form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002766042003E]
    The PDF describes how to use it with Master Data Attribute
    call function 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
    exporting
    i_iobjnm = '0D_SOLD_TO'
    i_tabclass = 'M'
    tables
    i_t_table = custattr
    In your case you should use i_tabclass = 'T'  (for texts) and the table i_t_table should be the IDs of Material, and the concatenation of the atributes as text (be sure, Mediu, large or short text).
    Thats one solution, other solucion could be, create a custom extractor in RSO2 using the table of the Master Data Atribute, and in the Trasnfromation or Transfer Rule (depending the version that you use) you should concatenate the values with a routine mapping.
    Regards, Federico

  • Fetch attribute value of structure node

    Dear All,
    Please let me know is it possible to get the attribute name and attribute value of a structure node of a record model inside the program?
    Can I give any name as the attribute name?
    Regards,
    Biju K George

    Hi,
    could you provide an example ?
    I think you speak about using field-symbol.
    --> get the attributes of a structure or a table --> same has field catalog for ALV
    --> get the value of the attributes :
    concatenante structure_mane attribute_name into w_field separated by '-'.
    assign (w_field) to <field>
    check <field> is assigned.
    and <field> is the value of the attribute attribute_name of the structure structure_name.
    regards
    Fred

  • No concatenated descriptive flexfield value to validate.

    After adding another Descriptive Flexfield, pointing to ATTRIBUTE19 in GL JE LINES ('Enter Journals:Lines'), the ADI Templates are giving me Warnings as 'No concatenated descriptive flexfield value to validate.', with a YELLOW face on all the ADI rows.
    It never gave any kind of Warning before these changes (Adding / Enabling ATTRIBUTE19 length 50 in the Descriptive Flex field of GL Lines ).
    Users are not happy with these messages.
    Please advice me why am I getting the error and what I can do to fix this Warning.
    Thank you so much,
    Kiran Kesari

    Hi Nel,
    use a Pair type value set to achieve this. This value set should be attached to both the DFF Item Low and DFF Item High DFF attributes.
    You can refer to seeded value set CST_SRS_ITEM_PAIR.
    For this Pair value set the functions are define dlike this:
    Event: Edit
    Function
    FND POPIDR CODE="MSTK" APPL_SHORT_NAME="INV"
    VALIDATE="NONE" SEG=:!VALUE NAVIGATE="!DIR" REQUIRED="N"
    ALLOWNULLS="Y"
    Event: Validate
    Function
    FND VALIDR CODE="MSTK" APPL_SHORT_NAME="INV"
    VALIDATE="NONE" SEG=:!VALUE REQUIRED="N" ALLOWNULLS="Y"
    Hope this helps!
    -Supro

  • Not getting attribute values in IPC routines Scenerio R/3 B2B using AP 7.0

    Hi,
    Our Scenerio is using ISA R/3 B2B using AP 7.0. I have developed IPC routines but when i debug my routines in SM53 I notice that I'm not getting any attribute value except for VKORG.
    I'm pasting the code below. Please help me if I have to implement some BADI or do something more to get the attribute values.
    I have defined the attributes properly in Routine assignment in tcode /n/sapcnd/ueass
    userexitlogger.writeLogDebug("*requirment 901*" + "Plant = "plant"||ANZ_MONATE ="+ item.getAttributeValue(ANZ_MONATE_STR).toString()"||ANZ_JAHRE="item.getAttributeValue(ANZ_JAHRE_STR).toString()"||MATKL="item.getAttributeValue(MATKL_STR).toString()"||PSTYV="item.getAttributeValue(PSTYV_STR).toString()"||VKORG="item.getAttributeValue(VKORG_STR)"||PRSFD="item.getAttributeValue(PRSFD_STR)"||MVGR2="item.getAttributeValue(MVGR2_STR).toString()"||PRSDT="item.getAttributeValue(PRSDT_STR).toString()"||AUDAT="item.getAttributeValue(AUDAT_STR).toString());
    I would reward points for help
    Many Thanks n regards,
    Dipender

    I would like to go through each Value of the xml file and give each Value a name
    e.g. from the xml file <VentCount Value=1> Retreive the value above and giving it the name VentCount. Then I would beable to use the name vent count as follows:
    setVentCount() //My own method can use as follows: setVentCount(VentCount); I would like to do his for ever value, each value with a specific name

  • Passing attribute value in session variable

    Hi All
    I need to store one field value from my SIM form as a session variable and pass them to the next page along with my session, using some jscript stuff or else. Does this make sense?
    If it is possible or anyone have any prior experience please reply.
    Thanks in advance

    We have tested a code-snippet that 'gets' attribute-values from the session:
    <invoke name='getAttribute'>
        <invoke name='getHttpSession'>
            <ref>:display.state</ref>
        </invoke>
        <s>attribute_name</s>
    </invoke>You can try 'setAttribute' in the similar way.
    Thanks,
    Adi

  • Need Help ::  Current row attribute value returning null

      Hi Frds,
    I am facing the problem that
    Current row attribute value returning null............ even though value is there..... plz.. he
    This is the code in PFR
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("queryBtn")!= null)
        String  pPersonId = pageContext.getParameter("ctrlPersonId");
         String rowReference = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
         OptionsVORowImpl curRow = (     OptionsVORowImpl) am.findRowByRef(rowReference);
        String dtlsItem =  (String)curRow.getFlexValue();   /*  this is returning null value */
    /*  here creating  the hashmap and calling the page with the hashmap*/
    Thanks & Regards,
    jaya
    Message was edited by: 9d452cf7-d17f-4d1e-8e0e-b22539ea8810

    Hi Jaya,
    You want to catch Flexfield values?
    Try below code for catch value.
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("queryBtn")!= null)
    OADescriptiveFlexBean dfb = (OADescriptiveFlexBean)webBean.findChildRecursive("flexDFF"); //get the DFF bean
    OAWebBean dffbean = (OAWebBean)dfb.findChildRecursive("flexDFF0"); //get the field that applies to the attribute1 column that is being rendered
    OAMessageStyledTextBean Stylebean = (OAMessageStyledTextBean)dffbean;
    String dtlsItem  = (String)Stylebean.getText(pageContext);
    /*  here creating  the hashmap and calling the page with the hashmap*/
    Thanks,
    Dilip

  • Not getting all the attributes value from Trusted Recon in eventhandler

    Hi,
    I am not getting the values of all the attributes in hashmap from Trusted recon in eventhandler.
    Following is the hashmap value I am getting :
    Parameter Hashmap value is {re_key=1869, Email=[email protected], Role=Full-Time, act_key=22, User Login=TUser43, Xellerate Type=End-User, Last Name=User43, First Name=Test}
    Please let me know how to get all the attributes value in eventhandler. I need to take some decisions based on these attributes.
    Thanks

    You should be getting all the values in the recon event.
    To get the current user states for all the records in the bulk event use this:
    Identity[] currentUserStates = (Identity[]) eventDataHashMap.get("CURRENT_USER");
    Now when you are looping through your bulkParametersp[], you can use the same get from the currentUserStates:
    Identity currentUser = null;
    currentUser = currentUserStates[counter];
    Now if the attribute is not in your hashmap, you can use:
    currentUserState.getAttributes().get(attribute)
    -Kevini

  • How to get attribute value from standard page ?

    Hi,
    How to get attribute value from standard page ?
    String str = (String)vo.getCurrentRow().getAttrbute("RunId");
    But this value is returning a null value ....
    Can anyone help me to get this attribute value which is actually having a actual value .

    getCurrentRow() would always return null if no setCurrentRow() is used.
    Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:
    vo.reset();
    vo.next();
    Regards
    Sumit

  • How to get attribute value from an object inside an object in Xpress

    Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
    <ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
    <ObjectRef type='Resource' name='Google Apps'/>
    </ResourceInfo>
    I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.

    If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
    <invoke name='getResourceName'>
      <ref>myResInfo</ref>
    </invoke>

  • Attributes and attribute values for a Product

    Hi all
    Is there any table or FM from where I can get a list of all the attributes and the attribute values linked to a particular product?
    I got tables which link product with Prod Category, Prod Category with Set types and so on.
    Could anyoe please provide me an FM which will give the attribute and its values for a particular product?
    Please help!!
    Regards
    Debolina

    Attributes created under s settype will be under the table with the name of that particular settype itself i.e Table name and the settype name are the same.
    The other part of your question of where to find the list of all settypes and their corresposing attributes, you can make use of COMM_PR_FRG_REL.
    Regards,
    Harshit

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • How to get attribute values from one view to another

    HI all,
    Thx in Advance..
    I have 2 view like v1,v2.In v1 i used one attribute values from "get single attribute" method.And i need the same values in v2 screen.For this i did in v1 outbound plugs , i mentioned the parameter name . How can i get the same values in  v2.

    Hi chandru ,
    you said you declare the parameters in the Outbound Plug of V1.  now go to view V2 inbound plug Tab and creat one inbound plug
    double click on the plug name .it will navigate you to the event handeler method . Now add the outbound parameter variables in the
    parameters
    For example : V1firing the navigation plug
    a type string " defined in parameter
      wd_this->fire_out_to_view2_plg(
        a =      'ABCD'                           " string
    you can retrive the value freely in v2 inbound event handeler
    a type string " defined in parameter
    *   set single attribute
        lo_el_context->set_attribute(
          name =  `TEXT`
          value =  a )." here you will get the 'ABCD'.
    regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jun 23, 2010 7:12 PM

  • ImportNode() does not import attribute values

    I want to import one part of xml document into another xml document. I use the Document.importNode() method to do this. Here's my code snippet:
    Document newdoc = db.newDocument();
    Node importedNode = newdoc.importNode(xmlnode,true);
    But as the result the xml part is copied into importedNode, but attribute values are empty. What do I do wrong? I'm really lost, so thanks for ANY help.

    Well, the importNode() method should do this. But while using Xerces (I must use this one (currently in 1.4.4 version), not any other parser) you'll find out there is a bug in this method. It could work for you (maybe), but for me it just removes all the attribute values. So I'm still looking for an answer.
    I wrote one very simple (not generic, which is enough for my case) method to just hack the behaviour, and I entered bug to Xerces bugzilla, but nobody cares ;O( for it. Sad, but true.

  • Oracle XML DOM parser - attribute values are not printing on the screen ??

    Hi Everyone,
    I am just trying to use oracle DOM parser to paerse one of my xml file, java file can be compiled and run agianst a xml file, But I cannot see any attribute values printing on the screen..
    Appreciate if anyone can help, where I have gone wrong please?
    Below is the java file:
    // menna puthe DOMSample eka - duwanawa 19/12/2005
    import java.io.*;
    import java.net.*;
    import org.w3c.dom.*;
    import org.w3c.dom.Node;
    import oracle.xml.parser.v2.*;
    public class DOMSample {  //public class eka ***
    static public void main(String[] argv){  // main method eka ###
    try {
    if (argv.length != 1){
    // Must pass in the name of the XML file...
    System.err.println("Usage: java DOMSample filename");
    System.exit(1);
    // Get an instance of the parser
    DOMParser parser = new DOMParser();
    // Generate a URL from the filename.
    URL url = createURL(argv[0]);
    // Set various parser options: validation on,
    // warnings shown, error stream set to stderr.
    parser.setErrorStream(System.err);
    parser.showWarnings(true);
    // Parse the document.
    parser.parse(url);
    // Obtain the document.
    Document doc = parser.getDocument();
    // Print document elements
    System.out.print("The elements are: ");
    printElements(doc);
    // Print document element attributes
    System.out.println("The attributes of each element are: ");
    printElementAttributes(doc);
    catch (Exception e){
    System.out.println(e.toString());
    } // main method eka ###
    static void printElements(Document doc) {
    NodeList nl = doc.getElementsByTagName("*");
    Node n;
    for (int i=0; i<nl.getLength(); i++){
    n = nl.item(i);
    System.out.print(n.getNodeName() + " ");
    System.out.println();
    static void printElementAttributes(Document doc){
    NodeList nl = doc.getElementsByTagName("*");
    Element e;
    Node n;
    NamedNodeMap nnm;
    String attrname;
    String attrval;
    int i, len;
    len = nl.getLength();
    for (int j=0; j < len; j++){
    e = (Element)nl.item(j);
    System.out.println(e.getTagName() + ":");
    nnm = e.getAttributes();
    if (nnm != null){
    for (i=0; i<nnm.getLength(); i++){
    n = nnm.item(i);
    attrname = n.getNodeName();
    attrval = n.getNodeValue();
    System.out.print(" " + attrname + " = " + attrval);
    System.out.println();
    static URL createURL(String filename) {  // podi 3 Start
    URL url = null;
    try {
    url = new URL(filename);
    } catch (MalformedURLException ex) { /// BBBBBB
    try {
    File f = new File(filename);
    url = f.toURL();
    } catch (MalformedURLException e) {
    System.out.println("Cannot create URL for: " + filename);
    System.exit(0);
    } // BBBBBB
    return url;
    } // podi 3 End
    } //public class eka ***
    // End of program
    output comes as below:
    Isbn:
    Title:
    Price:
    Author:
    Message was edited by:
    chandanal

    Hi Chandanal,
    I edited your code slightly and I was able to get the correct output.
    I changed the following line:
    for (int j=0; j >< len; j++)to:
    for (int j=0; j < len; j++)I have included the complete source below:
    // menna puthe DOMSample eka - duwanawa 19/12/2005
    import java.io.*;
    import java.net.*;
    import org.w3c.dom.*;
    import org.w3c.dom.Node;
    import oracle.xml.parser.v2.*;
    public class DOMSample {
        //public class eka ***
        public static void main(String[] argv) {
            // main method eka ###
            try {
                if (argv.length != 1) {
                    // Must pass in the name of the XML file...
                    System.err.println("Usage: java DOMSample filename");
                    System.exit(1);
                // Get an instance of the parser
                DOMParser parser = new DOMParser();
                // Generate a URL from the filename.
                URL url = createURL(argv[0]);
                // Set various parser options: validation on,
                // warnings shown, error stream set to stderr.
                parser.setErrorStream(System.err);
                parser.showWarnings(true);
                // Parse the document.
                parser.parse(url);
                // Obtain the document.
                Document doc = parser.getDocument();
                // Print document elements
                System.out.print("The elements are: ");
                printElements(doc);
                // Print document element attributes
                System.out.println("The attributes of each element are: ");
                printElementAttributes(doc);
            } catch (Exception e) {
                System.out.println(e.toString());
        // main method eka ###
        static void printElements(Document doc) {
            NodeList nl = doc.getElementsByTagName("*");
            Node n;
            for (int i = 0; i < nl.getLength(); i++) {
                n = nl.item(i);
                System.out.print(n.getNodeName() + " ");
            System.out.println();
        static void printElementAttributes(Document doc) {
            NodeList nl = doc.getElementsByTagName("*");
            Element e;
            Node n;
            NamedNodeMap nnm;
            String attrname;
            String attrval;
            int i, len;
            len = nl.getLength();
            for (int j = 0; j < len; j++) {
                e = (Element)nl.item(j);
                System.out.println(e.getTagName() + ":");
                nnm = e.getAttributes();
                if (nnm != null) {
                    for (i = 0; i < nnm.getLength(); i++) {
                        n = nnm.item(i);
                        attrname = n.getNodeName();
                        attrval = n.getNodeValue();
                        System.out.print(" " + attrname + " = " + attrval);
                System.out.println();
        static URL createURL(String filename) {
            // podi 3 Start
            URL url = null;
            try {
                url = new URL(filename);
            } catch (MalformedURLException ex) {
                /// BBBBBB
                try {
                    File f = new File(filename);
                    url = f.toURL();
                } catch (MalformedURLException e) {
                    System.out.println("Cannot create URL for: " + filename);
                    System.exit(0);
            // BBBBBB
            return url;
        // podi 3 End
    } //public class eka ***-Blaise

Maybe you are looking for

  • Movie Won't Download - No Error Message - Just Starts Telling Me It'll Be 1000s of Hours

    I actually have this same issue from my iPhone. I didn't know until tonight. After several fruitless emails to Apple support, I removed all my pictures and videos on my iPhone to make room for the movie I bought and after downloading 4.8mb the issue

  • Kernel Panic in iTunes

    Hi, Folks! I have a 2008 Mac Pro, and just a few days, I started getting kernel panics in iTunes. This hasn't happened in any other applications. Here's a few patterns I've noticed: -the KP crash happens when I add folders of music (aka drag-and-drop

  • How to show an XML doc's node?/element in a dynamic textbox?

    Hello! I would like to show an XML doc's node?/element in a textbox. I am importing the XML data from a PHP page. My code looks like this: var xmlRequest:URLRequest = new URLRequest("adatatvitel.php"); var xmlLoader:URLLoader = new URLLoader(xmlReque

  • Can we embed the WML in MIDlet

    hi all, My name is lakshman.I have developed an application in J2ME,at the same time i developed that in the WML also.The WML appliaction was looking nice and providing somany options like getting the image from the network and alos aligning the text

  • BBP_SAPXML1_OUT_BADI in SRM 7.0 for MDM Catalog

    Hi All, I have a requirement to transfer additional data together with a contract, such as price scales, discounts, and discount scales If the contract has condition like scale      Discount 0-10        20% 20-30      30% from SRM to SRM MDM Catalog.