How to replace the update staement with a modify statement

how to convert this update stat to a modify stat?
Message was edited by:
        Ashwin A

Hi
MODIFY <DB TABLE> FROM <INTERNAL TABLE>
To insert or change a single line in a database table, use the following:
MODIFY <target> FROM <wa> .
The contents of the work area <wa> are written to the database table <dbtab>. The work area <wa> must be a data object with at least the same length and alignment as the line structure of the database table. The data is placed in the database table according to the line structure of the table, and regardless of the structure of the work area. It is a good idea to define the work area with reference to the structure of the database table.
If the database table does not already contain a line with the same primary key as specified in the work area, a new line is inserted. If the database table does already contain a line with the same primary key as specified in the work area, the existing line is overwritten. SY-SUBRC is always set to 0.
A shortened form of the above statement is:
MODIFY <dbtab>.
In this case, the contents of the table work area <dbtab> are inserted into the database table with the same name. You must declare this table work area using the TABLES statement. In this case, it is not possible to specify the name of the database table dynamically. Table work areas with the same name as the database table (necessary before Release 4.0) should no longer be used for the sake of clarity.
Reward points if useful
Regards
Anji

Similar Messages

  • How to replace the Losing fonts with scrip in photoshop,by script

    Frequently,I Receive some PSD files, It is did by Other people.
    When I open it with my computer,I find it missed a lot of fonts.
    Some times,I have this fonts, but the name is not  like with the fonts of the PSD file.
    So,I need to replae the Losing fonts, but it  always have a lot, It wast my much times.
    In Indesign, it is Very easy~~
    Could you help me Achieve it by scrip in Photoshop?
    Thank you very much

    Hi Sridhar,
    I would like to Replace the Charecter values with numeric value in my string.
    Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
    So, if i understand you correctly, you want to replace all characters in a string with 9 as in the above example, irrespective of position of the character, if so try with the below code.
    DATA: l_str TYPE string.
    l_str = 'ASKHSIUDNSBDKJSDH124312431243124saasdfsf'.
    REPLACE ALL OCCURRENCES OF REGEX '\D' IN l_str WITH '9'.
    IF sy-subrc EQ 0.
      WRITE: l_str. "Result will be 9999999999999999912431243124312499999999
    ENDIF.
    Regards,
    Chen
    Edited by: Chen K V on Jun 13, 2011 12:36 PM

  • How to use the pid vis with a two-state output

    Hello
    Could someone tell me how to regulate the temperature of a room with
    a two-state heater (on/off), using the pid vi's.
    Thanks,

    >> Could someone tell me how to regulate the temperature of a room
    >> with a two-state heater (on/off), using the pid vi's.
    In <[email protected]> [email protected] (Helmut Hullen) writes:
    >You don't need the PID. A simple 2-state control does the work.
    ^^^^^^ ^^^^^^^ ^^^^^^^
    Frankly, I tend to agree. However, if you _need_ PID control and _if_
    your two-state heater is solid-state switched, there are other
    options. For example, commerical PID temperature controllers with
    zero-voltage switching (ZVS) operate by generating a slow enabling
    pulse, then achieving proportional control by varying the duty cycle of
    this enabling pulse. For instanance, if your enabling pulse is running
    at 10-Hz, with 50% duty cycle,
    then your heating element will be on for
    50% of the time every 0.1 second.
    You can use a programmable timer (National includes two on their MIO
    cards) to program the 5 or 10 Hz output and its duty cycle. You might
    have LabView execute the PID subVI once every two or three seconds to
    adjust the duty cycle on the programmable timer so as to minimize the
    feedback error=(tempSetPoint-currentTemp).
    Why are you wanting to use LabView for PID temperature control in the
    first place? There are some very good PID temperature controllers
    (programmable through a serial port) with built-in solid-state ZVSs
    and readouts for $900 that you can buy. They'll fit right into
    a control panel, display and all. Sure beats messing with a
    programmable timer card and its outputs, plus you get a digital panel
    readout to boot.
    /\ Mark M Mehl, alias Superticker (Supertickler to some)
    <><> Internet: [email protected]
    \/ Preferred UUCP: uunet!iastate.edu!mehl
    Disclaimer: You got to be kidding; who would w
    ant to claim anything I said?

  • Looking to find out why icons appear for only certain bookmarks and how to replace the dashed rectangle with a valid icon in those cases.

    As the question explains, some of the icons for visited sites appear only as a dashed rectangle. There are several bookmarks that have been successfully imported from an html file and a few of them have no icon showing on the Firefox toolbar or bookmark list yet they did on the original browser where they wre imported from. Typically, the icons will "fill in" when each of the imported sites are visited some some do not regardless of how many times visited.
    I have checked to make sure that the fonts and colors are being selected by the site/server so that is not the problem.
    Although it is a somewhat cosmetic feature (navigation works fine, just no icons), the icons make site recognition much faster visually, making browser that much faster and easier on the eye.
    Any help to resolve this issue would be greatly appreciated for a "second-time-around" Firefox user.

    The reloader did the trick! Not sure why it took the add-on to get the correct favicon but problem solved, easily and quickly. I'll be sure to recommend the Firefox/Mozilla Support Forum to friends that use the browser. Thanks!

  • How to replace the root tag in ABAP Mapping

    how to replace the root tag with the certain string in ABAP Mapping
    just like
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <name>Lawrence</name>
    </root>
    into
    <?xml version="1.0" encoding="UTF-8"?>
    <myRootElement>
         <name>Lawrence</name>
    </myRootElement>
    i don't want to implement it in message mapping
    please give me the sample code
    thanks in advance

    Use below code
    odocument = ixmlfactory->create_document( ).
    msgtype = odocument->create_simple_element(
    name = 'myRootElement'
    parent = odocument ).
    Thanks
    Praveen

  • How to replace the certificate of Cisco 2106 wireless LAN controller for CAPWAP ?

    I have interested in CAPWAP feature and I download the open capwap project to make Access Controller (AC) and Wireless Terminal Point (WTP). I had built the AC which used PC and WTP which used Atheros AP. The CAPWAP feature work well when I enabled the CAPWAP that used my own AC  and WTP. When I got the Cisco 2106 wireless LAN controller (Cisco WLC), I configured the Cisco WLC to instead my own AC but I got the authorize fail in Cisco WLC side. It seem the Cisco WLC could not recognize the CAPWAP message which sent form my own WTP. I think this issue just need to synchronize the certificate between Cisco WLC and WTP.So I need to replace the Cisco WLC's certificate manually. Does anyone know how to replace the certificate manually with Cisco WLC ?
    Best Regards,
    Alan

    Unfortunately this Support Community is for Cisco Small Business & Small Business Pro product offerings.  The WLC2106 is a traditional Cisco product.  You can find this type of support on the Cisco NetPro Forum for all traditional Cisco products.
    Best Regards,
    Glenn

  • Replace the standard page with the customised page.

    how to Replace the standard page with the customised page.?

    Hi,
    I am not cleared with your requirement. However u can try this:
    Check if your standard page is attached with some function.
    You can then create a new custom function, attach that with the same responsibility as that of standard one. Thus u can access your custom page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the bad template with a blank.

    I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the unwanted template with a blank. It was previously possible to go to MY TEMPLATES and remove the unwanted templates. I don't if this issue is before or since installation of 10.8 (a nightmare in my case, which led to significant failure issues).  And because I haven't tried to remove templates since finally managing to install 10.8 (now at 10.8.4), I don't know if this is typical of the newer OS or a problem. I've been a Mac user for more than 25 years, but I think I'm nearing the end of the road. By the way, I've never needed to do this before because the manuals always offered an answer... they don't seem to do that anymore. In any case, I don't know how this works... I'd prefer an email reply if that's possible. But that would probably be too easy, and I don't know how to get a reply.

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

  • 10.6.8 software update won't reboot. It replaces the Apple logo with a circle with a diagonal line though it. What's the best course of action from here?

    I used software update last night and my iMac didn't restart afterwards. I spun the little "dashed" wheel for a bit and then replaced the Apple Logo with a slashed circle symbol. I"ve tried several fixes without success and would like to know what my best approach might be.
    I've tried to boot into single user mode but that failed the same as above. I've tried disk verify and repair permissions using Disk Utility, again without success in fixing the problem.

    com.apple.iokiast.IOUSBMassStorageClass
    is a Apple kext file and likely necessary.
    What you can do is backup your Users folders to another external drive (not TimeMachine) first so you have your files outside of TM. Disconnect this drive for safety reasons.
    Then hold c and boot off the OS X 10.6 installer disk and simply reinstall OS X on top of the installed version, then use the 10.6.8 Combo Update here
    http://support.apple.com/kb/DL1399
    That should replace the troubled kext file with a fresh version.
    This shouldn't bother your files or third party programs unless they have kext files or other "hooks" into OS X, if these programs fail, then just reinstall them from fresh sources and/or update to reinstall their missing parts.
    Consider cloning your boot drive to a external HFS+ journaled formatted drive with Carbon Copy Cloner.

  • I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    Try asking in the Premiere Pro  forum seems to be an Adobe Lab for Premiere Pro

  • I have an A5X chip iPad with retina display with AppleCare . If my iPad broke would apple replace it with the updated iPad with retina display?

    I have an A5X chip iPad with retina display with AppleCare+ . If my iPad broke would apple replace it with the updated iPad with retina display that has the A6X chip?

    They will replace your "broken" iPad with an iPad of equal type .... so NO, they will not replace it with a new iPad 4th generation. They will actually replace your "broken" iPad with a refurb, not a new one.

  • [svn] 3127: Updating asdoc to replace the avmplus call with new set of java files.

    Revision: 3127
    Author: [email protected]
    Date: 2008-09-05 14:16:53 -0700 (Fri, 05 Sep 2008)
    Log Message:
    Updating asdoc to replace the avmplus call with new set of java files.
    Removing all files related to asdochelper.
    QA: Yes, also please test on non windows platform.
    Doc:
    Tests: checkintests, asdoc
    Reviewed by: Pete Farland
    Modified Paths:
    flex/sdk/trunk/asdoc/templates/ASDoc_Config_Base.xml
    flex/sdk/trunk/asdoc/templates/asdoc-util.xslt
    flex/sdk/trunk/modules/compiler/build.xml
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsClass.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocHelper.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/QualifiedNameInfo.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/SortComparator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    Removed Paths:
    flex/sdk/trunk/asdoc/templates/asDocHelper
    flex/sdk/trunk/asdoc/templates/asDocHelper.linux
    flex/sdk/trunk/modules/compiler/asdoc/

    I had a generic record class that has a HashMap to hold the data fields (...)
    method called createRecord() for each record type which would populate the HashMap with the correct data fieldsI'm not sure I understand: are the contents of this field map the same between two records of the same type? Then yes, you don't need to clone the map per record instance.
    one thing that needs fixing is the fact that each time the createRecord() method is called I'm creating a new fieldMap to define the dataFields in the record class.Probably, but that will only get you a little bigger files; you won't gain an order of magnitude on the size of files. The problem for huge files is that as soon as their content is bigger than the available memory, you'll run into problems. A more radical approach if you need to address huge files is to process the records on the fly, and not load all records in memory. Of course not all algorithms or business logic can afford that...
    I know I could rewrite the code and create a class for each record type and declare the fieldMap static but I was wondering if anyone had any better suggestions The Record instance could receive and keep a reference to its RecordType instance, and ask the RecordType instance the DataType for a field's name. That way the RecordType encapsulates the map, and there's less risk that a clumsy other class modifies the static map.
    before I go rewriting a load of code.A load of code?!? Even with the idea of the static map, you only have to edit the enum type (well more accurately, each RecordType enumerated constant's createRecord() method).

  • Since I am writing the book in Italian,how can I replace the word CHAPTER with CAPITOLO ?

    Since I am writing the book in Italian, how can I replace the word CHAPTER with CAPITOLO ?

    I think you need to run iBA in Italian so the templates are in that language.  You can do that by switching your OS X to Italian and then reopening iBA or perhaps by using this app to just change the iBA language:
    http://www.tj-hd.co.uk/en-gb/languageswitcher/
    see also
    https://discussions.apple.com/message/20745332#20745332

  • How to replace typewriter (straight) apostrophe with typographic (curly) apostrophe?

    I have a manuscript I got off the Internet that has a bunch of isn?t's and wasn?t's and the like—due, I assume, to some miscommunication between MS Word's automatic curly quotes and the ASCII limits of ISO Latin 1. I tried doing a find-and-replace to put typographic apostrophes in place of the question marks. Pages found the question marks and put typewriter apostrophes in place of them, though I'd carefully entered a typographical apostrophe ((opt-shift-]) in the Replace field. So I tried again, to replace the typewriter apostrophes with typographical apostrophes. Pages now replaced the few typographical apostrophes I'd manually entered with typewriter apostrophes. Well, at least it's consistent. So far as Pages, Apple's flagship word-processing/page-layout app is concerned, there's apparently no such thing as a typographical apostrophe—something that was understood, as I recall, by the original MacWrite 25 years ago. So do I have to go back to doing all my editing in TextEdit (which seems to be much better at text work than Pages), or can somebody tell me how to persuade Pages to take care of this trifling little task correctly?

    Copy these two paragraphs into a Pages WP document:
    When you?re sleep deprived… parental control of baby?s sleep… meet baby?s needs consistently… respond to baby?s cries…
    "Parents should recognize that having their babies cry unnecessarily harms the baby permanently," Commons said. "It changes the nervous system so they?re overly sensitive to future trauma."
    Open the Find & Replace dialog. Enter Find: ? and Replace: ’ (opt-shift-}). (I.e. replace question mark with typographical apostrophe.) Click Replace All. It should say 5 Replaced. Check any of the replacements by enlarging the type; you’ll see an ASCII apostrophe ['] rather than the requested typographical version [’].
    Then enter Find:  " (space-") and Replace:  “ (space-opt-[), and click Replace All. It will say 1 Replaced, meaning the quote mark preceding "It" in the second sentence (the only quote mark preceded by a space). Enlarge the replacement to see it clearly; it's replaced an ASCII " with another ASCII ".
    So far as I can tell, Pages’ Find-Replace function can't tell the difference between ASCII apostrophe/quote marks and the typographical versions. Maybe it will once you turn on smart quotes in preferences; I haven't tried that -- but then of course you'd get smart quotes when you don't want them, for instance for something to be posted on an Internet forum, which often doesn't understand them. (The problems above and similar, often seen on the 'Net, are due to MS Word's having smart quotes on by default, so unaware users compose material with them and send it out over teh Interwebz, where they sometimes come through correctly, sometimes don't.)
    Try the same experiment in TextEdit; you'll get the requested typographical versions. And so I did, then copied the text back to Pages. Like I said, kinda shoddy for Apple's Pride & Joy word processor. AppleWorks, by the way, does it right.

  • How to use the updated value in the same update statement

    Hello,
    I just wonder how to use the updated new value of other column in the same udpate statement. I am using Oracle 11.2, and want to update the two columns with one update statement as following:
    create table tb_test (id number(5), tot number(5), mon_tot number(5));
    update tb_test set (tot = 15, mon_tot = tot *15) where id = 1;
    ...I would like to update both tot and mon_tot column, the value of mon_tot shall be determinted by the new value of tot.
    Thanks,
    Edited by: 939569 on 1-Feb-2013 7:00 AM

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

Maybe you are looking for

  • Missing or invalid version of SQL library PSORA (200,0)

    I am trying to configure App. Server on Vista laptop machine. The machine name is VRGhati03. It is a logical 3 tier archtecture. Its a EPM 9.0 Install. My database (PFDMO) is all configured and I am able to signon using a User ID VP1 and password VP1

  • JDeveloper studio, does it come with a database , what is the default conne

    Hi everyone, I just installed Jdeveloper using jdevstudio11113install.exe which is downloaded from Oracles FMW page.The description for the studio version says it has the database in it. Is that so, if yes, does anybody know the default connection st

  • Trying to live with iTunes in a family house....

    I have a iMac '06 that is setup with 4 users, one for each person. 2 of these are kids with parental controls. each person has either an ipod touch, or iphone that they need to sync... I have figured out how to share the music and apps with the users

  • LocationServices on iPhone..when do you know your location is "good enough"

    Hi. I've been having some weird issues with location services and maybe I'm just not understanding it completely. I need to grab the user's location with the best accuracy possible so I gather updates for about 10 seconds and take the update with the

  • Placed Illustrator PDF has extra white space

    Illustrator  artwork saved as PDF, and placed on an InDesign page comes in with extra white space of around 1 1/3 mm on all  sides. I can't figure out what this unwanted white space is or how  to avoid it. Can someone please tell me how to avoid the