Problem in custom attributes in a B.O.

Hi all,
I've defined a custom virtual multiline attribute (a list of WBEs) in a B.O. (ZFIPP) and it correctly works using SWO1. Now I've added another custom attribute that needs the previous one to fill a table of corresponding agents, but when I debug the code of the second attribute the first table is empty. When I complete the run the first table is instead correctly filled.
Is it possible to define an attribute that uses another one and how can I check the order in which they are filled?
I used the following instruction at the beginning of the second attribute's code:
SWC_GET_TABLE CONTAINER 'WBSElements' OBJECT-WBSELEMENTS.
where WBSElements is the first table mentioned above.
Thanks in advance for your help.
Best regards,
Angelo

Thanks a lot, Ramki.
I've changed the first code line in
SWC_GET_PROPERTY self 'WBSElements' OBJECT-WBSELEMENTS.
and now it works!
Regards,
Angelo

Similar Messages

  • UWL refresh problem for ABAP BOR custom attributes

    Hi all,
    we are facing an issue with an UWL iView. We wanted to display custom attributes from an ABAP Business Object (ABAP_BOR).
    The feature is working but when an end-user receives a new task in his UWL view, he needs to click on the refresh button in order to have all the custom attributes correctly displayed.
    We have only the problem with custom attributes, for the columns containing standard workflow decision task attributes, the data are displayed directly without the need to push the refresh button.
    We are on EP 7 SPS11 and the back-end is an ECC6 version.
    We have followed the methodology described in the How to configure and customize the Universal Worklist pdf document:
    ABAP BOR
    <CustomAttributeSource id="ABAP_BOR"
    objectIdHolder="externalObjectId"
    objectType="FORMABSENC"
    cacheValidity="final">
    <Attribute name="COSTCENTER" type="string"
    displayName="Cost Center"></Attribute>
    <Attribute name="FIRSTDAYOFABSENCE" type="date"
    displayName="First day of absence"></Attribute>
    <Attribute name="LASTDAYOFABSENCE" type="date"
    displayName="Last day of absence"></Attribute>
    </CustomAttributeSource>
    Do you have an idea where this problem come from and how it could be solved?
    Thanks in advance and regards,
    Sébastien BODSON

    Hi Chintan,
    This parameter has no impact on the problem we face. I found an exact description of our problem on SAP Help portal, in the UWL pages:
    CustomAttributes, CustomAttributeSource and Attribute
    Extract from SAP Help portal:
    Every item type can have custom attributes defined, which can be filled from Business Object or Provider Data Containers like the Business Workflow Container or the Alert Container. These attribute sources are defined within the CustomAttributeSourcetag, which contains information on which attribute connector brings the custom attributes, how to identify these custom attributes in the provider system and how long the cache is valid.
    Note that once an item arrives, these custom attributes are retrieved in additional calls to the backend. For performance reasons, in order to minimize responses times to the end user, this may happen while the item is displayed to the end user - causing such attributes to be empty initially and only to appear in subsequent requests.
    The display names of the attributes for column headers and labels are defined in the display attributes of the default view of the item type.
    Does anyone know a workaround in order to have directly the complete information displayed?
    Sébastien BODSON

  • Problem with optional attribute caching on a custom tag

    Hello,
    I've created a tag by extending TagSupport. I have one attribute that is optional. I'm having a problem with this attribute since the tag is cached. If the value is not specified in the tag, it is always using the previous value from the past request.
    I understand why this is happening, but I wonder if there is anyway to reset this value besides doing it at the end of the doStartTag or in the doEndTag methods? I simply want it to be an empty string if it is not in the request.
    Thanks,
    Tim

    Thats abit overkill in my opinion.Probably yes, but its a cleaner option. In case your doEndTag handles custom exceptions, you would anyhow need to put this code in a finally block, right ?
    public int doEndTag() throws JspException {
    try {
    call some methods that throws other checked exceptions;
    }catch(Exception1 e){
    throw JspException(e);
    }catch(Exception2 e){
    //log and ignore
    }finally{
    //clean up here
    return an int;
    Having said that, different containers implement the spec a bit differently. For example, in our project, we use weblogic and for wl, we put our clean up code in the release() method which according to the spec, needs to be called only before gc. Weblogic implementation is a bit different - its called after doEnd() for every use of the tag.
    This is from jsp spec regarding tag life cycle especially with reuse
    Some setters may be called again before a tag handler is reused. For
    instance, setParent() is called if it�s reused within the same page but at a dif-ferent
    level, setPageContext() is called if it�s used in another page, and
    attribute setters are called if the values differ or are expressed as request-time
    attribute values.
    �Check the TryCatchFinally interface for additional details related to exception handling and resource management.
    cheers,
    ram.
    }

  • Problem using multiple choice LOV with custom attribute in IAS 10.1.2.0.2

    Hi
    When aplying a multiple choice and selecting multiple selection and saving in the content area , everything looks fine .
    However when looking at the page the selection is only the first one selected and not the miltiple choices I made
    can someone tell me what is going on , does the miltiple selection with custom attribute
    works ??
    thanks in advance
    Igal

    Hi there,
    I don't really understand what you're doing but I used lot of LOV in custom attributes on my custom items and everything works fine.
    Can you explain more your problem ?

  • Problem with setting custom attribute and it being searchable

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

  • Extracting custom attributes problem

    Dear all,
    i have created custom characteristic with custom attributes, i need to fill that master data. i have selected this char as info provider and created transformation and  dtp. When i load data into psa it has 80 records, however when i load that master data, it gives success message saying 80 records read, 4 records updated into master data.
    I have no delta update or anything else. What is wrong?
    Thanks

    Hi,
    Did you loaded the records for the first time in the master data??
    Was this object already used in some cubes or DSO and you are adding attributes now??
    It is possible that depending upon the master data key...that is key of the P table the records got overwritten.
    The manage option does shows wrong records added sometime and you should check the detail in the moitor to check how many records got added.
    Also it will show added records onlyy for the new values of the key....if already the key values was stored in the SID table...then it will not show them as added but only new values will show up as added.
    Thanks
    Ajeet

  • Problem using multiple choice LOV with custom attribute

    v 9.0.2
    I cannot find how to use a LOV as a check box or a multiple select for a custom attribute. It shows up as a combo box whatever setting I choose for the default format field in the LOV wizard.
    I need to give the opportunity to choose more than one option from the LOV for the attribute when adding the custom item associated with the attribute. How do I do this?

    Oops wrong forum - have reentered this in content mgmt forum. Disregard this entry.

  • Custom Attributes in Target Group Email Campaign Not Refreshed

    We have a campaign sending emails to a target group of BPs.  To fill our custom attributes with values  we have implemented our code in badi CRM_IM_ADD_DATA_BADI method CRM_IM_BPSELE.  We tested our code using the Test Send feature from the email form and all worked fine.
    But when we ran the campaign in the background for a Target Group with multiple BPs it would not work correctly, our attribute values were incorrect. 
    We discovered while debugging the job, that the badi gets run once for each BP, but the attribute values from the previous BP do NOT get refreshed.  In fact there are 2 entire sets of attribute records in the CT_ATT_VALUES table parameter.  Each time through it multiplies by another set of our attributes.
    I have put code in the badi as a workaround that deletes the previously filled attributes for the previous BP, but I'd like to figure out what is causing this problem.
    Any help would be appreciated.
    thanks,
    Lee

    Hi Lee,
    Is this issue resolved for you now??
    I am facing the similar problem.
    Though the BADi is not used for these two mails (it is used in some other mail forms), it is actually called in 'CRM_ERMS_MAIL_COMPOSE' Function Module and the process is same as u said. There are 2 sets of values.
    I am using a Mail Alert functionality where in a 'Mail Alert ON' is sent to field engineers (FE) and then upon FE accepting the work we will send a 'Mail Alert OFF' to FEs.
    Problem is, we get one or two fields data incorrectly sometimes. I am not able to find out the root cause yet.
    Please let me know if you have had any resolution to this!
    Thanks in advance.
    Chaitanya

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Help needed in Inbox search for Custom attribute

    Hi,
    We have  a requirement where in we are having a custom attribute on Service request to store the ECC Order number.
    We have enhanced the Inbox search to retreive all the service requests havig the ECC order number. 
    Here we are encountering a problem. i just created a new crm service request and entered order number 1234. and now when i search for the same in Inbox search giving the criteria order number as 1234. I get no results found. But when i extend the max list to 2000, then i see the service request appearing in the result list. not sure about the algorithm that is designed for inbox search.
    Any pointers on how to resolve this issue would be of great help.
    Thanks,
    Udaya

    Hi,
    I do not have the time to research this completely, but I had a short look into the class you posted.
    In the GET_DYNAMIC_QUERY_RESULT there is a call to CL_CRM_QCOD_HELPER->PREPROCESS( )
    A little bit lower there are blocks marked by comments for the single searches that are handled by this class. I had a look into the campaign_serach() method. There if you scroll a little bit down (around line 123) they set all search parameters to SIGN = 'I' OPTION = 'EQ'. This is done several times below as well.
    Set a breakpoint in the proprocess() method and check which of the blocks is called and how they handle your search criteria.
    Hope it helps.
    cheers Carsten

  • How to Access Custom Attributes created in UME.

    Hi All,
    I have created a custom attribute in UME by using the config tool, the problem that i was facing is i am unable to access those custom attributes via Iuser Api i.e even though i am using the method getAttributeNamespaces() it is returning all the attributes except the custom attributes that i have created in UME.
    Thanks in Advance,
    RV.

    Hi RV,
    Use the user.api jar in your appln.
    follow these steps in your code:
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user = wdUser.getSAPUser();
    user.getAttribute("com.sap.security.core.usermanagement", "exact name of the custom attribute");
    if you are still facing the problem paste your code here for analysis.

  • Help required in additing custom attribute to Item list view

    Hi Experts,
      I need to add custom attribute(defined in Customer_i) to BTADMIN_I (list type) context node. I have tried adding the attribute using the 'Create Attribute' wizard in the work bench making use of the BOL Model relationship. The attribute is added but it is always display only. Could any one guide me in resolving the issue?
    I am using the component ICCMP_BTITEM & view Itemlist.
    Thanks & Regards,
    Raj

    Hello Rajkumar, i h ave the  same problem , with other attribute that i have created with the wizard. but the problem is that this attribute always is only display. Did you resolve the problem?
    Greetings.

  • MDM Custom attributes

    Hi gurus,
    I'm working with SRM-MDM Catalog 1.0
    I'm facing this problem.
    I have imported some item with custom attributes (MDM Import Manager), i have mapped fields and values.
    In MDM Data Manager items are present but the custom atributes are not present.
    Can you help me please?
    I'll reward points for useful answers.
    Thanks in advance
    Gg

    Hi Gg,
    I guess you haven't imported attributes thats why you are seeing only item hierarchy in data manager and not the attributes.
    Follow these steps:
    1] To import item hierarchy:
         Source Table : Your file with Hierarchy (Partition Field).
         Destination Table : Repository Taxonomy Table.
    2] To Import Attributes:
          Source Table : File with list of custom attributes
           Destination Table : Repository Taxonomy [Attributes]. Thisis a seperate table which we can access through import manager.
    3] To Import Attribute vaues:
          Source Table : File with list of custom attributes and values.
           Destination Table : Repository Taxonomy [Text Values]. Again a seperate table which we can access through import manager.
    4] To link Attibutes with Items:
         Source Table : File with list of custom attributes and items.
           Destination Table : Repository Taxonomy [Link Attribute]. Seperate table which we can access through import manager.
    Once you done with all these steps you should be able to see Item Hierarchy , Linked custom attributes and attribute Values.
    Please let me know if this helps.
    Regards,
    Amol.

  • Changing standard or Custom attributes

    After I upgraded to 7.4.00070 yesterday, today I’m not able
    to modify the “standard or Custom attributes” I stopped all scan activate but
    still I am not able to make any changes. Has anyone had this problem?  
    This topic first appeared in the Spiceworks Community

    Hi Raj,
    The main difference is seen by the workflow number.
    Standard workflows start with numbers like 1,2 etc...
    e.g: WS14000002
    Custom workflows start with the prefix set by the basis team in SWU3 configuration.
    The prefixs generally start with 8 or 9, so any worklfow starting with WS8 or WS9 would be a custom workflow.
    eg: WS95100010
    Hope this helps!
    Regards,
    Saumya

  • Unable to create Custom Attributes

    I just recently did an install of EPM 11.1.2.3. When I go to add custom attribute in Planning under entity I get an error stating "An error occurred while processing this page". I have uninstalled and re-installed about 3-4 times and still get the same message. I had no problem with release 11.1.2.0, 11.1.2.2.
    Maybe related, but when I add a member to the Period dimension I get the message "The member you selected does not exist", but it adds the member anyway.  Clicking on help result in error 404--Not Found.
    Diagnostic only reveal "Failed  REG:Registry  -- PROJECT (id: 168ab7c3ac0344677a37fbee13f1c5e7dc3S7fc8):"APPLICATION" child missed
    Any ideas?
    Thanks

    Hi,
    Whatever steps you have done seems to be correct for adding an UDF in Create User page. If the UDF is not displayed, then refresh the content by clicking the refresh icon at the top right hand corner of the dialog box while selecting Add Content -> "Data component - catalog" -> userVO. Also I would suggest you to give an unique name while creating the UDF using form designer in sysadmin console. Try it again and it should work.
    In worst case try the below steps
    1. Create and activate a Sandbox.
    2. On the left nav pane, expand Upgrade and click on link Upgrade User Form.
    3. On the page that opens, the table will display all your UDFs. Click Upgrade Now and wait for completion.
    4. Export(recommended) and Publish the sandbox.
    After that create another sandbox in identity console,create sandbox, click on customize and after that try following the same process of adding from userVO

Maybe you are looking for

  • Tomcat/Cocoon/APEX PDF printing. Another issue

    Hi All, I am trying to implement my own custom report layout for the following simple Report query select e.DEPTNO, d.DNAME, d.LOC, e.ENAME, e.JOB from emp e, dept d where e.deptno = d.deptno The steps are the following 1. Create Report Query 2. Down

  • Requirement: Insp lot of self Certified material should not get skipped

    Hi Gurus following is req  pls suggest me Requirement: Insp lot of self Certified material should not get skipped if there is a change in Material Revision. As of now Auto Usage Decision takes place on Self certified material Lots. This happens even

  • Aggregates Transport

    Hello forum. I have created a aggregate for a Infocube in BI-7.0 environment. I have a transport request for this aggregate,but when I import it to my integration It does not reflect in integration system. Currently the transport request contains onl

  • Centro security flaw....has it been fixed?

    The Palm Centro has a flaw in the security feature. I discovered its possible to bypass my Palm Centro system lockout without knowing the password. When Palm Cento is in the lockout mode the user has 2 options. The user can enter their password to ga

  • Logged in users

    Hello, We have very strange things happening concerning the logged-in users list : 1) We have users that stay logged eternally, they stay in the logged-in list, nevertheless they are not connected. 2) In the logged-in list we see numbers instead of u