ADF create form : change value fields

Hi all,
I have a create form:
first problem
one field is an ID known by my backing bean
<af:form>
        <af:panelFormLayout>
          <af:inputText value="#{bindings.Mpr.inputValue}"
                        label="#{bindings.Mpr.hints.label}"
                        required="#{bindings.Mpr.hints.mandatory}"
                        columns="150"
                        maximumLength="#{bindings.Mpr.hints.precision}"                       
                        shortDesc="#{bindings.Mpr.hints.tooltip}"
                        clientComponent="true">
            <f:validator binding="#{bindings.Mpr.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Mpr.format}"/>
            <af:clientListener method="getMpr" type="mouseOver"/>
            <af:serverListener method="#{backing_main.remplirChampMprCreerNote}" type="seekMPR"/>
          </af:inputText>I would like that when my page appears this value field *#{bindings.Mpr.inputValue}* be filled by this one *#{backing_bean.myID}* .
second problem
I have 3 richTextEditor who provide auto-completion (If you type ADF and then *<ctrl+space>*, ADF would be replaced by Application Developpement Framework thanks to a bean)
It works outside a create form . Inside a create form the problem is when calling my bean I have a validator alert who say "you must enter a value" and my Component's value is reseted..
Does someone knows these problems ?
Thanks,
valéry.

Hello simply,
I have an af:form generated by a viewObject's drag and drop, the automatically generated code use bindings, I just replace 3 af:inputText by 3 af:richTextEditors and I add the listeners for <ctrl+space> event.
here is the JSF page :
    <f:view>
    <af:document title="une note au dossier médical">
    <af:messages/>
                        <f:verbatim>
            <![CDATA[       
            <script language="javascript" type="text/javascript">
            var comp;
            var target;
            var prevKey;
            var curKey=0;
            function wysiwygKeyPress(event) {
                prevKey = curKey;               
                curKey = event.keyCode;
                var wysiwygValue="";
                if(prevKey==17 && curKey==32)   // CTRL + espace
                    var richTextEditor = comp; //wysiwygmode
                    if (target.contentWindow.document.attachEvent){   //IE specific
                         if(target.contentWindow.document.body.firstChild.innerHTML)
                            wysiwygValue = target.contentWindow.document.body.firstChild.innerHTML;
                         else
                             wysiwygValue = target.contentWindow.document.body.innerHTML;
                      else {     //FF specific
                         wysiwygValue = target.contentDocument.body.firstChild.textContent;
                    AdfCustomEvent.queue(comp, "customEvent",{value1:wysiwygValue}, true);
            function rteMouseOver(event) {
                comp = event.getSource(); //helper function
                target = event._target;
                //IE could not find the event._target
                var clientId = comp.getClientId()  + "::cont";
                var iframe = document.getElementById(clientId);
                if (iframe.contentWindow.document.attachEvent) { //IE
                   target = iframe;
                   //IE uses attachEvent
                   iframe.contentWindow.document.attachEvent('onkeydown', function() { wysiwygKeyPress(iframe.contentWindow.event); });
                else {
                //FF uses addEventListener
                  iframe.contentWindow.addEventListener('keydown',wysiwygKeyPress, true);
            </script>
            ]]>
        </f:verbatim>
      <af:form>
        <af:panelFormLayout>
          <af:inputText value="#{bindings.Mpr.inputValue}"
                        label="#{bindings.Mpr.hints.label}"
                        required="#{bindings.Mpr.hints.mandatory}"
                        columns="150"
                        maximumLength="#{bindings.Mpr.hints.precision}"                       
                        shortDesc="#{bindings.Mpr.hints.tooltip}"
                        clientComponent="true"
                        >
            <f:validator binding="#{bindings.Mpr.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Mpr.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Commentaire.inputValue}"
                        label="#{bindings.Commentaire.hints.label}"
                        required="#{bindings.Commentaire.hints.mandatory}"
                        columns="150"
                        maximumLength="#{bindings.Commentaire.hints.precision}"
                        shortDesc="#{bindings.Commentaire.hints.tooltip}"
                        >
            <f:validator binding="#{bindings.Commentaire.validator}"/>
          </af:inputText>
          <af:spacer width="19" height="17"/>
          <af:richTextEditor value="#{bindings.Observation.inputValue}"
                             label="#{bindings.Observation.hints.label}"
                             required="#{bindings.Observation.hints.mandatory}"
                             columns="150"
                             shortDesc="#{bindings.Observation.hints.tooltip}"
                             clientComponent="true">
                <af:clientListener type="mouseOver" method="rteMouseOver"/>
                <af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
          </af:richTextEditor>
          <af:spacer width="15" height="22"/>
          <af:richTextEditor value="#{bindings.Traitement.inputValue}"
                             label="#{bindings.Traitement.hints.label}"
                             required="#{bindings.Traitement.hints.mandatory}"
                             columns="150"
                             shortDesc="#{bindings.Traitement.hints.tooltip}"
                             clientComponent="true">
                <af:clientListener type="mouseOver" method="rteMouseOver"/>
                <af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
          </af:richTextEditor>                            
          <af:spacer width="17" height="18"/>
          <af:richTextEditor value="#{bindings.Conclusion.inputValue}"
                             label="#{bindings.Conclusion.hints.label}"
                             required="#{bindings.Conclusion.hints.mandatory}"
                             columns="150"
                             shortDesc="#{bindings.Conclusion.hints.tooltip}"
                             clientComponent="true">
                <af:clientListener type="mouseOver" method="rteMouseOver"/>
                <af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
        </af:richTextEditor>                            
        </af:panelFormLayout>
        <af:commandButton text="Sauvegarder la note"
                          action="#{backing_main.creerNote}"/>
      </af:form>
    </af:document>
  </f:view>A pageDef file is automatically created :
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                version="11.1.1.52.5" id="ajoutNote3PageDef"
                Package="viewcontroller.pageDefs">
  <parameters/>
  <executables>
    <iterator Binds="TmpnoteView1" RangeSize="25"
              DataControl="AppModuleDataControl" id="TmpnoteView1Iterator"/>
    <invokeAction Binds="Create" id="invokeCreate" Refresh="prepareModel"
                  RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>             
  </executables>
  <bindings>
    <attributeValues IterBinding="TmpnoteView1Iterator" id="Mpr">
      <AttrNames>
        <Item Value="Mpr"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="TmpnoteView1Iterator" id="Observation">
      <AttrNames>
        <Item Value="Observation"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="TmpnoteView1Iterator" id="Traitement">
      <AttrNames>
        <Item Value="Traitement"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="TmpnoteView1Iterator" id="Conclusion">
      <AttrNames>
        <Item Value="Conclusion"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="TmpnoteView1Iterator" id="Commentaire">
      <AttrNames>
        <Item Value="Commentaire"/>
      </AttrNames>
    </attributeValues>
    <action IterBinding="TmpnoteView1Iterator" id="Create"
            RequiresUpdateModel="true" Action="createRow"/>
    <action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
            DataControl="AppModuleDataControl"/>
  </bindings>
</pageDefinition>I add to this form a create button and a commit button, you could see it in the pageDef :
<action IterBinding="TmpnoteView1Iterator" id="Create"
            RequiresUpdateModel="true" Action="createRow"/>
<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
            DataControl="AppModuleDataControl"/>I call these actions in the bean creerNote called by my submit buton:
public String creerNote() throws IOException {
        // --- modify fields to remove some html tags --- //
        // --- 1. get EL context --- //
        FacesContext facesContext = FacesContext.getCurrentInstance();
        Application app = facesContext.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = facesContext.getELContext();
        // --- 2. get ExpressionValues --- //
        ValueExpression valueExpObserv = elFactory.createValueExpression(elContext, "#{bindings.Observation.inputValue}", String.class);
        ValueExpression valueExpConcl = elFactory.createValueExpression(elContext, "#{bindings.Traitement.inputValue}", String.class);
        ValueExpression valueExpTrait = elFactory.createValueExpression(elContext, "#{bindings.Conclusion.inputValue}", String.class);
        // --- 3. get String values --- //
        String texteObserv = (String)valueExpObserv.getValue(elContext);
        String texteConcl = (String)valueExpConcl.getValue(elContext);
        String texteTrait = (String)valueExpTrait.getValue(elContext);
        // --- 4. remove some html tags --- //
        texteObserv = texteObserv.replaceAll("<p>","");
        texteObserv = texteObserv.replaceAll("</p>","");
        System.out.println("[Main.java] CreerNote > observations après traitement : "+texteObserv);
        texteConcl = texteConcl.replaceAll("<p>","");
        texteConcl = texteConcl.replaceAll("</p>","");
        System.out.println("[Main.java] CreerNote > conclusions après traitement : "+texteConcl);
        texteTrait = texteTrait.replaceAll("<p>","");
        texteTrait = texteTrait.replaceAll("</p>","");
        System.out.println("[Main.java] CreerNote > traitements après traitement : "+texteTrait);
        // --- set new values --- //
        valueExpObserv.setValue(elContext, texteObserv);
        valueExpConcl.setValue(elContext, texteConcl);
        valueExpTrait.setValue(elContext, texteTrait);       
        // --- set mpr field --- //
        ValueExpression valueExpMPR = elFactory.createValueExpression(elContext, "#{bindings.Mpr.inputValue}", String.class);
        valueExpMPR.setValue(elContext, getMprSelected());
        // --- call the create pageDef's action --- //
        bindings = getBindings();
         OperationBinding operationBinding = bindings.getOperationBinding("Create");
         operationBinding.execute();    
        // --- call the commit pageDef's action --- //
        bindings = getBindings();
        operationBinding = bindings.getOperationBinding("Commit");
        operationBinding.execute();       
        return "Abrev";
}As you know, If I type <ctrl+space> I call the method ctrlspaceHandler who change the value of the component.
public void ctrlSpaceHandler(ClientEvent clientEvent) {
        // --- get applicationModule --- //
        if(am==null)
           setAm();
        // --- get myViewObject --- //
        ViewObjectImpl mesAbrev = am.getThesaurusVO1();
        ViewCriteria vc =  mesAbrev.createViewCriteria();
        ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
        // --- get richTextEditor's last word without html tags--- //
        RichTextEditor rte = (RichTextEditor) clientEvent.getComponent();
        String texte = (String)clientEvent.getParameters().get("value1");
        System.out.println("[Main.java] ctrlSpaceHandler > valeur du rte via rte.getParameter: "+texte);
        int indiceDernierMot = texte.lastIndexOf(" ");
        indiceDernierMot++;
        String abr = texte.substring(indiceDernierMot).toUpperCase();
        abr = abr.replaceAll("<BR/>",""); abr = abr.replaceAll("<br>","");
        abr = abr.replaceAll("</P>",""); abr = abr.replaceAll("</p>","");
        abr = abr.replaceAll("</FONT>",""); abr = abr.replaceAll("</font>","");
        abr = abr.replaceAll("</SPAN>",""); abr = abr.replaceAll("</span>","");                                           
        System.out.println("[Main.java] ctrlSpaceHandler > abréviation recherchée : "+abr);
        // --- add a criteria to my viewObject --- //
        vcRow.setAttribute("Msgcourt", "like '"+abr+"'");
        vc.addElement(vcRow);
        mesAbrev.applyViewCriteria(vc);
        // --- seek the abbreviation --- //
        mesAbrev.executeQuery();
        // --- get row found --- //
        Row row = null;
        while(mesAbrev.hasNext())
            row = mesAbrev.next();
            System.out.println("[Main.java] ctrlSpaceHandler > ligne trouvée : "
                           +row.getAttribute("Spr") +" - "
                           +row.getAttribute("Msgcourt")+" - "
                           +row.getAttribute("Msglong"));
        // --- if found --- //
        if(row!=null)
            // --- get abbreviation's detail --- //
            String detail = (String)row.getAttribute("Msglong");       
            System.out.println("[Main.java] ctrlSpaceHandler > message long = "+detail);
            // --- replace abbreviation by detail in the text and update graphical component --- //
            texte = texte.replaceAll(abr.toLowerCase(), detail);
            texte = texte.replaceAll(abr.toUpperCase(), detail);
            rte.setValue(texte);
            RequestContext.getCurrentInstance().addPartialTarget(rte);
}When debug I see all my method bean works fine.
But as result on the form I have a message who say "first enter value", I can bypass this problem if I remove all richTextEditor's required attributes. Biggest problem is that my richText component is cleared after ctrl+space... My test with a richTextEditor bind to a bean was OK, the only difference here is my richTextComponents uses bindings with pageDef.
Thank you,
Valéry

Similar Messages

  • ADF create form problem

    Hello forum, I know - I am back again. But I am having all kinds of issues developing this ADF BC create form. Given the following scenario, can somebody please explain how he/she would set out to create the following ADF create form?
    You a have a db entity call it table with fields1 through 10. During any create transaction, one of field1 or field2 or field3 must be present together with field4 through 10. That is, field1 can be entered along with fields 4 to 10 or field2 can be entered together with fields 4 to 10 or field3 and fields 4 - 10. Field10 can have four exclusive choices (say a, b, c, d) and should default to d (radio button). Field3 should store the name of an uploaded file. At no time can fields 1, 2 and 3 be entered. It is either one or the other.
    Here's how I set out to develop this and have been running into all sorts of problems from Row inconsistency issues to 500 Internal errors. I created an unbound select one Radio component with three choices to display either field1 or field2 or field3 depending upon the radio button selected. I used the switcher facet to hide fields 1 and 2, show field 3 if radio button 3 was selected. So whenever radio button 1 was selected, field1 would be displayed, then fields 2 and 3 will be hidden. Initially, I used regular input components to display fields 1 to 3 and then try to map them back to the database but couldn't figure out how to do this. I then followed John's suggestion to use transient entity attributes. I did this but still couldn't figure out how to access their values so I could set the relevant db columns accordingly.
    Because of the way this requirement is, I had to drag and drop field1, 2, and 3 in three different single drag and drop operations, then drag and drop the entire collection with the option to include the submit button, delete fields 1 through 3 in another operation. This created 2 different iterators in the pageDef file. I am not an expert yet on ADF but maybe this might be part of my problems. Trying to use two different iterators to insert into a single table during a single DML operation. But then again both iterators are bound to the same entity. I am not sure anymore.
    Is anybody kind enough to take a look at what I have so far? John? Frank? Steve? Anybody? I am trying to make that switch from oracle forms to ADF. This is actually my first ADF form and so far it has been very frustrating. I really need help on this guys!!
    Thanks

    Thanks for the suggestion Frank! Just so I understand you, the ADF Faces text component that I am adding would be in addition to the radio select one component? Then if you click on radio button 1, enter data in the text field, that action should bind it to field1 and similarly for the other fields when radio button 2 or 3 is clicked? In this case I am assuming that I do not have to display the actual db fields1 - 3 on the form?
    This would be fine for fields1 and 2 (though field2 would require one to enter a substantial amount of text - on average a 1000 characters as opposed to field1 that has a maximum length of 40 characters). Field3 however is different because it should be an inputFile component in order to download OS files and store in the database. Thus the ADF Faces text component might not be able to handle this without substantial additional java code.
    Thanks again for your suggestions. I really appreciate it!

  • Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Yes but you will have to create some custom JavaScript to do this.
    Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.

  • How to create Formula based value field in COPA

    Hi,
    I want to know how to create formula based  value field in COPA
    My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
    factor.
    anybody give some light on the same topic or requirement ?
    Thanks
    Nilesh R

    The key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
    In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
    Now click the "check formuar"-button. Then save.
    Before you can use the key figure in assessment, execute TC KEUG.
    Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
    I hope this made it clearer.
    Regards
    Nikolas

  • Row Currency Error in ADF Create Form

    Hi. Can anybody help me with this simple problem. I have been reading through the threads, and I tried the solutions, but it doesn't work.
    I am having this error:
    JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[-14 ]
    I have one page, with a form. The form was created by dragging a view from the Data Control. The primary key is of type DBSequence. the client side validation is disabled, so errors created are done by the ADF Model validation, since the fields has the af:validator in them.
    I clicked the submit once, it shows the error, for the required values. Without doing anything, I clicked the submit for a second time. I get the said error about the currency, as well as errors for required fields. Funny thing is, after clicking the submit button twice, besides the error, the control fields disappear. Its like its a new record.
    Can someone help? Thanks in advance.

    This is what I found out when asking our team that prepares the patches...
    As you know the patches are generic and as a result can be applied to other platforms that JDeveloper is supported on. However the .bat that comes in the patch is for Windows only, but for other platforms you can most times copy the script from the file and replace the windows commands with their equivalent, for the required OS. Of course, ensuring to follow the patch readme instructions and to test the customized script to ensure the updates are applied correctly.
    Open the bat file in a text editor and you should be able to see what files are being replaced and/or installed, and in what locations.
    For example, in the bat look for windows commands such as 'copy', 'move', 'del' (most of the scripts are failry easy to understand what is going on). Take a backup and replace the windows commands e.g. on unix/linux to 'cp', 'mv', 'rm'
    The windows commands in the bat file can be changed to the required operating system's equivalent commands. Change manually of using the text editor's search & replace functionality.
    If the customer isn't confident or comfortable doing that Support can help out.

  • Primary key in adf create form

    Hi,
    I want to insert data to a table which has primary key. I have created a sequnece wich produces the uniq key number and trigger for before insert wich puts the number.
    Even I have trigger , when I commit a create form (I have drop create form on jsf page from datacontrol palette and put a commit button ) I get an error which says that this field is required. Is there something I missed??Anyone who has an idea??
    Please I need any kind o fhelp...
    Thank you very very much in advance
    Regards

    Thanks a lot, it worked. But it doesnt work if I have mandatory columns.Even I put some values when I commit I get the message that the value of this columns are required. Then I did something else. I changed back the primary key column from DBsequence to NUMBER and from the page's bean I put default vallue for it. In this case it works. Which way I should prefer? Is there something else that I have to add when I set the type to DBSequence?
    Thanks in advance
    Regards

  • Changing value fields in COPA

    Hello,
    I want to change :
    - the text description for 2 value fields in COPA.
    - These value fields are assigned to the value field group Z002 (in the T code KEVFG), and I want to change this assignment
    by linking them to the value field group Z001.
    These 2 value fields are not any more used for 2 years. Can this change have a lot of impact in the production system?. Shall I need to generate again the operating concern after these changes?
    Thanks in advance
    Barondra BERGET

    Hi,
    If you want to change the description of a characteristic
    or value field you must change the descriptions of the related
    data element.
    Therefore you need to perform the following steps:
    1. In KEA5 / KEA6, type in the name of the characteristic/
       value field and click on the create / change button
    2. On the next screen, double click on the data element of your
       characteristic/value field
    3. On the 'Display Data Element' screen, click on the tab strip
       "Field label".  You can see the four field lables short, medium, long
       and heading.  You should change all four field labels and then
       regenerate the data element.  After having done this you may have to
       to regenerate the characteristic/value field and the operating
       concern.
       I hope this answers your query. If so please close this message by
    pressing the confirm button. Else do not hesitate to get back for more
    clarifications.
    Kind Regards,
    Abhisek Patnaik,

  • ADF Create Form - will compensate

    I figured in as much as I am willing to learn and transition to ADF, I am not going to waste any more time on this create form. I am not sure if this is the right forum for this, but I am willing to compensate somebody who's willing to develop something that's working. It's a simple create form guys and I know that a lot of folks on this panel can nail it down in 30 mins or so. But I am not there - yet!
    If you are interested in further details please email me at [email protected] and I will provide you with the specs.
    P.S. Please guys keep in mind that this is a personal effort so it's nothing big. But its going to be worth your 30 mins or 1hr that's going to take you to develop the form.
    Thanks

    Nyanga,
    I was looking at your other post today regarding a create form. I think I may have something that is similar to what you are trying to do; before posting, let me explain what my JSF does, and you can comment.
    I have a JSF that is used to insert/update information in a single database table. Based upon one of the fields, let's call it field1 - other fields are displayed/cleared. For example, if field1 = "A" the user sees fields 2, 3, and 4, and fields 5, 6, and 7 are hidden (and internally set to null in the database record). Conversely, if field1 = "B" the user sees fields 5, 6, and 7, and fields 2, 3, and 4 are hidden (and internally set to null in the database record).
    Is this similar to your use case? If so, I can post a blog entry about it - it's really not to difficult.
    John

  • Changing Value field in COPA

    Hi,
      We have already posted a billing document. The material contains alternative unit of measurement. In the material master the alternative unit of measurement has been maintained wrongly. Due to this the report in copa shows a wrong picture in terms of units sold and the respective COGS for the material. Now we have changed the alternative unit of measurement.
    But how to change the value in the value field. Kindly help me in this regards
    Example: Material 1 Base unit : M2, Sale unit PC. Alt UOM wrongly maintained: 1 pc = 100 M2. Sold qty = 10 Pc, sold qty in Base unit : 1000 M2. Actual UOM : 10 PC = 100 M2, Actual old qty : 10 PC , 100 M2. 
    Regards

    Hi Vasantha,
    For this you can do manually cancel copa line item by using
    T CODE- KE4S00 ofter you post line item correctly (please maintain correct alternative unit of measurement )by using
    T CODE - KE21n .
    K.Satish
    With this method you will delete CO-PA line item and you will loose connection to the original billing document.
    Tapio

  • ADF Create form : Invalid owner exception

    hi
    i hve a master details form
    i hve to insert in to three more tables
    i created Eo's and Vo's for each and the association and links were created accordingly
    i want this form as a single page
    ie
    now i have to treat every view object as seperate one in the page
    i need to keep one create button for each view object to initialize the create page
    i tried to do with invoke action in executables
    now i am getting an error while initing the second create form
    *oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity: detail entity EO_ActivityDt, row key oracle.jbo.Key[-7 ].*
    is it possible prepare a create form from multiple table together with single create action
    pls advice
    thanks

    try chaging the pre-allocation size value (toplink map->Database Info tab->Sequencing).
    If you are using Oracle db, also make sure that you database sequence increment and TopLink sequence preallocation sizes are the same.
    For more info refer to http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/prjdaun007.htm
    Re: Toplink Sequence - Preallocation in Oracle
    Hope this helps,
    Anuj

  • Create characteristic and value field in kea0

    Hi there,
    I am writing a doc about above mentioned subject and wondering if somebody can inform me, if there are certain standard points I have to considerate like,  for e.g. regenerate the system?
    Thanks,
    K.

    Hi Kristina,
    Creation of COPA data structure must be defined very carefully. Please note that adding value fields and CHARs are very easy in COPA but removing them is just near to impossible. Also you must remember that there is a limit of Max 120 value fields and 50 Characteristics in standard SAP. You can check note 160892 in case you want to increase the limit. The other thing you should take into account is it should be possible to regenerate the operating concern in KEA0 before and after the changes to the data structure. COPA will not generate any transport request for these changes automatically so you need to transport them viw transaction KE3I. In case you have added a new Characteristics and you want to update the historical data as well you should take help of reallignment (KEND). For value fields you need to repost the documents through KE4S, KE4ST, KE4SFI and KE4SMM.
    I have tried to give some details if you need more information please let me know.
    Regards,
    Abhisek

  • Exit EXIT_SAPLKEII_002 in profibility Analysis to change value fields

    Hello,
    I want to change some of the value fields in the records which are produced in the CO-PA with
    the user exit EXIT_SAPLKEII_002.
    The problem is that the table interface table T_ACCCR_PA which is for the "FI/CO document: CO-PA segment" is not filled with the generated records.
    How can I change the value fields in co-pa in the user-exit than? Do I have to generate these
    records myself?
    Thanks.
    Regards, Lars.

    Hi,
    Welcome To SDN!!
      use enhancement COPA0001 , component EXIT_SAPLKEDRCOPA_001
    Regards
    Kiran Sure

  • ADF Create form

    hai ,
    i have one master detials form . i hve to insert in to three tables say cutomer master , customer personal details , Customer contact
    i have created entities ,associations and view objects , View Links for 3 tables and added to app module
    I just drag n drop the view objects to create a form
    Here i need to call *3 Create methods* of each View Objects to to init the create form
    and while Saving it shows error for customerid  in Cusomer Personal Details Table which should be inserted from the customer master table using View link /Association
    Pls advice

    hi timo
    i hve created as follows ,
    Created Eo's for 3 Tables n then Associations were created automaticaly with reference to Forign key constraints
    and Created the VO's for each n View Liks are created based on associations
    and added to app module
    i drag n drop the three VO's to create master form say vo1,vo2,vo3
    for each vo it have its own create method
    Now i tried
    1)
    with 3 create buttons
    ie i should click Create button 1 to init the fiirst table attribute n second button to init the second table attr n so on
    its working
    2)
    i hve added those three create method to page def executables its showing error for row key
    3)
    i tried with 1 backing bean and call the three create methods in the button action
    its showing error like
    oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity: detail entity EO_ActivityDt, row key null.
    *" Failed to find or invalidate owning entity: detail entity EO_ActivityDt, row key null.*
    *Failed to find or invalidate owning entity: detail entity EO_CorrespondenceHd, row key null. "*
    pls advice
    thanks

  • Change value field.

    how can I change a value of a field of one form with an applet?
    have I 1 metod for to get some information of document where my applet work?
    exp:
    <applet code="Applet1" width=300 height=300 >
    </applet>
    <form>
    <input name="ps" type="password">
    </form>
    I need change with "applet1" value of "ps" , is it possible?
    tnx

    First of all you need to give the input a valid id
    <input name="ps" id='ps' type="password">
    Then call javascript to set the value for this element from your applet:
              try {
                   this.getAppletContext().showDocument(
                             new URL("javascript: document.getElementById('ps').value='shit, this works';"));
              } catch (Exception e) {
                   e.printStackTrace();
              }

  • ADF input form, changing mode to input rather than display

    aim of what i am tring to do:
    create an input form using ADF and UIX which accepts input and moves to a different page.
    approach taken:
    I have a data control based on a business component created from a database table. I have dragged the columns onto a UIX page as an input form without navigation.
    the problem/question:
    how do i set the data controls mode to create upon displaying the page? I want the page just to accept input and submit. it will never be used for displaying data, which is its current default state.
    i have tried calling the create method of the data control from a few places, but i am not sure where the correct place to call this is.

    You can create a dataaction before the page is called and drag the Create method on to it.
    Or you can add the create method as a button to the page that will end up calling your insert page.
    http://www.oracle.com/technology/obe/obe9051jdev/ADFWorkshop/BuildingADFApplicationsWorkshop.htm

Maybe you are looking for

  • File Sender Adapter - Dinamic Source Directory and Filename

    Hi Experts, I have to receive in XI a file and depeding of some info, put it in diferent directories with diferent fieldnames. In receiver File Adapter we can set the directory and fieldname dinamically by ABAP-CLASS mapping, but not in Sender. I've

  • How do  I make a ring tone for iphone 4

    How how do  I make a ring tone from my original music , all I read is old  , surely I can convert something to a ringtone  for my iphone 4. Just seems like I cant do anything without buying something from Apple ... need some help , iM geetting tired

  • Best Practice for converting Temps to Permanent Employees

    I'm interested in how other companies handle the conversion of Temporaory Employees to Regular Full-Time Employees. Currently, my company has a entirely separate "Temp Hire", which we use to get them in the system.  When they convert we perform a Ter

  • Deployment issue of webcenter portal application

    Hi, While deploying webcenter portal application I am getting below exception: Caused By: java.lang.ClassNotFoundException: oracle.webcenter.lifecycle.listener.FeatureMetricApplicationListener This is what I did: 1. Created a separate schema using we

  • Clocking digital I/O using a hardware timer.

    I am using a DaqCARD-6062E to create a JTAG interface to a microcontroller. Using the delay VI's to create the clock and shift out bits serially takes a long time since I have to shift out 600 bits and the smallest delay I can use is 1ms (making the