How can I add a custom attribute to a catalog area? (CRM Isa Sales)

Gents,
How can I add a custom attribute to a catalog area? (CRM Isa Sales)
Actually I would like to use the Catalog Area Type (maintained in trx COMM_PCAT_ADM on Catalog Area Header level). This field doesn't seem to be available in J2EE webshop. (The field documentation says it is for documentation purposes only so I don't expect it to be transferred).
As this field is not readily available, I would like to add is as an attribute to the Catalog Area. BADI's PCAT_IMS_FEED_ATT and PCAT_IMS_FEED_VAL seem to indicate that it should be possible to add additional fields not only on product level, but also on Area level:
Example implementation code:
method IF_EX_PCAT_IMS_FEED_ATT~READ_NEW_FIELDS.
* Example, how to add new attributes to a indexcategory
* Possible levels are 'C'ategory and 'P'roduct.
* Field 'VALUE' carries the attributetype ('S'tring, 'I'ntegar or
* 'F'loat)
* Structure 'IS_OBJECTS' carries actuall identifiers
  data: ls_fields        type comt_pcat_ims_feed_ux.
  case iv_level.
    when 'C'.                        "Category Level
*     no new field
    when 'P'.                        "Product Level
      ls_fields-field = 'CUSTOMER_EXIT_FIELD'.
      ls_Fields-value = 'S'.
      append ls_fields to ct_fields.
*     exproduct fields
      ls_fields-field = 'REMAN_ABL'.
      APPEND ls_fields TO ct_fields.
      ls_fields-field = 'EXCH_BUS'.
      APPEND ls_fields TO ct_fields.
  endcase.
endmethod.
However, when I create an implementation and add some code in the when 'C' part, the attributes do not seem to get transferred. (I've checked in the debug mode of the developer studio).
- My example code:
METHOD if_ex_pcat_ims_feed_att~read_new_fields.
* Possible levels are 'C'ategory and 'P'roduct.
* Field 'VALUE' contains the attributetype
* ('S'tring, 'I'ntegar or * 'F'loat)
  DATA:
  ls_fields LIKE LINE OF ct_fields.
  CASE iv_level.
    WHEN 'C'.                        "Category Level
      ls_fields-value = 'S'.
      ls_fields-field = 'ZTEST'.
       APPEND ls_fields TO ct_fields.
    WHEN 'P'.                        "Product Level
  ENDCASE.
ENDMETHOD.
and:
METHOD if_ex_pcat_ims_feed_val~read_new_fields.
  CASE iv_level.
    WHEN 'C'.
     ls_fields-field = 'ZTEST'.
     ls_Fields-value = 'Value 1'.
     append ls_fields to ct_fields.
    WHEN 'P'.
  ENDCASE.
ENDMETHOD.
In the ABAP debugger, I can see that my code is touched during initial and delta replications, however, after replication, the fields do not show up in the Java debugger.
Any ideas?
regards,
Wilco Menge

Hi,
How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
I think the "formUrl" is to post those input value to the jcr repository?
var createDialog = {
        "jcr:primaryType": "cq:Dialog",
        "id": CQ.Util.createId("cq-createdialog"),
        "title":CQ.I18n.getMessage("Create Page"),
        "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
        "params": {
            "cmd":"createPage",
            "_charset_":"utf-8"
I have added a field called "starred"
Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
:status
browser
_charset_
utf-8
cmd
createPage
label
b
parentPath
/content/keyword_elaboration
starred
c
template
/libs/collab/commons/templates/form
title
a
Source
cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
However, when I go to the crxde to view the node's attribute, the properity starred is not created
Are there anything I did wrong or missing?
Thanks.
Message was edited by: aslkit

Similar Messages

  • How can I add a custom attribute to the create page dialog?

    I followed the following link to add a custom attribute called starred and this attaribute can be displayed in siteadmin grid
    http://dev.day.com/docs/en/cq/current/developing/customize_siteadmin.html
    I would like to let the user input the value when they create a page. That's why I would like to add a custom field in the input dialog box as attached pic.
    The method you describe before can only added those CQ bulid-in attribute.
    For those custom attribute, how can I added it?

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • How can I add my custom ringtone to iTunes 10.7?

    I recently got an iPhone 5 and I want to add a custom ringtone to it. I created a 29-second clip of a song using a software called Audacity and then saved it as an .m4r file. Then, I tried the drag-and-drop method to add the file to my Tones playlist on iTunes; it did not show up anywhere in iTunes. Then I tried moving the file into the "Automatically Add to iTunes" folder; it still didn't work. I tried shortening the file name, and making the clip of the song shorter (to 20 secs), and nothing worked. Am I doing something wrong? Does anyone know how to solve this problem?
    (FYI: I am using iTunes 10.7.0.21; I have Windows 7.  I also tried using the "Create AAC Version" function on iTunes, but then I couldn't change the file type from .m4a to .m4r, so that's why I used Audacity.)
    Thanks in advance.

    I found the answer to my own question! The following discussion really helped, so if you have the same problem, check it out: https://discussions.apple.com/message/18885997#18885997

  • How can I add a new attribute (characteristic) in intrastat

    Hi all,
    my friends from Autria have a problem with their intrastat message and that makes it my problem. Austrian statistic wants to know the amount of goods imported, not only the value. I tried to add an attribute using transaction VEB1, but there is no attribute in the list that gives me the amount. Does anyone know how to handle that?
    Christian

    Hi Napadol,
    To add a attribute in a char:
    1) Go to info object/char in change mode and add the additional attribute you want and select navigational attribute in attribute tab if you want. (Create these additional attribute first in info object catalouge)
    2) Activate the Object/Char
    3) open info cube in change mode and pick the characteristic from left panel to info cube dimension.
    4) Activate infocube.
    5) Go to multi provider add the char in one of the dimension and do identification for this char and activate.
    Regards,
    Kams

  • How can I add a Custom Field in Work Item "Bug" in VisualStudio Online agile MSF Template?

    We are using Visual Studio Online for task and bug tracking. The problem we are facing is that very few fields are available to working with. We need to add custom fields to filter bugs on multiple attributes like OS, Device model, Verified in build etc.
    We do not have local TFS server setup. The support questions i have read, they ask to update XML file for work item but i dont know how and where to get that xml file. Also is there any particular Role needed to access such configuration files?

    hi Zahid
    as already written above currently it is not possible to customize a process template on Visual Studio Online.
    but for your purpose you can use tags to save the attributes.
    see here Visual Studio Online - Work Item Tagging
    Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • How can I add a custom title to multiple ALV reports selected by layout?

    Greetings and good day, everyone!
    Within the past week or so, I posted a question asking the best way to create a program that would generate multiple ALV reports.  I got some great ideas, and I've actually coded up a few simple demos based on your feedback -- thank you!
    Here's the issue I'm running into:  Many of you suggested that I put all report records into one table, and create a field that I could use to filter on later to determine which fields I want to display for the report.  For example, if I have 3 different reports, I put all the fields for all 3 reports into a table.  I then add a "report key" field.  As I put records into the report table for report 1, I code "01" into the "report key" field.  I do the same for reports 2 and 3, assigning each a "report key" of "02" and "03", respectively.
    I then set up layouts in the ALV for each of the three reports, using the filter option to only pull records with the "report key" value for that particular report.  This all works wonderfully!  However, I seem to have lost the ability to show a custom title for each layout.  I can create a generic TITLEBAR (like "Reporting Center") but I don't know how to reset the grid's title when a layout is selected.  I was hoping that SAP might use the layout description as the title on each page, but it doesn't -- it uses the TITLEBAR text.
    Any ideas?  I think this might be the best way to program multiple ALV reports, but if I can't display the right report title for a particular layout, I'll probably have to go back to my other alternative of putting each report in its own container/screen, and having a button to access each report from the application toolbar.
    Thanks,

    Srikanth,
    I don't have any Selection Screen radio buttons for the user to select a particular report; in my case, they specify some needed criteria by the program in the Selection Screen, the program goes off and does a fair bit of processing/updating, and then displays the ALV reports when finished.  They don't want to choose one particular report to view ahead of time; they want to have all 3 (in my case) there to see what processed correctly, what was eligible to process but kicked out with errors, and what failed some matching checks done up front (this layout includes additional fields from the input file so they can see what didn't match up against R/3).
    So, while I do like the code example you presented, I don't think it's going to help me in my case.

  • How can I add a custom property to an object, like a paragraph?

    Hi,
    We have a merge process that combine multiple document into one and I need to store the filename of the imported file at the beginning of each merge point.   Each document that we merge contains a Title paragraph and I was wrongly assuming that I could set the label property of this paragraph with my value for future references, but only to find out that the paragraph object doesn't have a label property.
    I also tried setting a custom property by doing this
    paragraph.properties["myCustomProperty"] = "value";
    It doesn't crash, but if I try reading the value it is always undefined.
    I'm looking for alternative, or on how would you approach this, can you please advice?
    Your help is much appreciated.
    Thanks

    Peter Kahrel wrote:
    You could label the paragraph's parent story. Is that any good?
    Peter.
    Well I tought about it, but then I have to find a way to keep track of which paragraph this value belongs to and so far I havent found a way to uniquely identify a paragraph and I can't assume that the merged document won't be edited so I can't use the index.
    Peter Kahrel wrote:
    Otherwise use a paragraph property that you never use and that doesn't affect composition, such as .bulletsTextAfter
    P.
    It may be an alternative, but that may cause problem in the furture if they ever decide to use or change that properties.  Plus, I'm not sure if can put anything I want in there, but that would be worth the try.

  • How can I add a custom made share button for Facebook?

    Hi!
    I have built a custom "share"-button for Facebook (with an additional layer for rollover/active states, using photoshop), but I don't know how to make it work?
    What code do I have to use, or can I just create a link using my button? What would the adress be?
    I googled this but couln't find anything that helped...
    Thanks in advance!

    It doesn't appear so simple Tobi. The image is pulled from Facebook's servers and the button in itself is an altogether different HTML page from Facebook shown on your site within an iFrame.
    I found something similar to your request (this requires PHP support on your server). Please check the below link.
    http://www.daddydesign.com/wordpress/how-to-create-a-custom-facebook-share-button-with-a-c ustom-counter/
    Thanks,
    Vikas

  • How can I add a custom footnote at the beginning of my document?

    Hi, I need to start a document adding my credentials using a custom footnote (the traditional * footnote...), but can't seem to do that without having to change the whole numbering of the other footnotes in the document. Is there any way to do it?

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can I add a custom button to a survey results screen

    I want to send it to a specific slide and not have it jump all the way to the first slide
    since those slides are just practice ones in a previous lesson and not the final exam.

    Please, could you explain a little bit? And which version of Captivate are you using?
    Lilybiri

  • How can I add the presets to new catalog or sync info to both catalogs?

    I have lightroom on my main laptop was advised to create a new catalog on my external (my laptop is almost out of space). I just upload some presets to lightroom,--when I use my Lightroom catalog on my external the presets are not loaded at all. How can I add the presets or sync both catalogs. Thank you

    Listener can be added to a cell editor, not cell renderer.
    Set relevent cess(s) to setEditable == true when you use your custom cell editor.

  • How Can i add a field to a table?

    Hi,experts
       How can i add a custom field to the table EBAN,And Display it in ME51N,ME52N,ME53N without access key.
    Regards
    Chris

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • I have Garage Band for my IPad. I would like to add a "delay" effect to my music, but I do not see that effect available. How can I add it to the software? Thank you.

    Hello all,
    I have Garage Band on my Ipad Mini and I notice that it does not have a "delay effect" that can be added to my music. There are other effects, but no delay, which is the most important one for me. How can I add this effect?  Thank you.

    There are not many effects available in GarageBand on the iPad. You can add reverb and echo to the Master Track, but that's it.
    See the User Guide:  http://help.apple.com/garageband/ipad/1.4/index.html#chs175dc411

  • 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

Maybe you are looking for

  • PM Querry regarding workflow

    hi everybody anyone plz explain the process flow for workflow ? and setting related to that. regards pushpa

  • How do I rotate a video 90 degrees with premiere elements 9?

    I shot a birthday video of the neighbors 5 year old with my Canon T2i camera.  Had to turn the camera on its side to get everything in the shot.  I can view the video right side up in the canon software but can not make the change permanent so the ne

  • 14 Hours of Playtime? No way

    Has anyone else noticed this? I received a 2GB iPod Nano for my birthday in November and I am loving it! However, the ads for it claim that you get 14 hours of playtime. I get 3 if I'm lucky! I have to recharge it almost every time I use it. Is anyon

  • Where to get 3D Midi Fil

    The 3D Midi Sample files coming with my X-FI Platinum are really amazing and i tried to find some more like them but didn?t find anything on the Web. Anyone knows a Website where those 3D Midi Files are buyable or for free? Thanks in advance Thomas

  • Changed e mail address new Apple ID  but still shows old e mail at log in can't click it

    I have iCloud past while and recently had to pull down my e mail address which I can't use now ,this was also my Apple ID I now have new ID and password I can log into apple but on my iPad the box keeps popping up asking me to put password in , but i