Deletion with Tablecontrol

Hi all,
   How to set the value of w/sel column field as marked and delete the corresponding row in the table.
Regards,
Surya

hi..
here is the sample code.
flow logic####
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT ITAB WITH CONTROL TC.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT ITAB.
MODULE MODIFY_TABLE.
ENDLOOP.
MODULE USER_COMMAND_0100.
code#####
REPORT ZINC1000 .
tables: DEMO_CONN,SPFLI.
controls tc type tableview using screen 100.
data itab like table of DEMO_CONN with header line.
data a type SPFLI-connid.
data lines type i.
data fill type i.
data ind type i.
data net_amount type i.
tc-lines = fill.
data flag.
*DATA NUM TYPE ZRHB_BILL_CAR1-CBILL_NO.
*NUM = 100.
call screen 100.
*&      Module  STATUS_0100  OUTPUT
      text
module STATUS_0100 output.
SET PF-STATUS 'BILL'.
SET TITLEBAR 'xxx'.
IF FLAG = 'X'.
PERFORM DISPLAY.
ENDIF.
endmodule.                 " STATUS_0100  OUTPUT
*&      Module  MODIFY_TABLE  INPUT
      text
module MODIFY_TABLE input.
lines = sy-loopc.
MODIFY ITAB FROM ITAB index TC-current_line.
endmodule.                 " MODIFY_TABLE  INPUT
*&      Module  USER_COMMAND_0100  INPUT
      text
module USER_COMMAND_0100 input.
CASE SY-UCOMM.
WHEN 'CL'.
SELECT * FROM SPFLI INTO
ITAB
WHERE CONNID = A.
ENDSELECT.
APPEND ITAB.
FLAG = 'X'.
  WHEN 'BACK'.
   LEAVE PROGRAM.
   WHEN 'SAVE'.
   PERFORM PRINT.
   WHEN 'DEL'.
   PERFORM DELETE.
     ENDCASE.
endmodule.                 " USER_COMMAND_0100  INPUT
FORM PRINT.
LEAVE TO LIST-PROCESSING.
SUPPRESS DIALOG.
LOOP AT ITAB.
WRITE:/ ITAB-CONNID,ITAB-CARRID.
ENDLOOP.
ENDFORM.
  FORM DISPLAY.
DESCRIBE TABLE ITAB LINES FILL.
  ITAB-CONNID  = ITAB-CONNID .
  ITAB-CARRID  = ITAB-CARRID.
  ENDFORM.
FORM DELETE.
LOOP AT ITAB WHERE MARK = 'X'.
DELETE ITAB.
ENDLOOP.
ENDFORM.
in screen painter use itab-mark in w/sel-col and mark must be in ur table..

Similar Messages

  • Adobe XMP Files not deleted with Raw Files in ACR

    I am using Photoshop CS3 on a Windows XP platform. My camera raw files are mostly kept on a Windows 2003 file server, which has a gigabit connection to my workstation. However, I have the same problems when using PS CS3 on my Windows XP laptop.
    I take many hundreds of 'technical' photographs using an Olympus E1 and Canon G9 cameras. I usually bracket the exposures on the E1, specially when photographing white painted yachts, and then rate and select the images that I want in ACR 4.1.1. Unwanted images are deleted at this time.
    The problem I am having is that the associated *.xmp files are not always deleted with the camera raw files, with the result that I now have literally thousands of these 'orphaned' files cluttering up the server. The only options I have are to delete the files manually, which is a pain, or to leave them on the server, wasting unnecessary space.
    I have the same issue with Canon and Nikon raw files, so this problem is not specific to Olympus files.
    This is a long standing problem, and I would be grateful if anyone has any answers?
    If any Adobe programmers are watching, it would be handy if you could provide a simple utility to delete orphaned *.xmp files, or at least compress them into some kind of archive.
    Thanks,
    Nigel.

    [quote] As far as Photoshop and ACR go, ALL raw files are treated as read-only.
    Your original raw files remain untouched, no matter what you do to them.
    Any adjustments you make to a raw file are kept only as metadata (flags, if you will) in that XMP side-car file. Every time you want to re-open that raw image file, ACR will reach for the XMP file and apply the adjustments automatically, transparently. [/quote]
    That is not quite correct. Camera RAW files can be permanently deleted from within Adobe Camera Raw. The problem with ACR 4.1 to 4.4 4 was that the XMP files were left behind. This now seems to have been rectified in the latest version (ACR 4.5).
    Thank you Adobe!

  • TS1702 i have erased my all phone contact list and then the message comes that it will be deleted with in an hour. but now my phone is not starting and only the apple logo appears on the screen. what should i do now..!

    i have erased my all phone contact list and then the message comes that it will be deleted with in an hour. but now my phone is not starting and only the apple logo appears on the screen. what should i do now..!

    That number is for an apple server in the UK that is used for iMessage activation.  A hidden SMS is snet to that number when you turn iMessage on and is used to verify your phone number.  I suggest you turn iMessage off.  In settings/phone turn on dial assist.  Check with your carrier to see if you can send an international SMS as you end that possibility to activate iMessage.  Rest your phone (Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost).) then turn iMessage back on.

  • Is there any way to fwd delete with mavericks?

    Is there any way to fwd delete with mavericks?

    Try Fn+Delete if you are asking about deleting characters to the right of typed text. Verified on TextEdit.

  • Delete with IN and EXISTS

    Hi,
    I was suggested by one of the oracle forums member
    that
    DELETE FROM PYMT_DTL WHERE CLM_CASE_NO IN
    (SELECT CLM_CASE_NO FROM TEMP_ARCHIVE1 );
    is same as
    DELETE FROM PYMT_DTL WHERE EXISTS (SELECT CLM_CASE_NO FROM TEMP_ARCHIVE1);
    I see rows only get deleted with 2nd query
    if both queries are same why is not 1st query deleteing rows ?
    Thanks in Advance

    Hi,
    The two DELETE statements you posted are not the same.
    DELETE  FROM PYMT_DTL
    WHERE  EXISTS
            ( SELECT CLM_CASE_NO
              FROM TEMP_ARCHIVE1
            );will see if there is anything at all in the temp_archive1 table. If so, it will delete every row in pymt_dtl. If not, nothing will be deleted.
    If you want to delete rows from pymt_dtl that have a matching row in temp_archive1, then you can use the first DELETE statement you posted, or this:
    DELETE  FROM pymt_dtl  m
    WHERE   EXISTS
            SELECT  0
            FROM    temp_archive1
            WHERE   clm_case_no = m.clm_case_no
            );

  • Header and Footers don't delete with edit text tool!?

    On certain pages I try to delete the header and footer and they won't delete with the edit text tool. I have to go and update the header and footer on certain pages and correct that way...there has to be an easier way, it worked on the adobe's in the past. I'm about to down grade to a older version of Adobe reader because of this!

    You can downgrade to an older version of Adobe Reader but it won't help since Reader cannot edit PDF files.
    What application are you actually using?

  • Material deletion with MM70 / MM71

    Hi Friends,
    I am trying to delete a material by archiving and deletion with standard transactions MM71 / MM70.
    while archiving, the system throws an error that "Material Used in BOM". However this material was used in a BOM but later removed from that. System is finding link between material and BOM from different tables.
    currently the material is not used in any BOM. can someone suggest me how to proceed in this case.
    Thanks a lot
    Rohit

    Hi Rohit,
    You can get step by step for archiving the materials master records (SARA) on the following posts
    MM70,MM71,MM72
    Cheers
    Kris

  • I just downloaded a new software update on my I-phone5. As part of the process I was asked to sign in to iCloud and enter the password for an ID that I've long ago deleted with Apple. Anyone know why my new apple ID isn't coming up,

    I just downloaded a new software update on my I-phone5. As part of the process I was asked to sign in to iCloud and enter the password for an ID that I've long ago deleted with Apple. Anyone know why my new apple ID isn't coming up?

    No. The problem is that when you changed Apple IDs you did not update your Apple ID to reflect the change, so your phone is still associated with the old ID. You will need to un-associate it. The process is the same as what you would do if you sold the phone. See: http://support.apple.com/kb/HT5661

  • How re-activate an employee number that we deleted, with Master Data detail

    Hi Sapeer's
    I have an issue need your inputs at the earliest.
    I wonder if it is possible for you to re-activate an employee number that we deleted, with all the Infotypes maintained in the Master Data for that particular employee.
    Your early response will be of great help.
    Regards,
    Subbu

    Hi Luke,
    This employee's personnel number has been deleted. It was first withdrawn and they have deleted the data using PU00.
    The personnel number and the data does not show up in the Master Data PA20/30 since it has been deleted.
    Now we would like to know if we could reactive the deleted personnel number and get back the same Master Data inputs which was maintained for this employee.
    Kindly advice.
    Regards,
    Subbu

  • How do I monitor my child's history.  He claims it was deleted with the recent new update from Apple.  Is this true?

    How do I monitor my child's history on the iPad?  He claims the history became deleted with the new Apple update.  Is this true?

    However, after the update on 4 devices in my home, not one of them lost their website history.  Not one device, so it would not be a common issue for the update to delete ones internet history.  So to the OP.......I would be a bit skeptical about your son's claim the update removed his internet browsing history.

  • Everytime I delete an email, several others are deleted with it

    Everytime I try to delete a message, several others are deleted with it.  This started happening with the lates update.

    Hello
    Thank you for your help. I checked and all of these settings are already clicked. I don't think that is related to the issue.
    I have many sub folders in my inbox and I can see all of these in a pane on the left. However if I delete a folder or the emails in a folder in this pane, and then try to click into another folder so that I can process the emails in the second folder then often I will find that althopugh I can see the titles of those emails in the main pane, I cannot actually read any of them. They all appear to be blank. I have to completely close thunderbird and open it up again then I can see them. However if I delete those then the same issue arises. It means then when I am trying to tidy up old email folders I have to do a lot of restarting thunderbird. This surely can't be right.
    Any ideas?
    Many thanks.

  • Was the emergency records file deleted with the Mountain Lion operating system?

    Was the emergency records file deleted with the Mountain Lion operating system?

    It's a Quicken file & I was able to open same.  Not used often & the copy in my documents wouldn't open, but it did in the Quicken app that's friendly with Mountain Lion.  Learned something new today!

  • Are emails deleted with an iClould account gone forever?

    Are emails deleted with an iClould account gone forever?

    Go to Mail and open Preferences.
    Click on the Accounts tab and select the [email protected] Check the settings for OutGoing Mail server, not sure how this will show up for two accounts on the same server. But I do see an area for "Edit SMTP server" in that list. Just make sure that is set to [email protected] Do the same with the old email address, but just make sure they have the [email protected] address.
    Then go to the Composing tab and just make sure that the "Send new messages from:" Is set to "Account of selected mailbox". Or you could select the "[email protected]" address if you desire. But all emails will be sent from that email address unless you change it. You can do so when you have an outgoing email opened. In the area of the subject line, it gives you an option to send it from "[email protected]"
    KOT

  • To delete a file, must I drag it to the trash? or can it be deleted with keystrokes such as Command/delete?

    To delete a file, must I drag it to the trash, or can it be deleted with keystrokes such as Command/delete?
    2nd: How to get rid of a program? Some seem to come with an uninstall file in the folder. Others do not. Will it require dragging the application and its files to the trash? or will that be incomplete?   Thanks.

    Most files will let you delete with the delete key if highlighted. I mostly right click on a file and choose Move To Trash.
    Depending on what program it is determines how to delete it. Some are just as simple as moving to the trash. Some have uninstallers which remove them. It's best to google each application when you want to delete one to find out if it has an uninstaller and how to completely remove them. I always check to be sure to completely remove it.

  • Generating Delete with Confirmation

    This might interest you: a simple step-by-step explanation of how to use the JHeadstart custom generator templates for implementing a Delete with Confirmation (i.e. when the user clicks on the Delete button, he is asked to confirm that operations).
    See: http://technology.amis.nl/blog/?p=1400
    regards
    Lucas

    I couldn't fully understand your problem. It seems that you don't close the confirmation dialog when an error occurs.
    I developed a custom declarative dialog component that can be made modal and user has to click a button to close it. This component also accepts the actionListener method reference.
    http://manieshsailoz.blogspot.com/2010/05/declarative-dialog-component.html

Maybe you are looking for