Urgent: deleting a specific string form an existing .txt file

Plz help me with a sample code on how to delete a specific string form an existing .txt file..it is very urgent...
thanks in advance

String path = "D:\\text.txt";
File file = new File(path);
BufferedReader br = new BufferedReader(new FileReader(file));
String line = "";
String text = "";
while((line = br.readLine()) != null) {
text += line + "\n";
br.close();
String textToFind = "find";
int start = text.indexOf(textToFind);
if(start != -1) {
text = text.substring(0, start) + text.substring(start + textToFind.length());
BufferedWriter bw = new BufferedWriter(new FileWriter(file));
bw.write(text, 0, text.length());
bw.close();
}

Similar Messages

  • Writting to an specific spreadsheet of an existing excel file.

    I need to write a labview 2-D array of real numbers to an specifc spreadsheet of an existing excel file (which has many sheets and is located in my hard disk).  
    Some years ago a member forum wrote a nice and small code for writting to excel.  The code is http://forums.ni.com/ni/attachments/ni/6170/107/1/Excel.vi and was posted here http://forums.ni.com/ni/board/message?board.id=6170&thread.id=105
    I found that it would be useful after some modifications. How to modify it in order to get what I need?  (Obs.: My LabVIEW version is 8.0)
    Message Edited by fgarcia on 02-06-2010 08:39 AM
    Message Edited by fgarcia on 02-06-2010 08:40 AM

    There is a function to do that in the Excel specific VIs palette of the Report Generation Toolkit. Of course you need to have the toolkit installed. You can also use the invoke and property nodes on the Excel object but you have to find out what are the appropriate methods to use and propriety to set (you should find the information in an Excel programming manual. in VBA it is something like worksheet("Sheet2").Select). You can use the Workbook OPEN method to open the Excel workbook saved on you hard disk (connect your file path to the Filename input of the invoke node).
    Ben

  • Auto delete everything but specified folder contents from txt file

    Hey Guys,
    I am brand new to using Powershell (like 48 hours into using it for work) and I've run into a bit of an issue.  I've only taken a programming concept classes so some of the stuff makes sense to me but a lot of it is new.  Basically I've made a
    script that automatically deletes any files over X amount of days.  My next step is to have an exceptions text that will have a list of folders that should not have its contents deleted.  This is what I have so far.
    $Date= Get-Date 
    $Days = "7"
    $Folder = "C:\publicftp\users"
    $LastWrite = $Now.AddDays(-$Days)
    #----- getting DO NOT DELETE listing from TXT ----#
    $Exceptions = Get-Content "c:\exclude.txt"
    $Files = Get-Childitem $Folder -Recurse -Exclude "c:\exclude.txt" | Where {$_.LastWriteTime -le "$LastWrite"}
    foreach ($File in $Files)
        if ($File -ne $NULL)
            Remove-Item $File.FullName -Exclude $Exceptions | out-null
    I've seen a lot of threads that show how to auto delete contents or how to exclude specific file types but I haven't seen an answer to my particular problem.  Any help would be greatly appreciated!  Thanks!

    Hi Rabbot,
    The script below may be also helpful for you, and uses the -whatif parameter in Remove-Item cmdlet, which doesn’t actually remove anything but simply tells you what would happen if you did call Remove-Item.
    $Exceptions = @()
    Get-Content "c:\exclude.txt" | foreach{
    $Exceptions += $_} #store the exception file to array
    $Folder = "C:\publicftp\users"
    $LastWrite = (get-date).adddays(-7) #over 7 days.
    $Files = Get-Childitem $Folder -Recurse | Where {$_.LastWriteTime -le $LastWrite} #filter files which over 7 days.
    Foreach ($file in $files){
    if ($Exceptions -notcontains $file.fullname){ #if the file is not listed in the exception array.
    Remove-Item $File.FullName -whatif} #use -whatif to test
    I hope this helps.

  • How can i make my form open a .txt file????

    hi every body,
    i need some help with that..
    i want my form to open a txt file, or at least copy that file from a specific source (windows folder) to a specific destination (another windows folder).
    note that this all will work on the server and the client.
    i hope to find some help.
    thnxxxxxx.
    plzzz i need help, it's a GRADUATE PRODUCT issue.
    sorry i'm not that strong, it gives me error with host command.
    Message was edited by:
    bondo2

    declare
    in_file Text_IO.File_Type;
    out_file Text_IO.File_Type;
    begin
    in_file := Text_IO.Fopen('salary.txt', 'r'); -- open file in read mode
    out_file := Text_IO.Fopen('bonus.txt', 'w'); -- open file in write mode
    end;
    for copy of the file:
    host(copy c:\test.txt c:\new_folder\);
    Hope this helps !!

  • A better way to search a string in a 3GB txt file

    I am looking for a string(12 characters) in a 3GB txt file. I use the file reader to go though each line and use the startwith() (that 12 characters are from the beginning of each line) to check if that line contain the string I am searching for. Is there a faster way to do it? Thank's.

    I would avoid using java to parse/search a 3 GB text file at all costs. Any java solution is going to have terrible performance and you may run into memory problems. I would recomend that you either a) develop a native method for resolving this search and just invoke it from your current java class or b) use Runtime.exec to invoke a native OS command for searching the file (like grep or find) and parse the results. ....
    I'm not even sure how I would complete that task with java exclusivly ... maybe break the file into smaller parts, then iterate through each smaller, temporary file ... I would really recomend storing your data in a different format if possible. A 3 GB text file just isn't very partical or secure.
    ... oh, to answer your original question (which I'm not sure if I all ready did), the fatest way to load the file is to wrap it into some BufferedReader. The fatest way to perform String searches is through the java.util.regex package if you have access to the 1.4 API. Other wise, just use basic String searches, as you all ready are.

  • Format number to specific string form

    Dear fellow Labview users,
    I'm quite familiar with Labview but for some reason I cannot figure out how to do the following:
    I need to format a number (any number given) into a string of the form 'mmmmee' where m is a digit and 'ee' the exponential. For example:
    0.0128        becomes 1280-5
    1654086      becomes 165403
    0.0000006   becomes 0600-9
    etc.
    I would appreciate any advice.
    Thank you!
    Solved!
    Go to Solution.

    Here's a quick draft. I am sure some of the regex wizards will come up with something simpler.
    It sitll needs some work. For example if the value is zero or negative, or if the resulting exponent is more than 2 digits, you also need extra handling. I currently deal with negative exponents that are more than 1 digit (i.e. 2 digits, including the sign).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SpecialFormat.vi ‏14 KB

  • Parsing string out of a txt file

    i cannot figure out how to do this, nothing i try am working... here is the data in my file:
                                  ["Zerk"] = {
                                       22, -- [1]
                                       "", -- [2]
                                       "2008-01-13", -- [3]
                                  ["Jaxa"] = {
                                       70, -- [1]
                                       "Apathy", -- [2]
                                       "2008-01-17", -- [3]
                                  ["Sujong"] = {
                                       70, -- [1]
                                       "IRONY", -- [2]
                                       "2008-01-12", -- [3]
                                  ["Henxins"] = {
                                       10, -- [1]
                                       "", -- [2]
                                       "2008-01-13", -- [3]
    i am trying to get the name out of the line like ["name here"], and the file is 2 mb so i cannot do it by hand, so i was trying to write a java program to do it for me, but it is not wanting to work :( any help appreciated... i don't care how its coded, nor efficienty.

    i solved it after messing around with it a little more
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.util.Arrays;
    import java.util.List;
    import java.io.*;
    import java.util.ArrayList;
    public final class nameLeacher extends Applet {
         public String[] users;
         public int countLines() {
              int number = 1;
              try {
                   FileReader input = new FileReader("c:/unform.txt");
                   BufferedReader bufRead = new BufferedReader(input);
                   String line; // String that holds current file line
                   // Read first line
                   line = bufRead.readLine();
                   for (int i = 0; line != null; i++) {
                        line = bufRead.readLine();
                        number = i;
                   bufRead.close();
              } catch (ArrayIndexOutOfBoundsException e) {
              } catch (IOException e) {
                   e.printStackTrace();
              return number;
         public void load() {
              users = new String[countLines()];
              try {
                   FileReader input = new FileReader("c:/unform.txt");
                   BufferedReader bufRead = new BufferedReader(input);
                   String line; // String that holds current file line
                   // Read first line
                   line = bufRead.readLine();
                   for (int i = 0; line != null; i++) {
                        line = bufRead.readLine();
                        try {
                             if(line.contains("[\"")) {
                                  users[i] = line.trim().replace("[","").replace("]","").replace("\"","").replace("=","").replace("{","");
                        } catch(NullPointerException e) {
                   bufRead.close();
              } catch (ArrayIndexOutOfBoundsException e) {
              } catch (IOException e) {
                   e.printStackTrace();
         public void paint(Graphics g) {
              load();
              String[] remove = {null};
              List list = new ArrayList(Arrays.asList(users));
              list.removeAll(new ArrayList(Arrays.asList(remove)));
              users = (String[]) list.toArray(new String[list.size()]);
              for(int i = 0; i < users.length; i++) {
                   System.out.println(users);
         System.exit(1);
    }Edited by: bobert5696 on Jan 20, 2008 11:03 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Acrobat 9 Pro: Batch Export Form Data to TXT?

    Is it possible to use Acrobat 9.0 Pro's batch processing utility (Advanced > Document Processing > Batch Processing...) to export a bunch of PDF forms to individual .txt files (Forms > Manage Form Data > Export Data...)?
    I can't find access to the Forms menu in the built in Batch utility wihen I click "New Sequence...", so I imagine it might take some custom JavaScript, which I'm not super experienced with, but I muddle through reading JavaScript code and understand it.
    So, if someone can give any direction, I'd appreciate it! Thanks!

    I'll try and read through the API Reference, but can't I just use a relative file path... something like this.exportAsText(true, null, "\..");
    I don't know the correct syntax for filepaths in JS... does it get wrapped in double quotes?
    The JavaScript for Acrobat API Reference says:
    Paths
    Several methods take device-independent paths as arguments. See the PDF Reference, version 1.7, for details about the device-independent path format.
    Where the hell is the PDF Reference, version 1.7???
    Is there a this.filename property?

  • How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F

    hello there !!!!
    i m in Great Trouble please help me out..
    i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim Count As Int32
                If FormUID.Equals("Allowance") Then
                    If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                        If pVal.Row = 0 Then
                            'BubbleEvent = False
                        End If
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        Count = o_Matrix.RowCount()
                        SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
                        Validate(pVal, EventEnum, FormUID, BubbleEvent)
                    End If
                End If
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim Row, ii As Integer
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            o_Matrix.FlushToDataSource()
            Try
                For Row = 2 To o_Matrix.RowCount
                    StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
                    StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
                    StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
                    StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
                    If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
                        If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                        For ii = Row To DBtable.Rows.Count - 1
                            If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
                                SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                                BubbleEvent = False
                                Exit Sub
                            End If
                        Next
                        If CDbl(StrName) < 0 Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                    End If
                Next Row
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

    Hello there
    sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
    Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
    i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
    here is my Sample Code...n i have to update in the validate portion...
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim oCellValue As SAPbouiCOM.EditText
                If FormUID.Equals("Allowance") Then
                    If (pVal.ItemUID = "MatAllow") Then
                        If pVal.Row = 0 Then Exit Sub
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
                        oForm = SBO_Application1.Forms.Item(FormUID)
                        If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                            If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
                                If pVal.Row = 0 Then Exit Sub
                                oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
                                If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
                                    SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
                                    oCellValue.Active = True
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            End If
                        End If
                    End If
                End If
                Validate(pVal, EventEnum, FormUID, BubbleEvent)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
    Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim str, str1 As String
            Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
            Dim o_Matrix As SAPbouiCOM.Matrix
            Dim Sum As Integer
            Dim oRecordset As SAPbobsCOM.Recordset
            Dim Container As Integer
            Dim Count As Int32
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                For Count = 0 To DBtable.Rows.Count - 1
                    CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
                    NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
                    Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
                    Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
                    Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
                    checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
                    Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
                    If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
                        Dim Sql As String
                        Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
                        oRecordset.DoQuery(Sql)
                    End If
                Next Count
                SBO_Application1.MessageBox("Record was Updated")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • Replace specific string in a file while reading it

    Hi,
    I am kind of an in between learner & intermediate programmer. I am trying to replace a specific string pattern in a file by reading it using BufferedReader & BufferedWriter. I tried it for 2 days. Can anyone give me a piece of code which reads a file line by line and replaces the specific string format with other? I tried replaceAll(regex,replacement). Nothing is working.

    Hi Torajirou,
    Thanks for the code. But, looks like
    . But, looks like it is giving me a static method
    problem. It says a static method should beaccessed
    in a static way(f1.replace in main). Here is the
    code. Can you help me with this?
    import java.io.*;
    public class FileReadWrite1{
    public static void replace(File file, Stringregex,
    String replacement) throws
    FileNotFoundException,IOException {
         if (file == null) {
    throw new IllegalArgumentException("File should
    uld not be null.");
         if (!file.exists()) {
    throw new FileNotFoundException ("File does not
    not exist: " + file);
         if (!file.isFile()) {
    throw new IllegalArgumentException("Should not be
    be a directory: " + file);
         if (!file.canWrite()) {
    throw new IllegalArgumentException("File cannot be
    be written: " + file);
    File tempFile = File.createTempFile("temp",
    mp", "temp");
    BufferedReader reader = new BufferedReader(new
    (new FileReader(file));
    BufferedWriter writer = new BufferedWriter(new
    (new FileWriter(tempFile));
    try{
    while (true) {
    String line = reader.readLine();
    if (line == null) {
    break;
    line = line.replaceAll(regex,replacement);
    writer.write(line);
    writer.newLine();
    writer.close();
    reader.close();
    file.delete();
    tempFile.renameTo(file);
    }catch (Exception e) {
         System.out.println("Exception occured :"+e);
    public static void main(String[] args) {
         FileReadWrite1 f1 = new FileReadWrite1();
         File file = new File("C:\\Temp\\src1.txt");
         String regex = "us.mi.state";
         String replacement = "us.tx.state";
         f1.replace(file,regex,replacement);
    }when I wrote it, I was sober and bored
    now I'm drunk and amused
    god
    did you try and remove the magic "static" keyword ?
    I wrote it static because I didn't refer to any class
    member when I wrote it and that's what I felt
    compelled to do, though I feel nowadays writing
    anyting static suggests some design mistake
    somewhere
    blahblahblahblahblahs/blahblahblahblahblah/blahblahblahblahblahblah
    (forgot a "blah")

  • Error in user difined form -Form -Alredy Exist [66000-106]

    Hi Experts ,
    i have develop my screens through screen painter.
    when i opn forms in sap as multiple time i have faced following errors:
    *Form -Alredy Exist [66000-106]*
    *The Choose From List unique ID already exists  [66000-106]*
    how can  avoide this errors
    please help me for this
    Regards,
    Pravin Baji

    Hi Pravin Baji
    Try this code to load your form
    Private Shared UIDPath As String = "Application/forms/action/form/@uid"
    Private xmlDoc As XmlDocument
            Protected Sub LoadXml(ByVal xmlFile As String)
                xmlDoc = New XmlDocument()
                If Not System.IO.File.Exists(xmlFile) Then
                    xmlFile = xmlFile.Insert(0, "..\")
                End If
                If System.IO.File.Exists(xmlFile) Then
                    xmlDoc.Load(xmlFile)
                    formUID = xmlDoc.SelectSingleNode(UIDPath).Value
                Else
                    oApplication.MessageBox("ERROR: File " + xmlFile + " not found", -1, "", "", "")
                End If
            End Sub
    Protected Sub LoadForm()
                If xmlDoc.HasChildNodes Then
                    xmlDoc.SelectSingleNode(UIDPath).Value = formUID + System.Math.Max(System.Threading.Interlocked.Increment(counter), counter - 1)
                    Dim xmlStr As String = xmlDoc.DocumentElement.OuterXml
                    oApplication.LoadBatchActions(xmlStr)
                    Dim oForm As Form = oApplication.Forms.ActiveForm
                    Try
                        Dim oUDS As UserDataSource = oForm.DataSources.UserDataSources.Item("FolderDS")
                        If oUDS IsNot Nothing Then
                            oUDS.Value = "1"
                        End If
                    Catch generatedExceptionName As Exception
                    End Try
                Else
                    oApplication.MessageBox("ERROR: XML File containing the form not found", -1, "", "", "")
                End If
            End Sub
    Hope this will solve your problem
    Regards
    Arun

  • Writing to specific cells of existing Excel file and saving as a new file using LV 8.6

    Hi all,
    I am new to LV and am currently tasked to create a program that can open an existing excel file, input data in the program that will be written to a specific cell in the excel file and then saving the current edited file as a new file.
    I have browsed through all the forums but I am unable to view the examples sent in them as I am using LV 8.6 which is why I am still having trouble visualizing how to create a program like this. Can anyone help me and mentor me how to write this program in this version of LV? I do not have a microsoft office toolkit hence another approach could be preferred. Thank you.
    Aaron
    Solved!
    Go to Solution.

    Thank you for helping me on this. However I do not really understand how does ActiveEx work. I have created a Vi according to the picture that you provided but there was some error in running the file.
    Below is my own VI that I am trying to create. It consists of multiple string inputs which I am trying to input each into an existing file. I have created a separate txt file which has the cell numbers. I am trying to allocate each string into each respective cell in an existing file. I am currently having the problem of doing this "allocation" of each string as I do not have the microsoft office tool kit. Is there any other way for me to do so?
    Also, I would like to save the newly created file as a new file with the name as seen in my VI. How would I be able to do it?
    Please help me as I am stuck here but do not know how to continue
    Attachments:
    untitled.JPG ‏33 KB

  • Disabling Deletion of Specification

    Hi!
    We are trying to grey out the option to delete specifications thru security roles but we couldn´t figure out what needs to be updated to prevent users from deleting specs (nothing showed up in the trace). We were wondering if this may be related to configuration.
    Is there something in configuration that can restrict that functionality? Is there something that can be set up thru security to disable this option?
    Thank you,
    Eugenia

    Hello Eugenia
    specifications are used in EH&S to do a lot of things. At least if:
    a.) a released report exists per specification
    b.) the specification is used in a composition
    etc.
    you can technically not delete the specification any more. Furtheron it makes no sense to delete a specification if you have e.g.  assigned materials etc. and if i remember correct it is not allowed any more to delte such a specification.
    Furtheron you can not manipulate by standard the spec type after generation of the specification (e.g. try to convert a REAL_SUB to a LIST_SUB) etc.
    As Keerthi explained: there is no separate activity type to assist.
    With best regards
    C.B.
    PPS: As an example: refer to this old documentation: http://help.sap.com/saphelp_45b/helpdata/en/41/194b6e5733d1118b3f0060b03ca329/content.htm
    This link provides more help (may be): http://www.consolut.com/en/s/sap-ides-access/d/authorization-objects.html
    Check access object like: C_SHES_* You will find easily all objects which are delivered by standard and used by standard in EHS.
    Edited by: Christoph Bergemann on Sep 18, 2011 7:27 PM
    Edited by: Christoph Bergemann on Sep 18, 2011 7:30 PM

  • How to delete string or line from unix file(dataset) of application server

    Hi  All,
    After transfer workarea information or all records into dataset(unix file). When I see the file in application server automatically the last line is shown a blank line. I am not passing any blank line.
    I have tried for single record than also the file generates the last line(2nd line) also a blank line.
    When I m reading the dataset, it is not reading the last blank line but why it is showing the last blank line?
    How to delete string or line from unix file(dataset) of application server?
    Please give your comments to resolve this.
    Thanks
    Tirumula Rao Chinni

    Hi Rio,
    I faced similar kind of issue working with files on UNIX platform.
    The line is a line feed to remove it use
    DATA : lv_carr_linefd TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf. 
      DATA : lv_carr_return TYPE char1,                                   
             lv_line_feed   TYPE char1.                                          
      lv_line_feed   = lv_carr_linefd(1).
      lv_carr_return = lv_carr_linefd+1(1).
    Note: IMP: The character in ' ' is not space but is a special
    character set by pressing ALT and +255 simultaneosly
      REPLACE ALL OCCURRENCES OF lv_line_feed IN l_string WITH ' '.
      REPLACE ALL OCCURRENCES OF lv_carr_return IN l_string WITH ' '.

  • Delete record from the form and from the database

    hi,
    i want delete record from the form and the database ,but the record is only delete from the from !!!
    this is my code :
    if //condition then
    delete_record;
    commit;
    end if ;
    Any solutions ??
    thnx

    You have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
    When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
    As oracle is not able to insert your commit fails and stops your deletion of record from table

Maybe you are looking for

  • Km Scheduler Error

    Hi, I created a Km scheduler Task based on this blog:  https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1515 We are using NWDS 7.0.11 and JSDK 1.4.12. It was working fine before we applied SP16. The java version on the server stills the same, we

  • How can I highlight a particular person in a video clip?

    I'm working on a project in iMovie that involves video clips of baseball games. There's a particular player that I'd like to highlight somehow; like place an arrow to point him out, or place a circle around him, etc. Does anyone know of a way to do t

  • It wont turn on - it says nothing to boot

    I bought my Macbook Air in July 2013. It worked perfectly yesterday and when I turned it on today, it said low battery so I connected my charger, and restarted my laptop. When I turned it on, the Apple sound appeared but the screen was all white with

  • "Graduate- interval scale" i.e. Scale type D, Can it cover the many SO qty?

    Hi All, *Business wants, the Sales Order qty entered in many sales orders to be considered and given the Graduate -Interval Scale for the line items, but as per my testing this applies only for single line item in that SO! If any one knows this can b

  • Troubles using a redeemed gift card

    Hello, I recieved a 100$ gift card with the purchase of my mac, I just redeemed it and im having troubles using it in the itunes store. Whenever I try to purchase a song it redirects me to my credit card info and asks me to update it. Why isn't is au