Posting a readonly field

Hello,
I generated a create uix file based on a bc4j view object. Then I databinded a value to the field GeaendertVon.
This value must not be changed by the user, but setting it to readonly="true" or rendered="false" (the preferred solution) gives the following error if I press create:
JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO MASKEN(,STUFE,GEAENDERT_VON,GEAENDERT_AM) VALUES (:1,:2,:3,:4) RETURNING ID INTO :5; END;".
NAME
this the uix fragment:
<contents>
<bc4j:viewObjectScope name="MaskenVOInst">
<contents>
<bc4j:rowScope name="CreateMaskenVOInst">
<contents>
<bc4j:messageInput attrName="Id"/>
<bc4j:messageInput attrName="Name"/>
<bc4j:messageInput attrName="Stufe"/>
<bc4j:messageInput attrName="GeaendertVon" data:text="username@loginData" readOnly="true"/>
<bc4j:messageInput attrName="GeaendertAm" />
</contents>
</bc4j:rowScope>
</contents>
</bc4j:viewObjectScope>
</contents>

hello, this is my create handler (as been generated by JDeveloper):
<event name="apply">
<bc4j:findRootAppModule name="MaskenVOInstAppModule">
<bc4j:findViewObject name="MaskenVOInst">
<bc4j:findRow name="CreateMaskenVOInst">
<bc4j:setPageProperty name="key">
<bc4j:stringKey/>
</bc4j:setPageProperty>
<!-- set each attribute explicitly -->
<bc4j:setAttribute name="Id"/>
<bc4j:setAttribute name="Name"/>
<bc4j:setAttribute name="Stufe"/>
<bc4j:setAttribute name="GeaendertVon"/>
<bc4j:setAttribute name="GeaendertAm"/>
<bc4j:insertRow/>
<bc4j:commit/>
<bc4j:executeQuery/>
<ctrl:go name="masken_v" redirect="true"/>
</bc4j:findRow>
</bc4j:findViewObject>
</bc4j:findRootAppModule>
</event>

Similar Messages

  • How to get the value from the readonly field?????

    Hi All,
    I have a readonly field in JSF. in action class i want to get the value of that field.
    How to get the readonly field value???
    i am getting null if the field is readonly.
    i am getting value if the field is not readonly.

    I might have a problem similar to yours. Refer to the post I made entitled "Readonly and Disabled Fields Losing State Between Submits".

  • How to make MessageTextInput as a readonly field.

    Hi,
    I want to make MessageTextInput as readonly field.
    OAMessageTextInputBean textBoxName = (OAMessageTextInputBean)webBean.findChildRecursive("MytextField");
    textBoxName.setReadOnly(true);
    When i am using above code it will not render field on page.
    Same thing is happening while trying to use readonly = True property at design time.
    could anyone help on this?
    Thanks in advance
    Laukik Pachanekar

    Hi,
    Thanks for your response.
    I am using below code in processRequest method.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAMessageTextInputBean textBoxName = (OAMessageTextInputBean)webBean.findChildRecursive("MytextField");
    textBoxName.setReadOnly(true);
    Thanks,
    Laukik

  • Purpose of "posting in gl" field in depreciation area

    Hi,
    I am confused with the posting in gl field in the depreciation area because if i choose area posts depreciation only then i noticed the area also post APC values together with depreciation values. Then what is the real purpose of this function?

    You need a debet and credit posting.
    With the retirement this account is possted as 0. See it more as an offset account.
    You post 1 area normal and one only deprreciation, when yes the second posting
    When you put this account outside your standard balance stucture you don' have problems with reporting.
    The profit and loss accounts you have to assign to a different P&L Statement Account Type. This account you place there to, the same you have to thee with scrap value, profit/loss on sales.

  • Posting key X Field status group

    Hello,
    How is it possible to define Field status group depending on Posting key.
    Field status group is assinged to GL account.
    However I can see that when I E.g. post to a customer account - when using different posting keys there are different field status variants in FB01.
    I cannot find this is set up in SPRO.
    Many thanks in advance,
    Jan

    Hi,
    Field status can be determined through Posting key also. In OB41, click on any posting key and in the next screen Field status tab is available.
    This can be used to configure Field status of document line item posting key wise.
    Regards,
    Gangadhar

  • Dynamicaly change a readonly field to textbox

    Hi,
    In the UIX page I have a messageTextInput field that is readOnly and a submitButton named New. I want the readOnly field to be changed to the textInput field after clicking the submitButton. So can I do that through data binding. I have not a clearcut idea about data binding. so if anybody has any idea please give me some tips.
    Thank You.
    Namita

    Namita,
    JHeadstart has some built-in support for this that might help you. If you check the "insert only" checkbox for the ViewObject attribute in the View Object attributes UI panel, it will be displayed as read-only for an existing row, and when you press the New button to enter a new record, it will render as text-input field. This setting is typically used for primary key attributes that should not be updatable, but must be insertable.
    Is that what you want?
    Steven Davelaar,
    JHeadstart Team.

  • Reset form to null values...except readonly fields.

    I need the ability to set all of my checkboxes to a state where they are not Checked...and my dropdowns to a value of zero....and non-readonly text boxes to null string.
    However, I have several text boxes with information I want to retain. They are set to readonly.
    Do I have to write my own reset function to do this or can I configure the form fields in a manner that Adobe's resetForm will do the trick ?

    You can set their default value to their current value. That will mean that
    the resetForm command will not affect them.
    If you don't want to do that then you'll need to write your own code to
    reset the file, yes.
    On Fri, Oct 24, 2014 at 4:35 PM, syswizardx <[email protected]>

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • Posting on required field for CO-PA in MIRO

    We are using MIRO for all our postings on vendors (one workflow)
    When we are making postings is possible in a situation that we crated the CO-PA posting without the required field for CO-PA.
    Steps:
    We fill in all information from the posting like  Business area and Profit center.
    Click on Prof. Segment (now you see the required fields)
    Click on Cancel
    Click on Prof. Segment (now company code, Business area and Profit center are filed in and can not be changed)
    Click on Continue
    Now the Prof. Segment is green and we save the posting without the required fields for CO-PA
    We are working on version 4.6. With the transaction FB60 it is not possible to create the same situation.
    How we can solve this problem?
    Thanks
    Paul

    Hi Anantha,
    We are using only MIRO for vendor postings. The reason is that there is one central center that is scanning in the invoices and sent them around with work-flow. To keep it simple we are using only MIRO.
    Paul

  • FI Posting Error Balancing field "Profit Center" not filled-Vendor acc

    Dear All,
         System has been Configured the emp. loan and insurance deduction to be posted to respective vendor accounts. while making the FI posting system is throwing error like "Balancing field "Profit Center" in line item 001 not filled".
      We have 8 profit centers.  emp. loan deductions to be posted in vendor acc. across all the profit center wise. Business Area and Cost Center has been maintained properly for all employees in IT 0027 & IT 0001.
      Doc. type also has classified  for doc. splitting(spro>GL acc(new)>Bus. Trans --> Doc. Split --> Classify doc. type for split.).
    How this issue can be solved, kindly help us out.
    Regards,
    Param.

    Hi Murali,
    You are correct,Standard SAP business transaction "0000" and variant "0001" - unspecified posting will not cater the above requirement.
    Doc Type SA does not split. Either you can use "001" in front of SA doc type which I do not recomment, but else create a new Documnet type with 0001.
    In standard configuration in many places SAP has used 0000 whcih does not split. You need to define new doc types as per your requirement and assign business transaction and variant to it as per business need.
    Do let me know if it works.. else we can try something else..
    Regards,
    SAPFICO

  • In F-51 transaction was not posted,& due date field for advance payment VEN

    1.  In F-51 transaction was not posted. 
    In the above T-code I want to tranfer Invoice amount (RE) to special GL debit retention money payable the following error was throwing,
    Balancing Field "Profit Center" in the line item 001 not filled.
    2. For advance payments for vendors due date field is not appearing in document entry screen.  How   can I see due date field in document entry screen.
      In OB41 I changed the field status for posting key 29 in payment transations I made due date field required, but it is not appearing due date field in document entry screen, while posting transaction.
    Please advise on this.
    Regards

    Hi thru f-51 u cannot post the transaction here u can enter first line item and select process open item and post it and the base line date is already entered in invoice document based on that one the advance amount is adjusted u con't enter that base line date at the time of advance payment and also the payment terms are maintained in vendor master based on that on also due date is calculated i hope it will be helpful.

  • IDOC Posting with new fields in VA01

    Hi,
    Previously i asked for creating New fields in VA01 screen.
    i got that now i need to create a sales order based on the Inbound IDOC  which i get and i will be getting new fields which are created .
    And this Fields data is coming from an Extension to the Standard IDOC. Sales order is getting created but the new fields are not getting populated nor stored in VBAK Table.
    pls let me know why is this.And provide me with a soultion.
    MG.

    Hi,
    i had a similar problem in my last assignment .
    I think you are using IDOC_INPUT_ORDERS F/M for Posting the IDOC.
    Here once you go into the code at line number 116 you can see that they are calling Transaction VA01 for posting the sales order .
    If you go into any perform there you would be having the User Exits . Use the exits and you need to process the IDOC in the Foreground so that you can catch the Screen flow and the screen number , as you do in SHDB.
    Now you need to make sure that you are getting the new screens there where you have desigined the fields on the screen.
    And write the BDC Code with proper OK Codes before the Save ok code SICH is reached .
    And make sure that you are writing the code at the header level only as you need to update the VBAK Table.
    As this is a single screen you can directly write the BDC code for populating the fields data and at last make sure that the ok-code you are giving is the right one.
    Pls let me know if this problem is solved , i need to check the code in which exit i have written . But  here it would be the same EXIt i think .
    the exit name is EXIT_SAPLVEDA_002 .
    Pls check this and let me know.
    Regards,
    Naidu.

  • Double posting - Vendor Reference field

    Hello,
    As you know SAP standard is checking the following fields to identify if an invoice is duplicated:
    Company code
    Vendor number
    Currency
    Reference number
    Amount in document currency
    Document date
    I want to change the warning message that SAP shows when using the same Reference when posting (FB60) for an error message.
    Which is the best way:
    -Function module to check Reference field
    -Add a substitution for document type (vendor invoice)
    -Or another suggestion....
    Thanks for your help
    REgards

    Hi. Why do you need set? If you're going to check for all vendors, then just put if account type=K, then user exit, where you check if current reference field exist in bseg (or you can improve logic, eg check reference only for current vendor etc)

  • Changing a readOnly field to accessable

    I have a form that when a checkbox is checked another part of the form is set to readOnly. My question is, if the same checkbox is unchecked how do I change the fields set to readOnly back to user entered.

    myField.access = "open";

  • FB60: Posting Date/Currency Field clarify

    Hi,
    I have two doubts in FB60 screen:
    1) Is there any configuration to default the system date as the default posting date or is it defaulted by SAP itself?
    2) How to suppress the 'currency key' field in this screen?
    Thanks
    Suresh

    To defaulted the posting date to sap system date. Go to FB00,  go to the last tab "Cash Jrnl", in the "entry options" segment, marked the Set Posting Date and Document Date to System Date.
    Indicator: Set Posting Date to System Date?
    If you set this indicator, within the cash journal, the default value for the posting date and the document date are always set to the system date.
    If you do not set the indicator, for display periods in the past, the last day of the display period is defaulted for the posting and document date.
    Hope this help.

Maybe you are looking for

  • Torch is not working I need to get my info from BB Protect

    My Torch just stopped working and I just got an iPhone.  I need to get my info that is stored on BB Protect and download my pics, etc. into my PC or my new iPhone.  How can I do this?  I have a lot of work stuff in there and I am desperate!

  • How to do a video capture of desktop?

    an app that i'm using isn't behaving correctly. the makers of the app haven't been able to recreate the problem. is there anyway to capture video of me scrolling around on my desktop so I can show them what's going on?

  • Problem integrating BPM Process Spaces with Webcenter Spaces PS5

    Good Day! I have currently installed a fresh build of Webcenter 11.1.1.6 stack in a single domain which contains: 1.)     UCM 2.)     Spaces 3.)     SOA with BPM After configuring process-portal-install.properties, I have run the ant –f install.xml c

  • Non-Nokia headphones not working with N9

    Heyo, I tried plugging my Etymotic mc3 headphones into my N9, but the sound keeps playing through the speakers. The stock Nokia 'buds work, and the only difference between the two is that the Etymotics have inline volume controls. Will these buds sim

  • Need old key to be activated but lost old pc with it

    i been using Photoshop elements 6 for years as i suffered major losses back then and was able to recover the problematic key regestration issues, that saying pc took a turn for the worst as the hard drives finaly quit and lost my LAST legit photoshop