How to delete the record in the file present in the application server?

Hi,
  I have two questions.
  i) How can I delete a record based on some condition in the recordx in the file that is present in the application server?
  ii) How can I lock the users whiel one user is accessing the file on the application server?
Thanks in advance.
Suvan

Hi,
If u want a frequent deletion this approach to delete a record from a file will havee unnecesary copy of records from one file to another and deletion of one file and renaming activities.
Instead what u can do is Add and field del_flag to ur record structure.
If u want to delete the record from a file just mark this del_flag as 'X'.
While processing u can have a loop like
loop at it_XXX where del_flag <> 'X'.
endloop.
This will logically delete the record.
When u r to finish the application at that time only perform this copying / deleting / and renaing activity
Hope this helps.
Cheers,
Nitin

Similar Messages

  • Reading the data from excel file which is in application server.

    Hi,
    Iam trying to read the data from excel file which is in application server.
    I tried using the function module ALSM_EXCEL_TO_INTERNAL_TABLE. But it didn't work.
    I tried just reading using open data set and read data set it is giving junk characters.
    Please suggest me if you have any solution.
    Best Regards,
    Brahma Reddy

    Hi Narendra,
    Please see the below code I have written
    OPEN DATASET pa_sfile for INPUT in text mode ENCODING  DEFAULT MESSAGE wf_mess.
    CHECK sy-subrc = 0.
    DO.
    READ DATASET pa_sfile INTO wf_string.
    IF sy-subrc <> 0.
    EXIT.
    else.
    split wf_string at wl_# into wf_field1 wf_field2 wa_upload-field3
    wa_upload-field4 wa_upload-field5 wa_upload-field6 wa_upload-field7 wa_upload-field8
    wa_upload-field9 wa_upload-field10 wa_upload-field11 wa_upload-field12 wa_upload-field13
    wa_upload-field14 wa_upload-field15 wa_upload-field16 wa_upload-field17 wa_upload-field18
    wa_upload-field19 wa_upload-field20 wa_upload-field21 wa_upload-field22 wa_upload-field23
    wa_upload-field24 wa_upload-field25 wa_upload-field26 wa_upload-field27 wa_upload-field28
    wa_upload-field29 wa_upload-field30 wa_upload-field31 wa_upload-field32 wa_upload-field33
    wa_upload-field34 wa_upload-field35 wa_upload-field36 .
    wa_upload-field1 = wf_field1.
    wa_upload-field2 = wf_field2.
    append wa_upload to int_upload.
    clear wa_upload.
    ENDIF.
    ENDDO.
    CLOSE DATASET pa_sfile.
    Please note Iam using ECC5.0 and it is not allowing me to declare wl_# as x as in your code.
    Also if Iam using text mode I should use extension encoding etc.( Where as not in your case).
    Please suggest me any other way.
    Thanks for your help,
    Brahma Reddy

  • How to trigger a Report when a file is placed in Application server

    Hi All,
    How to triggger a Report and get executed when a new file is placed in the application server.?
    It will be helpful if a Navigation is provided for the EVENT.
    Thanks in advance
    Chakri

    Hi,
    Check what is the frequency of the file coming to the application server.
    Schedule your program in SM36 giving data and time make it periodic . select the check box Periodic Job
    and then select the period values and give the period values as per the frequency of the file coming to app server.
    Thanks,
    Harini

  • HT5858 HOW TO DELETE A RECORDING on i phone

    how to delete a recording on iphone5c

    Assuming you mean from the Voice Memo app... with the list of recordings showing, swipe right to left on the recording and tap the red Delete button.

  • How can I see if there are files present in this sourcing staging ftp folder:

    Hi All,
    How can i see if there are files present in the below parth in SAP Sourcing staging dtp folde.
    Upload Directory:usr/fciintegration/abce/materials/upload
    Please help me .
    Thanks
    Peeysuh Ranjan

    It should not be difficult if you have access to the staging server. Just like any other machine, navigate down the folder structure and see if it has files.
    I don't think it is possible to tell from the Sourcing application directly.
    Thanks
    Devesh

  • How we can restrict record in CTL file on the basis of other table ?

    Hello all,
    How we can restrict record in CTL file on the basis of other table ?
    Eg.
    I have following control file to load the records in the table through the sql loader.
    LOAD DATA
    INTO TABLE THIST APPEND
    FIELDS TERMINATED BY "|" TRAILING NULLCOLS
    LNUM POSITION(1) Char "substr(:LOAN_NUM, 4, 13)",
    TSRNUM Char "rtrim:TRAN_SR_NUM)" ,
    TPROCDT Char "to_char(to_date rtrim:TRAN_PROC_DT), 'MMDDYYYY'), 'YYYYMMDD')"      
    I have another table c all TFILE in which I have LNUM. I want to import only those records from input text file using the control file and sql loader in which LNUM is exist in the TFILE.
    So how i can restrict it in the Control File.
    Thanks
    Kamlesh Gujarathi
    [email protected]

    Hello Satyaki De.
    Thank you very much for your suggestion but my Private information is totally apart from this question & I already I have changed each and every information from the question.
    Thanks
    Kamlesh Gujarathi
    [email protected]

  • Syntax of mentioning the delimiter of the record in control file.

    how to specify the delimiter of the record in the control file without mentioning the data file name in the control file?
    if you are mentioning the name of the data file in the control file the syntax is as follows:
    LOAD DATA
    INFILE 'tblAgencies.csv' "str X'7c0a'"
    INTO TABLE person_table APPEND
    FIELDS TERMINATED BY ',' ENCLOSED BY '"'
    (name CHAR(30),
    "RESUME" CHAR(50000))
    where 'tblAgencies.csv' is the name of the data file & str X'7c0a' specifies the delimiter.

    how u r downloading the data?
    are you downloading it onto application server or local system?
    Try to download the file in asc mode it will solve your problem.

  • The share operation "master file" has failed. the operation could not be completed because an error occurred creating Frame 93164 (error-1). how can i find the frame?

    The share operation "master file" has failed. the operation could not be completed because an error occurred creating Frame 93164 (error-1). how can i find the frame?

    https://discussions.apple.com/thread/6219522

  • In Firefox 4 how can I cause the date on downloaded files to be the current date? (Some are and some are not. In FF3 the dates were ALWAYS the current ones.)

    In Firefox 4 how can I cause the date on downloaded files to be the current date? (Some are and some are not. In FF3 the dates were ALWAYS the current ones.)
    == This happened ==
    Every time Firefox opened
    == I upgraded to Firefox 4 (beta)

    Firefox 3.6.* and earlier set the downloaded file's modification time to the current time. In Firefox 4.0 the behavior has been changed, if a server returns a timestamp telling when the file was last modified (Last-Modified header), it is used instead.
    You can revert to the previous behaviour by using the [https://addons.mozilla.org/en-US/firefox/addon/93121/ Download Timestamp] add-on.

  • HT2493 How to change preview image of a file and NOT the icon ?

    Hello dear Mac users
    How to change preview image of a file and NOT the icon ?
    I know how to change the icon of a file, but I wish to know how to change the preview of any file.
    For example: my file is "mysong.aif", I changed the icon to be "mylogo.png" using cmd+i, cmd+v on the icon. But the preview of the file still remain the same.
    I know it can be changed using iTunes, but I don't want to import all my files in iTune, and iTune cannot import all type of files.
    I hope someone will understand my needs...
    Thanks!

    Thanks BeerbarX
    You can't change the preview image for anything
    hoo
    QuickLook plugin
    what are the plugin ?
    In the case of a music file, it will be that generic black box with a note on it
    That is exactly what I'm asking about !
    MP3 which has a special tagging standard that can include artwork
    How can I "tag" my MP3 without going thru iTunes ? Is it possible to do it dirrectly in the Finder ? Is there other type of files that can include such tags ?
    Thank you for answering my question , wich I have to admit may seem useless, but I wish I could put something like a signature logo on each of the different file I produce (as AIF for music and MP4 for video clip) instead of that generic black box with a note on it, and by the meantime keeping a different icon for all of them in order to illustrate theire content.

  • I am getting an Narration error that I can't record because one of the record-enabled tracks is locked in the timeline. What does this mean and how do I get out of it??

    I am getting an Narration error that I can't record because one of the record-enabled tracks is locked in the timeline. What does this mean and how do I get out of it??

    JohnL23
    Thanks for the update.
    There are several Adobe Premiere Elements Forum threads about situation such as the one that you have encountered. Typically they are the results of some heavy activity in the narration track.  Some have found success in maneuvers between the Expert and Quick workspaces in versions 11 and 12 or Timeline and Sceneline workspaces in versions earlier than 11. That is why I mentioned that type of factor in a prior post in your thread.
    If that is not working, then we are forced into the new project where the problems in the current project are not presenting.
    I will do a search for the threads that I am recalling about your type of issue. But, right now all roads seem to head to the new project. But I would ask "Can you salvage this project by creating your narration clips in Audacity or a new Premiere Elements project and import them into this project, putting the clips on one of the numbered audio tracks?"
    If the problem should reappear in the new project, please let us know including the details of what was going on immediate before the problem surfaced.
    Thanks.
    ATR

  • How to delete a record in a connected database?

    We are encountering a problem using the delete function for removing a record in a connected database table. The database is an excel-file and we are able to add a new record, update existing records but not delete records. We are using the following script in FormCalc since I read that the function does not work in JavaScript:
    $sourceSet.DataConnection.delete()
    The error message returned is:
    "Deleting data in a linked table is not supported by this ISAM."
    We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.
    Thanks!
    Annika

    You also asked:<br /><br /><font color="grey"><i>We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.</i></font><br /><br />You should be able to achieve this quite easily using the Data Drop Down List from the Library palette's Custom tab. This object has a pre-defined Initialize script which populates the list with items from a data connection you specify.<br /><br />While the object is pre-configured to load items from the data connection only upon initialization (which only occurs when the form is loaded and after a data merge), you could move the script into a Script Object function and call it whenever you insert a new record (just after the statement which inserts the record).<br /><br />This is the script from the Initialize event of the Data Drop Down list put into a Script Object function called LoadDropDownList which takes the drop down list to populate using the data connection as a parameter:<br /><pre>function LoadDropDownList(oDropDownList)<br />{<br />     /*     This dropdown list object will populate two columns with data from a data connection.<br />     <br />          sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.<br />          sColHiddenValue      - this is the hidden value column of the dropdown.  Specify the table column name used for populating.<br />          sColDisplayText          - this is the display text column of the dropdown.  Specify the table column name used for populating.<br />     <br />          These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.<br />     */     <br />     <br />     var sDataConnectionName = "&lt;value&gt;"; //     example - var sDataConnectionName = "MyDataConnection";<br />     var sColHiddenValue = "&lt;value&gt;"; //     example - var sColHiddenValue = "MyIndexValue";<br />     var sColDisplayText = "&lt;value&gt;"; //     example - var sColDisplayText = "MyDescription"<br />     <br />     //     Search for sourceSet node which matchs the DataConnection name<br />     var nIndex = 0;<br />     while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     <br />     var oDB = xfa.sourceSet.nodes.item(nIndex);<br />     oDB.open();<br />     oDB.first();<br />     <br />     //     Search node with the class name "command"<br />     var nDBIndex = 0;<br />     while(oDB.nodes.item(nDBIndex).className != "command")<br />     {<br />          nDBIndex++;<br />     }<br />     <br />     //     Backup the original settings before assigning BOF and EOF to stay<br />     var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />     var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br />     <br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br />     <br />     //     Clear the list first so that we replace any existing items<br />     <b>oDropDownList</b>.clearItems();<br />     <br />     //     Search for the record node with the matching Data Connection name<br />     nIndex = 0;<br />     while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     var oRecord = xfa.record.nodes.item(nIndex);<br />     <br />     //     Find the value node<br />     var oValueNode = null;<br />     var oTextNode = null;<br />     for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br><br />     {<br><br />          if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br><br />          {<br><br />               oValueNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />          else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br><br />          {<br><br />               oTextNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />     }<br />     <br />     while(!oDB.isEOF())<br />     {<br />          <b>oDropDownList</b>.addItem(oTextNode.value, oValueNode.value);<br />               oDB.next();<br />     }<br />     <br />     //     Restore the original settings<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br />     <br />     //     Close connection<br />     oDB.close();<br />}</pre><br />The required modifications to the original script are in bold.<br /><br />The easiest way to create the Script Object is to right-click on the top-level form object ("form1" by default) in the Hierarchy palette and select the <i>Insert Script Object</i> option. This will insert an un-named Script Object which you should then rename to something meaningful like, "ScriptObject". Once you've done this, you can call the function from any event on any object on your form with the following JavaScript:<br /><pre>ScriptObject.LoadDropDownList(&lt;SOM expression for drop down list&gt;);</pre><br />If you were calling this function on an "add record" button's Click event, the drop down list was named "DropDown" and both objects were in the same subform, you would do this:<br /><pre>ScriptObject.LoadDropDownList(DropDown);</pre><br />Stefan<br />Adobe Systems

  • How to delete multiple old ITUNES LIBRARY files safely ?

    I'd like to clean up my Itunes LIBRARY files, but don't know what's safe to do and not to do. (I have Itunes 8.1 / OSX10.4.11)
    MY QUESTION IS TWOFOLD :
    (1) how do I create a new Itunes library file now with today's date; and
    (2) how do I delete multiple (old) Itunes library files, without risking the loss of what I've got ?
    This all stems from exploring Itunes as a result of a problem I had today... when trying to import mp3's from my terrabyte drive, after about 150 successful mp3 track imports, Itunes froze and everything else on my MAC froze as well (constant spinning colored wheel). After many failed attempts to force quit Itunes, I turned off my MBPro. On restarting, Itunes tooks ages to "import" files. Eventually Itunes opened but with only half of my original tunes (1500+ songs 8.11GB) and had nothing from today's import.
    I found a post suggesting to hold down OPTION while starting Itunes. Then I selected a file from my hard drive > me > music > Itunes > "Itune library" with the most recent date and shezam, Itunes once again has all my songs, as before. Nothing I imported from the terrabyte drive today appears however, but no matter.
    In my "Itunes" file there appear MULTIPLE Itunes libraries ! such as Itunes library, Itunes Library (damaged), and as well a folder called "Previous Itunes Libraries" which itself contains multiple Itunes Library files and multiple "previous Itunes Library files" with dates back to 2007. These I want to clean up and delete .... should I ? ... Can I ?
    I really could use some words of wisdom from the wise ! Thanks in advance

    Whenever you install a new version of iTunes and run it teh first time, iTunes will create a backup of the current iTunes library file and copy it into \Music\iTunes\Previous iTunes libraries, then update the iTunes library file in \Music\iTunes\ for the current version of iTunes.

  • How to delete duplicate records in 10 G.

    how to delete duplicate records in 10 G.

    --Here is one way to do it using a second table 
    create table temp1
    (col1 char(1));
    --Table created.
    insert into temp1 (col1) values('A');
    insert into temp1 (col1) values('B');
    insert into temp1 (col1) values('B');
    --1 row created.
    --1 row created.
    --1 row created.
    create table temp2 as select distinct * from temp1;
    --Table created.
    --now you have a second table with no duplicates
    --truncate your old table
    truncate table temp1;
    --Table truncated.
    --and reload it with data from the new table
    insert into temp1 select * from temp2;
    --2 rows created.
    --then drop the temp2 table
    drop table temp2

  • How to delete one record at a time

    hi all,
    Please tell me how i do delete only one record at a time.After deleting the record the jsp page should show only the remining items to be deleted.

    Where do u want to delete the record - database?
    If so use the rpimary Screen identifying each record and use that to delet that record

Maybe you are looking for