How to disable particular record?

Hi,
I am working with ALV List Display. After displaying the output, there is an Check Box option in the report output.
If I check for a particular record and delete that particular record, that record only should be disabled remaining records should be enabled, So that I can check another record and delete that record.
Please given solution for the above ASAP.
Thanks,
Vinay.

Hi Vinay,
Try the following sample code :
REPORT  y131_alv_test.
TYPE-POOLS : slis.
DATA : BEGIN OF str_test,
       check,
       name,
       END OF str_test.
DATA : it_test LIKE TABLE OF str_test WITH HEADER LINE,
       wa_fldcat TYPE slis_fieldcat_alv,
       it_fldcat TYPE slis_t_fieldcat_alv.
it_test-name = 'NAME1'.
APPEND it_test.
it_test-name = 'NAME2'.
APPEND it_test.
wa_fldcat-fieldname = 'CHECK'.
wa_fldcat-seltext_l = 'CHECKBOX'.
wa_fldcat-checkbox = 'check'.
wa_fldcat-input = 'X'.
APPEND wa_fldcat TO it_fldcat.
CLEAR wa_fldcat.
wa_fldcat-fieldname = 'NAME'.
wa_fldcat-seltext_l = 'DISPLAY NAME'.
APPEND wa_fldcat TO it_fldcat.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
    i_callback_program             = 'Y131_ALV_TEST'
    i_callback_user_command        = 'RETURN'
    it_fieldcat                    = it_fldcat
  TABLES
    t_outtab                       = it_test.
* EXCEPTIONS
*   PROGRAM_ERROR                  = 1
*   OTHERS                         = 2
*&      Form  RETURN
*       text
***The subroutine should be of the following interface
FORM return USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.
  CASE r_ucomm.
    WHEN '&IC1'.
      IF rs_selfield-fieldname = 'CHECK'.
        IF rs_selfield-value = 'X'.
          DELETE it_test WHERE check = 'X'.
        ENDIF.
      ENDIF.
  ENDCASE.
ENDFORM.                    "RETURN
This would help you, reward if convinced with the code.
Regards

Similar Messages

  • Enable or disable particular record in list item based on a corresponding c

    Hi,
    How can i Enable or disable property of particular record in list item (multi record) based on a corresponding check box(multi record) ,
    e.g Form Structure:
    if press a button then record should populate where multi_post_query
    if my_check_box = 1 then
    my_list_item  disable to update;
    else
    my_list_item  enable to update;
    end if;
    now wanted result is like below
    my_check_box ---- my_list_item
    +----------------------enable
    +----------------------enable
    +----------------------enable
    _----------------------Disable
    _----------------------Disable
    Here "+" means checked,"_" means unchecked and "enable" means updatable "Disable" means not updatable
    the pseudo code is like,
    if my_check_box = 1 then
    my_list_item enable to update;
    else
    my_list_item disable to update;
    end if;
    Note: my_check_box is not updatable
    please tell me which trigger and where I should create
    Thanks
    Edited by: 838602 on Feb 21, 2011 11:12 PM
    Edited by: 838602 on Feb 22, 2011 1:40 AM

    Hi Abdetu,
    I created WHEN-NEW-RECORD-INSTANCE Trigger at data block level
    And I need should work like below pseudo code (sorry for previous pseudo code)
    if my_check_box = 1 then
    my_list_item  disable to update;
    else
    my_list_item  enable to update;
    end if;
    so change code as
    IF :MULTI.PROTECTED_FIELD = 1 THEN
    SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_FALSE );
    SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_FALSE);
    :multi.action := 0;
    ELSE
    SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_TRUE);
    SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_TRUE);
    END IF;
    Sorry, still I am not getting desired o/p. even i check item (ACTION) level Trigger
    Note: my_check_box is not updatable
    that would assign at time of button press (post query) as i mentioned
    Edited by: 838602 on Feb 22, 2011 1:41 AM

  • How to disable any record in a Tabular Data Block

    Hi,
    I have a tabular data block having 10 records, every record has a check box(1 check box on each row). I want to disable all items in that particular record where user checks the check box(check box is UNCHECKED by default).
    Is this possible in WHEN-CHECK-BOX-CHANGED trigger or any other trigger ?, if so, how, please help.
    I hope that, I have illustrated the problem clearly.
    Regards.

    Hi,
    You cannot disable a single row in detail block. Instead You can set the UPDATE_ALLOWED property to FALSE. By this the user can't change the contents.
    IF :<block_name>.<check_box_name> = '<value_when_checked>' THEN
       SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
    ELSE
       SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_TRUE);
    END IF;Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to get particular record in last

    Hi,
    I want query for if existing particular record whenever come as a last record.
    Ex,
    name
    s
    t
    h
    but t always comes last record. how to i get?
    Thanks,
    Dhamu.

    816776 wrote:
    Hi,
    I want query for if existing particular record whenever come as a last record.
    Ex,
    name
    s
    t
    h
    but t always comes last record. how to i get?
    Thanks,
    Dhamu.Your question makes no sense (and yes we can excuse the fact that English is not your first language).
    What determines if a record is "existing"? All the records exist, so there must be something else.
    For example if a record is determined as "existing" because it exists on another table you could left outer join to that table which then gives all the records from your first set of data and puts any that exist in the second set of data at the end in terms of ordering...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 's' as name from dual union all
      2             select 't' as name from dual union all
      3             select 'h' as name from dual)
      4  -- Records to compare against.
      5      ,t2 as (select 't' as name from dual)
      6  --
      7  -- END OF TEST DATA, JUST USE QUERY BELOW AGAINST YOUR OWN TABLE
      8  --
      9  select t.name
    10  from t left outer join t2 on (t.name = t2.name)
    11* order by t2.name nulls first, t.name
    SQL> /
    N
    h
    s
    t
    SQL>

  • How to disable 'Clear Record' option in Oracle Forms deployed in Orcl Apps

    Dear Members,
    I have developed a custom form which is deployed in Oracle Applications.
    In this form I want to disable the 'Clear Record' option to prevent users from clearing the record.
    Can any one please tell me how can I do it?
    Thanks in advance.
    Best Regards,
    Arun Reddy D.

    Hi,
    In your Forms---> trigger--> KEY-CLRREC-----> NULL;
    You cant clear any record.

  • How to disable control records in Idoc

    Hi All,
    I've a small problem in my scenario.i have a idoc in my input and i want output as a idoc in a flat file.i m using abap class fr this.that abap class is changing idoc into idoc as a flat file.but i have to remove control records in my output.i have a very little knowlegde in abap.so can u help me regarding my scenario.FCC can't be possilbe because it is a huge idoc.
    thanx in advance
    Monika

    actually u din't understand my question fully. i dont want idoc xml..i want idoc in a flat file
    well i got solution...i've chnaged my abap mapping ..and it's wrking fine..
    anyways thanx

  • Need Help :  How to make particular Record  in Bold

    Hi Frnds,
    I am facing the problem to resolve the following issue....... Plz... help me out .........
    I am displaying the payslip information (Elements Information ) in a Table.
    In the table , i am showing the "DEDUCTIONS TOTAL"  , "EARNING TOTAL" and "NET PAY"
    Now, i have to display the DEDUCTIONS TOTAL, EARNINGS TOTAL  AND NET PAY in BOLD
    plz... help me out .........
    Regards,
    Jaya

    Hello
    did you try to use EL in the Attribute inlineStyle of the cell you want to style:
                              inlineStyle="#{row.Salary.value>200?'color: Red; background-color: Green; font-size: 30pt; font-weight: bolder;':''}"
    here is the full page script to display data from employees table in HR schema:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
      <afh:html>
        <afh:head title="untitled1">
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
        </afh:head>
        <afh:body>
          <af:messages/>
          <h:form>
            <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row"
                      rows="#{bindings.EmployeesView1.rangeSize}"
                      first="#{bindings.EmployeesView1.rangeStart}"
                      emptyText="#{bindings.EmployeesView1.viewable ? \'No rows yet.\' : \'Access Denied.\'}">
              <af:column sortProperty="EmployeeId" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.EmployeeId}">
                <af:inputText value="#{row.EmployeeId}"
                              required="#{bindings.EmployeesView1.attrDefs.EmployeeId.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.EmployeeId.displayWidth}">
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.EmployeesView1.formats.EmployeeId}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="FirstName" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.FirstName}">
                <af:inputText value="#{row.FirstName}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.FirstName.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.FirstName.displayWidth}"/>
              </af:column>
              <af:column sortProperty="LastName" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.LastName}">
                <af:inputText value="#{row.LastName}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.LastName.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.LastName.displayWidth}"/>
              </af:column>
              <af:column sortProperty="Email" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.Email}">
                <af:inputText value="#{row.Email}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.Email.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.Email.displayWidth}"/>
              </af:column>
              <af:column sortProperty="PhoneNumber" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.PhoneNumber}">
                <af:inputText value="#{row.PhoneNumber}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.PhoneNumber.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.PhoneNumber.displayWidth}"/>
              </af:column>
              <af:column sortProperty="HireDate" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.HireDate}">
                <af:inputText value="#{row.HireDate}"
                              required="#{bindings.EmployeesView1.attrDefs.HireDate.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.HireDate.displayWidth}">
                  <f:convertDateTime pattern="#{bindings.EmployeesView1.formats.HireDate}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="JobId" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.JobId}">
                <af:inputText value="#{row.JobId}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.JobId.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.JobId.displayWidth}"/>
              </af:column>
              <af:column sortProperty="Salary" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.Salary}">
                <af:inputText value="#{row.Salary}"
                              required="#{bindings.EmployeesView1.attrDefs.Salary.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.Salary.displayWidth}"
                              inlineStyle="#{row.Salary.value>200?'color: Red; background-color: Green; font-size: 30pt; font-weight: bolder;':''}">
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.EmployeesView1.formats.Salary}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="CommissionPct" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.CommissionPct}">
                <af:inputText value="#{row.CommissionPct}"
                              required="#{bindings.EmployeesView1.attrDefs.CommissionPct.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.CommissionPct.displayWidth}">
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.EmployeesView1.formats.CommissionPct}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="ManagerId" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.ManagerId}">
                <af:inputText value="#{row.ManagerId}"
                              required="#{bindings.EmployeesView1.attrDefs.ManagerId.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.ManagerId.displayWidth}">
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.EmployeesView1.formats.ManagerId}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="DepartmentId" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.DepartmentId}">
                <af:inputText value="#{row.DepartmentId}"
                              required="#{bindings.EmployeesView1.attrDefs.DepartmentId.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.DepartmentId.displayWidth}">
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.EmployeesView1.formats.DepartmentId}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="DeptName" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.DeptName}">
                <af:inputText value="#{row.DeptName}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.DeptName.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.DeptName.displayWidth}"/>
              </af:column>
              <af:column sortProperty="EmpVideo" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.EmpVideo}">
                <af:inputText value="#{row.EmpVideo}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.EmpVideo.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.EmpVideo.displayWidth}"/>
              </af:column>
              <af:column sortProperty="Nationality" sortable="false"
                         headerText="#{bindings.EmployeesView1.labels.Nationality}">
                <af:inputText value="#{row.Nationality}" simple="true"
                              required="#{bindings.EmployeesView1.attrDefs.Nationality.mandatory}"
                              columns="#{bindings.EmployeesView1.attrHints.Nationality.displayWidth}"/>
              </af:column>
            </af:table>
          </h:form>
        </afh:body>
      </afh:html>
    </f:view>
    Best Regards,
    Ahmad Al-Zamer

  • Disable Video Recorder on Cisco MediaSense

    Anybody knows how to disable video record at Cisco MediaSense? I'm calling from Cisco IP Phones with video enable but i need only the audio record at mediasense.
    Thanks

    Just to add to Chris, what version of firmware/did you upgrade the firmware?
    HTH,
    Chris
    Sent from Cisco Technical Support iPad App

  • How to find the particular record in 1000's of workflow jobs are running

    Hi,
    In a data manager -> in workflow tab>IF a record is in CHECK-OUT MODE there are 1000's of jobs are running in that workflow tab. Can anyone tell me how to find that particular record in that workflow jobs.
    Can anyone show me the difference in getting a record in 5.5 and 7.1

    Hello COTI
    Unfortunatly, SAP MDM doesn't have good ability for  WF search.
    All WF clarify by it's status (unlaunched, avialable, Received, complited, error  etc.)
    For each WF SAP MDM assing unique Job ID and this id will be shown in Job ID field in Data Manager WF Tab.
    You can change WF list order by all WF fields like as Job ID, Step, User, Start etc. and try to find your's WF.
    You can use Java API - this is one of the best solution for WF management and WF mass upload  (for example)
    Regards
    Kanstantsin Chernichenka

  • How to disable cache for a particular Report in obiee 10g?

    HI
    My name is Rani .Learning obiee10g ifaced 1 interview in that they asked me like how u disable cache for a particular report?

    In the advanced tab of the report, under prefix you need to mention:
    SET VARIABLE DISABLE_CACHE_HIT=1;
    Refer below link
    http://tipsonobiee.blogspot.com/2009/06/step-by-step-to-bypass-all-caches.html
    Thanks

  • How to disable the validity of a particular Role for 100 users, in a single

    Hi
    How to disable the validity of a particular Role
    which is assigned to 100 users. (disabling the role of change the validity of the role )
    at present am doing manually, by entering into each user and changing the validity of the role
    Thanks.

    > How to disable the validity of a particular Role for 100 users, in a single ...
    ... shot?
    Assign a reference user to the 100+ users and create events in the factory calendar which assigns and removes the role from the reference user only.
    The downside is that it is not scalable for many of the same concepts at the same time, because a dialog user can at one logon time only have one reference user assigned to them.
    Cheers,
    Julius

  • How to fetch particular segment of records?

    Hi all,
    My last question is how to limit the rows returned. This time my question is how to fetch particular segment of records from DB table?
    In detail, if one table has 95 records, which method can be used to fetch #71-80 record only, not fetch #1-80 first and abandon the preceeding 70 ones?

    There are a few methods:
    - Set firstResult and maxResult on the JPA Query, this is normally the best option. Depending on your database this will best optimized to only select these rows.
    - Use a Cursor, in EclipseLink 1.1 there are QueryHints for doing this, see org.eclipse.persistence.config.QueryHints.
    - Select all of the results, and store them in your app or http session, and scroll through them in memory on next/previous.
    - Select just the ids, and store them in your app/page or http session, each page select the batch of object with the ids.
    - Use an order-by and critieria to limit your results to a specific amount.
    James : http://www.eclipselink.org
    http://en.wikibooks.org/wiki/Java_Persistence

  • How to delete a particular record in field symbol

    Hi,
    i am declaring field symbol type any table i, i want delete a particular record in that filed symbol.
    How to do that.

    Hello Himam,
    It is not possible to delete directly from <itab> as it is of generic type.
    But you can do loop at <itab> ASSIGNING <wa> and then you can clear content of <wa> this will delete
    the line from internal table.
    Thanks,
    Augustin.

  • How to disable the Directory listing for the whole server or a particular a

    Please let me know how to disable the Directory listing for the whole server or a particular application.
    Thank You

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

  • How to retrieve long text for a particular record

    Hi,
    I've been looking through some of the numerous posts relating to reading long texts but I can't seem to find out how to retrieve the necessary parameters for READ_TEXT for a particular record without using the GUI.
    Is there a way in ABAP that one could retrieve the parameters that are required to execute READ_TEXT just from one of the fields in the base table.  eg.  I would like to bring back a list of all materials with their associated long texts.  I can run a query on MARA for example and retrieve the necessary material information but I would like to know how I could get the necessary information, for each row in my results, to pass to READ_TEXT. 
    What information would I need to perform the above, if at all possible?
    Thanks in advance,
    Charles

    You can check out SE75.  Here is where the objects and ids are listed/maintained.  There is one trick to find the object/id.  That is,  create the text in the specific transaction.  If you are talking about header text for a sales orders, go to VA02 and enter some text and save.  Now go to SE16, enter STXH as the table name.  On the selection screen for STXH,  enter your user name for "created by" and enter the date.  Execute.  The record that you see is probably the text that you just created.  You can see the object, the id, and even how the name is built.  In this case,  it would be sales order number.
    Sometimes where you enter the text, there is a little "scroll" icon under the text editor, clicking that will tell you the object and id.  In some cases, this functionality is not there.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Using Ipod Nano 3rd generation with car kit

    Just a simple question... I recently got an 8GB Ipod Nano... want to play it in my car with the Belkin car kit. Even with the volume turned up at max on my ipod I still have to turn up my cd player volume in the car high - is this normal? Also, is FM

  • Strange thing happening

    hi friends, I'm not able to understand what's happening with the already Executed JAR file is not loading Archived class files even when the path is defined in the CLASSPATH variable but the same works fine when the program is executed with the main

  • Employee record remains locked after BAPI_EMPLOYEE_DEQUEUE

    I use WebServices gererated by the wizard in SE37 to change Employee Data. I call functions (through the webservice) in the following sequence: BAPI_EMPLOYEE_ENQUEUE BAPI_PERSDATA_CHANGE BAPI_EMPLOYEE_DEQUEUE The ENQUEUE and CHANGE operations work fi

  • Sp to sync two tables using linked servers

    Hello everybody I'm working in a SP and I got two tables in different servers, one is the main and the other is a copy but whit less columns, all I want is to run the SP every 5 min over the main table in order to validate if new records has been cre

  • Time Machine will not access Time Capsule no permission?????

    Need some help- I have atiem machine that I have used for several years - Bought a new MacBook pro / installed Lion - When I went to set up Time MAchine it sees the Time Capsule - but I am not allowed to read or write as I get the message that says I