Displaying Map object fields in DataTable

I am trying to create a shopping cart app. The ShopCart bean has a Map property:
Map shoppingItems = new Hashtable();In addition to the getter setter method, the bean has a addShoppingItem() method that adds a Product object to the Map.
public void addShoppingItem(String index,Product item)
         shoppingItems.put(index,item);                 
       }The Product class has fields, such as id, name, price and getter/setter methods. The index argument passed to addShoppingItem() is the id field of the value of the Product object.
I am now desperately trying to display information of all Product objects added to the Map in a datatable.
Is this possible? Please help.

It should be possible - you will need something like
JSP/JSF code
<h:dataTable id="cart"
value="#{shoppingCart.products}"
var="product" first="0" >
<h:column >
<f:facet name="header">
<h:outputText value="product code" />
</f:facet>
<h:inputText id="productCode" value="#{id}" />
</h:column>
In your Backing bean code you will need a
Map getProducts() method
NOT the above definetely works whenreturning a List
I have seen people say it also works with a Map - but haven't tried it myself - so am not 100% sure
Post up your code & someone will help you out

Similar Messages

  • Object FIELD I_S_DATA-0AGE_NC not found. Message no. RS_EXCEPTION111.

    Hello all,
    I am executing a report based on a infocube. We recently upgraded to 7.0 and the query works ok in 3.5....when I try to run this query, the following error is displayed.
    Object FIELD I_S_DATA-******* not found
    Message no. RS_EXCEPTION111
    when I try to debug the same query in RSRT the following message is displayed.
    EObject FIELD I_S_DATA-******* not found  RS_EXCEPTION 111
    I>> Row: 22 Inc: GET_FIELD_POSITION_D Prog: CL_IM_RS_BCT_PA RS_EXCEPTION 301
    Note 924320 as we are at patch 17 for BI.
    Please throw some light, full points assured.

    Hi,
    Above issue might occur when you have Virtual Key Figures in your report. Check the below note 924320.
    might help to resolve the issue.  Also check if you have any newly added in keyfigures in the infocube and not being used in the Report.  If the newly added kefigures are not being identified in the MP do the below steps.
    1.Go to the multiprovider...chose the identification
    2. In the identification tab....the key figure should be check marked for all the infoproviders in that
    3. If not tick mark Generate the query and execute in RSRT
    check the note 924320.
    Symptom:
    When you execute a query with virtual characteristics or key figures, the system issues the following error message:
    Object FIELD I_S_DATA-<key figure> not found
    Other terms
    RSR00002, RSR_OLAP_BADI
    Reason and Prerequisites
    This problem is caused by a program error.
    Solution
    If the virtual characteristics or key figures are implemented using the enhancement RSR00002 (CMOD), implement the corrections.
    If the virtual characteristics or key figures were created directly as implementations of the RSR_OLAP_BADI BAdI, compare the source code of the INITIALIZE method with the corresponding source code example. During the call of GET_FIELD_POSITIION_D, <L_S_SK>-VALUE_RETURNNM must be transferred instead of <L_S_SFK>-KYFNM.
    Hope this helps
    Regards
    Srikanth

  • Mapping objects

    hi expects,
    can any body tell me about mapping objects .and what is use of message mapping,java mapping ,xslt mapping,abap mapping.
                                                                             thank you

    Hi Rohit,
      XI provides 3 standard ways of interface mapping between source and target.
         1)Graphical mapping
         2)Java mapping
         3)XSLT mapping
    Two more additional mapping types can be activated in XI by making changes to the exchange profile. Those two mappings are
         1)ABAP mapping
         2)XSLT mapping with ABAP Extensions
          Graphical mapping is a common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It hardly involves coding. (Exception – User defined functions).   But sometimes with graphical mapping it is difficult to produce required output. For example … text/html output, namespace change, sorting or grouping of records etc. A person comfortable with Object Oriented ABAP can go for ABAP mapping instead. One can also think of Java mapping as another option but it is a bit complex and required knowledge of Java. In such cases, XSLT mapping can be the best approach to meet the requirements.
    A few example cases in which an XSLT mapping can be used:-
    1)When the required output is other than XML like Text, Html or XHTML (html displayed as XML )
    2)When default namespace coming from graphical mapping is not required or is to be changed as per requirements.
    3)When data is to be filtered based on certain fields (considering File as source)
    4)When data is to be sorted based on certain field (considering File as source)
    5)When data is to be grouped based on certain field (considering File as source)
    >>>Advantages of using XSLT mapping
    1)XSLT program itself defines its own target structure.
    2)XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.
    3)XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.
    4)File content conversion at receiver side can be avoided in case of text or html output.
    5)Multiple occurrences of node within tree (source XML) can be handled easily.  
    6)XSLT can be used in combination with graphical mapping.
    7)Multi-mapping is also possible using xslt.
    8)XSLT can be used with ABAP and JAVA Extensions.
    >>>Disadvantages of using XSLT mapping
    1)Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).
    2)Interface mapping testing does not show proper error description. So errors in XSLT programs are difficult to trace in XI but can be easily identified outside XI using browser.
    3)XSLT mapping requires more memory than mapping classes generated in Java.
    4)XSLT program become lengthier as source structure fields grows in numbers.
    5)XSLT program sometimes become complex to meet desired functionality.
    6)Some XSL functions are dependent on version of browser.
    Regards,
    Prasanthi.

  • Mapping of field with MinOccurs 0 in SAP XI 2.0 SP5

    Hi,
    Our Scenario is
    File -> Adapter -> XI -> Idoc Adapter -> SAP
    We are trying to push IDoc and the mapping tool is giving an error. I am providing the error that I am getting.
    The snippet of the XSD for the IDoc is given below:
       <xsd:element name="E1FIKPF" minOccurs="1" maxOccurs="1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                            <xsd:annotation>
                               <xsd:documentation>FI Document Header (BKPF)</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                               <xsd:sequence>
                                  <xsd:element name="BUKRS" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Name of global company code</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="6" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BELNR" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Accounting Document Number</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="10" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="GJAHR" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Fiscal Year</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:pattern value="\d+" />
                                           <xsd:maxLength value="4" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BLART" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Document type</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="2" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BLDAT" minOccurs="0" type="date" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Document Date in Document</xsd:documentation>
                                     </xsd:annotation>
                                  </xsd:element>
                                  <xsd:element name="BUDAT" minOccurs="0" type="date" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Posting Date in the Document</xsd:documentation>
                                     </xsd:annotation>
                                  </xsd:element>
                                  <xsd:element name="MONAT" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Fiscal Period</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:pattern value="\d+" />
                                           <xsd:maxLength value="2" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
    In this snippet as can be seen the minOccurs for the BUKRS field is 0. But if I do not map the field its giving me following error.
    /usr/java131/bin/javac -encoding UTF8   -classpath .:./system-lib/boot.jar:./system-lib/jaas.jar -extdirs ./additional-lib:./services/deploy/work/applications/ExchangeRepository -d /tmp/9_53_35_27_7_2004 /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java
    /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java:303: ';' expected
    a117.gotoNextContext();tmpValAtr = a117.getValue();if (!tmpValAtr.equals(SUPPRESS)) handler.addAttribute("SEGMENT", tmpValAtr);a117.gotoNextValue();if (!__deflt)a115.gotoNextValue();No mapping for value/FIDCCP02/IDOC/E1FIKPF/BUKRS
                     ^
    /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java:303: cannot resolve symbol
    symbol  : class No 
    location: class com.sap.xi.tf._MsgMapGcentre2Fidcc2_
    a117.gotoNextContext();tmpValAtr = a117.getValue();if (!tmpValAtr.equals(SUPPRESS)) handler.addAttribute("SEGMENT", tmpValAtr);a117.gotoNextValue();if (!__deflt)a115.gotoNextValue();No mapping for value/FIDCCP02/IDOC/E1FIKPF/BUKRS
    ^
    2 errors
    Compilation error
    Any one having any guesses on why this error is coming. I know this error would vanish if we map the field by an Empty Constant. But then it would start giving error for the next field until all the non mandatory fields are mapped.
    If however I go ahead and map all the fields then the output structure generates all the segments the maxOccurs times. i.e. if a segment is occuring 999 times then that segment is repeated that many time in the output whereas I never needed that segment in the output.
    Can any one suggest as to why this is happening. Am I doing some thing wrong or this is a problem with Mapping Editor in XI 2.0 SP5.
    Ashish

    Hello Ashish,
    this is a bug in the mapping tool. You have to apply the note  730081. It says:
    Symptom                                                                           
    After you import XI20 Support Package 04 or Support Package 05, you can           
    no longer change and regenerate the message mapping (graphic mapping              
    tools).                                                                           
    The following error is displayed during activation or generation: No              
    Mapping for value.......                                                          
    Other terms                                                                       
    Graphic mapping tools, SAPINTSER05, no mapping vor value                          
    Reason and Prerequisites                                                          
    This problem is caused by a translation error.                                    
    Solution                                                                          
    The translation error has been corrected.                                                                               
    As of patch level 1, the correction is provided in the SAPINTSER05_1.sca          
    archive of the INTEGRATION Services 2.0 software component and, as of             
    patch level 2 for Support Package 5, it is provided in the                        
    SAPINTBUI05_2.sca archive of the INTEGRATION BUILDER 2.0 software                 
    component. The archives are available on the SAP Service Marketplace at:                                                                               
    http://service.sap.com/patches                                                                               
    SAP EXCHANGEINFRASTRUCTURE/SAP EXCHANGEINFRASTRUCTURE 2.0                         
    Binary Patches/INTEGRATION SERVICES 2.0/OSINDEP and                               
    ..... /INTEGRATION BUILDER 2.0/OSINDEP                                            
    Import the archives using SDM.                                                                               
    The mapping must be recompiled after deployment.                                                                               
    Regards Franz

  • To display a VARCHAR field in database as select boolean checkbox

    Hi,
    i have a table in database having a VARCHAR2(1) field named IsActive with value 'Y' or 'N' , I need to display this field as select boolean check box in the JSF page
    using ADF Entity Object and ViewObject. We have followed the following method for displaying this field as select boolean check box.
    1. Changed the datatype of the IsActive field in the Entity Object as Boolean and the database column type as Varchar2(10)
    2. we have edited the query using case when IsActive='Y' then 1 else 0 end .
    3.and converted the IsActive inputtext to select boolean checkbox.
    Thus we where able to display this field as select boolean check box but the problem is that we where not able to insert the data as 'Y' or 'N' using this method.
    Please help us whether the method we are following is correct or is there any other method to insert and display the similar fields like IsActive as select boolean check box in ADF
    Thanks in Advance
    Anitha

    Anitha,
    Create a transient boolean attribute on your EO. Write the getter to return true/false if the real attribute is Y/N. Write the setter to do the converse. Bind the transient attribute to the checkbox.
    John

  • Displaying new custom field in

    hi all expert again!
    i created a new field in order.jsp. but i have no idea how to display this new field with value in orderstatusdetail.jsp, which user click on history link on the right side. this value should be collected from FM or extension table? can you let me know which java action to be interrupted to add this in? 
    can you all guide me please?
    thanks!
    appreciated your help.
    Shanti

    Shanthi,
    1. Create a custom action ZMaintainBasketDispatcherAction. Extend the MaintainBasketDispatcherAction. In this write logic for the customerExitDispatcher method to forward to a custom action when the simulation is done.
    Ex: String actionSimulate = (String)parser.getRequest().getParameter("simulatepressed");
              if (actionSimulate!=null && actionSimulate.length() > 0) {
                   zforwardTo = "zsimulate";
    2. In config.xml add a new entry for zsimulate and provide another action class like zsimulationaction.java
    3. Here read the value of the field from the request and set it to the extension data of header/item based on the field location in order.jsp.
    Ex: preOrderSalesDocument.getHeaderData().addExtensionData("obj","value");
    4. Create a custom backend object for Order / Quotation. There, create instance for the ZCreateStrategy which will extend the CreateStrategy.
    5. You will have a user exit available performCustExitBeforeR3Call where you can read the extension data that you set earlier
    Ex: document.getHeaderData().getExtensionData("obj")
    6. YOu can pass this data to backend FM which will be SD_SALESDOCUMENT_CREATE.
    7. After function module is executed. implement the user exit performCustExitAfterR3SimulateCall
    8. Again set the value back to the extension object.
    document.getHeaderData().addExtensionData("obj","value")
    9. Now in the ordersimulate.jsp read the extension obj and display it.
    Hope this helps.
    Pradeep

  • Missing mapping for field error

    Here is the set up:
    Person extends Party using InheritanceType.JOINED
    Household extends Party_Relationship using InheritanceType.JOINED
    Household has a Set of Persons mapped One to Many unidirectional
    When I use PrimaryKeyJoinColumn on the Person and/or Household to rename the column say to PERSON_POID instead of PARTY_POID and when adding Persons to the Household Set the following error occurs:
    oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: Missing mapping for field [PERSON.PARTY_POID].
    Descriptor: RelationalDescriptor(com.dhsnet.cms.domain.Person --> [DatabaseTable(PARTY), DatabaseTable(PERSON)])
    What am I missing? If I do not use the PrimaryKeyJoinColumn mapping this error does not occur. I am stumped! Any help is greatly appreciated.
    Here are the mappings:
    @Entity
    @TableGenerator(name="party", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party", allocationSize=1)
    @Table(name="PARTY")
    @Inheritance(strategy=InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_TYPE")
    public abstract class Party extends AbstractEntity{
    @Entity
    @DiscriminatorValue("PERSON")
    @PrimaryKeyJoinColumn(name="PERSON_POID")
    public class Person extends Party{
    @Entity
    @Table(name="PARTY_RELATIONSHIP")
    @TableGenerator(name="party_relationship", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party_relationship", allocationSize=1)
    @Inheritance(strategy = InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_RELATIONSHIP_TYPE", discriminatorType=DiscriminatorType.STRING)
    public abstract class PartyRelationship extends AbstractEntity {
    @Entity
    @DiscriminatorValue(value="HOUSEHOLD")
    @PrimaryKeyJoinColumn(name="HOUSEHOLD_POID")
    public class Household extends PartyRelationship {
    On the Household Object:
    @OneToMany
    @JoinTable(joinColumns = @JoinColumn(name="HOUSEHOLD_POID"),
    inverseJoinColumns = @JoinColumn(name="PERSON_POID"))
    protected Set<Person> getMembers() {
    return members;
    }

    This looks to be the same/related issue that has already been entered. See
    https://glassfish.dev.java.net/issues/show_bug.cgi?id=1586
    The alternative like you mentioned, is to not use a PrimaryKeyJoinColumn to rename the column in the joined inheritance case.
    Cheers,
    Guy

  • Errors occurred during extraction of UD Connect object field- table not fou

    Hi,
    In BI 7.0 system I can't select any UD Connect source object on the "Extraction" tab page of  the DataSource maitenance screen. If I type the table name (which is "UDITEST") into it and then hit the "Proposal" tab page, I get the following error:
    Errors occurred during extraction of UD Connect object field-list: Errors occurred during extraction of UD Connect object field-list: UDCADAPTERROR::RSSDK|200|Table: uditest not found|
    Message no. RSDS_ACCESS036
    Analysis:
    1) We have tested the BI JDBC Connector using the URL:
    http://xxxabcdev03:50000/TestJDBC_Web/TestJDBCPage.jsp
    We got the list of tables displayed (UDITEST table is also displayed)=> connector is configured properly.
    2) When we are trying to configure the Source system in rsa1->modelling->source systems-> UD connect -> create,
    a) RFC Destination: We are using an RFC Connection that is already in place of type 'T'   between the J2EE engine and BI ABAP engine. We tested this connection from SM59 -> TCP/IP connections and it is working fine.
    How do we test whether the RFC between J2EE engine and BI ABAP engine is a 2 way RFC connection?
    b) Logical System Name: We have manually typed in free text 'UDC_local'. Could you please clarify do we need to type in manually or select the logical system name from the F4 help?
    Which logical system name should we enter here exactly.. pls clarify.
    Do we have a seperate logical system name for the J2EE server...?
    c) Type of Connector : JDBC
    d) name of connector: SDK_JDBC
    e) Source system name: SDK_JDBC
    f) Type and Release : blank
    Thanks to any answers in advance!
    Best regards,
    Syam

    Hi,
    Tried to give the Logical System Name in uppercase ie: UDC_LOCAL.
    Now, when I click on the F4 of 'UD Connect Source Object' in Extraction tab, I get the message as below:
    "Extraction of existing UD Connect data source objects".
    But no list of tables is being displayed. When I entered the table name (UDITEST) manually, it gives the same error as :
    " Errors occurred during extraction of UD Connect object field- table not found"...
    Could you please specify from where is the UD Conenct source object fetched from?
    Rgds
    Syam

  • Mapping authorization field IDs to field names (description)

    Hello Folks,
    I am trying to map the authorization field (technical ) names to field descriptions (long names)
    Backgroud: I do not have enough input from the functional team yet on restrictions at data level. I have pulled out a list of orgfield values from USORG. Now i am trying to map the other authorization fields to their descriptions.
    Table AUTHX only maps the field to the data element and while table DD04V lists the long field names for a given data element, i need to drill down before i get the description and thats for each fieldname / data element.
    Question: Is going through SU20 for each object the best way to map the field description or is there a better way to map the auth field IDs to their description. And i mean for multiple input as there are scores of auth fields...
    Regards,
    Prashant

    Thanks Jurjen, that helped a lot.
    I downloaded the authorizations into an excel tough, (did not use uncoverted format).
    Solution in Excel: Since there are a lot of blank cell values
    -- name the columns clearly
    create a pivot table
    In the pivot select only the field technical name and field description columns
    For some reason when the other columns are selected, everything is going blank for values
    I am sure others are better with Excel than i am
    Regards,
    Prashant

  • What values are possible for a specific object/field

    Hi everyone,
    I am trying to do the following
    Pull a list out of the system that would provide me with value's description for a specific authoirsation object / field
    I have tried SE16 > AGR_1251 > one of my roles
    I am getting the role, object, field, low and high values
    for example
    myrole - M_FORECAST - ACTVT - 03
    What I have missing is the English description of what "03" is. for example "Display"
    A 03 for a field may not always have the same meaning for different objects
    Alternativly can I pull a list somewhere of the potential values and their description for a specific Authorization Object / Field combination?
    Thank you
    Coco

    Please go through the following Tables:
    TACT : Contains the Text Descriptions of all Activities (for e.g. 01= Create/ Generate, 02= change etc.)
    TACTZ : Contains the Authorization Object specific Activities.
    TOBJ  : Description of Authorization Objects
    TOBJT: Text Description of Authorization Objects
    AUTHX:  Details of Fields
    TPARA:  Parameter Ids of Fields
    There are many more... but these are of help as per your question.
    Regards,
    Dipanjan

  • How can I avoid displaying specific extended field from a specific template

    Hi,
    I have created two extended field in Rfx page . I have 6   Rfx templates  . These two extended fields are appearing in all the 6 templates . I want to display the extended fields for some specific templates . How can I do it ?
    Best Regards
    Swastik

    Hi Swastik,
    Your requirement is very much possible by Page Customization.
    In Page Customization when you add the field for Hidden = yes
    there are more attributes : Dimension Field , Dimension Field Type, Dimension Value
    In this put
    Dimension Field = DISPLAY_NAME
    Dimension Field Type = Object Referance
    Dimension Value = click search help to select your template.
    Create this for each and every Template you reqiure to Hide the field.
    Hope this solves your case.
    Regards,
    Vaibhav

  • List of Map objects with html:options collection

    Hello All,
    I'm trying to get an arraylist of map objects to display dynamically as a dropdown select with html:options collection. I've spent hours on this and I haven't been able to get it working. Any ideas as to how this is done?
    Thanks,
    James

    An arraylist of Map objects?
    What is it that you want to show up in the dropdown box - all the name value pairs included in all the maps of the list?
    Assuming with a Map the "key" is what you want submitted and the "value" is what to display to the user
    Definitely sounds like a double loop structure is required. One to loop through all the maps. Another to generate all the options in each map.
    This one does it at the basic level of things
    <c:forEach var="map" items="${listOfMaps}">
      <c:forEach var="entry" items="${map}">
        <html:option value="${entry.key}">${entry.value}</html:option>
      </c:forEach>
    </c:forEach>The following might also work.
    <c:forEach var="map" items="${listOfMaps}">
      <html:options collection="map" property="key" labelProperty="value"/>
    </c:forEach>Cheers,
    evnafets

  • OXM mapping final fields

    Hi,
    I have a question on mapping a final object field in an object-xml mapping project (Toplink 10.1.3). The field is final because the field is supposed to be immutable.
      public final class A {
        private final String code;
        private Integer score;
      }In the Toplink Workbench, when i try to map class A, only the score field can be mapped (the score field does not show up in the editor). When i remove the final keyword from the code field, i can map this field.
    In an object-relational project i can map a final field with no problems, why can't i map it in an object-xml mapping project?
    Greetings,
    Jerry
    Message was edited by:
    meursj

    Marking an attribute as final seems like a very odd thing to be doing. Doesn't that mean that you cannot assign a value to the variable, not sure it would be possible to map it then? Does the O-R project just let you map it, or does it work?
    <p>
    -- James : EclipseLink

  • Displaying TPM header fields on assignment block - CGPL/IBOM Framework

    Hello Folks,
    Our system is on CRM 7.0. The requirement I have at hand is to display 2 addtional fields 'Status' and 'Tactic' from the Trade Promotions Header on the 'Trade Promotions' assignment block on the Agreements Overview page.
    UI Component - agroe
    View - AGROE/TradePromotion
    These fields are already existing on the Trade Promotion Overiew page and are part of the TPM header.
    What I did till now is,
    1. Used trasnaction CRMC_MKTIB_IL_CUSTOM and under application CRMD_MKTPL changed the attribute structure of the Node MKT_AGR_TPM from CRMS_MKTPL_IB_AGR_TRADE to ZCRMS_MKTPL_IB_AGR_TRADE. I have copied ZCRMS_MKTPL_IB_AGR_TRADE from the original structure and added two new fields for STATUS and TACTIC.
    2. On the View configued the two new fields.
    But the values are not showing up on the assignment blocks.
    This query I guess boils down to the CGPL/IBOM Framework. Could someone please suggest the steps I need to enable the two fields on the assignment block? If anyone has pointers to information on CGPL/IBOM Frameworks please also share the same.
    Thanks & Regards,
    Gaurav
    Edited by: Gaurav Walia on Oct 18, 2009 12:24 PM

    Hi Gaurav,
    Initially I thought that the issue can be that you just replaced the Assigment structure, but the Model Collection, Item and Persistency Class methods may still be using the same structure CRMS_MKTPL_AGR_TRADE in the methods. But that is not the case as they are mostly not redefined.
    (Anyhow, you have to debug methods FETCH_DB,MOVE_DB_STRUCT_2_ATTR, MOVE_ATTR_2_DB_STRUCT of class
    CL_CRM_MKTPL_ASSIGN_TPM_PERS to validate the dataflow.)
    Did you maintain the same in IBOM customizing?Check TCODE;CRMC_MKTIB_IL_CUSTOM.
    The IBOM Collection Class CL_CRM_MKTPL_IB_AGR_TPM_COLL is using structure CRMS_MKTPL_IB_AGR_TRADE in some of the methods.All these things need to be taken care of.
    Personally, I would have tried to create a new relation with same cardinality and key fields and tried to map the same onto UI,as substituting standard IBOM structures and classes may create issues for me in future.
    Regards,
    Masood Imrani S.

  • Regarding Goto- Display data object- Structure editor

    While debugging:
    did anyone found an option
    Goto->Display data object->Structure editor 
    as this is present in 4.6c but i dint find in 4.7
    right now i am only download the content of internal table

    you should give a name to your elements in TYPE definition, so that you are able to distinguish fields having the same name
    if you have several elements with same definition, they will contain fields having the same name

Maybe you are looking for