AET Generated field values are not saved.

Hi Gurus,
I have created two AET fields on the screen (marked below) and that should store values in table CRMD_CUSTOMER_H. When I create a new service request and enter the values and save, AET field values are not saved. Again, when I edit the same service request and enter the values and save , AET field values are saved on the database.
While  debugging  I found that, relationship BTHeaderCustExt does not exist for the first time and second time onward its appearing. Due to this, data is not being saved at first time (Line no 27 : current is empty).
When tried to create realtionship using create_related_entity , it throwing exception cx_crm_genil_model_error.
Please advice me the soution for the same.
Regards,
Anand

there should be a context node at your view level. Please check ON NEW FOCUS method is implemented or not.
If not, you can implement that method with below code.
    DATA: lv_collection TYPE REF TO if_bol_bo_col,
          entity        TYPE REF TO cl_crm_bol_entity.
*   get collection of dependent nodes
    entity ?= focus_bo.
    TRY.
        lv_collection = entity->get_related_entities(
               iv_relation_name = 'BTHeaderCustExt' ).
        IF lv_collection IS NOT BOUND or lv_collection->size( ) = 0.
          IF entity->is_changeable( ) = ABAP_TRUE.
            TRY.
                entity = entity->create_related_entity(
                 iv_relation_name = 'BTHeaderCustExt' ).
              CATCH cx_crm_genil_model_error cx_crm_genil_duplicate_rel.
*               should never happen
            ENDTRY.
            IF entity IS BOUND.
              CREATE OBJECT lv_collection TYPE cl_crm_bol_bo_col.
              lv_collection->add( entity ).
            ENDIF.
          ENDIF.
        ENDIF.
      CATCH cx_crm_genil_model_error.
*       should never happen
        EXIT.
      CATCH cx_sy_ref_is_initial.
    ENDTRY.
    me->set_collection( lv_collection ).

Similar Messages

  • Custom Field values are not saved. when MPP imported from another instance.

    Hello Mate-
    Currently I am merging one small instance (I2) of PWA in our corporate instance(I1). as the corporate instance is huge, we are doing manual merge of groups, securities, users, custom fields etc. also downloading the MPP as xml from I2 and then planned
    to publish from I1.
    There are few project level custom fields which are being used in MPP. and those fields may have formulas too.
    I created same custom field in crporate environment(I1) but while trying to open the projects in our corporate environment(I1), the project custom fields are gone.
    Could you please guide me here, I am lost. I can not do a data base migration ans it would override all data from I1 instance so need to do it manually.
    Many thanks
    Deb
    Dev EPM Consultant

    Hi
    You may not be able to do this as the custom field GUID's are different in both the instance.
    You may write a macro to copy the custom field data from one to another one
    refer :http://msdn.microsoft.com/en-us/library/office/ff867798(v=office.15).aspx
    --Happy Troubleshooting
    Thanks --Ajith

  • Numc characteristic values are not saving in AUSP

    Hi All,
                  I am unable to save numc/Date type characteristic values in AUSP table using CL20N tcode. i am able to retrive CHAR values from AUSP table but NUMC / DATE  values are not saving in this table.
    Regards,
    Praveen

    Hi Praveen,
    If you are fetching ATINN from AUSP table, then you need to use conversion routine..
    Call the FM  CONVERSION_EXIT_ATINN_* & you will get the converted value.
    Thanks,
    Sharath

  • Custom field values are not storing in the data base

    Hi Friends,
    We have created one  Custom field called   ZZ_APPROVER in Rfx Header , we have included this field in the below  stuctures
    1.INCL_EEW_PD_HEADER_CSF_BID
    2.INCL_EEW_PD_HEADER_CSF
    The data type of this field ( ZZ_APPROVER ) is CHAR and the length is 1 .  we have given 2  fixed values in Value Range
    1 -
    X+2 Approver
    2 --- Provisional Approver
    so when we select either 1 or 2 ( in Drop Down ), its displaying properly on RFx Screen, but when we try save this document the values are not strong in the data base.
    Can any one give me idea why its not stroring in the data base
    Thanks in Advance
    Kumar Srini

    Hi Ganapathy,
    A Record is created in table BBP_PDHSC , for other z fields, the values are stroing , but for this field ( ZZ_APPROVER ) [ drop down list ], the value is not stroring
    Thnx
    Kumar Srini

  • Userexit in VA41. Changes to field aufnr are not saved

    Hello,
    I have to fill the field xvbap-aufnr with the field vbeln during saving a order (contract) in VA41.
    I tried to use "userexit_save_document" and "userexit_save_document_prepare".
    The problem is that in userexit "userexit_save_document_prepare" the field vbeln is not field because we use an internal num range.
    In userexit "userexit_save_document" the vbeln is filled but I am not able to change the entry of xvbap-aufnr. I can change the field value but my changes are not written to the data base. Why ????
    Thanks

    If the number range for VBELN is internal, you cannot change it through user exit.  Changes made to structure fields in USEREXIT_SAVE_DOCUMENT will not have any effect.

  • Tcode VL10G  quantity field values are not displaying ?

    Hi All,
    In TCODE - VL10G - Sales and Purchase Order display  -
    After passing the input values it displays the results with minimum fields in the ALV layout.  When I add Quantity fields to the layout - WMENG -Order quantity and any other Quantity related fields it is not displaying values in the results. Even though the values exists in the table.
    Can anyone tell me what could be the reason? In the input screen u2013 passing the values in USER ROLE tab has anything related to this issue?
    I tried to debug and could not find code related to VBEP table or other table which has quantity fields.
    Please let me know if any ideas? Thanks in advance.

    Hi,
    We are using - SAP ECC 6.0 system.
    Any hint how I can solve this?
    Thanks.

  • Use ComboBox TableCellEditor  - values are not saved to the table model

    Hi,
    I got a combobox cell editor that uses to edit one of the columns.
    And i got an ok button that uses to collect the data from the table and save it to the db.
    In case i started editing of a cell and the editor is still displayed- if i will click on the button the data that will be colected from the table model will not contained the updated value in the cell editor.
    In this case the user think his changes were saved but the last updated field is not updated.
    Is this a bug i got in the cell editor or this is the normal behaviour?
    Can it be fixed? (So that if the cell is in the middle of editing the value that will be saved is the last value that was selected).
    public class PriorityCellEditor extends StandardComboBox implements TableCellEditor {
        private boolean isEditMode=false;
         * A list of eventlisteners to call when an event is fired
        private EventListenerList listenerList = new EventListenerList();
         * the table model
        public StbAreaClusterPriorityCellEditor(boolean isEditMode) {
            super(StbAreaMapper.clustersPriorities);
            setEditMode(isEditMode);
            setEditable(false);
            this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
            setAlignmentX(Component.LEFT_ALIGNMENT);
        public boolean isEditMode() {
            return isEditMode;
        public void setEditMode(boolean editMode) {
            isEditMode = editMode;
            setEnabled(editMode);
        public Component getTableCellEditorComponent(JTable table, Object value,boolean isSelecte, int row, int column) {
            int selectedIndex;
            if (isSelecte) {
                setForeground(table.getSelectionForeground());
                setBackground(table.getSelectionBackground());
            } else {
                setForeground(table.getForeground());
                setBackground(table.getBackground());
            if(value instanceof String){
                selectedIndex=StbAreaMapper.mapGuiPriorityDescToGuiCode((String)value);
                setSelectedIndex(selectedIndex);
            return this;
        public void cancelCellEditing() {
            fireEditingCanceled();
        public Object getCellEditorValue() {
            return getSelectedItem();
        public boolean isCellEditable(EventObject anEvent) {
            return isEditMode;
        public boolean shouldSelectCell(EventObject anEvent) {
            return false;
        public boolean stopCellEditing() {
            fireEditingStopped();
            return true;
         * Adds a new cellEditorListener to this cellEditor
        public void addCellEditorListener(CellEditorListener l) {
            listenerList.add(CellEditorListener.class, l);
         * Removes a cellEditorListener from this cellEditor
        public void removeCellEditorListener(CellEditorListener l) {
            listenerList.remove(CellEditorListener.class, l);
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingStopped() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying
            // those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingStopped(
                            new ChangeEvent(this));
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingCanceled() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this));
    }

    Try this
    yourTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • Field values are not erased when I change content types.

    On an SP2010 site I created 2 Site Columns  TextColumn1 and  TextColumn2 (both Single Line of text).
    I added Two Content Types ContentType1 and ContentType2 (both derived from Item).
    I created a list and enabled content types. I Added ContentType1 and ContentType2 to the list.
    I configured the devfault view to show TextColumn1 and  TextColumn2.
    I added an Item of ContentType1 and for TextColumn1  added the value 'c1'
    I edited the item and changed the content Type to ContentType2 and entered a value of c2 for TextColumn2.
    The default view still shows the value of 'c1' for TextColumn1 even though the item is of content type ContentType2 which does not have this field defined.
    How do I correct this?

    If I'm understanding your question correctly, this is expected behavior. The item still has both the content types applied to it. The columns are included in the view. So Any values in those columns for that item will be displayed.
    You could create views for each content type.
    You could also look into changing the default content type.
    Not sure if this helps because I'm not sure I understood the problem.

  • PDF file opening with blank fields - the field values are not populated.

    Recently, our users have been facing this issue, "data not populating in the PDF fields".
    We are using FDF in PHP to load the PDF templates and apply the data to the PDF fields. This works fine on many adobe versions but showing empty fields in few adobe versions. For e.g It worked fine with Adobe Reader 10.1.3 but did not work in 11.0.
    This has been critical now as it is showing empty fields in IE11. Can you please help me overcome this issue.
    Thanks!

    All I can suggest is to try the latest Reader versions, i.e. 10.1.11 or 11.0.8.

  • Bdc - values are not saved in database

    hi mates
    im have recorded the transaction for XK01 and im using batch input session. when i process the session my transactions are failing
    can any body help me
    regards
    mano

    Hi,
    Just make sure that all the data fields are replaced with the value fields i.e. internal table fields.  and check whether u have placed the code  for save.
    PERFORM F_9000_APPEND_BT USING:
        'SAPLCJWB'           '0901'                'X',
        'BDC_OKCODE'         '=BU'                 ' '. "SAVE
    FORM F_9000_APPEND_BT USING IV_FNAM LIKE GT_BT-FNAM
                              IV_FVAL TYPE ANY
                              IV_DYNBEGIN LIKE GT_BT-DYNBEGIN.
      CLEAR GT_BT. "Clear the field string...
      IF IV_DYNBEGIN = 'X'.
        GT_BT-PROGRAM  = IV_FNAM.
        GT_BT-DYNPRO   = IV_FVAL.
        GT_BT-DYNBEGIN = 'X'.
      ELSE.
        GT_BT-FNAM     = IV_FNAM.
        GT_BT-FVAL     = IV_FVAL.
      ENDIF.
      APPEND GT_BT.
    ENDFORM. "End Of f_9000_append_bt

  • Visio 2010 - Shape Data Fields Are Not Saving

    I am having a problem with a number of shape data fields which are not saving data that has been entered into it, whether by entering it through the "shape data" or "define shape data" dialog boxes, or by editing the "shape
    sheet". 
    All data fields appear to save normally while file is open, it remains as entered.  However, when file is closed and later reopened select data fields do not retaining data correctly.  Some retain nothing (null), or revert back to a "default"
    value, see below for a couple examples:
    Rack Units:  Want to enter data as 1U, 2U, etc. ... in some cases it will save it as entered while in other cases it reverts to "1 RU", "2U", etc.
    Room:  Enter the data as I want it stored, most of the time it appears to come back empty, there are some shapes which will retain as entered.
    Comments:  Fails to retain any data
    I have looked at a number of reasons to explain why, whether the problems occur with stencils is supplied by Microsoft, a vendor, or were custom created.   Looked into whether it might have to do with a particular vendor's stencils/drawings
    but I have a number of Cisco drawings where some save those fields as entered while others do not.  I believe it could be a setting within the stencil preventing it from saving the data as entered, enabled in some cases and not in others.
    I have checked "Protection" under the "Developer" tab, but nothing appears to be set to prevent editing/storing data entered. 
    Is there some setting(s) or field(s) somewhere that I can look at to allow this data to be saved as entered?
    Is there a GLOBAL setting that can be set once within a file?
    Thank you in advance for your time to assist me in fixing these problems. Have a great day!
    MJ_NWE
    MJ

    >Can I build logic so that they can't fill in a field unless the previous field has been filled in?
    It's theoretically possible to do this (e.g. each field has an action
    of removing read-only on the next). It's considered extremely bad form
    design, because people don't always fill in fields in the order
    specified. If you watch people with a form they fill in their name,
    address, other easy stuff; then they go back for the harder stuff.
    They may want to save a form because one piece of information needs
    research.
    What you might like to consider is a large splash "FORM INCOMPLETE" in
    Red or whatever, which vanishes when all the fields are completed.
    Aandi Inston

  • Text fields populated from lov mapping are not saved to database

    Hi Everyone,
    I'm having a wierd problem. My requirement is to autopopulate two text fields field 2 and field 3 when a value is selected from lov in field1 and save all the values to database on click of a submit button.
    Using lov mapping i'm able to populate field 2 and field 3 with corresponding values based on the value selected in field1. And also field2 and field3 should be in the readonly mode so that user cannot change the value.
    So to make the fields readonly i have changed the property of readonly to true for field2 and field3. But if I change the readonly property, the values for field2 and field3 are not being saved to database.
    The values are getting saved to database only when readonly = true for messageTextInput item type or if the item type is a form value.
    I also tried disable = true, which also didnt work.
    I tried to debug by writing some sop statements in PFR, but these statements also returned null for pageContext.getParameter("field2") etc;
    Can anyone please tell me how to solve this problem?
    Thanks
    Sunny

    Hi Gyan,
    I forgot to mention that , I also tried messageStyledText. Which also didn't work. I wanted to use vo.setAttribute as my last option, but i wanted to understand why the values are not saved to database when the text item is showing the values on the page.
    Thanks
    Sunny

  • While Creation Of SaleOrder Char Values are not getting saved.(V C)

    Hi SAP gurus,
    One of my client can able to create a saleorder but when we go and see in VA03 Display mode,we found Charactrestic values getting miised out.What could be the probale reasons.
    Note: I Have stimulate the required combination as per my client requirement in CU50,here i can able to indentify the Green Sign,but While Creation Of SaleOrder Char Values are not getting saved.
    Awaiting for your valuable reply.
    Cheers,
    Kumar.S

    Kumar ,
    If you assign values in classification view or configuration profile  they will become default for the product, and it willnot be changed in sales order.
    another thing if the item category is incorrect you will not get the configuration pop up at all .
    problem what i understand from your thred is at the time of sales ordeer creation there is some inconsistances in the configuration , may be some condition is not fullfilling.
    If in CU50 the result shown are error free, same configuration should owrk properly in sales configuration process, please again try to create it in sales order with same value assignment also check all the messages.
    see the result of configuration before saving the sales order , i hoep it will work for you.
    I am assuming all the things from SD are properly configured ie item catageory, varient pricing etc.
    Check and revert back.
    Regards
    Ritesh

  • The types of the parameter field and parameter field current values are not compatible.----

    HI,
    I am attempting to set report parameters in my .jsp code via URL parameters.
    I am able to set the report name, server connection dynamically however when attempting to set the Parameters I receive:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField
    The parameter on the report is a String Type, named for this example p1.
    The value that p1 represents is LERAD
    My code:
    String stringValue = request.getParameter("p1");
    CRJavaHelper.addDiscreteParameterValue( clientDoc, "","p1", stringvalue);
    returns the above mentioned error.
    I have tried:
    String stringValue = (String)request.getParameter("p1");
    which returns the above error
    And;
    String stringValue = new String(request.getParameter("p1")).toString();
    which returns
    java.lang.NullPointerException
    java.lang.String.<init>(Unknown Source)
    org.apache.jsp.callReport_jsp._jspService(callReport_jsp.java:105)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I notice that the CRjavaHelper.java declares this addDiscreteParameterValue as accepting an Object type for the newValue.
    Any ideas???

    Hi,
    nevermind.
    case sensitivty strikes again.
    my URL param was P1 ( case sensitive)

  • One or more field types are not installed properly. Go to the list settings page to delete these fields. nativehr 0x81020014 /nativehr nativestack /nativestack

    Hi ,
    I am working in sharepoint 2013, This is a custom timer timer Execute method where i am moving a document item from one library to other once its expired,it was running fine and suddenly giving following error:-
    One or more field types are not installed properly. Go to the list settings page to delete these fields.<nativehr>0x81020014</nativehr><nativestack></nativestack>
    StackTrace = "   at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)\r\n   at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName,
    String bstrViewName, String bstrView...
    I have filled all the meta data(site column) for the item but still same error, Please help me out as i have no clue why it is giving this error
    public override void Execute(Guid targetInstanceId)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(sourceUrl))
    using (SPWeb web = site.OpenWeb())
    //gets the document lib
    SPList listFrom = web.Lists[sourceList];
    //gets the expired documents items
    SPQuery query = new SPQuery();
    query.ViewFields = "<FieldRef Name='Expiration_x0020_Date'/>";
    query.Query = @"<Where><Leq><FieldRef Name='Expiration_x0020_Date'/><Value Type='DateTime' ><Today /></Value></Leq></Where>";
    SPListItemCollection items = listFrom.GetItems(query);
    //if expired items found
    if (items.Count > 0)
    SPFile oFile = null;
    foreach (SPListItem item in items)
    string strfile = item.File.Name;
    oFile = web.GetFile(sourceList + "/" + strfile);
    //oFile.CopyTo("Archive/" + strfile);
    oFile.MoveTo(destinationList + "/" + strfile);

    Hi,
    I think the issue is related to the internal name of the Expiration Day.
    In the caml query code lines, we should use the right internal field name to retrieve and filter the list items.
    To avoid such mistake, we can use the CAML Designer tool to generate the caml query code.
    We can download the tool here: http://www.camldesigner.com/?p=594
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • On Demand Application Process not working on IPad or IPhone

    I have application processes that use AJAX to refresh my select list values (see code below). They all work fine on normal devices, but they do not populate at all if I try from an IPad or IPhone. Any ideas? HTML Form Element Attributes: onactivate="

  • Cannot print a web page that prints fine in IE9

    I'm trying to print a web page in Firefox, but when I do the print preview it has web info at the top of the page but the rest is blank, the second page displays just fine, then all the other pages behind it are completely blank. If I try to print a

  • IDVD won't burn

    So iDVD refuses to burn the disc. Up until it tells us to insert a recordable DVD, everything is fine-then when we insert a recordable DVD, it takes it for a few seconds, then spits it back out without any kind of reason whatsoever. Help?

  • I want to download and install Adobe Camera Raw 7.1.

    I have Photoshop CS5. I want to download and install Adobe Camera Raw 7.1. I get a message saying I need Application Manager. when i down load Application Manager I get a message I need Support Advisor. When I go to Support Advisor I get a message Su

  • Sharing albums and keywords

    I am attempting to share an album over a lan and would like to use keywords, titles, etc. so that the other users can also search the photos. The titles are showing up but the keywords aren't showing up on the other computers. Is there something I ne