Need to delete Table Contents for the list of tables in the internal table.

Hi All,
I have req where in I have the list of table in an internal table and delete the contents of the tables which are in the internal table.
I need to delete the contents of the table using Native SQL statements. Else I can use function modules to delte the contents of table.
Thanks in advance. Appriciable if you can revert as soon as possible at all.
Thanks and Regards,
Raj.
Edited by: Thomas Zloch on Mar 11, 2010 1:56 PM

Hi,
You can try using truncate statement in native sql.
EXEC SQL.
TRUNCATE TABLE ABC.
ENDEXEC.

Similar Messages

  • Selecting multiple records from the list and append it into internal table.

    hi
    there is a list of 10 records in the output screen with check boxes. if the user select any 3 records then those records should get appended in some other internal table of same structure.
    this is the requirement. can anybody help me it is very urgent.
    regards
    sami

    Hi,
    Loop at the internal table which contains the value in table control and move it to a work area. apend the work area to the next internal table. Like:
    loop at it1 into wa1 where sel = 'X'.
    append wa1 to it2.
    endloop.
    or
    loop at it1 into wa1.
    if wa1-sel = 'X'.
    append wa1 to it2.
    endif.
    endloop.
    Regards,
    RM

  • How to delete table content for particular filed in a table?

    Hi Experts,
    How to delete table content for particular field in table?
    Thanks
    Ravilla

    Is it a standard or customer table, changing a standard table with non-standard tool can raise database inconsistencies...
    Then use search tool for &SAP_EDIT (*) or look for BAPI/BDC...
    Regards,
    Raymond
    (*) Also look for notes from 1420281 - CO-OM tools: SE16N: Deactivating &SAP_EDIT to 1915828 - CO-OM-Tools: Technical enhancement of SE16N

  • Need to know how to iterate a list of field from the req xml in page servic

    Hi All,
    Please help me out with java code in which i am able to iterate a list of field coming in the request xml to my page service class under read(Pageheader header) method of mine queryPagemaintenace class.
    package com.splwg.cm.domain.pageService;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.List;
    import com.ibm.icu.math.BigDecimal;
    import com.splwg.base.api.businessObject.BusinessObjectDispatcher;
    import com.splwg.base.api.businessObject.BusinessObjectInstance;
    import com.splwg.base.api.businessObject.COTSInstanceListNode;
    import com.splwg.base.api.datatypes.Date;
    import com.splwg.base.api.lookup.BusinessObjectActionLookup;
    import com.splwg.base.api.service.DataElement;
    import com.splwg.base.api.service.ItemList;
    import com.splwg.base.api.service.PageHeader;
    import com.splwg.shared.common.ApplicationError;
    import com.splwg.shared.environ.FieldDefinition;
    import com.splwg.shared.environ.ListDefinition;
    import com.splwg.shared.logging.Logger;
    import com.splwg.shared.logging.LoggerFactory;
    * @author
    @QueryPage (program = CMUSER, service = CMUSER,
    * body = @DataElement (contents = { @ListField (name = USER_GROUP_LIST)
    * , @ListDataField (name = USR_GRP_ID)
    * , @DataField (name = MESSAGE_TEXT)
    * , @DataField (name = USER_ID)
    * , @DataField (name = PASSWORD)
    * , @DataField (name = LAST_NAME)
    * , @DataField (name = FIRST_NAME)
    * , @DataField (name = USER_TYPE_FLG)
    * , @DataField (name = EMAILID)}),
    * actions = { "add"
    * ,"read"
    * , "delete"
    * , "change"},
    * header = { @DataField (name = USER_TYPE_FLG)
    * , @DataField (name = EMAILID)
    * , @DataField (name = LAST_NAME)
    * , @DataField (name = FIRST_NAME)
    * , @DataField (name = PASSWORD)
    * , @DataField (name = USER_ID)},
    * headerFields = { @DataField (name = USER_TYPE_FLG)
    * , @DataField (name = USR_GRP_ID)
    * , @DataField (name = EMAILID)
    * , @DataField (name = LAST_NAME)
    * , @DataField (name = FIRST_NAME)
    * , @DataField (name = PASSWORD)
    * , @DataField (name = USER_ID)},
    * lists = { @List (name = USER_GROUP_LIST, size = 100, includeLCopybook = false,
    * body = @DataElement (contents = { @DataField (name = USR_GRP_ID)}))},modules = {})
    public class CMUSER extends CMUSER_Gen {
    public static final Logger logger = LoggerFactory.getLogger(CMUSER.class);
         DataElement root = new DataElement();
         PageHeader page = new PageHeader();
         protected DataElement read(PageHeader header) throws ApplicationError{
    I want to know how can i iterate this USER_GROUP_LIST in my read method and get the USR_GRP_ID field data from it.
    A Prompt reply from your end will help me to resolve this issue

    Guru Sir,
    i tried to override the add() method of the framework in that i was able to iterate the field from the list. But now the i am facing there is that i am not able to send back the response to the external system in XML format. I am getting a blank response in my SOAP UI Tool while testing here is the code:
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.List;
    import com.ibm.icu.math.BigDecimal;
    import com.splwg.base.api.businessObject.BusinessObjectDispatcher;
    import com.splwg.base.api.businessObject.BusinessObjectInstance;
    import com.splwg.base.api.businessObject.COTSInstanceListNode;
    import com.splwg.base.api.datatypes.Date;
    import com.splwg.base.api.lookup.BusinessObjectActionLookup;
    import com.splwg.base.api.service.DataElement;
    import com.splwg.base.api.service.ItemList;
    import com.splwg.base.api.service.PageHeader;
    import com.splwg.shared.common.ApplicationError;
    import com.splwg.shared.logging.Logger;
    import com.splwg.shared.logging.LoggerFactory;
    * @author
    @QueryPage (program = CMUSER4, service = CMUSER4,
    * body = @DataElement (contents = { @DataField (name = MESSAGE_TEXT)
    * , @DataField (name = PASSWORD)
    * , @DataField (name = USER_ID)
    * , @DataField (name = LAST_NAME)
    * , @DataField (name = FIRST_NAME)
    * , @DataField (name = USER_TYPE_FLG)
    * , @DataField (name = EMAILID)
    * , @ListDataField (name = USR_GRP_ID)
    * , @ListField (name = USER_GROUP_LIST)}),
    * actions = { "add"
    * , "delete"
    * , "change"
    * , "read"},
    * header = { @DataField (name = USER_ID)
    * , @DataField (name = MESSAGE_TEXT)},
    * headerFields = { @DataField (name = USER_ID)
    * , @DataField (name = MESSAGE_TEXT)},
    * lists = { @List (name = USER_GROUP_LIST, size = 100,
    * body = @DataElement (contents = { @DataField (name = USR_GRP_ID)}))}, modules = {})
    public class CMUSER4 extends CMUSER4_Gen {
         public static final Logger logger = LoggerFactory.getLogger(CMUSER4.class);
         DataElement root = new DataElement();
         PageHeader page = new PageHeader();
         protected PageHeader add(DataElement item) throws ApplicationError{
              BusinessObjectInstance boInstance = BusinessObjectInstance.create("CM-USER");
              String USR_GRP_ID = null;
              try{
              logger.info("Data coming from the Service into the Application is :"+item.get(STRUCTURE.USER_ID));
              logger.info("Data coming from the Service into the Application is :"+item.get(STRUCTURE.FIRST_NAME));
              logger.info("Data coming from the Service into the Application is :"+item.get(STRUCTURE.LAST_NAME));
              logger.info("Data coming from the Service into the Application is :"+item.get(STRUCTURE.EMAILID));
              // logger.info("Data coming from the Service into the Application is :"+getInputHeader().getString(STRUCTURE.list_USER_GROUP_LIST.USR_GRP_ID));
              // Iterator it = STRUCTURE.
              ItemList sourceList = item.getList(STRUCTURE.list_USER_GROUP_LIST.name);
              List userGrpID = new ArrayList();
              logger.info("The Size of the User Group List here is :"+sourceList.size());
              Iterator iter;
              if ((sourceList != null) &&
              (sourceList.size() > 0)) {
              for (iter = sourceList.iterator(); iter.hasNext(); ) {
              DataElement myItem = (DataElement)iter.next();
              USR_GRP_ID = myItem.get(STRUCTURE.list_USER_GROUP_LIST.USR_GRP_ID);
              logger.info("The User Group Id coming in the List here is :"+USR_GRP_ID);
              logger.info("Data coming from the Service into the Application is :"+item.get(STRUCTURE.PASSWORD));
              boInstance.set("user", item.get(STRUCTURE.USER_ID));
              boInstance.set("firstName", item.get(STRUCTURE.FIRST_NAME));
              boInstance.set("lastName", item.get(STRUCTURE.LAST_NAME));
              boInstance.set("emailAddress", item.get(STRUCTURE.EMAILID));
              // COTSInstanceList userGrpList = boInstance.getList("userGroupUser");
              // COTSInstanceListNode userGroupList = userGrpList.newChild();
              COTSInstanceListNode userGroupList = boInstance.getList("userGroupUser").newChild();
              userGroupList.set("userGroup", USR_GRP_ID);
              logger.info("Data coming from the Service into the Application is :"+userGroupList.toString());
              /*boInstance.set
              boInstance.set("userGroup", getInputHeader().getString(STRUCTURE.HEADER.USR_GRP_ID));*/
              // UserTypeLookup.constants.TEMPLATE_USER
              //if(element.get(STRUCTURE.USER_TYPE_FLG))
              //boInstance.set("user", element.get(STRUCTURE.));
              boInstance.set("dashboardWidth","200");
              boInstance.set("homeNavigationOption","CI0000000574");
              boInstance.set("language","ENG");
              boInstance.set("toDoEntriesAge1", new BigDecimal(50));
              boInstance.set("toDoEntriesAge2",new BigDecimal(100));
              boInstance.set("displayProfileCode", "NORTHAM");
              String expirationDate = "2100-12-31";
              String[] array = expirationDate.split("-");
              userGroupList.set("expirationDate",new Date(Integer
                             .parseInt(array[0]), Integer
                             .parseInt(array[1]), Integer
                             .parseInt(array[2])));
              //boInstance.set("userGroupUser", userGroupList);
              COTSInstanceListNode roleUserList = boInstance.getList("roleUser").newChild();
              roleUserList.set("toDoRole","F1_DFLT");
              COTSInstanceListNode dataAccessList = boInstance.getList("dataAccessUser").newChild();
              dataAccessList.set("dataAccessRole","***");
              String expiryDate = "2100-01-01";
              String[] array1 = expiryDate.split("-");
              dataAccessList.set("expireDate",new Date(Integer
                             .parseInt(array1[0]), Integer
                             .parseInt(array1[1]), Integer
                             .parseInt(array1[2])));
              BusinessObjectDispatcher.execute(boInstance,
                             BusinessObjectActionLookup.constants.FAST_ADD);
              page.put(STRUCTURE.HEADER.MESSAGE_TEXT, "User Added Successfully");
              page.put(STRUCTURE.HEADER.USER_ID,item.get(STRUCTURE.USER_ID));
              }catch(Exception e){
                   e.printStackTrace();
                   page.put(STRUCTURE.HEADER.MESSAGE_TEXT, "Caught Exception in the ORMB System. Please reach out to the Admin"+e.getMessage());
                   page.put(STRUCTURE.HEADER.USER_ID,item.get(STRUCTURE.USER_ID));
              return page;
    If you can help me to find out what went wrong here while sending the response back it can close my issue.

  • I still use Aperture 2.1.4.  I need to export an image file with a CMYK profile.  Whereas a generic CMYK profile is listed in ColorSync Utility, it does not appear on the list of profiles in the edit portion of the export preset dialogue.  Help?

    I still use Aperture 2.1.4.  I need to export an image file with a CMYK profile.  Whereas a generic CMYK profile is listed in ColorSync Utility, it does not appear on the list of profiles in the edit portion of the export preset dialogue.  Help?  Is there some way to add the CMYK profile to the list of choices that are available in the export preset dialogue such that I can choose it?

    leonieDF
    Thanks for your response.  My profiles are located within color sync utility as you can see here:   
    These profiles do not respond to clicking and dragging.  Since they are all in one place, more or less, I'm reluctant to make further attempts to relocate them.  Accessing the CMYK profile is the first difficult experience I've encountered with this arrangement.  I have never needed the CMYK profile until recently, and that need has now past.  However, it remains a mystery to me as to why it does not appear with all the others on the menu of export choices in Aperture 2, or on the menu of profile assignment choices in the Preview application (where again all the other profiles are listed as choices).  I'm beginning to think my current set up will permit me to view an image that was created in CMYK space, but does not easily assign, or convert to that space.  I don't face these restrictions with all the others, so it remains a curious circumstance for me.  I anticipate upgrading my computer and software in the near future which might alleviate this issue altogether.  Again, many thanks for your attention to this matter.  The reach of this community is astounding.

  • I am trying to upgrade my iPhone 4 to the latest iOS via iTunes, but I keep getting a message saying that an error [-5000] occurred and continuing will delete all content on my iPhone. What's the solution?

    I am trying to upgrade my iPhone 4 to the latest iOS via iTunes, but I keep getting a message saying that an error [-5000] occurred and continuing will delete all content on my iPhone. What's the solution?

    okay I've done everything regarding the transfer process (via file>transfer purchases) and syncing, so everything on my iPhone device seems to have been transferred to my iMac... however, I still get that message ("There are purchased items on the iPhone..."), trying to upgrade the iOS Have tried several times the same process of hitting transfer purchases via file, but nothing seems to make that message go away! Would have been nice to know which files I actually do need to transfer, which I don't get any info on of course...
    Starting to get really annoying this thing.. Any smart suggestions what's going on?

  • I have a purchases App in my account that I need to delete. ITunes is requesting billing info to complete the transaction. I have changed my mind and don't what to purchase the app. How do I delete the purchases App?

    I have a purchases App in my account that I need to delete. ITunes is requesting billing info to complete the transaction. I have changed my mind and don’t what to purchase the app. How do I delete the purchases App?

    There is nothing that you can do to get rid of the balance on your own. Contact iTunes Store Support and seek their assistance. I believe that they can reset your balance for you.
    https://expresslane.apple.com/Issues.action

  • Content editor webpart- unable to see the list data if given the url in the content link?

    HI,
    In content editor webpart,unable to see the list data
    when try to give the list url in the content link?
    please help on the above issue.
    and also want to see the styles to the list.
    how to add the styles to the list row by row.

    Hi sudhir,
    If you click the ellipsis beside the content link, it will pop up a window for you to input the file link. No list option will be offered to be chose.
    When I add a content editor web part to a list, I usually save the code into a Notepad file and save it to a document library. Then copy the url of the document and then paste it into content link.
    Also, you could click Edit HTML Source, then directly add code into the popup window. It works as the same as the above method.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • I need a new power cord for my Mac book Pro its the T type mag connector. I don't need a Tech just a new cord. How do I buy one. The closest Aplle store is 75 miles away and I do not drive.

    I need a new power cord for my Mac book Pro its the T type mag connector. I don't need a Tech just a new cord. How do I buy one. The closest Aplle store is 75 miles away and I do not drive.

    Are you in the US? Order one from here:  http://store.apple.com/us/browse/home/shop_mac/mac_accessories/power?mco=MTM3NjU xNDg
    Or check out Best Buy.

  • A friend wants me to put together on booklet that's been done in excel. I'm on a mac os 10. Do I need to download microsoft excel for mac or can I open the document through indesign?

    A friend wants me to put together on booklet that's been done in excel. I'm on a mac os 10. Do I need to download microsoft excel for mac or can I open the document through indesign?

    I second LibreOffice as it's the most recent fork, however NeoOffice and OpenOffice will also work.
    Just say No money to Redmond!
    Also the old Ready Set Go! will be having a Lion version out soon.
    It's a low cost page layout program (like Indesign but without the high price) and can make booklets etc better, import the excel grpahics from LibreOffice.
    http://www.diwan.com/ready/prsg.htm

  • TS1702 I need to delete an empty folder. I tried all of the possible things to delete it, but still whitout any luck. Restarted the phone, updated software, etc... Please help ! Thank you.

    I need to delete an empty folder. I tried all of the possible things to delete it, but still whitout any luck. Restarted the phone, updated software, etc... Please help ! Thank you.

    Try to drag an app into folder and then drag it out.
    Or reset you iPhone. Hold down Power and Home buttons until Apple logo appears. Release and wait to reboot.

  • Why can't I change the content for some songs when I click the Get Info button?

    Why can't I change the content for some songs when I click the Get Info button?  The information on the song, artist, genre is grayed out and will not allow me to alter the information.

    Hi htechadmin,
    Revcevied your PM and noted all details, Many Thanks.
    Getting this addressed by the team, either they will reply to you, here, or they shall email Or Call you.
    Regards,
    LP

  • I accidently click on ''Import the list'' but now all the music have  an exclamation point I think they are all in Musique.txt on the desk... How can i take back these music on my library? I tried : Import the list and take Music.txt , but it do not work

    I accidently click on ''Import the list'' but now all the music have  an exclamation point I think they are all in Musique.txt on the desk... How can i take back these music on my library? I tried : Import the list and take Music.txt , but it do not work

    Ok, I had a glitch, forced to restart, and lost my train of thought.
    Reinstalling iTunes should fix the major issue that might have gone wrong, perhaps your explaination points will disappear and everything will be peachy again.
    But if they don't, you can open the XML file in iTunes Folder using a Text edit program to see what the common pathname is to the iTunes Music folder or where your content is located.
    If you moved the itunes folder, it needs to go back.
    I can't  download iTunes to my Vista virtual machine to test it out right now because iTunes is down, so I can't verify the pathname, perhaps your issue and the iTunes being down are related somehow?
    You don't want to import all your music again, but it's a option, but you lose all your playlists, that's what I'm trying to recover.
    If oyu don't have a whole lot of playlists, then simply select all the explaimation point music and delete, select File from the menu and import your itunes folder again.

  • How do I add a link to the list of links under the "My Account Link"

    Q) How do I add a link to the list of links under the "My Account Link"?
    A) Edit any of your portlet web services and go to the "Advanced URL Settings" and then "User Configuration URL". If you type a path in this box, a link displays on the My Account page.
    You need to restart your portal web server to see results immediately because the display page is cached.

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    AT&T, Sprint, and Verizon can block stolen phones/tablets
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1
    MacPhoneHome 3.5

  • Google calendar is not showing in the list of calendars in the iOS Calender app

    I'm following this link to sync Google calendar with my iOS Calendar app on my iPhone 5:
    http://support.google.com/a/users/bin/answer.py?hl=en&answer=138740
    It sets up alright and I can see it in the list of calendars in the settings but nothing is sync'ed in the Calendar app itself. Also while in the Calendar app I click Calendars in the top left corner, and this Google calendar is not even in there and I don't know why (since it is in the settings -> mail, contacts, calendars -> accounts.) Very frustrating!

    You need an AirPrint compatible printer to be able to print directly from iOS devices, but unfortunately, your Canon ip2000 is not on the list of compatible devices.  See this Apple support document for more details:
    http://support.apple.com/kb/ht4356
    A possible workaround that might work is to try an App like Print Central on the iPad and iPhone. This will allow the iOS devices to print to most printers. But, there is no way to guarantee that it will work with your printer.
    PrintCentral for iPhone/iPod Touch - iTunes - Apple

  • Store the vital info from the absence quota record in an internal table

    Hi experts,
    I want to detrmine if the Absence record’s (PA2001 rec) deduction from date (PA2001-BEGDA) and absence to date (PA2001-ENDDA) are permissible for the validity period of the Absence Quota record (the PA2006 rec).  If the quota’s deduction from date, PA2006-DESTA, is greater than the PA2001-BEGDA, we then need to identify this absence quota record for change and change the deduction from date, PA2006-DESTA, to be the same as PA2001-BEGDA.  Store the vital info from the absence quota record in an internal table and record the new date that the deduction from date that needs to be changed to.  The changes will be made via a BDC session.
    Please help me out...
    Thanks,
    Vicky

    This looks possible if we code it in 'dynamic action' table, but the BDC may not read it during run time.
    Do you still have this issue?
    Thanks
    Narasimha

Maybe you are looking for