Must not modify the datatype of a mapped attribute

Hi!
I have an inputfield in my WD with extended value help (countryKey and CountryName, coming from R/3). The selected country should be passed to a bapi import parameter mapped in a model, but the problem is that an exception occurs stating that I cannot change the data type of the context attribute because it is mapped to a model.
How is this usually done?
Thanks,
faB
ContextException: AttributeInfo(SearchView.Iv_Land1): must not modify the datatype of a mapped attribute

Hi,
1. Create sub-node under your model node with cardinality 1..1 (non-singleton used in sample below)
2. In this sub-node create calculated attribute with the same primitive type as desired attribute has (say, string).
3. In setter / getter write code that will modify original attribute:
/* getter */
return element.node().parentElement().getAttributeValue("OriginalModelAttr");
/* setter */
element.node().parentElement().setAttributeValue("OriginalModelAttr", value);
4. Rebind your input field to newly created attribute, and apply any value set modifications to it.
VS

Similar Messages

  • MappedAttributeInfo(APPView.Node): must not modify the datatyp

    Hi,
    I used DropDownByKey element (DDLPROJE) and mapped it a contex element(PROJE).
    I tryed to fill PROJE with code below.No problem on compile, but when i run, it gets error below on line bold in code.
    How can i solve this problem?
    Thanks.
    error
    com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(FAALIYETappYeniView.PROJE): must not modify the datatype of a mapped attribute
    code
              IWDAttributeInfo attInf =
                   wdContext.getNodeInfo().getAttribute(
                        wdContext.currentContextElement().PROJE);
              ISimpleTypeModifiable stm = attInf.getModifiableSimpleType();
              IModifiableSimpleValueSet svs = stm.getSVServices().getModifiableSimpleValueSet();
              try {
                   InitialContext ctx = new InitialContext();
                   DataSource ds = (DataSource) ctx.lookup("jdbc/SAPEPTDB");
                   Connection con = ds.getConnection();
                   Statement stmt = con.createStatement();
                   ResultSet rs = stmt.executeQuery("select PROJE from ZHF_PROJE");
                   svs.put("", "");
                   while (rs.next()) {
                        svs.put(rs.getString("PROJE"), rs.getString("PROJE"));
                   con.close();
              } catch (Exception e) {
                   wdContext.currentContextElement().setMESAJ(e.toString());

    Hi,
    I guess you did as below.
    You have created the context attribute PROJE in View Context as well as in Controller Context.
    And then you have changed the type of PROJE attribute in View Context by binding it to some Simple type.
    After that you have mapped this attribute to the PROJE attribute in Controller context.
    That is why it is giving that error.
    If my guess is correct:
    Then delete the context mapping - by right click on the PROJE attribute in the View Controller.
    Now in Comp Controller change the type of PROJE attribtue by binding the simple type.
    And now do the mapping between the attribtues.
    Regards,
    Charan

  • Must not modify a filtering node, modify the origin

    Hi All,
    I have implemented a WDP JAVA app where I used removeSelectedElements() to remove the selected items, but in some times its throwing an error like com.sap.tc.webdynpro.progmodel.context.ContextException: Node
    must not modify a filtering node, modify the origin
    its really panic to identify that particular scenario still am trying to identify, please let me know if anybody having any alter for this.
    Regards
    Rajesh

    Hi Rajesh,
    In case of table filter there should be three nodes,
    1st: source node(The container for actual data it may be model node, component controllers node or a node present in the view itself but mapped with a component controller node),
    2nd: filter node: which will be having the attributes of type string some time other types but generally strings and the number of the attributes and name of the attributes will be similar to number of columns in table and name of those columns. * This should not be modified at runtime at any cost *, and i think somehow you are manipulating these attributes and you are getting the error.
    3rd: the table source node: which will have the manipulated data from source node. Lets take it this way you get the data from source node filtered it (selected the data which should be visible) and put the filtered data in table source node and binded this node with the table to make these filter data visible over there.
    In general case the source node and filter node should not be manipulated or modifies failing this will cause the errors like what you are getting. Please provide more details if you have any further questions or query.
    Regards
    Jeetendra

  • Unable to set PIN - Error: "PIN must not be the same as the user's phone number"

    We are in an ongoing Lync Server 2013 deployment and have elected to set default conference PIN numbers for anyone that doesn't have them currently set.  We decided to make the default PIN the same as the person's telephone extension.  I realize
    this is not a secure PIN setting, but please bear with me.
    When I use PowerShell to loop through the people that do not have a PIN set and attempt to set the PIN to their five-digit extension, PowerShell returns the following exception:
    Set-CsClientPin : PIN must not be the same as the user's phone number (Error "18005").
    At line:1 char:1
    + Set-CsClientPin -Identity GenericUser -Pin '13579'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (13579:String) [Set-CsClientPin], ArgumentException
    + FullyQualifiedErrorId : UserPin::SetPin::PinDoesNotMeetConstraints,Microsoft.Rtc.Management.UserPinService.SetOc
    sUserPinCmdlet
    I know what you are thinking:  by default, Lync has the AllowCommonPatterns setting set to $false on the Global (default) PIN policy.  But I have created another PIN policy called "Low-restriction PIN Policy" that has this setting set
    to $true and assigned this new policy to the users I am trying to set the PIN on.
    According to
    Microsoft's documentation on the Set-CsClientPin cmdlet, the description for AllowCommonPatterns is as follows:
    "Indicates whether or not "common patterns" are allowed in PINs.
    Common patterns include repeating digits (225577); 4 or more consecutive digits (991234); and
    PINs that match a user's phone number or extension number.
    If set to True common patterns (such as the PIN 123456, which includes consecutive digits)
    are allowed; if set to False common patterns are not allowed. The default value is False."
    Given this information, I do not understand why Lync Server 2013 is preventing me from setting a default PIN that matches their extension number when AllowCommonPatterns is set to $true on the PIN policy assigned to the user.
    Any ideas on what might be wrong?
    PS C:\Users\user> Get-CsUser GenericUser | Select-Object PinPolicy
    PinPolicy
    Low-Restriction PIN Policy
    PS C:\Users\user> Get-CsPinPolicy -Identity 'Low-Restriction PIN Policy'
    Identity : Tag:Low-Restriction PIN Policy
    Description : [20150224 SWS] Standard PIN policy.
    MinPasswordLength : 5
    PINHistoryCount : 0
    AllowCommonPatterns : True
    PINLifetime : 0
    MaximumLogonAttempts :
    PS C:\Users\user> Set-CsClientPin -Identity GenericUser -Pin '13579'
    Set-CsClientPin : PIN must not be the same as the user's phone number (Error "18005").
    At line:1 char:1
    + Set-CsClientPin -Identity GenericUser -Pin '13579'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (13579:String) [Set-CsClientPin], ArgumentException
    + FullyQualifiedErrorId : UserPin::SetPin::PinDoesNotMeetConstraints,Microsoft.Rtc.Management.UserPinService.SetOc
    sUserPinCmdlet

    I just checked the management store replication status and it replicated.  I tried to set the PIN again and got the same error.  Here are my results:
    C:\Users\user> Get-CsUser GenericUser | Select-Object PinPolicy
    PinPolicy
    Low-Restriction PIN Policy
    C:\Users\user> Get-CsPinPolicy -Identity 'Low-Restriction PIN Policy' | Select-O
    bject AllowCommonPatterns
    AllowCommonPatterns
    True
    C:\Users\user> Set-CsClientPin -Identity GenericUser -Pin 13579
    Set-CsClientPin : PIN must not be the same as the user's phone number (Error
    "18005").
    At line:1 char:1
    + Set-CsClientPin -Identity GenericUser -Pin 13579
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (13579:String) [Set-CsClientPin
    ], ArgumentException
    + FullyQualifiedErrorId : UserPin::SetPin::PinDoesNotMeetConstraints,Micro
    soft.Rtc.Management.UserPinService.SetOcsUserPinCmdlet
    C:\Users\user> Get-CsManagementStoreReplicationStatus
    UpToDate : True
    ReplicaFqdn : edge.domain.com
    LastStatusReport : 3/3/2015 9:20:21 PM
    LastUpdateCreation : 3/3/2015 9:20:18 PM
    ProductVersion : 5.0.8308.556
    UpToDate : True
    ReplicaFqdn : frontend.domain.com
    LastStatusReport : 3/3/2015 9:20:21 PM
    LastUpdateCreation : 3/3/2015 9:20:18 PM
    ProductVersion : 5.0.8308.556

  • SignalR - Two Hubs must not share the same name

    I created asp.net mvc 5 application (call it "WebServices"), then i add my Hubs in a folder called "Hubs". Now
    what happened is that SignalR (2.0.2) generate JavaScript proxies for hubs in environment: 1-in local machine. 2-when i publish to azure web role. Now when i publish to azure website (.NET is 4.5 and websocket is opened),it didn't generate proxies. Now i tried
    to add hubs to App_Code folder ,and it generate proxies ,but the build action of the hub classes are "Content",when i change it to Compile it raised this exception :
    Two Hubs must not share the same name. 'Webservices.App_Code.MyHub1, App_Code.c9aucf2j, Version=0.0.0.0,
    Culture=neutral, PublicKeyToken=null' and 'Webservices.App_Code.MyHub1, Webservices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' both share the name 'MyHub1'.
    I love Silverlight ^^

    Hello,
    It seems this issue is more reagrding ASP.NET MVC, I suggest you posting to:
    http://forums.asp.net/1146.aspx
    There are MVC experts who will help you better.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I can not install any addons as firefox throws an error saying " firefox can not modify the needed file"

    whenever I try to install an addon, firefox says it can not install the addon since it can not modify the needed file! Whatever addon I have are from my previous version of firefox.

    Is the date / time set correctly on that PC? <br />
    Right-click the Time in the System Tray and select Adjust Date / Time to see.

  • I am running firefox 23.0.1. I just upgraded to evernote 5.0+. When I try to add webclipper 5.7 to firefox I get the error Firefox can not modify the neede

    I am running firefox 23.0.1. I just upgraded to evernote 5.0+.
    When I try to add webclipper 5.7 to firefox I get the error
    Firefox can not modify the needed file
    I could not locate the files referenced in the answers presented.

    Firefox no longer unpacks an extension automatically, but renames the XPI file to the ID of the extension and copies that file to the extensions folder in the Firefox Profile Folder.
    If an extension needs to be unpacked then there should be an unpack directive (<nowiki><em:unpack>true</em:unpack></nowiki>) in the install.rdf file of that extension.
    * https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    You can try to set the extensions.alwaysUnpack pref to true on the about:config page.
    *http://kb.mozillazine.org/about:config

  • End Routine is NOT modifying the DSO with new data after load into that DSO

    Hi all,
      I am creating an End Routine for DSO to populate a field ZFCMP_FLG (to store 'Y' ) with lookup from another DSO ZMDS_D01. This new field shows blank instead of 'Y', after activating the DSO. The RESULT_PACKAGE record is populated with 'Y' for ZFCMP_FLG  while debugging that End Routine and why it is NOT writing the modified records into DSO, please ? It is a Characteristic InfoObject with length 1 to store 'Y'. The following is some part of the code:
    DATA: wa_fcmp_flag   TYPE c VALUE 'Y'.
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
        READ TABLE it_zmds_d01 INTO wa_zmds_d01 WITH KEY
                    /BIC/ZAUFNR    = <RESULT_FIELDS>-CS_ORDER
                    NOTIFICATN     = <RESULT_FIELDS>-NOTIFICATN  BINARY SEARCH.
         IF sy-subrc = 0.
           <RESULT_FIELDS>-/BIC/ZFCMP_FLG = wa_fcmp_flg.
        ENDIF.
    ENDLOOP.
    Thanks,
    Venkat.

    hi...
    Since you are using Field symbol to loop the internal Table there is no need to use the MODIFY Statement in the loop.
    So your code is correct only.
    But here you have to check the status of READ TABLE command in the debug mode.
    it may be failing that's why the RESULT_PACKAGE is not getting modified.
    Plz check it.
    Note: You may need to SORT the Int Table since you are using BINARY SEARCH. check below.
    DATA: wa_fcmp_flag   TYPE c VALUE 'Y'.
    Sort it_zmds_d01 by  /BIC/ZAUFNR    NOTIFICATN  .
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
        READ TABLE it_zmds_d01 INTO wa_zmds_d01 WITH KEY
                    /BIC/ZAUFNR    = <RESULT_FIELDS>-CS_ORDER
                    NOTIFICATN     = <RESULT_FIELDS>-NOTIFICATN  BINARY SEARCH.
         IF sy-subrc = 0.
           <RESULT_FIELDS>-/BIC/ZFCMP_FLG = wa_fcmp_flg.
        ENDIF.
    ENDLOOP.

  • Why AP can not modify the hostname

                 Modify the hostname of the AP, but the tips below in the WLC WEB

    The error message is telling you that on your High Availability tab you have an IP Address in the Primary/Secondary/Tertiary section but do not have a WLC hostname there.    High Availability is done by WLC Name with the IP Address Optional.    The only way you'll be able to make a GUI modification (change the AP name for example) will be AFTER you fix the error [remove the ip address in the HA section, or add the WLC name like is required for a valid HA config).

  • Modifying XMP metadata does not modify the document

    Another from couple questions which accumulated over time.
    If I modify layer in document by adding or updating XMP metadata, the document itself is not modified (does not enable save), so far if document is closed without doing some other action which marks document as modified, data are lost.
    Question: how to either force document to see changes in XMP meta or how to mark document as modified?
    Code snippet:
         activeDocument.activeLayer.xmpMetadata.rawData = meta.serialize();
    Thanks,
    --Petr

    When you ask app-specific questions, you should really specify the app you are referring to.
    I'm guessing you are talking about Photoshop. This seems to be a scripting related question, and you'll probably get better answers on the Photoshop forum: http://forums.adobe.com/community/photoshop/photoshop_scripting
    Harbs

  • Modifying Sales order in ECC does not modify the planned order in APO?

    Hello,
    I have the next situation, a MTO scenario, LPP material,:
    - users create a sales order, quantity 2000M, 2 individual lenghts by 1000M. In automatically, being a MTO scenario, APO generates a planned order to fulfill the requirement with 2000 M qty, individual lenght 1000.
    - users modify the sales order, the quantity 2000 M remains, but will change it in 1 individual lenght by 2000M. APO cancels the precendently created planned order and generates another one, with individual lenght 2000.This is OK.
    -users modify the sales order, the quantity remains 2000 M, but again 2 individual lenghts by 1000 M. In this case, the planned order is not cancelled, as expected, but remains with individual lenght 2000, which is not ok.
    Any idea how to fix this?
    Regards,
    Alex

    Hello again,
    while creating/changing sales order in crm,
    the user exit mv45 is called in R3.
    Problem solved.
    Thanks
    Gerd

  • Can not change the control level of item attribute "Inventory Asset Value"

    I can not change the control level of the item attribute "Inventory Asset Value" from Master Level to Org Level. It's show me the message "FRM-40200: Field is protected against update".
    Version is below:
    Oracle Application: 10.7SC
    Form: INVIDCTL 6.0.26

    I did a trace when I chage the control level. the SQL is below:
    SELECT COUNT(*)
    FROM CST_ITEM_COSTS CHILD
    , CST_ITEM_COSTS MASTER
    WHERE MASTER.INVENTORY_ITEM_ID = CHILD.INVENTORY_ITEM_ID (+)
    AND MASTER.COST_TYPE_ID = 1
    AND CHILD.COST_TYPE_ID (+) = 1
    AND NVL(MASTER.ITEM_COST,0) != NVL(CHILD.ITEM_COST (+) ,DECODE(MASTER.ITEM_COST, NULL ,0,-99999))
    AND MASTER.ORGANIZATION_ID IN (SELECT MASTER_ORGANIZATION_ID
    FROM MTL_PARAMETERS
    WHERE ORGANIZATION_ID != MASTER_ORGANIZATION_ID )
    AND CHILD.ORGANIZATION_ID IN (SELECT ORGANIZATION_ID
    FROM MTL_PARAMETERS
    WHERE MASTER_ORGANIZATION_ID = MASTER.ORGANIZATION_ID )

  • Why does Element 11 not show the content of a map????????????+

    I spent almost more time wattching element updating all the time - than workin with it.
    But nevertheless it WILL NOT show more than half of the pictures in a new map. Pathfinder shoes 136 files in it - and elements show 52 of the.
    By God,  I am tired of this crap programme,

      Have some of these photos had GPS data added in external programs? Make sure all the photos have the places tag.

  • OAYC can not modify the the last depreciation posting year and month

    Dear all,
    I will set the asset last depreciation posting fiscal year and period,  but, in the OAYC T-CODE, the fiscal year and period feilds is unabled.
    use F1 key, the detail message is :
    Fiscal year of last depreciation posting
    In this field, the system enters the fiscal year for which depreciation was last posted. If legacy data transfer is carried out during the course of the fiscal year, you must manually update this field.
    The field is not available for input if legacy data not transferred within the fiscal year, or if depreciation is not posted in this depreciation area.
    But I do not how to correct it .
    Please help me. thanks.
    Passion Wu

    Hi,
    Answer for your query is available in your question only.
    The field is not available for input if legacy data not transferred within the fiscal year, or if depreciation is not posted in this depreciation area
    There are 2 ways to upload the legacy asset to the SAP system.
    1) Legacy asset upload at previous fiscal year end
    2) Legacy asset upload during current fiscal year
    When you use the 2nd method only, system will allows you to enter those last posted dep period and fiscal year OAYC.
    In this context your legacy asset transfer date should fall within the current fiscal year.
    Ex: If your FY is APR2MAR, then your transfer date cannot be the end date of last closed fiscal year.(31.03.2009)
    It should be like 30.04.2009 or 31.05.2009 or 30.06.2009 and so on.............
    Hope this will help you.
    Thanks,
    Srinu..
    OAYC_SRBORIGI

  • How do I modify the datatype of the y-axis in a Graph?

    I need to produce a simple graph that displays project names vs. dates. It is a simple query and should be a simple graph. However, the graph tool wants to display only NUMBER data-types on the y-axis. I need to display DATEs. What must I do?
    Here is a query that I would like to use and below it is what I am forces to use to get the graph to display anything:
    Query 1 (What I need to use):
    select p.project_id, p.project_name, g.ANTICIPATED_GATE_DATE, g.ACTUAL_GATE_DATE
    from project p, gate_split gs, gate g
    where p.project_id = gs.project_id
    and gs.gate_split_id = g.gate_split_id
    and ((:P_START_DATE <= g.anticipated_gate_date or :P_START_DATE is null)
    and (:P_END_DATE >= g.anticipated_gate_date or :P_END_DATE is null))
    and g.ACTUAL_GATE_DATE is not null
    order by g.anticipated_gate_date
    Query 2 (What I must do to get anything to display on the Y-Axis):
    select p.project_id, p.project_name, TO_NUMBER(TO_CHAR(g.ANTICIPATED_GATE_DATE, 'J'))anticipated_date, TO_NUMBER(TO_CHAR(g.ACTUAL_GATE_DATE, 'J'))acutal_date
    from project p, gate_split gs, gate g
    where p.project_id = gs.project_id
    and gs.gate_split_id = g.gate_split_id
    and ((:P_START_DATE <= g.anticipated_gate_date or :P_START_DATE is null)
    and (:P_END_DATE >= g.anticipated_gate_date or :P_END_DATE is null))
    and g.ACTUAL_GATE_DATE is not null
    order by g.anticipated_gate_date

    As I said drag the icon of the selected graphic to your Desktop.
    Open it in Preview.app > Menu > Tools > Adjust Color…
    Drag the combination of Temperature & Tint to change the Hue.
    Drag the Exposure to change the Tone.
    Save the .tiff with a new name eg Blue grass.tiff so you don't get confused and drag the image back into the Pages document image.
    Peter

Maybe you are looking for

  • CFolders System initial testing

    I am very new in KM and cFolders area. Currently we have already installed EP+EPC on Netweaver04s and trying to apply business package Buyers. The installation guide of Business package said that we need to have SM59 RFC connection to cFolder system.

  • OEM cannot start

    Hi, I could not find the correct forums for the older versions of OEM so I am posting this here. My OEM 9.2.0.1 server is connected to a 9.2.0.6 database and was working fine. I tried upgrading the database to 10g with 9.2.0.6 compatibility and am ge

  • Muse Update also updated Air but not to the newest

    A couple of days ago I updated Muse and at the same time (orchestrated by Muse) updated Adobe Air. According to my "About" menu in Muse I now have Air 13.0.0.83. But my Glary Utilities Software Update check at boot keeps telling me that there's an up

  • Error ViReal64 labview 7.0 ni-switch

    i get an error "invalid ViReal64 in configuration file" with Labview 7.0 and Ni-Switch & Initialize with options

  • Keine Musik auf mein iPhon laden

    Hallo ! Hilfe!!! ich habe mich mit meiner Apple ID angemeldet, bei iTunes, aber leider kann ich die Musik die ich dort gespeichert habe, keine gekaufte sondern von einer seperaten Festplatte, nicht auf mein iPhon 4S laden. Immer wenn ich einen Song r