Trigger changes are not committing to the database

I have 9iAS and 9i DB both on my laptop.
I am having a problem in which a trigger run off a WHEN_BUTTON_PRESSED function is not committing the changes to the database. In the trigger I have:
1 record insert into table A.
1 record update to table B.
1 record insert into table C.
1 delete from table D.
None of the data is related.
I have tried various combinations of the below to get the changes to commit:
POST;
COMMIT_FORM;
Exit_Form(NO_COMMIT, NO_ROLLBACK);
MESSAGE('Got past COMMIT');
COMMIT;
CLEAR_FORM(NO_COMMIT);
ENTER_QUERY;     
I am getting varying amounts of "FRM: 40508 Oracle Error: Unable to INSERT record" statements. Even so, many times the form would act as if the changes had been properly applied. But when I did a separate DB verification, I would see that the changes are not being committed. Also, most of the time the changes would also be reflected in the calling form queries, but when I exit, all changes are rolled back no matter how many commit stmts are in the trigger.
I have finally gotten the form to do what I want to do (the 4 steps noted above), but I had to add a FORMS_DDL('COMMIT'); stmt and I am still getting a FRM 40508, but at least the changes are appearing in the db.
Any ideas on why so many troubles in getting the changes to commit??? I have spent a ton of hours trying "what ifs" to see what might work. Also, this trigger is the only real "code" in the forms.
Kim

Brett -
You're probably right about the intention, but this is a place where people can come and share styles, ideas, and coding tricks, I don't understand why someone would say that. Additionally, I had a professor who was a complete momo that said that all the time (consequently, his lax attitude towards teaching crippled the IS program where I graduated and most likely will cause it to no longer be available). It's a personal peeve of mine, just to let you know where I was coming from.
Secondly, the problem I'm having may have to do with what you said, however I can't be sure. To give a better description of my scenerio, I created a form that allows the user to load information about an employee by querying a SSN. Most of this information is for display only. Six fields are available to be updated and I wrote a DML UPDATE statement that I placed inside a WHEN-BUTTON-PRESSED trigger. However, these changes won't be written to the DB because Forms is attempting to write my entire datablock, instead of just following the specified DML statements. I'm at a loss as to why this would happen, but for simplicity's sake, I would listen to ideas of how to suppress this from happening so only my statements are used when updating the DB. If you can help, thank you, if not, then thank you for your time.
Steve

Similar Messages

  • TopLink cached object changed are not commited to the database

    Hello,
    I'm using TopLink 10 and I have a writing issue with a use case:
    1. I read an obect using TopLink that is in the IdentityMap
    2. Using JSF this object is edited throught a web form.
    3. I give the modified object to the data layer and try to modify inside a unit of work:
    UnitOfWork uow = session.acquireUnitOfWork();
    //laspEtapeDef comes from JSF and has been modfied previously
    LaspEtapeDef laspEtapeDefClone = uow.readObject( laspEtapeDef );
    //I update the clone field
    laspEtapeDefClone.setDescription(laspEtapeDef.getDescription());
    uow.commit();4. I use again the same object to display it once modified.
    The object is modified in the cache but the modified fields are never commited to the database. This code works only if I disable the cache.
    So, I've modified my JSF form to send the fields instead of modifying directly the object.
    My question: Is there a way to commit changes mades in an cached object?
    I've found the following section in the documentation, that explain the problem but doesn't gives the solution:
    http://docs.oracle.com/cd/E14571_01/web.1111/b32441/uowadv.htm#CACGDJJH
    Any idea?

    How are you reading in the object initially? The problem is likely that you are modifying an object from the session cache. When you then read in the object from the uow, it uses the object in the session cache as the back up. So there will not appear to be any changes to persist to the database.
    You will need to make a copy of the object for modification, or use the copy from the unitofwork to make the changes instead of working directly on the object in the session. Disabling the cache means there is no copy in the session cache to use as a back up, so the uow read has to build an object from the database.
    Best Regards,
    Chris

  • Why is my  CLEAR_BLOCK(no_validate) not committing to the database?

    What I need is when the alert button 1 is selected fo to the detail block(ADM) and just delete everything for the current master id. When I click on the button it deletes for a split second and all the data comes back.Quite confused..
    IF Id_Null(al_id) THEN
    Message('Alert does not exist');
    RAISE Form_Trigger_Failure;
    ELSE
    al_button := Show_Alert(al_id);
    IF al_button = ALERT_BUTTON1 THEN
         :global.cl_blk := 'Y';
         go_block('ADM');
         CLEAR_BLOCK(no_validate);
         synchronize;
         go_item('adm.dci_name');
         execute_query;
    else
              :global.cl_blk := 'N';
    GO_ITEM('AM.MAPPING_LEVEL');
    END IF;
    END IF;

    Why is my CLEAR_BLOCK(no_validate) not committing to the database?Better read the Clear_Block on-line help. I think you are mistaking the No_Validate parameter with the Do_Commit parameter.
    The No_Validate parameter "*+Form Builder flushes the current block without validating the changes, committing the changes, or prompting the end user.+*"
    With No_Validate, your changes are discarded, and NOT committed.

  • EMERGENCY: List of files in Recovery Area not managed by the database

    Hi,
    this is an emergency request....
    I have this data guard set up. And i accidently dropped online redo logs, standby logs and the archive log except the current online redolog.
    i actually ran to cleanup the whole directory which included the controlfile and the datafiles (was on the wrong location on ASM)
    but the controlfile and the datafiles did not get deleted. i can still see them on the ASM.
    and now when i am trying to restore the archive logs, but i keep getting error as shown below...
    WARNING: A file of type ARCHIVED LOG may exist in
    db_recovery_file_dest that is not known to the database.
    Use the RMAN command CATALOG RECOVERY AREA to re-catalog
    any such files. This is most likely the result of a crash
    during file creation.
    so when i did the below i was getting error as:
    RMAN> CATALOG RECOVERY AREA;
    using target database control file instead of recovery catalog
    searching for all files in the recovery area
    no files found to be unknown to the database
    List of files in Recovery Area not managed by the database
    ==========================================================
    File Name: +DATA/afcpdg/controlfile/controlfile01.ctl
    RMAN-07526: Reason: File is not an Oracle Managed File
    File Name: +DATA/afcpdg/onlinelog/group_1.304.718194815
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    number of files not managed by recovery area is 82, totaling 168.10GB
    But i do see those data files that RMAN is complaining as shown above in the ASM.
    I HOPE I DID NOT MESS UP THE CONTROLFILE and the DATFILES
    CAN SOMEONE HELP ME FIX THIS MISTAKE THAT I DID.
    Right now the data guard is running fine, the logs are getting shipped from primary and the getting applied at the DG.
    And i am able to see all the redo logs got deleted.
    But not sure how the deleted redo logs got created in the ASM (i did not create them manually)
    Thanks.
    Philip.
    Edited by: user8898644 on May 5, 2010 8:52 AM
    Edited by: user8898644 on May 5, 2010 9:16 AM
    Edited by: user8898644 on May 5, 2010 11:43 AM

    Yes this happened on the standby database.
    I had to restore the archive logs because i deleted all the archive logs which got shipped from the primary.
    I did re-create the standby logs. But when i checked back the redo logs that i deleted came back again.
    I have no idea how they can back again. is it a feature of ASM where a mirrored copy of the files are stored on ASM and they re-create them when accidently dropped.
    Can you help me understand how the redologs got created again automatically.
    Right now the data guard is running fine but i do see the error
    WARNING: A file of type ARCHIVED LOG may exist in
    db_recovery_file_dest that is not known to the database.
    Use the RMAN command CATALOG RECOVERY AREA to re-catalog
    any such files. This is most likely the result of a crash
    during file creation.
    and when i do the following
    RMAN> catalog recovery area;
    i do see errors as below...
    List of files in Recovery Area not managed by the database
    ==========================================================
    File Name: +DATA/afcpdg/controlfile/controlfile01.ctl
    RMAN-07526: Reason: File is not an Oracle Managed File
    File Name: +DATA/afcpdg/onlinelog/group_1.304.718194815
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    File Name: +DATA/afcpdg/onlinelog/group_2.372.718194833
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    File Name: +DATA/afcpdg/datafile/system.596.715610261
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    File Name: +DATA/afcpdg/datafile/undotbs1.571.715603525
    number of files not managed by recovery area is 82, totaling 168.10GB
    we do have the db_create_file_dest and db_recovery_file_dest pointing to the same location as +DATA
    How do i fix the above error?
    Thanks in advance.

  • Changes are not applying to the reports

    hi all
    i have moved the RPD and catalog file to UAT there i got few changes
    i did the changes in DVE and again i moved the changed reports to UAT ,but the report changes are not applied in UAT
    so i again i copied same RPD and catalog to UAT now it is working fine,
    why the changes are not applied to the reports that i have moved to UAT
    is it mandatory to move RPD and catalog to the other environment ??
    Thanks

    Hi,
    if you change even the filters and column names you cant modify only reports and place them in UAT,if you want to cnahge that way there is a tool CAF follow this link how to do that process
    http://debaatobiee.wordpress.com/category/obiee/setup-and-environment/
    If not you need to deploy RPD and catalog into UAT.
    By,
    KK

  • Changes are not reflecting in the Quality

    Hi,
    These are standard SAP Components. I have imported the ESS and MSS Packages.
    Actually 3 Development Components are using in my application (Tra,TraTri and TraTre).Tra is the root DC.
    I have made  changes  to those objects and sucecessfully  build  without errors.
    After check-in all  activities  those activities are working fine in Development system.
    But those changes not refclecting in Quality system. So i was founded build log error in Consolidation.
    I was fixed the error in the Development system and build the components without build error.
    still now changes are not reflecting in the quality system.
    But out of 3 DCs(Tra,TraTri,TraTre) Tra and TraTre are working fine in Quality(changes are  reflecting) only problem in TraTri DC (changes are not reflecting in the Quality)..
    Please help me as soon as possible....Its very help full for me
    Regards
    Sudhakar Reddy A

    Hi Slava,
    very very thanks to you for the fast reply. but one thing in my side.
    When i release the activities after successful build, i export those changes and place them in the import queue of the consolidation system in the CMS.
    The export in the SAP NetWeaver Developer Studio packs all selected activities into a change request, and then places them in the import queue of the consolidation system.
    When the my system administrator imports this request into the consolidation system, the released changes are integrated into the DTR workspace of the consolidation system; the build server compiles the modified components.
    my system administrator findout build error in consolidation system:
    [wdgen] [Error]   .PersonnelNumberCheck: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   .PersonnelNumberCheck.I_Employeenumber: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Output [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Output [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.E_Name: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Et_Return [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Et_Return [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Type: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Log_No: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Field: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.System: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V1: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V3: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V2: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Log_Msg_No: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Number: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V4: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Parameter: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Id: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Row: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextValueAttribute EmployeeName [readOnly]: The context attribute has to be read-only. (Hint: As the mapped context attribute is read-only this attribute has to be read-only, too.)
    I was fix error in my development system with out any build errors. still now not working ...pls give me any suggestion.i dont have access to consolidation system.
    Regards,
    Sudhakar

  • Query changes are not reflecting in the Workbook.

    Hi All,
    I have modified the query by adding attributes. But the changes are not reflecting in the workbook.
    Do i need to insert the query again in the workbook or is there any option that will reflect the changes in the workbook
    Thanks in Advance,
    Suneel.

    Hello Suneel,
    if you insert the query again, it will work, but it is not the best way to delegate the query changes to the workbook.
    Just open your query from within your workbook (BEx menu 'change global definition') and use the green button at the top left in order to transfer the new query structure to the workbook. The query will be executed and you should see the changes.
    Don't forget to save the workbook afterwards.
    Regards,
    Kirill

  • Changes  are not reflecting in the table control in 2nd time

    Hi,
        In BSP Portal Asset management page, General,cost center, allocations ..etc tabs are there.and i have maintain button also in this page
    After filling all these things, when i  click the maintain button , the mandatory fields [General,costcenter,Eval1,Eval2]are displaying in the tablecontrol popup window,
    In the tablecontrol popup whatever i selected ,it is displaying fine..
              In the popup,save buttons is there.Once if i clicked the save button, popup will vanish and datas are stored in the internal table.and again it will come to portal main page.Now if i select the different values in the allocations dropdown, old vales are displaying in the tablecontrol popup. new dropdown values are not diaplying in the popup.what can i do?
    This is my code: popupdisplay.htm
    ==============
    <%
    * DATE CHANGE.....: 20/07/2007                                         *
    * AUTHOR..........: Mohan Pitchaimani (inmpi0)                         *
    * CHANGE DESCR....: DIsplay the popup when clicking the maintainbutton *
    * R/3 RELEASE...  : 2.1                                                *
    * MODIFICATION ID : MOD-001                                            *
    * RIFE/TPR/SCR No.: FSSE698 BSP Asset Mass Creation BSP Request form   *                                                *
    * RT/TRANSPORT....: 12403 / D94K969999                                 *
    %>
    <%--********************Begin of changes mod-001 on 20/07/2007 *****************--%>
    <%@page language="abap"%>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@ extension name="/DS1/mdm" prefix="mdm" %>
    <%
    data :
            lt_columns     type /DS1/MDM_tt_table_control,
            ls_column      type /DS1/MDM_ms_table_control,
            l_onload       type string,
            lr_field       type ref to  /ds1/cl_mdm_bspfield_services,
            lw_maintain    type /ds1/fss_ms_popup,
            l_editable     type char1,
            lt_drop        type /ds1/mdm_tt_dropdowns,
            ls_sc          type /DS1/MDM_MS_F4_SEARCH_CRITERA,
            ls_rmap        type /DS1/MDM_MS_F4_RESULTS_MAP,
            ls_drop        type /ds1/mdm_ms_dropdown,
            l_number       type int4.
    %>
    <%--********************Close the window **************************************** --%>
    <%  data: event TYPE REF TO CL_HTMLB_EVENT.
              event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
    %>
    <%
      if event is not initial.
        CASE event->id.
      WHEN 'con'.
    %>
    <script language="javascript">
    self.close();
    </script>
    <% endcase.
       endif.
    %>
    <%--************************ Popupdisplay ***************************************** --%>
    <htmlb:content design        = "design2002+design2003"
                   rtlAutoSwitch = "true"
                   forceEncode   = "ENABLED" >
    <htmlb:page title = "Maintain fields should be different from similar assets">
    <script type="text/javascript" language="JavaScript" src="../MDM_GENERIC/Javascript/MDM_Generic.js"></script>
    <%@ include file = "asst_scripts_change.htm" %>
    <%@ include file = "../MDM_GENERIC/TableControlStyleInclude.xml" %>
    <%   delete controller->r_asset_data->T_MAINTAIN where TXT50 = space. %>
    <% if controller->r_asset_data->t_maintain is  initial.
         lw_maintain-TXT50 = controller->r_asset_data->w_generaldata-DESCRIPT.
         lw_maintain-INVNR = controller->r_asset_data->w_generaldata-INVENT_NO.
         lw_maintain-kostl = controller->r_asset_data->w_timedependantdata-costcenter.
         lw_maintain-ORD41 = controller->r_asset_data->w_allocations-EVALGROUP1.
         lw_maintain-ORD42 = controller->r_asset_data->w_allocations-EVALGROUP2.
         lw_maintain-ORD43 = controller->r_asset_data->w_allocations-EVALGROUP3.
         lw_maintain-ORD44 = controller->r_asset_data->w_allocations-EVALGROUP4.
         lw_maintain-GDLGRP = controller->r_asset_data->w_allocations-EVALGROUP5.%>
    <%--******************** Appending the maintained values *************************** --%>
    <%
            if controller->r_asset_data->G_NO_ASSETS NE space.
                clear l_number.
                DO controller->r_asset_data->G_NO_ASSETS TIMES.
                    l_number = l_number + 1.
                    lw_maintain-SERNR = l_number.
                    APPEND lw_maintain TO controller->r_asset_data->t_maintain.
                ENDDO.
            else.
                DO controller->r_asset_data->g_no_similarsubno TIMES.
                    APPEND lw_maintain TO controller->r_asset_data->t_maintain.
                ENDDO.
            endif.
            controller->G_POPUP_FLAG = 'X'.
        endif.
    %>
    <%--******************** VAlidations for the Requester and Approver screen *************************** --%>
    <% if  controller->ms_request_header-req_status = '00'.
        ls_column-columnname = 'SERNR'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
    endif. %>
    <% if  controller->ms_request_header-req_status = '05'.
        ls_column-columnname = 'SERNR'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'TXT50'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'INVNR'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'KOSTL'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
    endif. %>
    <% if  controller->ms_request_header-req_status = '06'.
         ls_column-columnname = 'SERNR'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'TXT50'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'INVNR'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'KOSTL'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'ORD41'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'ORD42'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'ORD43'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'ORD44'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
        ls_column-columnname = 'GDLGRP'.
        ls_column-no_edit = 'X'.     
        append ls_column to lt_columns.
        clear ls_column.
    endif.
    %>
    <% if  controller->ms_request_header-req_status = '00'. %>
      <html>
    <body>
      <p>
        You can Maintain/Edit details of Similar Assets/Similar Sub - Assets . Click confirm to maintain the entries
    </p>
    </body>
    </html>
    <%    elseif controller->ms_request_header-req_status <> '00'. %>
    <html>
    <body>
      <p>You can view details of of Similar Assets/Similar Sub - Assets.
    </p>
    </body>
    </html>
    <% endif.%>
    <htmlb:form id='frmMain' >
       <htmlb:group>
       <htmlb:groupBody>
       <htmlb:gridLayout columnSize ="2"
                      rowSize    ="15"
                      width      ="150%">
       <htmlb:gridLayoutCell columnIndex="2" rowIndex="1" horizontalAlignment="left" verticalAlignment="top" width="200" wrapping="false">
       <%
      ls_column-columnname     = 'TXT50'.
      ls_column-input_type     = '1'.
      ls_column-data_type      = '1'.
      APPEND ls_column TO lt_columns.
      CLEAR ls_column.
      ls_column-columnname     = 'INVNR'.
      ls_column-input_type     = '1'.
      ls_column-data_type      = '1'.
      APPEND ls_column TO lt_columns.
      CLEAR ls_column.
    * build F4 Search sceen
      ls_sc-field_name = 'KOKRS'.
      ls_sc-data_element = 'KOKRS'.
      ls_sc-f4_from_data_element = 'X'.
      ls_sc-value = 'OP01'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'BUKRS'.
      ls_sc-data_element = 'BUKRS'.
      ls_sc-f4_values =  /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_COCE_COMPANY( ).
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'KOSTL'.
      ls_sc-data_element = 'KOSTL'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'KOSAR'.
      ls_sc-data_element = 'KOSAR'.
      ls_sc-f4_from_data_element = 'X'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'VERAK'.
      ls_sc-data_element = 'VERAK'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'LTEXT'.
      ls_sc-data_element = 'KLTXT'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'SPRAS'.
      ls_sc-data_element = 'SPRAS'.
      ls_sc-f4_values = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_LANGU( ).
      ls_sc-value = sy-langu.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'TELX1'.
      ls_sc-data_element = 'TELX1'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'FUNC_AREA'.
      ls_sc-data_element = 'FKBER'.
      ls_sc-f4_from_data_element = 'X'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'PRCTR'.
      ls_sc-data_element = 'PRCTR'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
      ls_sc-field_name = 'REGIO'.
      ls_sc-data_element = 'REGIO'.
      append ls_sc to ls_column-lookup_params-searchcriteria.
      clear: ls_sc.
    * set parameters for f4 lookup
      ls_column-lookup_params-POPUPHEIGHT = '550'.
      ls_column-lookup_params-POPUPWIDTH = '750'.
      ls_column-lookup_params-SEARCHMAXRESULTS = '500'.
      ls_column-lookup_params-SEARCHRESULTSKEY = 'KOSTL'.
      ls_column-lookup_params-SEARCHTABLE = 'CSKS'.
    * Set Column for Cost center
      ls_column-columnname     = 'KOSTL'.
      ls_column-input_type     = '4'.
      ls_column-data_type      = '1'.
      ls_column-tooltip_fom_de = 'X'.
      ls_column-scrollable     = ' '.
      ls_column-length         = '15'.
      ls_column-maxlength      = '15'.
      ls_column-halign         = 'RIGHT'.
      ls_column-valign         = 'TOP'.
      APPEND ls_column TO lt_columns.
      CLEAR ls_column.
    * Set Column for Evaluation group 1
          ls_drop-dropdown_id = 'evlg1'.
          ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '1'
                                      im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
          append ls_drop to lt_drop.
          ls_column-columnname     = 'ORD41'.
          ls_column-input_type     = '2'.
          ls_column-DROPDOWN_ID     = 'evlg1'.
          APPEND ls_column TO lt_columns.
          CLEAR ls_column.
    * Set Column for Evaluation group 2
          ls_drop-dropdown_id = 'evlg2'.
          ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '2'
                                     im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
          append ls_drop to lt_drop.
          ls_column-columnname     = 'ORD42'.
          ls_column-input_type     = '2'.
          ls_column-DROPDOWN_ID     = 'evlg2'.
          APPEND ls_column TO lt_columns.
          CLEAR ls_column.
    * Set Column for Evaluation group 3
      ls_drop-dropdown_id = 'evlg3'.
      ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '3'
                                     im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
      append ls_drop to lt_drop.
      ls_column-columnname     = 'ORD43'.
      ls_column-input_type     = '2'.
      ls_column-DROPDOWN_ID     = 'evlg3'.
      APPEND ls_column TO lt_columns.
      CLEAR ls_column.
    * Set Column for Evaluation group 4
      ls_drop-dropdown_id = 'evlg4'.
      ls_drop-values_tab = /DS1/CL_MDM_F4_VALUES=>GET_VALUES_FOR_EVALGRP1( im_group = '4'
                                     im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ).
      append ls_drop to lt_drop.
      ls_column-columnname     = 'ORD44'.
      ls_column-input_type     = '2'.
      ls_column-DROPDOWN_ID     = 'evlg4'.
      APPEND ls_column TO lt_columns.
      CLEAR ls_column.
    * Set Column for Evaluation group 5
      ls_drop-dropdown_id = 'evlg5'.
      ls_drop-values_tab = controller->GET_VALUES_FOR_EVALGRP5( im_bukrs = controller->R_ASSET_DATA->W_KEY-COMPANYCODE ) .
      append ls_drop to lt_drop.
      ls_column-columnname     = 'GDLGRP'.
      ls_column-input_type     = '2'.
      ls_column-DROPDOWN_ID     = 'evlg5'.
      APPEND ls_column TO lt_columns.
      CLEAR ls_column.
    * Input type
    *1     Text box
    *2     Drop down
    *3     Checkbox
    *4     F4 Lookup
    *5     HTML
    *6     Text just displayed
    *7     Date
    *8     Link
    *9     Time
    * Data type
    *1     String
    *2     Numeric
    *3     Date
    *4     Time
    %>
    <%---------------- TableControl display in the popupwindow --------------------------%>
       <mdm:tableControl table="<%=controller->r_asset_data->t_maintain%>"
                               id="tv1"
                               width="650"
                               no_buttons = "X"
                               height="330"
                               columns="<%=lt_columns%>"
                               dropdowns= "<%= lt_drop %>"
                               title="Maintain Asset"    >
       </mdm:tableControl>
      </htmlb:gridLayoutCell>
      </htmlb:gridLayout>
      <input type="hidden" name="renderedtv1" value= "rendered-tv1"  />
    <%---------------- Confirm Button-------------------------------- --%>
    <htmlb:button id="con"
                   design="STANDARD"
                   width="15"
                   text = "Confirm" onClick="confirm"
                   onClientClick = "self.close()"/>
    <%---------------- Cancel Button-------------------------------- --%>
    <htmlb:button id="cancel"
                   design="STANDARD"
                   width="15"
                   text = "Cancel"
                   onClientClick = "self.close()"/>
    </htmlb:groupBody>
    </htmlb:group>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    <%--********************End of changes mod-001 on 20/07/2007 *****************--%>
    Message was edited by:
            Durairaj Athavan Raja
        --formatting

    Hi Mohan,
    Please use the formatting options to format ur question...!!
    Thanks,
    Tatvagna.

  • Changes are not reflecting in the discoverer workbook

    Hi ,
    I have a report created with user Disco(Disco.Report_name).Now I need to add a column to it and i have done that with other user Discodev but when I save it the changes are not reflected on Disco(Disco.Report_name) rather it is being saved with user Discodev(*Discodev.Report_name*) .
    The User wants that the changes should be reflected on Disco.Report_name (I can't use the credentials of Disco to do this as it is also a user) .
    Appreciate your help !!
    Discoverer Version 4i
    Thanks ,
    Vijay

    Hi West,
    Thanks for the reply.
    I want to get clarified one thing, Is there any option where DISCO user can give Privileges to DISCODEV to make the changes,as the DISCO user is not a common user I have a problem in making the changes.
    Thanks,
    Vijay

  • Transactional Replication: Alter view changes are not reflect on Subscription database

    Hi All,
    we are configured transactional replication in our environment on sql server 2008 R2 , Yesterday I made a view alter on publisher database the view also present in replicated articles but unfortunately the changes not reflect in subscription, I already have
    checked the : Replicate Schema change option in Subscription option its also true, there is not latency exist in replication monitor , i have checked the blocking on subscription and publication. one more thing I tested the changes on replicated table its
    working fine
    Please help me to fix the issue.
    Regards,
    Pawan Singh
    Thanks

    Hi Pawan,
    According to your description, the alter on the view in publication doesn't be reflected in subscription database. As my analysis, the issue could be caused by that the distribution agent job doesn’t run after altering the view.
    I make a test on my computer, and set up transactional replication to replicate tables and views. Firstly, when creating subscription, I set the distribution agent job ‘Run continuously’(as the screenshot below), and alter the view in publication database,
    then the change is successfully reflected to the corresponding view in subscription database.
    However, I also make another test with setting the distribution agent job ‘Run on demand only’(It is determined by you), and find that it is not reflected to subscription database unless I run the distribute agent job manually.
    The distribution agent is used to read the updated transactions written to the distribution database and applies the change to the subscription database, so please check if your distribution agent job runs after you alter the view. If not, please run the
    job and check if the issue still occurs.
    Regards,
    Michelle Li

  • Changes are not reflecting in the page

    Hi All,
    I have an issue in custom page. In my custom page, if i click approve button for a particular batch, then it will navigate to previous page which contains 10 batches per page in the table structure.
    Once i clicked the Approve button it will update the status in the table. It is getting updated in the table but it is not reflecting on the Batches page while navigating to previous page.
    Kindly share your suggestions.
    Thanks and Regards,
    Myvizhi

    Hi Myvizhi ,
    Since you wish to display a specific row in the table region , then while navigating from update page to search page send primary key and set it as
    where clause , so that you can view only updated specific row .
    You need to handle this in process Request of your controller class in search page . Let me know if its not clear .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Entries are not reflecting to the database in ABAP Dictionary....

    Hi Friends,
    i had maintained Table Maintenance Generator for a Custom Table in the ABAP data dictionary.
    Inserted an extra button in the screen of SM30 for the same. i had written the logic for the extra button also.
    the desired functionality is achieved but after clicking the custom button on the application bar of the SM30 the values are reflected on the screen table but not reflected or saved those entries into the Data Dictionary.
    what might be the problem in this scenario....?
    can you pls suggest me your experiences which had you come across this type of requirements.......?

    Hello venkat,
    Please check this link, It might be helpful to you. I believe you have written the code for custom button in the events.
    http://help-abap.blogspot.com/2008/09/add-custom-button-on-maintianence-view.html
    try to use insert statement in the event for the custom button. Let me know the peice of code you have written for this custom button.
    Thanks & Regards,
    Nagaraj Kalbavi

  • After transport changes are not immediatly avalable

    Hallo.
    When I import a transport request in our TES system, the changes are not immediatly available but we have to wait some minutes.
    Why this?
    Could you help me?
    Thanks.
    Mario

    Hello Mario,
    1. If you are working with old level of kernel and transport tools (tp and R3trans). if yes update these immediately.
    2.if transport tools are new and updated then the problem is due to Buffer Synchronization :
    After the transport, the changes are not done in the database level and not reflecting immediatly in the TCODE. And after some you  are able to see the changes.
    If this true, the the problem may the sync of the buffers. Try by executing /$sync after import. Which resets the buffer and next start of tcode buffers the program again.
    Please check the settings of the profile parameter rdisp/bufrefmode is as per the note 1163741.
    "If the changes are there after some time, then this is most probably a  buffering issue. rdisp/bufreftime and bufrefmode can be checked but also DDLOG issues might be relevant.
    Check whether the following parameters are set correctly.
    rdisp/bufrefmode = sendoff, exeauto
    rdisp/bufreftime  = 60 (or less)
    Best Regards
    Niraj

  • Rows are not inserted in the order entered - Forms 4.5 to 9i database

    hi
    we are using forms 4.5 version with 9i oracle database.
    when we save a multi-record block (for eg 5 rows)
    the records are not inserted in the database in the
    order in which they are entered.
    for eg if we enter A,B,C,D,E Records and save
    on query the records appearing in the order of C,D,E
    A,B like that.
    Is there any database parameter or setting which
    effects the order of inserting rows in the database(when using forms 4.5).
    Pls inform if you have any solution.
    Thanks in advance
    cks

    This is a very common misconception.
    You should never concern yourself about the order in which rows are stored in the database. Oracle does not guarantee to return rows in any particular order so you must specify an order by clause when you select the rows.
    Without an order by clause, there are various reasons why the order of selected rows could change in different circumstances, and the order in which they are stored should be treated as irrelevant.

  • Termstore changes are not getting reflected in the list items in SharePoint 2010 farm environment

    Hi,
    I had created managed metadata with termstores from central admin. Then I had created one list in which added a column of type managed metadata using the managed metadata which I had created. And also added few list items to this list.
    The problem is that after updating a termstore the changes are not reflecting in the list items which were added before the update.
    I have referred the following links:
    http://www.paulgrimley.com/2011/02/managed-metadata-changes-not-applied-to.html
    http://davidfrette.wordpress.com/2010/05/26/taxonomy-update-scheduler%C2%A0timer%C2%A0job/
    According to the links we need to run Taxonomy Update Scheduler on the server for updated termstore to get reflected. After running
    this scheduler on development environment changes are getting reflected but not working on the production environment.
    Kindly help!
    Regards, Shruti

    You should check the obvious.  You made the change in dev, but did you make the change in production too?  And, is the term you updated, actually the one that you are looking at in the list item?
    There is not much, if anything, that can go wrong with that timer job. so I'd guess that the term you are looking at is not the one you think you are updating.
    If you have double checked everything (the term is is in fact the same term id), then you may have something erroring in the update process.  In this case, you should check the ULS logs for any errors.
    Chris
    Chris Givens CEO, Architecting Connected Systems
    Blog Twitter

Maybe you are looking for