Cmp-field is read-only

Say I have beans A and B where A <- B (unidirectional relationship)
and A.cmp_A and B.cmr_A point to same db field
I try this and get exception as below while doing A.setCmp_A()
javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped
to the same column, the setXXX method for the cmp-field may not be called. The
cmp-field is read-only.
the cmp-field and cmr-field are in separate beans.
F1

Say I have beans A and B where A <- B (unidirectional relationship)
and A.cmp_A and B.cmr_A point to same db field
I try this and get exception as below while doing A.setCmp_A()
javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped
to the same column, the setXXX method for the cmp-field may not be called. The
cmp-field is read-only.
the cmp-field and cmr-field are in separate beans.
F1

Similar Messages

  • Fields in read-only mode for BP transaction in upgrade from 4.72 to ECC6.0

    Hello,
    This is regarding the query for BP transaction in upgrade from 4.72 to ECC 6.0.
    While creating BP / Changing BP system is disabling the fields in compnay code & sales area option. There is a SAP not provided 907860; and specified that the proplem is because of the delta customizing.
    All the customization settings are as per the note. And the Synchronization Control is also activated. But still the fields are disabled only.
    I have checked the field settings also in Cross-Application-Components & Logistic-Genral.
    But these are not working for compnay code & sales area data.
    please let me know if anyone has faced this type of problem / found any solution on this.
    Best Regards,
    Shubhada

    SAP IMG  -> Cross Application Components -> Master Data Synchronization &#61664; Synchronization Control -> Synchronization Control -> Activate Synchronization options
    This setting allows you to activate synchronization of BP with R/3. Not maintaining the values may result in certain fields being read-only in BP.
    Suggested Values:
    Source Object: BP | Target Object: CUSTOMER | Active Indicator : X
    Source Object: BP | Target Object: VENDOR | Active Indicator : X
    Source Object: CUSTOMER | Target Object: BP | Active Indicator : X
    Source Object: VENDOR | Target Object: BP | Active Indicator : X
    Have you set all of the above settings??
    BHARATH

  • Making a field as read-only using Forms Personalization.

    Hi All,
    I have one requirement.I developed one form which is used to display Customer related Information.Some fields are created under one block and "reason-for-write off amount" field is created under another block.I have created Master-Detail relation for these 2 blocks.If there is any "reason-for-write off amount" is present for queried customers then it shows the "reason-for-write off amount" data.check boxes also created beside customer number field in Master block.If there is no "reason-for-write off amount" for any customer I need to write it and when I click on "submit" button in my form it goes to database.
    Now my requirement is :
    I need to make "reason-for-write off amount" field as read-only and I need to CHECK corresponding Customer "check_box" and make "SUBMIT" button as disable using personalization.
    I wrote code in Personalization as
    Trigger-Event:WHEN-NEW-FORM-INSTANCE
    Condition: :DUMCUST.REASON_FOR_WRITEOFF IS NOT NULL
    Processing mode:BOTH
    Actions:
    object type: ITEM
    Target Object: :DUMCUST.REASON_FOR_WRITEOFF
    Property Name: Enterable
    Value:false
    object type: ITEM
    Target Object:      :XXMCS_CUSTOMER_DETAILS.CUSTOMER_NUMBER_CBX
    Property Name: Value
    Value:1
    object type: ITEM
    Target Object:      :XXMCS_CUSTOMER_DETAILS.SUBMIT
    Property Name: Enabled
    Value:False
    But it is not working..the applied changes are not affected in my form.I tried the above actions with WHEN_NEW_BLOCK_INSTANCE trigger also.I didn't write any validation triggers for these items in my FMB also.
    Could anyone please help me..
    Thanks in Advance.

    in your iterator declare the inputfield with disabled = true .
    p_replacement_bee = cl_htmlb_inputfield=>factory(
                                id        = p_cell_id
                                disabled  = 'true'
                                value     = comments ).
    this will generate the html like below
    <input type="Text"
    class="urEdf2TxtEnbl urEdf2TxtRo urV" autocomplete="off" id="TAB1_1_4" ct="InputField" name="TAB1_1_4" st="r" tp="STRING"
    readonly value="some value" onblur="sapUrMapi_InputField_Blur('TAB1_1_4',event)"
    onkeydown="sapUrMapi_InputField_keydown('TAB1_1_4',event)"
    onkeyup="sapUrMapi_InputField_KeyUp('TAB1_1_4',event)" onfocus="sapUrMapi_InputField_focus('TAB1_1_4',event)">
    now you can use js getElementById as this now has a id attached (TAB1_1_4)

  • Field is read-only -- Error

    Using ASP vbscript, I created a small query to test one of my
    db connections, requesting three fields from a specified record
    based on URL parameter (this is a different project than my
    previous post) running IIS with an ODBC connection to a local db.
    The ODBC driver is read-only, which is fine, the purpose of this
    project is to display reports, not data entry. Anyway, when I test
    the query in DW CS3, everything is good, I get the results as
    expected. When I upload the page to the remote server and test the
    page I get:
    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services
    Technical Information (for support personnel)
    * Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
    Field is read-only
    /job_details.asp, line 21
    I am not updating or inserting, so I do not understand this
    error. I also can't find anything on this specific error anywhere.
    Anyone got any ideas about where I should start looking?

    > It is using a DSN. I have never used this particular
    ODBC driver or this
    > type
    > of database before (Omnis), so I don't know if the
    problem was driver
    > specific.
    > All I know is that it works fine if I bypass the
    parameter append.
    >
    > Now if I could just get the connection to work with
    cross-platform
    > servers.
    > In the above example, I put a copy of my datafile on the
    same machine that
    > the
    > web server is running on ... and it's working. But when
    I try to connect
    > to
    > the live db, which resides on a mac osx server I get :
    >
    > Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > Unable to read disk (bad disk)
    > /job_details.asp, line 16
    >
    > But I can use the same ODBC connection from MSAccess on
    the Windows
    > machine
    > and get query results.
    Normally, I would advise against DSN and recommend an OLEDB
    connection, but
    I've never used that type db, don't know if a string is
    possible.
    www.connectionstrings.com does not show a string for it, so I
    can't help.
    Sorry.

  • Set fields to read-only after addInstance()

    I have this function on my form "add row" which allows user to create a new row to fill in additional fields; when user click submit, the fields of the form will become read-only.
    however after i add another new row into the form, when i click submit that row does not change into read-only.
    this is the code for my add row: Table1.Row1.instanceManager.addInstance();
    and this is the code for my submit button, whereby upon clicking the field becomes read-only
    -----Test.#subform[0].Subform2[1].buttonForm.Submit::click - (JavaScript, client) -----------
    Test.Subform1.IsSubmitted.rawValue = "1"; //submitted ----0 is default
    Test.Subform2.Payee.access = "protected";
    Test.Subform2.Name.access = "protected";
    Test.Subform2.GST.access = "protected";
    Test.Subform2.Amount_GST.access = "protected";
    Test.Subform2.Currency.access = "protected";
    Test.Subform2.Invoice_Date.access = "protected";
    Test.Subform2.Invoice_No.access = "protected";
    Test.Subform2.Company_Code.access = "protected";
    Test.Subform2.Tax_Code.access = "protected";
    Test.Subform2.Payment_Method.access = "protected";
    Test.Subform2.House_Bank.access = "protected";
    Test.Subform2.Description.access = "protected";
    Confirm.presence="visible";
    Edit.presence="visible";
    Submit.presence="invisible";
    Add.presence="invisible";
    Table1.Row1.GL_Account.access = "protected";
    Table1.Row1.DC.access = "protected";
    Table1.Row1.GL_Description.access = "protected";
    Table1.Row1.Amount_exclgst.access = "protected";
    Table1.Row1.Tax_Code.access = "protected";
    Table1.Row1.Fund_Center.access = "protected";
    Table1.Row1.Cost_Center.access = "protected";
    Table1.Row1.Button1.access="protected";
    Test.Subform1.StaticText1.presence="invisible";
    Test.Subform1.Summary.presence="visible";

    Hello,
    Perhaps you could create a trigger for that table that prevents update, delete and even insert of rows before a specified timestamp.
    CREATE OR REPLACE TRIGGER <Triggername>
    BEFORE INSERT OR DELETE OR UPDATE ON <Table>
    FOR EACH ROW
    BEGIN
    IF <RowDate> < <sysdate - <days>> THEN
    Raise_application_error(-20001, 'ROW is in read only range.'
    END;
    null

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • Changing not possible; field is read-only

    Hello,
    I need update Expected Value in Opportunity.
    Expected Value is bound Opportunity.SalesForecast.ExpectedRevenueAmount.content.
    When I try to update in adsl, "Changing not possible; field is read-only" error appears in frontend to the user.
    Thanks!

    Hi Rodrigo Mathias,Not an answer to your post just to share my problem
    Seems Opportunity has a lot of problems. As in my case i am trying to code in BeforeSave method that when ever the opportunity gets create by code i have to poppulate my CUSTOM Invonved Party ( i have created custom party role ).
    And i have passed partykey.partyId.content and RoleCode but when i click on save it gives me the error about Role Category!
    now when debugged that all Parties ( i debugged and checked whole collection) had the Role category every party from that collection had the Role category associated!
    So i tried to add r
    ole category by code! but that is also public write access set as FALSE!
    So finally i again opened the book for clod , and a line is specificaly written that PartyID node will not be used after 1402 there will be separate node PartyNAme where u can pass partyid , name or email!
    but unfortunately that is also not available in the opportunity BO!
    So i am also kind of stuck!
    Btw one thing i would like to mention is when u try to maintain your custom role in opportunity manually it works and data gets saved!
    Regards,
    Dhruvin

  • How can I have a checkbox that a user checks and populates a field with read only text, then if another checkbox is checked it will allow user text input

    Hi
    How can I have a check box that a user checks and populates a field with read only text, then if another check box is checked it will allow user text input into that same field, her is my javascript
    var a ="Not Applicable"
    if (this.getField("Do").value == "Yes")
    a=""
    if (this.getField("DoNot").value =="Yes")
    a=a + ""
    event.value=a
    say if the "Do" cb is checked, Not Applicable would populate the text field, and if the "DoNot" cb is checked it would allow user input into the same text field, the javascript I have will not allow user input,
    thanks for any help I am new to javascript

    Are these fields mutually exclusive?

  • How to provide a LINK on normal TEXT field in read only mode

    Hi,
    I have a TEXT item and that is used for only url purpose.
    so a user can enter something like http://www.abc.com in that field.
    So when I am in read only mode for that item, I want a link also on that text..
    how can I do that.
    thanks,
    Deepak

    You could create a pl/sql expression computation on the TEXT item which will convert the value shown for the field to be a HTML link
    '<a href="http:// ' || :PXX_TEXT || '">' || :pXX_TEXT || '</A>';Make the computation conditional using the same condition as is used to render the item as read-only
    varad

  • Making a dynamically generated field as Read Only

    Hi All,
    I am extending a standard CO and in that I wanted to make an entire table as read only. I checked by personalizing the page from front end, but as the items are dynamically generated fields , they are not visible in personalize page.
    So is there any way to cach these fields and make them read only programmatically.
    Thanks,
    Srikanth

    Hi Pratap,
    I have looked into the view source and took the name of a input type ( There is no ID for the field) and used it in findIndexedChild, but it returns a null. I guess this is happening is the current CO is a mere region level CO and it is not being given the access.
    The code in the class file is as follows :
    public static void processTable(OAPageContext oapagecontext, OAWebBean oawebbean)
    oapagecontext.startTimedProcedure("CrossTableCO", "processTable");
    String s = null;
    String s1 = null;
    int i = oawebbean.getIndexedChildCount();
    String as[[][]] = new String[7];
    int j = 0;
    String as1[[][]] = new String[i][6];
    for(int k = 0; k < oawebbean.getIndexedChildCount(); k++)
    UINode uinode = oawebbean.getIndexedChild(k);
    if(!(uinode instanceof OAMessageStyledTextBean))
    continue;
    OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)uinode;
    if(oamessagestyledtextbean.isRendered())
    oamessagestyledtextbean.setRendered(false);
    oamessagestyledtextbean.setAttributeValue("benCustomBeanRender", "Y");
    if("TotalPlanLabel".equals(oamessagestyledtextbean.getUINodeName()))
    s1 = oamessagestyledtextbean.getLabel();
    continue;
    if(s == null)
    s = oamessagestyledtextbean.getViewUsageName();
    as[j][0] = oamessagestyledtextbean.getViewAttributeName();
    as[j][1] = oamessagestyledtextbean.getSortByAttributeName();
    as[j][2] = oamessagestyledtextbean.getLabel();
    as[j][3] = oamessagestyledtextbean.getExportByViewAttrName();
    as[j][4] = oamessagestyledtextbean.getDestination();
    as[j][5] = oamessagestyledtextbean.getUINodeName();
    as[j][6] = oamessagestyledtextbean.getDataType();
    if(as[j][4] != null && as[j][5] != null)
    as1[j][0] = as[j][5];
    as1[j][1] = as[j][0];
    as1[j][2] = s;
    as1[j][3] = as[j][4];
    as1[j][4] = as[j][6];
    as1[j][5] = as[j][3];
    j++;
    continue;
    if("TotalPlanLabel".equals(oamessagestyledtextbean.getUINodeName()))
    s1 = "XXHideXXTotalXX";
    oawebbean.setAttributeValue("CrossTableUpdateInfo", as1);
    oawebbean.setAttributeValue("CrossTableRenderCount", Convert.getString(j));
    if(s == null)
    return;
    OAViewObject oaviewobject = (OAViewObject)oapagecontext.getApplicationModule(oawebbean).findViewObject(s);
    if(oaviewobject == null || !oaviewobject.isPreparedForExecution() || oaviewobject.first() == null)
    return;
    } else
    oawebbean.addIndexedChild(createTable(oawebbean, oaviewobject, as, j, s1));
    oawebbean.setAttributeValue("CrossTableRowCount", Convert.getString(oaviewobject.getRowCountInRange()));
    oapagecontext.endTimedProcedure("CrossTableCO", "processTable");
    return;
    private static UINode createTable(OAWebBean oawebbean, OAViewObject oaviewobject, String as[][], int i, String s)
    int j = oaviewobject.getRowCountInRange();
    DataTextNode datatextnode = new DataTextNode(new DataBoundValue("text"));
    String as1[] = new String[j + 1];
    CrossTableData acrosstabledata[] = new CrossTableData[i];
    int k = -1;
    for(int l = 0; l < i; l++)
    acrosstabledata[l] = new CrossTableData(new CrossTableCellData[j + 1]);
    for(int i1 = 0; i1 <= j; i1++)
    if(i1 > 0)
    try
    if(s != null && j > 1 && CT_NUM_MINUS_ONE.equals(oaviewobject.getRowAtRangeIndex(i1 - 1).getAttribute("GroupOiplId")))
    as1[i1] = s;
    else
    as1[i1] = (String)oaviewobject.getRowAtRangeIndex(i1 - 1).getAttribute("Name");
    catch(Exception exception)
    datatextnode = null;
    as1[i1] = "";
    if(k < 0 && j > 1 && "XXHideXXTotalXX".equals(s) && CT_NUM_MINUS_ONE.equals(oaviewobject.getRowAtRangeIndex(i1 - 1).getAttribute("GroupOiplId")))
    k = i1;
    for(int j1 = 0; j1 < i; j1++)
    if(i1 == 0)
    acrosstabledata[j1].getData()[i1] = new CrossTableCellData(as[j1][2]);
    else
    acrosstabledata[j1].getData()[i1] = new CrossTableCellData(null, as[j1][2], oaviewobject, i1 - 1, as[j1][0], as[j1][1], as[j1][3], as[j1][4], as[j1][5], as[j1][6]);
    TableBean tablebean = new TableBean("CrossTable", new ArrayDataSet(acrosstabledata), null, null, datatextnode, new ArrayDataSet(as1, "text"));
    tablebean.setWidth("100%");
    tablebean.setSummary(" ");
    tablebean.setNameTransformed(false);
    tablebean.setTableFormat(new DictionaryData("tableBanding", "rowBanding"));
    tablebean.setID((new StringBuilder()).append("CrossTable").append(oawebbean.getID()).toString());
    oawebbean.setAttributeValue("CrossTableId", tablebean.getID());
    DictionaryData adictionarydata[] = new DictionaryData[j + 1];
    Object obj = null;
    Object obj1 = null;
    for(int k1 = 0; k1 <= j; k1++)
    OAWebBean oawebbean1 = createColumn(k1);
    if(k1 == k)
    oawebbean1.setRendered(false);
    tablebean.addIndexedChild(oawebbean1);
    if(k1 == 0)
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "textFormat");
    continue;
    try
    String s1 = (String)oaviewobject.getRowAtRangeIndex(k1 - 1).getAttribute("TextFormat");
    if("Y".equalsIgnoreCase(s1))
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "textFormat");
    else
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "numberFormat");
    catch(Exception exception1)
    adictionarydata[k1] = new DictionaryData("columnDataFormat", "numberFormat");
    tablebean.setColumnFormats(new ArrayDataSet(adictionarydata));
    return tablebean;
    private static OAWebBean createColumn(int i)
    OAFlowLayoutBean oaflowlayoutbean = new OAFlowLayoutBean();
    OAMessageTextInputBean oamessagetextinputbean = new OAMessageTextInputBean();
    OAMessageStyledTextBean oamessagestyledtextbean = new OAMessageStyledTextBean();
    OAMessageDateFieldBean oamessagedatefieldbean = new OAMessageDateFieldBean();
    OASwitcherBean oaswitcherbean = new OASwitcherBean();
    Hashtable hashtable = new Hashtable();
    hashtable.put("CtPPRTrgCol", new DataBoundValue(new CrossTableColumnData(i, "Name")));
    oaswitcherbean.setNamedChild("input", oamessagetextinputbean);
    oaswitcherbean.setNamedChild("date", oamessagedatefieldbean);
    oaswitcherbean.setChildNameBinding(new CrossTableColumnData(i, "Render"));
    oaflowlayoutbean.addIndexedChild(oaswitcherbean);
    oaflowlayoutbean.addIndexedChild(oamessagestyledtextbean);
    oamessagetextinputbean.setNameBinding(new CrossTableColumnData(i, "Name"));
    oamessagetextinputbean.setTextBinding(new CrossTableColumnData(i, "Text1"));
    oamessagetextinputbean.setAttributeValue(DESCRIPTION, new DataBoundValue(new CrossTableColumnData(i, "Label")));
    oamessagetextinputbean.setAttributeValue(COLUMNS_ATTR, "12");
    oamessagetextinputbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, OAWebBeanUtils.getFirePartialActionForSubmit(oamessagetextinputbean, null, "update", hashtable, null));
    oamessagetextinputbean.setDataType("NUMBER");
    oamessagetextinputbean.setAttributeValue(READ_ONLY_ATTR, new DataBoundValue(new CrossTableColumnData(i, "ReadOnly")));
    oamessagetextinputbean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, new DataBoundValue(new CrossTableColumnData(i, "SubmitValidator")));
    oamessagedatefieldbean.setNameBinding(new CrossTableColumnData(i, "Name"));
    oamessagedatefieldbean.setTextBinding(new CrossTableColumnData(i, "Text1"));
    oamessagedatefieldbean.setValueBinding(new CrossTableColumnData(i, "Text1"));
    oamessagedatefieldbean.setAttributeValue(DESCRIPTION, new DataBoundValue(new CrossTableColumnData(i, "Label")));
    oamessagedatefieldbean.setAttributeValue(COLUMNS_ATTR, "12");
    oamessagedatefieldbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, OAWebBeanUtils.getFirePartialActionForSubmit(oamessagedatefieldbean, null, "update", hashtable, null));
    oamessagedatefieldbean.setDataType("DATE");
    oamessagedatefieldbean.setAttributeValue(READ_ONLY_ATTR, new DataBoundValue(new CrossTableColumnData(i, "ReadOnly")));
    oamessagestyledtextbean.setTextBinding(new CrossTableColumnData(i, "Text2"));
    return oaflowlayoutbean;
    Pls let me know for any clarifications.
    Thanks,
    Srikanth

  • Change field from read only and override calculation based on radio button

    Hi,
    I have a form in which one of the fields has a simple sum calculation and is set to read only so the user can't change it as it sets a print amount as well.
    But if one of the radio buttons is ticked there is a chance that the print amount needs changing but it can be different based on a few other options so I have managed to set the field so the user can edit it depending on an option but the calculation that sets the value overrides what the user enters. I would like to know if it is possible to change this?
    I use
    this.getField("Quantity_Boxes").readonly = false;
    So the user can edit the field when they select the radio button 'yes' under Mesh_b
    and
    this.getField("Quantity_Boxes").readonly = true;
    So the field goes back to read only when the user selects the 'no' under Mesh_b
    and in the Quantity_Boxes field I use:
    Quantity_Curtains / csn
    Just as a simplified division sum with the decimal places set to 0 so a whole number appears.
    csn is just a hidden field that has an amount set depending on the size of curtain.
    Thanks,
    Bruce

    I have found a solution but caused another problem (well more of an irritation than a problem)
    I have made it so the can field throws a dialogue box asking how many of the item fit into a box, the only problem is that the dialogue box will appear more then once.
    For example I have made a new size know as bespoke and when I select that size and hit return the dialogue box pops up which is fine but when the amount of the product is changed it throws the dialogue box again. I guess this is because the calculation has to be run again but is there anyway of stopping this?
    Here is the code I use in the can field which defines how many curtains are in the box and is used to calculate how many labels need printing out.
    if(this.getField("SizeDrop").value=='LG'){
    event.value = "5"
    } else if (this.getField("SizeDrop").value=='ST'){
    event.value = "8"
    } else if (this.getField("SizeDrop").value=='ME'){
    event.value = "10"
    } else if (this.getField("SizeDrop").value=='SM'){
    event.value = "15"
    } else if (this.getField("SizeDrop").value=='BE'){
    var resp = +app.response("Enter the amount of curtains in a box","","1");
    event.value = resp
    } else {
    event.value = " "
    Thanks,
    Bruce
    EDIT:
    I have found that the dialogue box will appear every time something is changed on the form (even while in the editor as well)

  • HOW TO MAKE FIELDS AS READ ONLY IN TABLE MAINTAINANCE

    HI ABAPers,
    HOW TO MAKE SOME FIELDS AS DISPLAY MODE.
    FOR SUPPOSE, THERE ARE 5 FIELDS in SM30.
    AMONG THEM 1 FIELD SHUD BE USED FOR EDITING AND THE OTHER 4 FIELDS SHUD ONLY BE USED FOR DISPLAY PURPOSE
    WHEN EVER I ENTER A VALUE IN THAT 1 PARTICULAR FIELD THEN THE DATA OF THE REMAINING 4 FIELDS SHUD BE DISPLAYED IN THE SAME SCREEN ITSELF.
    HOW CAN IT BE POSSIBLE...
    PLZ HELP.
    THNX IN ADV,
    SP.

    Hello SP,
    You can create a maintenance view for the table & here you can define the maintenance attribute for individual fields.
    For the fields you want to be READ-ONLY pass 'R' to those fields. (It is the 4th column from the left, the one to the immediate left of the Key column).
    Don't change the TMG function group directly. If you regenerate the TMG the changes would be overwritten !
    You can use the Event '01' to fulfill your requirement:
    *&      Form  f_event_01
    *       text
    FORM f_event_01.
      DATA: v_indx TYPE sy-index,
            v_land1 TYPE land1,
            v_name1 TYPE name1.
      FIELD-SYMBOLS: <vendor> TYPE lifnr,
                     <val> TYPE ANY.
      BREAK-POINT.
      "TOTAL contains all data which are read, changed and created in TMG
      LOOP AT total.
        IF <action> = neuer_eintrag " New Entry.
        OR <action> = aendern "Changed entry
        OR <action> = original. "Same as DB
          READ TABLE extract WITH KEY <vim_xtotal_key>.
          IF sy-subrc = 0.
            v_indx = sy-tabix.
          ELSE.
            CLEAR v_indx.
          ENDIF.
          ASSIGN COMPONENT 'LIFNR' OF STRUCTURE total TO <vendor>.
          CHECK sy-subrc = 0.
    *     select data from the LFA1 based on LIFNR
          SELECT SINGLE name1 land1 FROM lfa1
            INTO (v_name1,v_land1)
            WHERE lifnr = <vendor>.
          CHECK sy-subrc = 0.
    *     Populate the hidden fields NAME1 & LAND1
          ASSIGN COMPONENT 'NAME1' OF STRUCTURE total TO <val>.
          CHECK sy-subrc = 0.
          <val> = v_name1.
          ASSIGN COMPONENT 'LAND1' OF STRUCTURE total TO <val>.
          CHECK sy-subrc = 0.
          <val> = v_land1.
          MODIFY total.
          CHECK v_indx GT 0.
          extract = total. "Pass the changes in TOTAL to EXTRACT
          MODIFY extract INDEX v_indx.
        ENDIF.
      ENDLOOP.
      sy-subrc = 0.
    ENDFORM.                                                    "f_event_01
    BR,
    Suhas
    Edited by: Suhas Saha on Aug 16, 2010 11:58 AM

  • Marking Fields as Read-Only After Digitally Signing Issues

    I am creating a PDF form that contains several digital signatures.  I am selecting a signatures and am in the property options for that specific signature looking at the "Signed" tab.  I select, Mark as read only, than choose "Just these Fields.
    When I select "pick" a new box opens that lists all the fields in my form with a check box next to each.  It appears that I can select the fields I want to mark as read only, however, when I attempt to check a box, nothing.  I can select "select all" and all the firlds become checked, but I cannot check individual fields.
    Any thought on what might be going on?

    Hi Thomas,
    Any chance you could share the PDF file if I gave you an e-mail address?
    Steve

  • How to make the fields dynamic read only in live cycle designer

    hi folks
    I have created a form in Adove livecycle es. Some fields should be read only from the start. So i have set the property .access 'open'. In versions of Adobe 8 this works, but in the latest version  it won't so i think it should be done via another solution. Does anybody know how?
    kind regards,
    Anton Pierhagen

    May be the below code may help.. It loops thru all the pages in the PDF form and make them protected. So the user can not change any value in the form.
    for (var i = 0; i < xfa.host.numPages; i++)
    var oFields = xfa.layout.pageContent(i, "field");
    var nodesLength = oFields.length;
    //set the access type to be protected for all fields
    for (var j = 0; j < nodesLength; j++)
    var oItem = oFields.item(j);
    oItem.access = "protected";
    Thanks
    Srini

  • How to make a field conditional Read Only

    Hi,
    There is a "Close date" field. I need to check if the date today, and the "Close date" falls in the same quarter. If it does, then, a particular field has to be made editable otherwise not.
    (Better, if it could be done by using business component user properties)

    Hi,
    Surely i can give you details.
    The LOV Type is - QTR_DET which has the following values -
    1.Description - 04/03/2009 & Display Value - "Q2-2009"
    2.Description - 07/05/2009 & Display Value - "Q3-2009"
    3.Description - 10/02/2009 & Display Value - "Q4-2009"
    These 4 quarter values are updated for every year
    Hence, I need to compare values, on the basis of these values.
    The Quarter for the Close Date has to be compared to Quarter which includes "Today"
    As far as i know, JulianQuarter divides the year into exactly 4 parts, but as you can see, the values are not same as the quarter values, i need to use.
    It would be surely great if you could help me solve this, as i am new to siebel.
    I was trying to try with Lookup as well.
    (The Following way, i was trying, but did not work
    -Field1 is a calculated field - Lookup(QTR_DET,[Close Date])
    -Field2 is a calculated field - Lookup(QTR_DET,Today())
    -InPresentQuarter is a calculated field - IIF((Field1 = Field2), "N", "Y")
    And this was further used for the Field Read Only Field: [Field Name] to make it read only)
    Also please let me know, if this is the right way.

Maybe you are looking for

  • Mouse Cursor Problem on Android RD Client Application

    Hi; I am use to Lenovo tablet. my problem is rd client mouse cursor. the cursor positions on left and top corner always. do not item select. do not  item click. Help me, please.

  • Movies downloaded are stoping occasionally and seem to be loading, how do I fix this?

    Each time I play a movie which is downloaded the movie stops several times and seems to be reloading or streaming and takes sometimes many more minutes to watch, any ideas how to fix this? The wifi is no problem.

  • Dynamic text won't display

    I don't know if this is a bug. I have a movie that contains a dynamic text. When I run it, the text displays fine. But when the said movie is run through another movie clip (using loadMovie), the dynamic text won't display. Any ideas why? Thank you.

  • Pstack showing "??????" in place of function name

    I am using solaris 5.10 kernel patch Generic_127127-11 When I do pstack on a core file it shows following output ----------------- lwp# 11 -------------------------------- 001b8d88 ???????? (14c0fb90, 14c50c70, 8, fe3fb9b4, 0, 0) 00199964 ???????? (0

  • Filters not importing with xmp files

    I have an editor do my culling and color correction with Lightroom. She sends me the xmp files and she uses the stars and color filters to show which images she has picked but sometimes the stars and filters don't show up. Her color correction is the