How to display particular ROW of a table control in display/change mode

Hi,
Can we make particular ROW in a table control display mode or editable mode depending upon the conditions?.
Any inputs..
Rgds,
Lakshmiraj

Hi,
Yes it is possible. check the follwoing code for help.
*&  Include           Z101954_ASSIGNMENT1I01
*&      Module  VALIDATE_SALES_ORG  INPUT
      text
MODULE validate_sales_org INPUT.
SELECT SINGLE zvkorg FROM vbak INTO zvbak-zvkorg
*WHERE zvbeln = zbookhdr-zvbeln.
IF sy-subrc <> 0.
   MESSAGE 'INVALID AIRLINE ID INPUT' TYPE 'I'.
   CALL SCREEN 1000.
ENDIF.
ENDMODULE.                 " VALIDATE_SALES_ORG  INPUT
*&      Module  USER_COMMAND_1001  INPUT
      text
MODULE user_command_1001 INPUT.
  var3 = 1.
  IF sy-ucomm <> 'SAVE'.
    PERFORM material_check.
    IF sy-subrc <> 0.
      MESSAGE 'ENTER THE CORRECT MATERIAL NUMBER' TYPE 'I'.
    ELSE.
      SELECT SINGLE zmaktx zmeins zwaerk zstprs FROM zmara
        INTO CORRESPONDING FIELDS OF it_salesitems
         WHERE zmatnr = it_salesitems-zmatnr.
      SELECT SINGLE zwerks zlgort FROM zorg
        INTO CORRESPONDING FIELDS OF it_salesitems
        WHERE zvkorg = wa_salesorder-zvkorg
         AND zvtweg = wa_salesorder-zvtweg
         AND zspart = wa_salesorder-zspart.
      it_salesitems-znetwr = it_salesitems-zstprs * it_salesitems-zbrgew.
     MODIFY it_salesitems FROM it_salesitems  INDEX sy-tabix.
      MOVE-CORRESPONDING it_salesitems TO temp_salesitems.
      APPEND temp_salesitems.
      REFRESH it_salesitems.
    ENDIF.
  ENDIF.
LOOP AT temp_salesitems.
  if it_salesitems-pick = 'X'.
           LOOP AT SCREEN.
         IF screen-name EQ 'DETAIL'.
           screen-input = 1.
           MODIFY SCREEN.
         ENDIF.
       ENDLOOP.
       endif.
       endloop.
  CASE sy-ucomm.
    WHEN 'SAVE'.
      PERFORM check_ship_to_party.
      IF sy-subrc <> 0.
        MESSAGE 'ENTER THE CORRECT SHIP TO PARTY ' TYPE 'I'.
      ELSE.
        PERFORM check_payer.
        IF sy-subrc <> 0.
          MESSAGE 'ENTER THE CORRECT PAYER' TYPE 'I'.
        ELSE.
          PERFORM check_bill_to_party.
          IF sy-subrc <> 0.
            MESSAGE 'ENTER THE CORRECT BILL TO PARTY' TYPE 'I'.
          ELSE.
            wa_salesorder-zernam = sy-uname.
            MOVE-CORRESPONDING wa_salesorder TO zvbak.
            MODIFY zvbak.
            LOOP AT it_salesitems.
              it_salesitems-zvbeln = wa_salesorder-zvbeln.
              MOVE-CORRESPONDING it_salesitems TO zvbap.
              MODIFY zvbap.
            ENDLOOP.
            IF sy-subrc = 0.
              MESSAGE 'THE DATA IS SAVED SUCCESSFULLY' TYPE 'I'.
              CLEAR wa_salesorder.
              REFRESH it_salesitems.
              REFRESH temp_salesitems.
              IF sy-tcode = 'ZVA01'.
                CALL SCREEN '1000'.
              ELSE.
                CALL SCREEN '1003'.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    WHEN 'DETAIL'.
      CALL SCREEN '1002'.
    WHEN 'BACK'.
      IF sy-tcode = 'ZVA03'.
        CLEAR wa_salesorder.
        CALL SCREEN '1003'.
      ELSE.
        PERFORM pop_up.
      ENDIF.
    WHEN 'EXIT'.
      IF sy-tcode = 'ZVA03'.
        LEAVE PROGRAM.
      ELSE.
        PERFORM pop_up.
      ENDIF.
    WHEN 'CANCEL'.
      IF sy-tcode = 'ZVA03'.
        CLEAR wa_salesorder.
        CALL SCREEN '1003'.
      ELSE.
        PERFORM pop_up.
      ENDIF.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_1001  INPUT
*&      Module  input_help_sold_to_party  INPUT
      text
MODULE input_help_sold_to_party INPUT.
  SELECT zkunag FROM zvbak INTO CORRESPONDING FIELDS OF TABLE
    itab.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
  DDIC_STRUCTURE         = ' '
      retfield               = 'ZKUNAG'
  PVALKEY                = ' '
     dynpprog               = sy-cprog
     dynpnr                 = '1000'
     dynprofield            = 'ZKUNAG'
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
     value_org              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
    TABLES
      value_tab              = itab
  FIELD_TAB              =
  RETURN_TAB             =
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDMODULE.                 " input_help_sold_to_party  INPUT
*&      Form  pop_up
      text
-->  p1        text
<--  p2        text
FORM pop_up .
  CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
  TITLEBAR                    = ' '
  DIAGNOSE_OBJECT             = ' '
      text_question               = 'DO YOU WANT TO SAVE THE ORDER?'
     text_button_1               = 'YES'(001)
     icon_button_1               = ' '
     text_button_2               = 'No'(002)
     icon_button_2               = ' '
     default_button              = '1'
     display_cancel_button       = 'X'
     userdefined_f1_help         = ' '
  START_COLUMN                = 25
  START_ROW                   = 6
  POPUP_TYPE                  =
  IV_QUICKINFO_BUTTON_1       = ' '
  IV_QUICKINFO_BUTTON_2       = ' '
IMPORTING
     answer                      = ans
TABLES
  PARAMETER                   =
EXCEPTIONS
  TEXT_NOT_FOUND              = 1
  OTHERS                      = 2
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CASE ans.
    WHEN '001'.
      PERFORM check_ship_to_party.
      IF sy-subrc <> 0.
        MESSAGE 'ENTER THE CORRECT SHIP TO PARTY ' TYPE 'I'.
      ELSE.
        PERFORM check_payer.
        IF sy-subrc <> 0.
          MESSAGE 'ENTER THE CORRECT PAYER' TYPE 'I'.
        ELSE.
          PERFORM check_bill_to_party.
          IF sy-subrc <> 0.
            MESSAGE 'ENTER THE CORRECT BILL TO PARTY' TYPE 'I'.
          ELSE.
            wa_salesorder-zernam = sy-uname.
            MOVE-CORRESPONDING wa_salesorder TO zvbak.
            MODIFY zvbak_101954.
            temp_salesitems-zvbeln = wa_salesorder-zvbeln.
            MOVE-CORRESPONDING temp_salesitems TO zvbap.
            MODIFY zvbap.
            IF sy-subrc = 0.
              MESSAGE 'THE DATA IS SAVED SUCCESSFULLY' TYPE 'I'.
              CLEAR wa_salesorder.
              REFRESH it_salesitems.
              REFRESH temp_salesitems.
              IF sy-ucomm = 'EXIT'.
                LEAVE PROGRAM.
              ENDIF.
              IF sy-tcode = 'ZVA01'.
                CALL SCREEN '1000'.
              ELSE.
                CALL SCREEN '1003'.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    WHEN '002'.
      IF sy-tcode = 'ZVA01'.
        CLEAR wa_salesorder.
        REFRESH it_salesitems.
        REFRESH temp_salesitems.
        CALL SCREEN '1000'.
      ELSE.
        CLEAR wa_salesorder.
        REFRESH it_salesitems.
        REFRESH temp_salesitems.
        CALL SCREEN '1003'.
        CLEAR ans.
      ENDIF.
  ENDCASE.
ENDFORM.                    " pop_up
*&      Module  USER_COMMAND_1002  INPUT
      text
MODULE user_command_1002 INPUT.
IF sy-datar = 'X'.
   PERFORM material_check.
   IF sy-subrc <> 0.
     MESSAGE 'ENTER THE CORRECT MATERIAL' TYPE 'I'.
   ELSE.
     SELECT SINGLE zmaktx zmeins zwaerk zstprs FROM zmara_101954
     INTO CORRESPONDING FIELDS OF wa_salesitems
       WHERE zmatnr = wa_salesitems-zmatnr.
     wa_salesitems-znetwr =  wa_salesitems-zstprs * wa_salesitems-zbrgew.
   ENDIF.
   var = 1.
ENDIF.
  IF sy-ucomm = 'BACK'.
    LOOP AT temp_salesitems.
      MODIFY temp_salesitems FROM wa_salesitems .
    ENDLOOP.
    it_salesitems-pick = ' '.
    CALL SCREEN '1001'.
  ENDIF.
ENDMODULE.                 " USER_COMMAND_1002  INPUT
*&      Module  USER_COMMAND_1000  INPUT
      text
MODULE user_command_1000 INPUT.
  CASE sy-ucomm.
    WHEN 'NEXT'.
      SELECT * FROM zt001k_101954 INTO CORRESPONDING FIELDS OF
        temp_salesorder WHERE
        zvkorg = wa_salesorder-zvkorg AND
        zvtweg = wa_salesorder-zvtweg AND
        zspart = wa_salesorder-zspart.
      ENDSELECT.
      IF sy-subrc = 0.
        CALL SCREEN '1001'.
      ELSE.
        MESSAGE 'Invalid Data Entered' TYPE 'I'.
        CALL SCREEN '1000'.
      ENDIF.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_1000  INPUT
*&      Module  USER_COMMAND_1003  INPUT
      text
MODULE user_command_1003 INPUT.
  IF sy-ucomm = 'NEXT'.
   IF sy-datar = ' '.
     MESSAGE 'ENTER PURCHASE ORDER NUMBER' TYPE 'I'.
     CALL SCREEN 1000.
    IF NOT wa_salesorder-zvbeln CO '0123456789'.
      MESSAGE 'PURCHASE ORDER NUMBER IS NOT IN THE EXPECTED FORMAT' TYPE 'I'.
      CALL SCREEN '1003'.
    ENDIF.
    var3 = 0.
    CALL SCREEN '1001'.
  ENDIF.
ENDMODULE.                 " USER_COMMAND_1003  INPUT
*&      Module  input_help_sales_order  INPUT
      text
MODULE input_help_sales_order INPUT.
  SELECT zvbeln FROM zvbak_101954 INTO CORRESPONDING FIELDS OF TABLE
  itab1.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
  DDIC_STRUCTURE         = ' '
      retfield               = 'ZVBELN'
  PVALKEY                = ' '
     dynpprog               = sy-cprog
     dynpnr                 = '1003'
     dynprofield            = 'ZVBELN'
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
     value_org              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
    TABLES
      value_tab              = itab1
  FIELD_TAB              =
  RETURN_TAB             =
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDMODULE.                 " input_help_sales_order  INPUT
*&      Module  back_command  INPUT
      text
module back_command input.
*if sy-ucomm = 'SAVE' OR 'BACK' OR 'DETAIL' OR 'EXIT' OR 'CANCEL'.
*endif.
endmodule.                 " back_command  INPUT
Regards
Rajesh Kumar

Similar Messages

  • Locking a particular row in a table control

    Hi All,
    I have module pool program in which table control is used. I would like to know whether it is possible to lock a particular row in the table so that another person will not be able to edit it until the first user completes his work. It should be only for that particular record which is being currently edited in the table.

    Hi,
      Yes you can lock particular row in a table control..
      In the flow logic..
    PROCESS BEFORE OUTPUT.
      LOOP AT itab INTO wa WITH CONTROL tc.
         MODULE disable_row.
      ENDLOOP.
      MODULE disable_row.
    * call the Enqueue function module..If the
        IF sy-subrc NE 0.
          LOOP AT screen.
               SCREEN-INPUT = 0.    " Disable for input
               MODIFY SCREEN.
          ENDLOOP.
       ENDIF.
      ENDMODULE.
    Thanks
    Naren

  • How to Update Particular row in a table from OAF page

    Hi Can anyone please help me on the following requirement:
    In my oaf page i am displaying table values(supplier site details from base tables) with update and delete icons . When i click on update button a new page opens in which we used to update the values and click on apply button which again comes back to the original page.
    So when i click on apply button on update page i have to first search for the site in the site table whether it exists or not, if not exists i have to create a new row and save the data, if site exists in the table i have to update the row of a table for that particular site. I have written code for this but unable to achive the requirement, it is not updating the existing row of the table. And i am doing all this on the Temp tables.
    So now when i save, previous transaction is also updating along with the current transaction. That means when i m trying to save 2nd transaction values , 1st transactions values are getting updated with the 2nd transaction values(2 rows are getting updated)
    Can anyone help me with the code used for updating the current row of the table. Please correct me if i m doing anyting wrong in code.
    following is the current code i m using and which is failing :
    Controller Code
    if(pcontactaction.equals("createECdetailsEvent")) {
    String currentSiteName=pageContext.getParameter("SiteName");
    System.out.println("Selected Site Name is : " + currentSiteName);
    Serializable x[]={reqNum,suppId,currentSiteName,pnotifMethod,pfaxNum};
    System.out.println("Invoking AM Method.........");
    am.invokeMethod("initCreateECDetails",x);
    System.out.println("initCreateECDetails Method Executed. ");
    //am.invokeMethod("save");
    localOAApplicationModule.getTransaction().commit();
    pageContext.setForwardURL(
    "OA.jsp?page=/oracle/apps/floaf/flpos/supregister/webui/ECDetailsPG"
    , null //not needed as we are retaining menu context
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    , null //not needed as we are retaining menu context
    ,null // no parameters are needed
    ,true //retain AM
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    AM Code
    public void initUpdateECDetails(String request_number,String supplier_id,String site_name,String site_id,String notification_method,String fax_number)
    OADBTransaction localOADBTransaction = getOADBTransaction();
    String siteToUpdate;
    siteToUpdate=site_name;
    String siteidToUpdate;
    siteidToUpdate=site_id;
    System.out.println("Site Name to Update or Create is : " + siteToUpdate);
    System.out.println("Site Id to Update or Create is : " + siteidToUpdate);
    System.out.println("Inside Update EC Details MEthod.");
    OAViewObject suppSiteDetVO = getFLPOSSuppSiteDetailsVO1();
    FLPOSSuppSiteDetailsVORowImpl sro=null;
    String existingWhereClause = suppSiteDetVO.getWhereClause();
    suppSiteDetVO.setWhereClause(null);
    suppSiteDetVO.setWhereClauseParams(null);
    suppSiteDetVO.setWhereClause("SUPPLIER_ID = :1 AND REQUEST_NUMBER = :2 AND SITE_ID = :3 ");
    suppSiteDetVO.setWhereClauseParam(0, supplier_id);
    suppSiteDetVO.setWhereClauseParam(1, request_number);
    suppSiteDetVO.setWhereClauseParam(2, site_id);
    suppSiteDetVO.executeQuery();
    suppSiteDetVO.setWhereClauseParams(null);
    suppSiteDetVO.setWhereClause(existingWhereClause);
    int rowcount = suppSiteDetVO.getRowCount();
    System.out.println("Fetched Rows : " + rowcount);
    if (rowcount == 0) {
    Row row = suppSiteDetVO.createRow();
    System.out.println("Row is : " +row);
    suppSiteDetVO.insertRow(row);
    String siteId = getOADBTransaction().getSequenceValue("FLPOS_SITE_ID_SEQ").toString();
    System.out.println("New Site ID : " + siteId);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    row.setAttribute("RequestNumber", request_number);
    row.setAttribute("SupplierId", supplier_id);
    row.setAttribute("SiteName", site_name);
    row.setAttribute("SiteId", siteId);
    row.setAttribute("FaxNo",fax_number);
    row.setAttribute("NotificationMethod",notification_method);
    System.out.println("New Row Created for Supplier Site.");
    System.out.println("Data Saved to table.");
    else{
    System.out.println("Inside Else Block ");
    try {
    System.out.println("Inside Try Block ");
    Row[] row = suppSiteDetVO.getAllRowsInRange();
    for (int i = 0; i < rowcount; i++) {
    sro = (FLPOSSuppSiteDetailsVORowImpl)row;
    String psiteName=sro.getSiteName();
    Number psiteid=sro.getSiteId();
    System.out.println(" p Site Name is : " +psiteName);
    System.out.println(" p site id is " +psiteid);
    if(psiteid.equals(siteidToUpdate) ) {
    sro.setAttribute("FaxNo",fax_number);
    sro.setAttribute("NotificationMethod",notification_method);
    //getOADBTransaction().commit();
    break;
    catch (Exception e) {
    System.out.println("Exception in update : " + e);
    }

    Please answer following:
    1. Are you using EO based VOs or ReadOnly VO?
    2. What is your VO Query for the search and update?
    3. Why have you based your logic on site_name; you should have used site_id?
    4.Are you getting correct site name in handling createECdetailsEvent event in CO?
    5. In case of update are you getting correct values on the Update Site Details?
    6. On coming back from Update page to Supplier Site Search page, do you see old values of the site or the new values in the results table?
    Please share the screenshot if possible.
    -Prince
    [email protected]
    http://princekapoor82.blogspot.com

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How to increase the rows of a Table control on ITS

    Hi,
    I'm trying to increase the number of rows to 20 on ITS but it always shows 2 rows per navigation. Although in the backend module pool there are 8 rows and the GV_SOS_LIST_CONTROL-LINES contains the total no of rows of the internal table. yet there are always 2 rows getting printed. This screen is in different function group and being called from some other function group i.e BBP_SC_UI_ITS. Are there any parameters that we have missed out to pass from BBP_SC_UI_ITS to our function group. Reply needed urgently!!!!!!!!!!!

    Hi,
    i tried increasing the rows on the browser by hard coding the counter and then the rows do increase but the records that are shown are still 2 per navigation. i doubt if it is a screen size constraint. the transaction in which i'm trying all this is bbpsc01.

  • How to edit a particular row in the table ctrl when a push button is clickd

    Hi Experts,
    How to edit a particular row (except the Primary keys) after selecting it in the TABLE CONTROL when a
    push button is clicked in the table control.
    For Eg. If you have a push button say "Modify", the particular row what we select in the table control should be in a
    editable mode after clicking "Modify" Push button.
    Please help me out.
    Thanks in advance.

    Hey Ram,
    Thanks a ton.
    Its working fine...sorry for the late reply.
    The reason behind the delay is because i had modified my code as per your logic it worked fine but the thing is that the whole column was in editable mode but not a single row.
    For E.g  If i want to edit a particular row, first i select the row and then  click on "Modify" button. After i click on the button, the whole column gets in a editable mode including the one which i intentionally selected.
    Here, the solution is that you have to set a flag in PBO so that once it is done with PBO then it need not come back again after we click on "Modify" button.
    And one more query is that after you modify a particular row in the table control ( When it is in editable mode) and click on the "Save" button, it is not getting updated to database.
    To update the database, we need to select the row once again after modifying it and click on the "Save" button.
    Here, database is updating only when it is selected again. If it is not selected, it is not getting updated.
    If you have any alternative solution, then please help me out.( I hope i am clear with the question.)
    Thanks,
    Ananth.

  • How to delete a particular row in ALV table

    Hi,
    How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row)
    Thanks
    Bala Duvvuri

    Hello Bala,
    Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
    data : lr_table_settings  TYPE REF TO if_salv_wd_table_settings,
                 lr_config          TYPE REF TO cl_salv_wd_config_table.
      lr_table_settings  ?= lr_config.
    ** Setting the ALV selection to multiple selection with no lead selection
      lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
    Next delete the selected rows in the action triggered by the button:
    METHOD onactiondelete_rows .
      DATA:  wd_node TYPE REF TO if_wd_context_node,
             lt_node1 TYPE ig_componentcontroller=>elements_node,
             wa_temp  TYPE REF TO if_wd_context_element,
             lt_temp  TYPE wdr_context_element_set,
             row_number TYPE i VALUE 0.
      wd_node = wd_context->get_child_node( name = 'NODE' ).
      CALL METHOD wd_node->get_selected_elements
        RECEIVING
          set = lt_temp.
      LOOP AT lt_temp INTO wa_temp.
        wd_node->remove_element( EXPORTING element = wa_temp ).
      ENDLOOP.
      CALL METHOD wd_node->get_static_attributes_table
        EXPORTING
          from  = 1
          to    = 2147483647
        IMPORTING
          table = lt_node1.
      wd_node->bind_table( new_items = lt_node1 ).
    ENDMETHOD.
    If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
    Regards,
    Uday

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • How to identify migrated rows on a table

    Hi, folks,
    I'm wondering how to identify migrated rows on a table.
    I understand that ANALYZE generates data into CHAINED_ROWS. The Oracle document implies that this table has both CHAINED ROWS and MIGRATED ROWS. FYI:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/general.htm#sthref1881
    But how can I tell migrated rows from chained rows.
    Thanks!
    Alex

    im also not looking to ExporttoExcel feature on ADF just copy all the records displayed on a table
    im also not looking to ExporttoExcel feature on ADF just copy all the records displayed on a table ,
    Hi you can set the property( exportedRows) of exportListener
    you can limit the number of rows to download
    chekout documentaion
    ADF RichClient API - af:exportCollectionActionListener

  • How can i update rows  in a table based on a match from a select query

    Hello
    How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
    Thanks Glenn
    table1
    attribute1 varchar2 (10)
    attribute2 varchar2 (10)
    processed varchar2 (10)
    table2
    attribute1 varchar2 (10)
    table3
    attribute2 varchar2 (10)
    An example:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)

    Hi,
    Etbin wrote:
    Hi, Frank
    taking nulls into account, what if some attributes are null ;) then the query should look like
    NOT TESTED !
    update table1 t1
    set processed = 'Y'
    where exists(select null
    from table2
    where lnnvl(attribute1 != t1.attribute1)
    and exists(select null
    from table3
    where lnnvl(attribute2 != t1.attribute2)
    and processed != 'Y'Regards
    EtbinYes, you could do that. OP specifically requested something else:
    wgdoig wrote:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
    But there is no argument about what needs to be done when processed is NULL.
    OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary.

  • How to increase row height in table control?

    Hi experts,
    We have a push button in table control created using screen painter. Since this is a touch screen transaction, the default height is very small for the worker in the plant to click on a specific row, i would like to know if there is any way to increase the row height in the table control. There is no attribute in Screen painter for increasing row height in table control. I did try "import dynpro", hoping to increase the row height and export the dynpro, but that doesn't seem to have row height attributes. Any help in this regard is highly appreciated. Thanks,
    Raj

    Using a new technology means you have to recreate your screen: you may create an HTML using CL_DD_* classes (that's called "Dynamic Documents"). See [SAP Library - DD programming guide|http://help.sap.com/saphelp_nw2004s/helpdata/en/13/12284b019511d4a73e0000e83dd863/frameset.htm]. Demos are provided in SDYNAMICDOCUMENTS package. Or I think you may create web dynpro and define a CSS style to enlarge objects.
    If you don't want to create everything, maybe you can find out a workaround with GuiXT, for example creating a big button in each row (for example, with BUTTONSIZE, but don't know if it changes the height of rows but that's worth trying).
    Well, [Synactive documentation about table controls|http://www.synactive.com/docu_e/specials/tables.html] does not seem to allow that.
    Maybe you can move your question to the "scripting" forum and ask about how to do it with GuiXT...

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • Get the count of rows in a table control

    Hi Experts,
      How do I get the count of the rows in a table control during run time.
    I am developing a BDC in which I have to check all entries in a table control.
    My requirement is to get the total number of rows in a table control dynamically.
    Thanks
    Kumar

    Hi,
    Use a variable when u r passing the records from the internal table to the screen fields
    and display the same.
    I think this idea may help u.
    And pls explain me ur requirement clearly.
    Refer to the following link this may help u.
    http://sapabapnotes.blogspot.com/2008/03/working-with-ecatt-extended-computer.html
    Reward if helpful.
    Jagadish

  • Changing height of a row in a table control

    Hi all,
    I have developed a webdynpro application in which i am using a table control in the view. Can anyone tell me how can i change the height of a row in the table control?
    thanx in advance
    anuradha

    hi anuradha,
    you can set the number of the rows to be displayed, in the table controller properties, so that those many rows will be disaplayed at a time.
    to do this.
    Go to table controller properties,
    mention the integer( number of rows to be displayed ) value in the <b>visiblerowcount</b> property.
    if your requirement is not this then let me know.
    bye.
    Brahmanandam.

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

Maybe you are looking for

  • How can I reduce flickering of text on TV?

    My text looks fine on my Apple monitor but on my TV it flickers. How can I reduce the flickering? Thanks, John Link

  • Values in the form are not saving

    Hi Gurus, When I enter a value in the Planning form ( Classic Planning 9.3.1) and try to save it, it is not saving and after that save button also getting disable. It is not showing any error. What might be the reason? Please help me. Thanks And Rega

  • RSA3 no possible

    My using standard 2LIS extractor to load the PO Item data into BW. I have peformed the Setup Table, and loaded the data into BW. Created the InfoPack to pull in Delta, everything seem to be OK. Now, for some reason, I need to test and see some PO Ite

  • How do I upgrade from my old Mac OS X software to snow leopard

    I have a Mac Desktop and want to upgrade my software from OS X 10.5.8 to the most current availabel for my computer.  Any idea on how I do that?

  • Why wont my audio/video transitions render in media encoder

    when im rendering a project from PP in media encoder the audio/video transitions i added to my project dont show up in the rendered version of the video (the affter affects compositions i added show up though) but when i open the project back up in P