Delete modify in itab

hi gurus,
i am new in abap and i have a report in which in a selection screen
has 3 fields as months cur. date and material no.
and two parameters as chkbox on selection of these chkbox
one for delete and other for modify data in table.
plz send the codes abt delete and modify
i make it this but have an error.
TABLES: S225.
                       D A T A
DATA: OK_CODE LIKE SY-UCOMM.
*DATA: ITAB LIKE S225 OCCURS 0 WITH HEADER LINE.
             SELECTION SCREEN / PARAMETERS                            *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS:S_spmon FOR s225-spmon OBLIGATORY LOWER CASE,
               s_sptag FOR s225-sptag OBLIGATORY,
               S_MATNR FOR S225-MATNR OBLIGATORY.
SELECTION-SCREEN SKIP 1.
PARAMETERS: P1 AS CHECKBOX DEFAULT 'X',
            P2 AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b1.
                  START OF SELECTION
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM DELETE_DATA.
*forms to fetch data in fields
FORM GET_DATA.
SELECT spmon sptag matnr FROM s225
*INTO CORRESPONDING FIELDS OF TABLE ITAB
WHERE SPMON IN S_SPMON AND
      SPTAG IN S_SPTAG AND
      MATNR IN S_MATNR.
ENDFORM.
*form for delete data
FORM DELETE_DATA.
CASE OK_CODE.
WHEN 'P1'.
DELETE SPMON FROM s225.
MESSAGE I002 WITH 'Data is Deleted'.
*WHEN 'P2'.
*INSERT: SPMON,SPTAG, MATNR INTO ITAB.
*MESSAGE S004 WITH 'Data is Saved Successfully'.
ENDCASE.
ENDFORM.
plz help me and send information to correct it.
thanks.

Hi Jayant
Looks like your program is a report. Hence, don't handle the selection screen inputs through OKC_DE, which is generally forllowed for Dialog or Module Pool Program. You can change your code as below, that solve the problem,
TABLES: S225.
D A T A
DATA: OK_CODE LIKE SY-UCOMM.
*DATA: ITAB LIKE S225 OCCURS 0 WITH HEADER LINE.
SELECTION SCREEN / PARAMETERS *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS:S_spmon FOR s225-spmon OBLIGATORY LOWER CASE,
s_sptag FOR s225-sptag OBLIGATORY,
S_MATNR FOR S225-MATNR OBLIGATORY.
SELECTION-SCREEN SKIP 1.
PARAMETERS: P1 AS CHECKBOX DEFAULT 'X',
P2 AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b1.
START OF SELECTION
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM DELETE_DATA.
*forms to fetch data in fields
FORM GET_DATA.
SELECT spmon sptag matnr FROM s225
*INTO CORRESPONDING FIELDS OF TABLE ITAB
WHERE SPMON IN S_SPMON AND
SPTAG IN S_SPTAG AND
MATNR IN S_MATNR.
ENDFORM.
*form for delete data
FORM DELETE_DATA.
if P1 is not initial.
DELETE SPMON FROM s225.
MESSAGE I002 WITH 'Data is Deleted'.
endif.
if P2 is not initial.
modify SPMON from S225.
MESSAGE I002 WITH 'Data is Modified'.
endif.
ENDFORM.
Hope this helps !
Kind Regards
Ranganath

Similar Messages

  • Delete modify in itab output display

    hi,
    i am create a query for delete data from database table by using an internal table i am delete data from DB table but a problem are come as in output display
    i am showing  the
    NUMBER OF ENTRIES ARE DELETE FROM TABLE: 2
    NUMBER OF ENTRIES ARE REMAIN IN TABLE AFTER DELETEION:
    seletion screen contains 
    SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,   "APO order id
                                s_matnr FOR zapolp22-matnr,   "Material Number
                     s_locto FOR zapolp22-locto.   "APO Destination location
    PARAMETERS: p_days TYPE i. "Number of days
    the problem are as:
    if i am given only P-days parameter value 3
    than it works as fine
    showing output right as 2 rows are deleted
    and 8 rows are remains in table
    if i given all fields fill up in selection screen
    as s_ordid----->4516 to 4517
        s_matnr---->85503 to 85505
       s_locto------> m100 to m101
    p_days----> 2
    then i get output display as
    number of entries  are deleted   2
    number of entries are remain in table  0.
    but the 2 rows are deleted from DB table and 8 rows are remain in table but it not show the 8 rows on display screen it shows zero.
    my code is as:
    DATA:  lv_count  TYPE i,
           lv_count1 TYPE i.
    DATA: lv_date TYPE sy-datum.
    SELECT mandt
           ordid
           schedid
           matnr
           locto
           lfmng
           lfdat
           locfr
           rqmng
           rqdat AS lv_date
           prckz
           blkstk
           oppdelqty
           zzapologmod
           zzflagurgent
           zzapottype
           zzndays_l_time
    FROM zapolp22 INTO TABLE lt_output
    WHERE ordid IN s_ordid  AND
           matnr IN s_matnr  AND
           locto IN s_locto.
    SORT lt_output[] BY rqdat.
    >Number OF Days to be Counted
    lv_date = sy-datum - p_days.
    LOOP AT lt_output.
      IF lt_output-rqdat LT lv_date.
        MOVE-CORRESPONDING lt_output TO lt_delete.
        APPEND lt_delete.
        lv_count = lv_count + 1.
      ELSE.
        lv_count1 = lv_count1 + 1.
      ENDIF.
    endloop.
    DELETE FROM zapolp22  WHERE rqdat LT lv_date AND
                                ordid IN s_ordid AND
                                matnr IN s_matnr AND
                                locto IN s_locto.
    IF sy-subrc = 0.
      WRITE:/25 'Number of entries deleted            :', lv_count.
      WRITE:/25 'Number of entries remaining          :', lv_count1.
    ELSEIF sy-subrc NE 0.
      WRITE:/ 'No data are selected for delete'.
    ENDIF.
    Tell me where in this code i do mistake.
    Thanks jayant.

    I don't know the contents of the table, but if you increase the number of restrictions in the SELECT statement, it will probably have lesser entries.
    Now, you are not really counting the total number of rows left in the table, but the total number of rows in the table that match the criterion.
    Basically, the first time (with lesser options) 10 rows are put into internal table, and 2 are deleted. So 8 are left.
    In the second time, only 4 rows are getting selected, of which 2 are deleted, and 2 are left in the internal table NOT in the database table. In the database table, more rows are left (because they never got selected into the itab)
    But if you want to count the total number of rows left in the DB, its better to count the number of rows in the end of the program with:
    SELECT COUNT(*) FROM dbtab INTO lv_integer.
    This can be pretty slow if the table is huge.

  • How to use create, delete, modify butttons in a table

    hi all
    in my application i have emp table in my source view
    in that table i have inserted static data in columns i.e., empid, empname. i have 3 buttons create, delete, modify buttons in that table. when i press Create button it navigates to another view1 in which we have a emp form with create new emp button and labels empid, empname and 2 input fields.After filling the form when hit the create newemp button the form data should be displayed in the table.
    The same for Modify and delete.  i.e., when i select a particular empid row in my source view table and hit the modify button it should navigate to view2 in which the particular record form with data displays and after making necessary modifications the modified data should be display in the particular row .
    For delete button, when i select a particular record in the table and hit delete button it should be deleted from the table.
    any snippet of code is valuable
    Thanks in advance
    sravan

    Hi Sravan,
    I just need a clarification, are you getting the table data from the back-end system?
    On the second view, after the user input on click of the "Create New" or "Modify" button, update the back-end. Once the update is successful, fire a plug back to the first view and reload the table or execute the model again. The updated records will be fetched from back-end system.
    On click of "Delete" button, remove the record from the back-end and execute the model again.
    This holds good if you have the data fetched from the back-end.
    Regards,
    Santhosh.C

  • Trace  to find who out who has deleted / modified  the attendance record

    Dear All
    Some one has deleted the attendence record of a particular user of previous month , so how i can track who has deleted / modified the same in salary slip it is showing 1 leave record for the same month, but while checking throught pa30 there is no record shown for the same . can you please tell me how to trace that and which tables are updated once we update the attendence and while processing the salary slip , from which table it picks the leave availaed data .
    Thx
    Shilpa
    Edited by: Shilpa on Nov 13, 2009 11:31 AM

    Hi Shilpa,
    You have to activate the audit Trail.
    RPUAUD00 isthe program to see the changes in infotypes records, but before that you have to configure T585A, T585B, T585C
    Regards,
    Kapil Kaushal

  • How to delete modified version datasource

    I have a datasource in M version and A version. I am getting datasource activation error in BI 7.0
    Please let me know how to delete Modified version.
    Thanks
    Liza

    I removed a field from LO datasource 2LIS_11_VAITM , activated, tested  successfully in R/3.
    I replicated the datasource successfully in BW. But when activate the data source I am getting short  dump ST22 ,the error message is  "  The ASSERT condition was violated".  I am BI 7.0.
    BW side in datasouece I found a not equal to sign ( which means M version is not equal to A version) and datasource is inactive.
    ST22 -
    Short text
        The ASSERT condition was violated.
    Error analysis
        The following checkpoint group was used: "No checkpoint group specified"
        If in the ASSERT statement the addition FIELDS was used, you can find
        the content of the first 8 specified fields in the following overview:
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
    Thanks
    Liza

  • Scripts for adding/deleting/modifying Open Directory accounts?

    I think I have searched high and low for an answer to this question, but if I missed it please point me in the right direction. Where can I find information on scripts for adding/deleting/modifying open directory accounts? At the very least, a command line utility with some syntax guidelines! Any help would be greatly appreciated.

    Hi
    I personally don't know if any scripts although you can use the command line to do pretty much anything you want with the Open Directory. Consult the manual: man dscl. If you launch terminal and issue dscl you should see something like this:
    my-Laptop:~ me$ dscl
    dscl (v20.4)
    usage: dscl [options] [<datasource> [<command>]]
    datasource:
    localhost (default) or
    <hostname> (requires DS proxy support, >= DS-158) or
    <nodename> (Directory Service style node name) or
    <domainname> (NetInfo style domain name)
    options:
    -u <user> authenticate as user (required when using DS Proxy)
    -P <password> authentication password
    -p prompt for password
    -raw don't strip off prefix from DS constants
    -url print record attribute values in URL-style encoding
    -q quiet - no interactive prompt
    commands:
    -read <path> [<key>...]
    -create <record path> [<key> [<val>...]]
    -delete <path> [<key> [<val>...]]
    -list <path> [<key>]
    -append <record path> <key> <val>...
    -merge <record path> <key> <val>...
    -change <record path> <key> <old value> <new value>
    -changei <record path> <key> <value index> <new value>
    -search <path> <key> <val>
    -auth [<user> [<password>]]
    -authonly [<user> [<password>]]
    -passwd <user path> [<new password> | <old password> <new password>]
    Entering interactive mode...
    The above is for 10.4 and should server equally as well for 10.5.
    Hope this helps, Tony

  • Trigger events when delete/modify certain folder in KM

    Dear Experts,
    I have a requirement like when certain folder is being deleted/modified I want an event need to be trigger, such that I will put some checks before these commands performed.
    Basically my requirement is, I have a custom iViews created and are using custom tables in databse.  When I create the folders in KM, I am creating/maintaining these folder reference in my custom tablese using my custom iView.
    Now when I delete the folder from KM, I want to show some warning message before deleting the folder and simulatenously these folder references should also be deleted from my custom tables.
    Please give me suggestions how to acheive the above scenario.
    Thanks in Advance,
    Chinna.

    Hi Yogalakshmi,
    I have created a Repository service using the document provided. I have registered the pre_delete_template  event using the below code         
    unregister(this,ResourceEvent.PRE_DELETE_TEMPLATE);
    I am printing some trace when this event occurs. Logs is being displayed after the folder gets deleted.
    Can you please provide me some code snippet for register predelete event, and on attempting to delete I would like to pop up a window with warning/confirmation message (confirmation popup window). Based on the confirmation from the popup window -- Ok/Cancel, I would like to perform few operations.
    I don't find any documents on Repository Services.
    Could you please provide me code/documents that fulfills my requirement.
    Thanks
    Chinna.

  • Creating (view, add, delete, modify) bsp application

    Hi gurus,
    Could anyone here please help. I am totally a new user in SAP and I would wish to create a small bsp application that could interact with my database in transaction se16.
    Below are the requirements.
    1) Allow user to<b> view </b>all Database Records
    2) Allow user to <b>add</b> records into the Database
    3) Allow user to <b>delete</b> records from the Database
    4) Allow user to <b>modify</b> records from the Database
    My table name in se16 is ZRM_PERIOD_CTRL
    and has 4 fields which are : CLASS, FISCPER3, FISCYEAR, ZG_PVER
    Can you please provide some direction on this?
    Thanks in advance
    Message was edited by:
            gary lee
    Message was edited by:
            gary lee

    Hi Gary,
    Lets start...!!!
    1) Create a new page <b>page.htm</b>
    2) In the<b> layout section</b> of the page put :
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Modify table " >
        <htmlb:form>
          <htmlb:tray id     = "tray1"
                      title  = "Data Tray"
                      design = "BORDER" >
            <htmlb:trayBody>
              <htmlb:tableView id             = "TV"
                               table          = "<%= itab %>"
                               design         = "ALTERNATING"
                               onRowSelection = "MyEventRowSelection"
                               selectionMode  = "MULTILINEEDIT"
                               columnWidth    = "100%"
                               filter         = "SERVER" />
              <br>
              <br>
              <center>
              <htmlb:button id       = "Update"
                            text     = "Update"
                            onClick  = "onInputProcessing"
                            design   = "emphasized"
                            disabled = "false" />
              </center>
            </htmlb:trayBody>
          </htmlb:tray>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    3) In the <b>TYPE DEFINITIONS</b> : 
    TYPES : itab_t type standard table of ZBANCTECPRD,
            wa_t type line of itab_t.
    4) Then in <b>page attributes</b> :
    itab                      TYPE     ITAB_T
    selectedrowindextable TYPE     INT4_TABLE
    wa                      TYPE     WA_T
    zindex                      TYPE     SY-INDEX
    5) In the <b>Event Handler</b> : 
    In <i><b>onCreate</b></i> :
    select * from ZBANCTECPRD INTO TABLE ITAB.
    In <i><b>onInputProcessing</b></i> :
    * To get the selected RowIndex...
    CLASS cl_htmlb_manager DEFINITION LOAD.
    DATA: tv          TYPE REF TO cl_htmlb_tableview,
          event       TYPE REF TO cl_htmlb_event,
          table_event TYPE REF TO cl_htmlb_event_tableview.
    FIELD-SYMBOLS <i> LIKE LINE OF selectedrowindextable.
    tv  ?= cl_htmlb_manager=>get_data( request = request
                                       name    = 'tableView'
                                       id      = 'TV' ).
    IF tv IS NOT INITIAL.
      table_event = tv->data.
      CLEAR selectedrowindextable.
      selectedrowindextable = table_event->prevselectedrowindextable.
      IF table_event->event_type EQ cl_htmlb_event_tableview=>co_row_selection.
        READ TABLE selectedrowindextable WITH KEY table_line = table_event->row_index TRANSPORTING NO FIELDS.
        IF sy-subrc EQ 0.
          DELETE selectedrowindextable INDEX sy-tabix.
        ELSE.
          APPEND INITIAL LINE TO selectedrowindextable ASSIGNING <i>.
          <i> = table_event->row_index.
          zindex = table_event->row_index.
        ENDIF.
      ENDIF.
    ENDIF.
    * get the button event.
    IF event_id = cl_htmlb_manager=>event_id.
      event = cl_htmlb_manager=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        DATA : button_event TYPE REF TO cl_htmlb_event_button.
        button_event ?= event.
      ENDIF.
      CASE event->id.   " Use this for specifying code for different buttons.
        WHEN 'Update'.          " This is the button id.
          tv ?= cl_htmlb_manager=>get_data(
                 request      = request
                 name         = 'tableView'
                 id           = 'TV' ).
          IF tv IS NOT INITIAL.
            DATA : tv_data TYPE REF TO cl_htmlb_event_tableview .
            tv_data = tv->data.
    *get values from screen to work-area...get_cell_value is for tableView and get_data is for other objects like inputfield
            wa-scnotify     = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 1 ).
            wa-equipmentid  = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 2 ).
            wa-clientname   = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 3 ).
            wa-sla          = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 4 ).
            wa-reference_no    = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 5 ).
            wa-district_code    = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 6 ).
            DATA : temp_date(10) TYPE c, new_date TYPE d.
            temp_date  = tv_data->get_cell_value(
                                   row_index     = zindex
                                   column_index  = 7 ).
            CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
              EXPORTING
                date_external = temp_date
              IMPORTING
                date_internal = new_date.
            wa-malfuncstdate = new_date.
            temp_date  = tv_data->get_cell_value(
                                   row_index     = zindex
                                   column_index  = 8 ).
            CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
              EXPORTING
                date_external = temp_date
              IMPORTING
                date_internal = new_date.
            wa-malfuncendate = new_date.
            wa-ceid   = tv_data->get_cell_value(
                                             row_index     = zindex
                                             column_index  = 9 ).
            MODIFY itab INDEX  zindex FROM wa .
            MODIFY zbanctecprd FROM wa.
          ENDIF.
      ENDCASE.
    ENDIF.
    <u><i><b>This is the code to modify a table line.....Try and think on these lines to add or delete a table line....!!</b></i></u>
    Also note that i have used my own Ztable....you will have to modify the code a bit for your Ztable....!!
    <i>Do reward each useful answer..!</i>
    Thanks,
    Tatvagna.

  • Editable ALV issue: When Delete/Modify a row, ztable doesnt reflect changes

    Greeting Fellow Abapers,.
    I have been running into an issue that I need some advice on.  I am allowing users to edit a Ztable via ALV.  When the quantity field is updated everything is fine. However, when the field "lic_plate" is edited the code appends another row into the Ztable instead of modifying it.  Also, when the delete row functionality of the grid is used the row is not deleted from the Ztable.
    Here is the ztable structure. The fields I allow to be edited are in BOLD...
    ZPALLET-VBELN
    ZPALLET-MATNR
    ZPALLET-LINE_NUM
    ZPALLET-LIC_PLATE
    ZPALLET-LOT_NUMBER
    ZPALLET-PAL_TYPE
    ZPALLET-MAN_DATE
    ZPALLET-QUANTITY
    ZPALLET-PROC_DATE
    Here is the source code that the APPEND is taking place...
    FORM save_database .
    Getting the selected rows index*
      CALL METHOD o_grid->get_selected_rows
        IMPORTING
          et_index_rows = i_selected_rows.
    Through the index capturing the values of selected rows*
      LOOP AT i_selected_rows INTO w_selected_rows.
        READ TABLE itab INTO wa INDEX w_selected_rows-index.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING wa TO w_modified.
          APPEND w_modified TO i_modified.
        ENDIF.
      ENDLOOP.
    IF sy-subrc = 0.
        MODIFY zpallet FROM TABLE i_modified.
    ENDIF.
    ENDFORM.
    Please help. I am in your debt.
    ...as always, points will be awarded.
    Best,
    Dan

    Hello Dan
    When you are using an editable ALV for table maintenance you have to take care that the users
    - cannot edit the key fields of existing DB records   and
    - every new record (row) does not match any existing record (i.e. has identical key field values)
    Instead of relying on selected rows for the DB update I would recommend to store a "PBO image" of your data and compare this with the "PAI image" of the data as soon as the user pushes the SAVE button.
    Example:
    DATA:
      gt_outtab_pbo    TYPE   < your table type>,  " PBO image
      gt_outtab           TYPE   < your table type>.  " PAI image
    " 1. Select data from DB table and store in both itabs:
      SELECT * ... INTO TABLE gt_outtab.
      gt_outtab_pbo = gt_outtab.
    " 2. Display editable ALV list -> user modifies gt_outtab
    " 3. SAVE function requested
    " ... compare gt_outtab vs. gt_outtab_pbo
    " .... INSERT, UPDATE, or DELETE DB records
    " Finally set:
      gt_outtab_pbo = gt_outtab.
    " 2. User continues with editing
    In order to compare PBO vs. PAI data you may have a look at my sample coding:
    [Comparing Two Internal Tables - A Generic Approach|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/comparing%2btwo%2binternal%2btables%2b-%2ba%2bgeneric%2bapproach]
    Regards,
      Uwe

  • Deleting modified/original images

    I had a question earlier for how to delete original pictures after I had rotated them, but today I found out that pictures that I had deleted from the library (cause I didn't want them) still are in the iPhoto folder! My camera automatically rotates pictures for me, so I don't have to do it in iPhoto, but they still create an original and a modified picture in the library. And so my question is: Why isn't pictures that I deleted from the library (but was rotated when imported, so the picturea are in both the modified and originals folders) deleted from my computer?
    Egh, I'm bad at explaining, sorry.

    Based on what you've stated, it's an impossible task fixing your old library BUT keep reading. Depending on exactly how much damage you did, there is hope that you can retrieve at least most of your photos. You will need to create a brand new (empty) library and put your old photos into the new library.
    ALL OF THE FOLLOWING IS BASED ON iPHOTO VERSION 6. I DON'T REMEMBER THE LIBRARY DETAILS OF THE EARLIER VERSIONS BUT, IF YOU HAVE AN EARLIER VERSION, YOU SHOULD BE ABLE TO DO SOMETHING SIMILAR.
    First, the two critical folders are the "Originals" folder and the "Modified" folder. Find them, take them out of the library, and and put them in a safe place, like the desktop. Take the rest of your old library and put it in the trash! Don't empty the trash just yet.
    Now, open iPhoto. It will ask you to find the library or to create a new one. You want to create a new one. Next, you need to import the old photos but you must make a decision. You can import from the old "Originals" folder OR you can import from the old "Modified" folder OR you can import both. The "Originals" folder contains the original files from the camera (surprise!). IF you've modified any photos, the "Modified" folder conains the latest modified version. NOTE that whatever you choose to import will be recognized by iPhoto as an "original" and it will be placed in the NEW "Originals" folder.
    Once you make up your mind, open iPhoto and go to File > Import to Library. Navigate to locate the folders inside your OLD "Originals" folder or your OLD "Modified" folder (or both) - these are the folders that you put on the desktop - and import accordingly.
    After you're satisfied with the results, you can move the OLD "Originals" and "Modified" folders into the trash and empty the trash.

  • Deleting Duplicate from ITAB without sorting????

    Hi,
    A challenging and interesting problem please help. I want to delete duplicates from an ITAB without sorting (so cant use delete adjacent duplicates)
    data:  begin of dpp occurs 0,
            val type i,
            end of dpp.
            dpp-val = 13.
            append dpp.
            dpp-val = 15.
            append dpp.
            dpp-val = 26.
            append dpp.
            dpp-val = 15.
            append dpp.
            dpp-val = 27
            append dpp.
            dpp-val = 15.
            append dpp.
    As you see 15 is duplicated in DPP,,,how can duplicated 15 entries be deleted without sorting
                       VAL
         13
         15
         26
         15
         27
         15
    thhnx
    Edited by: Salman Akram on Oct 12, 2010 3:54 PM

    Hi,
    Loop through your DPP itab then append to another. try this:
    DATA: BEGIN OF dpp OCCURS 0,
    val TYPE i,
    END OF dpp.
    dpp-val = 13.
    APPEND dpp.
    dpp-val = 15.
    APPEND dpp.
    dpp-val = 26.
    APPEND dpp.
    dpp-val = 15.
    APPEND dpp.
    dpp-val = 27.
    APPEND dpp.
    dpp-val = 15.
    APPEND dpp.
    DATA: BEGIN OF dpp1 OCCURS 0.
            INCLUDE STRUCTURE dpp.
    DATA: END OF dpp1.
    LOOP AT dpp.
      READ TABLE dpp1 WITH KEY val = dpp-val.
      IF sy-subrc NE 0.
        APPEND dpp TO dpp1.
      ELSE.
        CONTINUE.
      ENDIF.
    ENDLOOP.
    REFRESH dpp.
    dpp[] = dpp1[].
    thanks.

  • Control Enable/Disable of Save/Delete/Modify buttons

    Hi Friends,
    Have some one written a program how to enable disable the buttons on a for. Like i have 4 buttons
    1) Add New
    2) Save
    3) Modify
    4) Delete
    Now i want to control the enable/disable of these butons. Like when a blank record. ADD NEW, MODIFY, DLETE button shuld remain disable and ONLY SAVE button remains Enable. Similarly when there a change in record. MODIFY BUTTON is enabled.
    Similarly other functions. Have someone written the code for this control. I am trying but no desire results.
    Pliz Help,
    Imran

    Hello Imran
    You have to write a code like
    If <condition> the
    set_item_property(button,enable,property<true/false>);
    ELSIF <condition2>
    set_item_property(button,enable,property<true/false>);
    ELSIF <condition3>
    set_item_property(button,enable,property<true/false>);
    ELSE
    set_item_property(button,enable,property<true/false>);
    END IF;
    the condition can be checked :SYSTEM.form_status.
    Regards
    Mel

  • Add/Delete/Modify Record form question

    I have a form set up in which I want the viewer to be able to
    select a job title from a list menu. From that selection, I want
    them to have the option to modify or delete that job selection or
    add a new job. WIth that I have a "Add Job" button, "Modify Job" or
    "Delete Job" button in the form for them to submit the form with.
    But how do I set it up so each button will submit to the
    appropriate page, (i.e the modify the selected job page, the delete
    the selected job page, or the create new job page"
    Thanks,
    Dave

    Okay-
    Maybe I need to take a step back or something, but here is
    what I now set up trying a slightly different approach:
    <cfif form.title GT 0>
    <cfif IsDefined("form.edit")>
    <cfinclude template="../Admincopy/UticaEditJob.cfm">
    <cfelseif isdefined("form.Delete")>
    <cfinclude template="../Admincopy/UticaDeleteJob.cfm">
    <cfelseif isdefined("form.Insert")>
    <cfinclude
    template="../Admincopy/UticaInsertPosting.cfm">
    </cfif>
    <cfelse>
    <cflocation url="UticaJobPostings.cfm?"> Please select
    a job to edit.
    <cfexit>
    </cfif>
    What I thought would happen is that if form.title had a
    value, it goes to the appropriate template. If it doesn't have a
    value, the page returns to the UticaJobPostings.cfm page which has
    the form field to select the posting.
    Initially, if I select a job listing, it will go to the
    appropriate template. If I don't choose a job listing, it still
    goes to the template with the missing value error.
    I am truly trying to figure this out and hate to keep posting
    you with this problem, but I am at my wits end here!!!
    Viewing what I have, what can I change???
    Dave

  • Approve EVERY add, delete, modify by hand.

    I've looked through the forum, but perhaps I haven't been using the right search terms...
    Is there a way to change a setting on iSync such that I can approve EVERY modification by hand?
    right now I have it set to notify me if ANY changes are to be made, but it will only tell me 2 additions, 1 deletion, and 3 modifications, but won't tell me WHICH 2 are being added, which 1 is being deleted, and WHICH 3 are being modified.
    Of couse, the big concern is the deletions and the modifications. (Not so much the additions) There are plenty of cases where I want to make sure that what is being changed/deleted is what I really want: Accidental pushing of cell phone buttons while in pocket, mistaken changes, cell software deleting objects randomly.
    The Conflict window would be great for reviewing these changes, but that only is invoked when it dectects items that have either both been changed or have not been synced.
    Anyone have any ideas?
    Thanks!
    Various    

    Newsletter? I don't actually have one. I've often thought of starting an online forum outside of Apple Discussions specifically for Mac OS X synchronization, but I just don't have the free time required to support it yet.
    There is some publicly available documentation you can read concerning the Sync Services framework. This overview is a good place to start:
    http://developer.apple.com/macosx/syncservices.html
    Embedded in it are links to other developer material, but in order to get access to the tools you need to examine client registration information, the truth database, conflicts and synchronization history, you need to be a paid, active developer. My best guess is that the specific capabilities you require essentially don't exist at the moment, and it may be some time before they do.
    There is an iSync 'roadmap' but it's not publicly available. If the development team itself were publicly accessible, they would never get any development work done because of the demand from users for help, feature improvements and information about upcoming releases. I am confident that they are well aware of user desires for such features as reviewable, non-conflicting record changes, but my best guess is that you will not see that sort of capability in iSync or other components of the framework for some time.
    As you can imagine, a great deal of effort is going into the soon-to-be released Mac OS X 10.5 package, with the many changes coming to client, contact and other data synchronization.

  • IPhoto for iOS : Impossible to delete modified pictures ! Bug ?

    Hi everyone,
    Just downloaded iPhoto for iOS yesterday. Amazing apps except for one thing.
    It seems that it's impossible to delete a modified picture and the modified pictures album !
    I even tried to delete the original one in the Photos app but now I can't see my original (which is fine) but I'm still seeing the modified version !
    Do I really need to delete the app and reinstall it in order to delete the picture ?
    Thanks.

    Are you sure ?
    Couple of questions if so :
    -> every time I make a change to a picture there's the "modified pictures" album that gets created. If I delete the original picture, the modified one stays here forever even if I revert to original. Impossible to delete ?
    -> I you only have one picture in your library and you hide it, it's impossible to acces it again. I had to take another picture to show the first one ! It's not a bug ?

Maybe you are looking for

  • Predefined network  model themes

    I am having a problem whilst trying to load one of the above into mapviewer. I have a network model that is working, valid and I can perform analysis using the SQL API. I am trying to create a theme with insert into user_sdo_themes values( 'RAILNET',

  • Strange Problem-------Call to Gothics of STRUTS

    I m developing application on STRUTS frameork. evrything is working fine , except for one thing. Im having a dyna sction form , but when i invoke editQuestion.do it gives me 500 error. Can anybody find out why , it so ? One more thing if i create one

  • Installments on AP downpayment invoices

    Hi, With B1 2007, it doesn't appear to be possible to change the u201CNo of instalmentsu201D on AP Down Payment Invoices?  Yet, you can change this on straight AP Invoices. Does anyone know if this is expected/by deisng or there another way to do thi

  • Sun x4200 Fan threshold High/Low

    The server room is at 22Celcius, and all the other servers are ok, but the x4200s have these on their logs, and I can't figure out why. Does anyone know how to possibly fix this issue? Well it seems that it only happens when I only connect one power

  • Order Line Item Status Issue

    Experts, The way that order line item status is determined in SAP is causing confusion with our customers how are using our ECommerce for ERP module.  The line item status does not take into account the line item's delivery statuses.  For example, a