Not able to get which row is edited in alv grid

Hi,
I have created a Editable alv grid .
My grid does not contain line selection cloumn so How can I get to know which row is to be changed.
I am using get_selected_rows method but not able to get which row is changed. please help on this.
Thanks in advance.

Hi,
  check this ..
  it_ekko1[] = it_ekko[].
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = gd_repid
            i_callback_user_command = 'USER_COMMAND'
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
            it_events               = i_events
            i_save                  = 'X'
       tables
            t_outtab                = it_ekko
       exceptions
            program_error           = 1
            others                  = 2.
In user command you need to write logic to know which all records have changed.
FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.
  CASE r_ucomm.
    WHEN '&IC1'.
     loop at it_ekko into wa_ekko.
       read table it_ekko1 into wa_ekko1 index sy-tabix.
       if wa_ekko <> wa_ekko1.
write your logic further
       endif.
     endloop.    
  endcase.
Regards,
Srini.

Similar Messages

  • Making some rows non-editable in ALV grid

    hi
    I am using reuse_alv _grid _display to display the output. I want to make some of the rows non-editable based on some conditions. please help.

    Hi Vijay / Manisha / Murugan
    Is this question answered? The link is presently not working.
    I have a same requirement. I am using reuse_alv _grid _display to display the output. After click on 'Add row'
    button, the alv should add a row in edit mode and remaining all other rows in display mode. Is that possible using reuse_alv _grid _display?
    Any kind of inputs regarding this will be damn damn helpful. Thanks.

  • In J1IJ we r not able to get excise invoice which was captured earlier

    Dear experts,
    while doing depot sales, In J1IJ we r not able to get excise invoice which was captured earlier through J1IG at depot.
    please suggest me what are the possible causes for the same.
    Regards,
    Balu R.V

    -Is your pricing procedure settings are maintained - Routine 356 / 365 ( need to be check) should be maintained in pricing procedure?
    Routine: 356 to be assigned in Alt Caluculation type column of pricing procedure maintainance, which will pick the Excise invoice created at the time of MIGO @ Depot. ( it will read Table:J_1IRG23D)
    Regards,
    Reazuddin MD
    Edited by: Reazuddin MD on Oct 25, 2010 11:16 AM

  • I am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice help me out

    hello i have started using iphone 5 for which i downloaded my contacts from i clouds i am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice  its only showing the names of the person whose no. i have saved it with the country code i am staying in india new delhi pls help me i am fed up not able to get the name of person who is calling

    Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
    You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support

  • There was start up glitch on desktop, which changed the computers configuration, which requires activation on Adobe Photoshop CS, but am not able to get throug activation system and phone support has been disconnected.

    here was start up glitch on desktop, which changed the computers configuration, which requires activation on Adobe Photoshop CS, but am not able to get throug activation system and phone support has been disconnected. How should I activate my software.

    You are entitled to the CS2 version that will work without activation, since the activation servers were taken offline. Read the instructions and follow them on this page.
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3

  • Why i am not able to get all the applets which are included in a page

    Hi All,
    I have two applet which are included in JSF pages, when try to print all the applets which are inculded in web page
    Using below code. but it is printing current applet(the applet which is using this code to print),
    i am not seeing the other applet in println statement.
    what could be reason (well when i made a demo example it is printing all the applets which are included in web page)
    and is there any permission issues ( both applet are signed as well).
    can you please what could be the reason, thanks in advance.
    Enumeration enumw =   getAppletContext().getApplets();
                    while (enumw.hasMoreElements()) {
                        Applet element = (Applet)enumw.nextElement();
                        System.out.println("-------------applet name -------------------------------------->"+element.getName());
    }

    HI AndrewThompson64,
    thanks for your replay, i have increased dukes,
    one more thing i have tried is applet to javascript and from javascript to applet communication,
    but still i am not able to get other applet, when i tried call a javascript method i.e. doAlert(s) it calls, but i tried to print
    the other applet but it is not displaying it. the following code i have tried.
    <SCRIPT>
            function doAlert(s) {
                 alert(s);
                 alert(document.FloorPlanView);
                 alert("FloorPlanView "+document.applets["FloorPlanView"]);
                 alert("0 "+document.applets[0]);
                 alert("1 "+document.applets[1]);
                 alert("ScheduleProfileApplet "+document.ScheduleProfileApplet);
            </SCRIPT>let me tell you how the applet included in the webpage.
    mainmodule which include two jsp pages jsppage1.jsp and jsppage2.jsp
    and in jsppage1.jsp which includes a JSF page and it contains Applet
    <jsp:include page="ScheduleModule.jsp"/>and similarly same for the second applet.
    I need to look at applet communication through socket programing
    any help will be appreciated.

  • Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP

    Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
    Code is :
    <h1>JSP Page</h1>
    <%
    long type = 0;
    String tagId = null;
    String timeStr = "0";
    String deviceName = "";
    // Get Event Parameters
    // Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
    try
    type = Long.parseLong(request.getParameter("type")); // Get type
    tagId = request.getParameter("id"); // Get tagId
    timeStr = request.getParameter("time"); // Get time
              deviceName = request.getParameter("deviceName");
    catch (Exception e)
    out.println( "Error: "+e.getMessage() );
              // Write into DB.
              try {
              if ((tagId == null) || (type != 200) ){
                   // Do Nothing
                   //return;
              } else {
                   OracleDataSource ods = new OracleDataSource();
                   String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";     
                   ods.setURL(URL);
                   ods.setUser("cus");
                   ods.setPassword("cus");
                   Connection myConn = ods.getConnection();     
                   Statement stmt = myConn.createStatement();
                   String selectQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads ";
                   ResultSet rs = stmt.executeQuery(selectQuery);
                   String maxId = "1";
                   if (rs.next()) {
                        maxId = rs.getString(1);               
                   String selectMaxTagIDQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
                   stmt = myConn.createStatement();
                   rs = stmt.executeQuery(selectMaxTagIDQuery);
                   String maxTagId = "1";
                   if (rs.next()) {
                        maxTagId = rs.getString(1);               
                   long primaryKey = 1;
                   long tagKey = 1;
                   try {
                        primaryKey = Long.parseLong(maxId) + 1;
                        tagKey = Long.parseLong(maxTagId) + 1;
                   } catch (Exception e) {
                   long currentTime = System.currentTimeMillis();
                   long updateKey = (tagKey - 1);
                   String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
                   Statement updateStmt = myConn.createStatement();
                   updateStmt.execute(updateQuery);     
                   String query =
                        "INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
                   Statement insertStmt = myConn.createStatement();
                   insertStmt.execute(query);     
                   myConn.commit();
                   myConn.close();
              } catch (Exception e) {
    %>
    <p>For browser debug:
    <%
    out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
    %>
    Kindly suggest where is the problem...
    Thanks and regards
    Mohammad Nasim Akhtar

    HI Prabhat,
    Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
    But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
    Event statical is showing like this
    Events Received: 0 (0.00/sec)
    Events Generated: 311 (0.19/sec)
    Events Sent: 2 (0.19/sec)
    Queued Events: 309 (0.19/sec)
    Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
    Thanks and regards
    Nasim

  • The problem here is i am not able to get the data from the list

    hi all,
    i have the following code
    EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
    enrichedProductCatalogue1.setAssetCount(2);
    enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
    enrichedProductCatalogue1.setBlockingReason("Compatability");
    ArrayList<String> availableActionsList = new ArrayList<String>();
    availableActionsList.add(EnrichedProductConstants.ADD.toString());
    availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
    enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
    BundleProduct bundleProduct = null;
    Product product = new Product();
    product = new Product();
    product.setProductName("International");
    product.setProductClassName("International");
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);
    bundleProduct = new BundleProduct();
    bundleProduct.setCommercialProduct(product);
    enrichedProductCatalogue1.setBundleProduct(bundleProduct);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    listOfEnrichProducts.add(enrichedProductCatalogue1);
    here i have an list called listOfEnrichProducts.
    here i am adding two objects of enrichedProductCatalogue.
    which contains a object called BundleProduct.
    which has a reference for Product class.
    here this product class has a list which contains objects of another class called UiCategory.
    the problem here is i am not able to get the data from the list which contains UiCategory objects .
    the following is the UI
    <af:table var="row" rowBandingInterval="0" id="t1"
    value="#{pageFlowScope.sample1}"
    binding="#{pageFlowScope.sampleManagedBean.dataTable}"
    partialTriggers="apimethods ::apimethods">
    <af:column sortable="false" headerText="ProductName" id="c2">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
    </af:column>
    <af:column sortable="false" headerText="ProductClass" id="c12">
    <af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
    </af:column>
    <!--
    <af:column sortable="false" headerText="UICategoryName" id="c32">
    <af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
    <af:outputText value="#{item.categoryName}" id="ot119"/>
    </af:forEach>
    </af:column>
    -->
    <af:column sortable="false" headerText="AssetCount" id="c22">
    <af:outputText value="#{row.assetCount}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="blockingReason" id="c3">
    <af:outputText value="#{row.blockingReason}" id="ot2"/>
    </af:column>
    <af:column sortable="false" headerText="blockingProduct" id="c4">
    <af:outputText value="#{row.blockingProduct}" id="ot3"/>
    </af:column>
    <!--<af:column sortable="false" headerText="availaibleActions" id="c1">
    <af:commandButton text="#{row.availaibleActions}" id="cb1"
    actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
    partialSubmit="true">
    <af:setPropertyListener from="#{row.availaibleActions}"
    to="#{pageFlowScope.avalibleaction}" type="action"/>
    </af:commandButton>
    </af:column>-->
    </af:table>
    Can anyone pls give some solution ...

    Hi Frank,
    value="#{pageFlowScope.sample1}"
    here sample is
    Map<String, Object> flowScope1 =
    ADFContext.getCurrent().getPageFlowScope();
    flowScope.put("sample1", listOfEnrichProducts);
    this is not the problem . i am able to get all the values except the following .
    ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
    UiCategory uiCategory1 = new UiCategory();
    uiCategory1.setCategoryName("Simply");
    UiCategory uiCategory2 = new UiCategory();
    uiCategory2.setCategoryName("Freebees");
    uiCategory.add(uiCategory1);
    uiCategory.add(uiCategory2);
    product.setUiCategory(uiCategory);

  • Not able to select a row in ALV?

    Hi Experts,
    I am enhancing a standard e-recruiting WD ABAP component.
    It produces a search result as ALV.
    I am not able to select any row in ALV by clicking it like we normally do in ALV.
    I wrote below code to allow selection:
    lo_value->if_wd_salv_table_settings~set_selection_mode( cl_wd_table=>e_selection_mode-single).
    Even after this I am not able to select any row by clicking it.
    Need help to solve this.
    Regards,
    Sumit Oberoi

    Hi,
    To have the inputfields for the ALV.
    Get the column references of the ALV table and for each column rference create a inputfield object
    type CL_SALV_WD_UIE_INPUT_FIELD.
    lo_value is model object.
      CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
        RECEIVING
          value = wd_this->lit_columns.
    LOOP AT wd_this->lit_columns INTO wd_this->lis_columns.
          lv_id = wd_this->lis_columns-id.
          wd_this->gref_column = wd_this->lis_columns-r_column.
    case lv_id.
    when ' colname'.
                CREATE OBJECT lr_input
                  EXPORTING
                    value_fieldname = lv_id.
                CALL METHOD wd_this->gref_column->set_cell_editor
                  EXPORTING
                    value = lr_input.
    when ' colname'.
                CREATE OBJECT lr_input
                  EXPORTING
                    value_fieldname = lv_id.
                CALL METHOD wd_this->gref_column->set_cell_editor
                  EXPORTING
                    value = lr_input.
    endcase.
    endloop.
    Or you can take a attribute READ_ONLY for the node to which ALV table is bound.
    Set the readonly property to abap_false (for input field) by looping through the table.
    Get the column references and get the textview reference for each column and use the set_read_only
    method by passing the attribute name.
    This way the textview will now become the inputfield when the read_only property is set to abap_false.
    Regards,
    Lekha.

  • Not able to get the taxonomy field value of meta data field type

    Hi Everyone,
    Not able to get the taxonomy filed value from the metadata filed type.
    Any one can help me on this.
    Label, TermGuid, ValidatedString are showing empty when i debug the code.
    Below is the code which i used to get the taxonomy filed value

    Hi,
    Can you please try getting this way?
    var taxonomyField = listItem.Fields.GetFieldByInternalName(fieldName) as TaxonomyField;
    if (taxonomyField.AllowMultipleValues)
    var fieldValuesCollection = listItem[taxonomyField.Title] as TaxonomyFieldValueCollection;
    return fieldValuesCollection.Select(x => new Guid(x.TermGuid)).ToList();
    else
    var fieldValue = listItem[taxonomyField.Title] as TaxonomyFieldValue;
    return new List<Guid>() { new Guid(fieldValue.TermGuid) };
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • Not able to get the data from 2LIS_04_P_ARBPL

    Hi all,
    I am not able to get data for info object 0Calday in PP Cube.
    So I checked as per the data flow
    So from Datasource 2LIS_04_P_ARBPL its not getting data for that particular object
    I check in RSA3 its showing " 0 records extracted"
    So I have checked in LBWE to check from which tables its getting data.
    So there I found its getting data from 3 tables AFKO, AFPO and  AFVG.
    When I am checking the tables data am able to open AFKO and AFPO but
    for AFVG its saying "No active table available".
    and the infoobject 0calday is mapped with Posting date of AFVG table only.
    Can anyone tell me what is the procedure to see the data in that particular table and structrure.
    Regards
    Sankar

    Hi,
    please search for the term 'filling of setup table'.
    Siggi

  • Not able to get complete data in Heading of the smarform

    Dear Friends,
                    I am devloping a smartform for my requiremnt, i am not able to get complete data jin Header Window ( i.e the Title Name of the company is not getting fully) when i execute the Smartform ,
    Iam able to see only the last few words of the Text. Please help me what i should do in this regard
    regards
    madhuri

    Hi
    Also, check where the window is placed in the Form Painter...may be it is not on the page properly..and also check the size of the window..
    Further, check the paragraph format that is used.
    Regards,
    Vishwa.
    Edited by: Vishwa Sri Hari on Oct 15, 2008 1:21 PM

  • Not able to get the data in PE51

    Dear Freinds,
                  I have copied similar to the standard in IN01 , in the Pe51> Windows i have kept under W1 all the wage types which comes under earnings and when i execute the payslip   i.e  in the simulation run and when i view the form i can see
    only the wage types but i dont find the correspnding amounts agains each wage type. Please could any one help me
    why iam not able to get the amount agains the wge type?
    regards
    divya.

    Hi,
    I think u might have done some mistakes while configuring PE51 in cumulation ID ..........
    First of all as Siki said check ur master data whether the WT has given in IT 0008 and corresponding amounts entered to the resp WT. if it is ok then check the pe51 config once........
    go to pe51 give ur form name and select cumulation IDs go to change mode and double click on Earnings and see whether the data is maintained in this manner or not .......
    Table = RT ,   ID = your WT code ,    MS = + (sign)   ,  Dsplit = * (sign),      rest all coulumn leave blank ........ save it and then again run the payrl in Live mode and see the Pay slip.........
    If any problem Pls let us know.... and see other gurus post also.
    Regards,
    Prashant

  • Not able to get the maintainance cost

    Hi all,
    I m stuck with a critical issue. I m not able to get the cost of maintainance. while creating maintainaince order I m getting ERROR - MISSING FORMULA IN WORK CENTER and a warning message NO PRICE COULD BE DETERMINED FOR INTERNAL ACTIVITY .
    I have done everything which I know regarding costing configuration.
    I have created activity type ,asigned it to the cost center,assigned parameter to the std value key what else is required.
    I m not getting any of the cost in costing tab of maintainance order .
    Please help me out.
    Thanks& Regards
    Pooja

    Hi ,
    1. In Work Center under costing tab , maintain cost center
    In work center which you are using in Maintenanace Order operation , please mention the activity type in Act Type Int Proc field and formula as SAP008  in costing tab of work center ..
    2. In Schdueling Tab of IR02 mention SAP004 in Other formula Field.
    3. In Capacities tab of Work center  maintain SAP008 as other formula
    4. In KP26 for the combination of cost center , activity type ,version, period  maintain fixed price ..
    5. Check whether value categories are assigned to cost elements in Config
    6. Check whether costing variants are assigned for Planned nd Actual costs to combination of plant and order type ..
    plz check the above and then test up again with a new order
    regrds
    pushpa

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

Maybe you are looking for

  • Problems with SB live 5.1 digi

    for some time, I have has each start of my PC, echo in my speakers. the only way of making it leave is going in audio HQ parameters and to double click on "No effect"... how resolve this problems ? my second question is: I have a SOUND BLASTER li've

  • Leopard Defaults to Wireless, even when Gigabit ethernet is plugged in...

    This is a bit of frustration for me, but after installing 10.5.5, it seems as though leopard defaults to use the wireless connection instead of the "fastest available" connection. When I plug in ethernet, i stay connected via wireless, even though I

  • Kernel Panic Safari Webprocess

    Hello, It happened this afternoon, my macbook pro mi 12, 13 inch, crashed twice times. I was on Safari on Tumblr normally. My display is normal, an LG, and is connected by VGA adaptor from Apple. Here is the kernel report, can you please find out my

  • Getting error "cannot connect to the App Store"

    getting error "cannot connect to the App Store"

  • Lenovo and Arch

    Vote now http://lenovoblogs.com/insidethebox/?p=98