Modify itab not working

Hi ,
I am trying to change a field value in itab using MODIFY statement.
The field is a char type and holding '0000000' initially. Now I am trying to change this value to other value. But the modify statement is not working.
like the code is,
data : value(32) type c,
wa-value = value.
wa-name = 'test'.
modify itab from wa transporting value name where id = '01'.
the Name field is getting updated properly with the new value, but the value field is not getting updated... this i sstill showing '0000000'.
Can any body help me on this.
Thanks,
Krishna

TYPES : BEGIN OF y_trial,
         value(32) TYPE c,
         name(15)  TYPE c,
        END OF y_trial.
DATA : t_trial TYPE STANDARD TABLE OF y_trial,
       w_trial TYPE y_trial.
FIELD-SYMBOLS : <fs_trial> TYPE y_trial.
CLEAR w_trial.
MOVE '01' TO w_trial-value.
MOVE 'ABC' TO w_trial-name.
APPEND w_trial TO t_trial.
CLEAR w_trial.
MOVE '02' TO w_trial-value.
MOVE 'XYZ' TO w_trial-name.
APPEND w_trial TO t_trial.
CLEAR w_trial.
MOVE '03' TO w_trial-value.
MOVE 'PQR' TO w_trial-name.
APPEND w_trial TO t_trial.
CLEAR w_trial.
MOVE '02' TO w_trial-value.
MOVE 'LMN' TO w_trial-name.
MODIFY t_trial FROM w_trial TRANSPORTING name WHERE value = '02'.
UNASSIGN : <fs_trial>.
LOOP AT t_trial ASSIGNING <fs_trial>.
  WRITE :/ <fs_trial>-value, <fs_trial>-name.
ENDLOOP.
Output is : 01                               ABC
                 02                               LMN
                 03                               PQR
It has modifed the second row and the value has changed from "XYZ" to "LMN".
Regards,
Shekhar

Similar Messages

  • Update is working modify is not working

    Hi gurus
    I have written a code, in that i am trying to update some records to the table, in that code if i write UPDATE it is working but when i write MODIFY it is not updating records. Can u ppl suggest why it is happening??
    Regards
    kumar.

    Hi Vijay
    The Sy-subrc value is 0, and i even kept the commit work after the MODIFY statement.
    This is the code
    tables: zmaterial.
    data:
    begin of itab occurs 0,
    material type /bi0/pmaterial-material,
    end of itab.
    itab-Material = '0000123'.
    append itab.
    itab-Material = '0000124'.
    append itab.
    itab-Material = '0000125'.
    append itab.
    itab-Material = '0000126'.
    append itab.
    itab-Material = '0000129'.
    append itab.
    modify zmaterial from table itab.
    commit work.
    Regards
    Kumar
    Edited by: BW Kumar on Jul 30, 2008 8:50 PM

  • Ordering files by date modified is not working

    Sorry for the print in Portuguese. Ordering by date modified (or any other date-based scheme) has worked until yesterday. Today all files are market as "no date" ("sem data" text in the print), although the all the file metadata is fine.
    Any suggestions?

    Curt, thanks for your response.  The tool tips
    was not checked and did result in "hovering"
    working.  I'm not sure why that's called tool tips, but okay.
    I have just installed the software in the last
    few days.  I almost immediately got an update
    notice and installed the update.  I thought I was
    up to date.  Then, just a while ago I got another
    update notice.  After installing it the sorting
    now works.  Thanks much.  Problems seem to be solved.

  • Modifier keys not working after 10.6.7 update

    After the most recent 10.6.7 update, my modifier keys no longer work. I switched my Command and Option keys over a year ago, but now even when I'm in System Preferences>Keyboard>Modifier Keys and I switch them back and forth from Restore Defaults to the way I had them, nothing changes. I deleted  /username/Library/Preferences/ByHost/com.apple.HIToolbox.UUID.plist and logged off and back on, but that didn't work. Any suggestions?

    After the most recent 10.6.7 update, my modifier keys no longer work. I switched my Command and Option keys over a year ago, but now even when I'm in System Preferences>Keyboard>Modifier Keys and I switch them back and forth from Restore Defaults to the way I had them, nothing changes. I deleted  /username/Library/Preferences/ByHost/com.apple.HIToolbox.UUID.plist and logged off and back on, but that didn't work. Any suggestions?

  • In firefox, preferences/content/colors modifying does not work properly

    In firefox, preferences/content/colors, when UNchecking Allow pages to choose their own colors, instead of my selection above. The appearance of the pages becomes somewhat strange and entering some pass codes becomes impossible, because all the ***** are made visible. When check every thing is ok, but I can't choose the color of visited pages and thy appear only a little bit different. How can this be modified?
    Thanks in advance
    YZ

    If you click on the "down" arrow in the Google search box and then move your cursor to the desired term in search history while still left-clicking on your mouse, and then hold the cursor over the desired search term for a couple of seconds, it works.
    Clearly a bug that I hope they will fix.

  • IPad to iPhone itabs not working

    I have just got the new ipad mini with retina display I restored my stuff from a iPhone 5 icloud back up my emails music calendar iMessage etc sync but I can't get icloud tabs to work at all on any device (iPhone 5 to ipad mini with retina display) they are both signed in on the same account any ideas please thanks.

    I have finally figured it out you need to wipe the iPad mini and then start a fresh instead of using an iPhone 5 back up like I did, and re download your songs etc on the same log in details and iCloud tabs should start working on each device.

  • [LAVA Cross Post] CTRL+SHIFT+ Shortcuts sometimes not working in LabVIEW

    Cross-post from LAVA: http://lavag.org/topic/15619-ctrlshift-shortcuts-sometimes-not-working-in-labview/
    See the above post for more information - here's a synopsis:
    CTRL+SHIFT modifiers are not working while running LabVIEW in a Parallels 7 virtual machine. This problem affects both LV2011 and LV2012. I'm not certain that this is a LabVIEW bug - could be an issue with my virtual machine environment or it's configuration - except that CTRL+SHIFT modifiers work in other applications on the affected VMs. It's just LabVIEW that appears to ignore shortcuts with the CTRL+SHIFT modifiers.
    Any ideas? 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    X. wrote:
    Still well and alive in Parallels 9 and LabVIEW 2013 SP1. Of course I could upgrade to the latest versions to check whether things have gotten any better.
    Any news on that?
    @mellroth figured out the solution :-)
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Modifer keys do not work with mouse in Illustrator

    Below is a copy of a bug report I just submitted to Adobe. I don't suppose any users have run across this and found a solution or workaround?
    I found someone else with this problem in an archived topic thread, but the only response that poor fellow got was an accusation of not following instructions (His problem wasn't user error, BTW).
    Thanks
    ******BUG******
    Concise problem statement:
    Modifer keys do not work with mouse: For example, free transform or rotate behaviors that require "Click-Ctrl" .
    Steps to reproduce bug:
    1. select object
    2. select free transform tool
    3. left click (without releasing) a corner of the bounding box.
    4. start dragging
    5. press ctrl
    Results:
    object behaves as though the ctrl key was not pressed. i.e. the cursor does not change shape and the object scales rather than distorts.
    Expected results: The cursor should change shape as the ctrl key is pressed and the object should distort rather than scale.
    Additional information: This behavior is intermittent. Occasionally Illustrator recognizes the "Click-Ctrl" combination and behaves exactly as the help file predicts it will. The cursor changes shape and the object distorts rather than scales. I can offer no rhyme or reason for when Illustrator will behave as advertised and when it will ignore the modifier keys.
    The example above involves the free transform tool, but the problem occurs just as often with other tool behaviors that require a modifier key + mouse combination.
    Primarily using Wacom Intuos3 tablet. (with latest drivers), but have also tried combinations with microsoft mouse or both mice installed.
    Also, immediately after an occurrence Illustrator bug, left AI open, went to a different app that uses mouse+modifier (Ctrl+Click). That different app recognizes Ctrl+Click with no problems whatsoever.

    Thanks Guys,
    Good to know it's working for you. I guess that's the nature of intermittent bugs. Of course, Adobe's bug report form has a field for version, which I, of course, filled in. Sorry I didn't add it to this post. I'm using the latest version CS3 v13.0.2.
    Stephen,
    Sorry I was not more clear when I said, "For example, ...". I was talking about the modifier keys not working with several different tools. The Free Transform tool advertises functionality that is supposed to work with a "Click (down, but don't release)then hold down Ctrl" combination. The Rotate tool advertises a behavior that is supposed to work with an "Alt-Click" combination. These are just 2 examples of the modifier keys not working. I focused primarily on one example in the bug report(ctrl after and in addition to click in the free transform tool, not alt-click in the rotate tool).
    Here is what I expect(quoted from Adobe's CS3 help file)
    (From the "Distort Objects with the Free transform tool" help topic)
    "Select one or more objects.
    Select the Free Transform tool .
    Start dragging a corner handle on the bounding box (not a side handle), and then do one of the following:
    Hold down Ctrl (Windows) or Command (Mac OS) until the selection is at the desired level of distortion.
    Hold down Shift+Alt+Ctrl (Windows) or Shift+Option+Command (Mac OS) to distort in perspective."
    (from the "Rotate an object by a specific angle" help topic:)
    You can control the exact angle of rotation with the Rotate command.
    Select one or more objects.
    "Do one of the following:
    To rotate around the center point, choose Object > Transform > Rotate, or double-click the Rotate tool.
    To rotate around a different reference point, select the Rotate tool. Then Alt‑click (Windows) or Option‑click (Mac OS) where you want the reference point to be in the document window.
    Enter the rotation angle in the Angle text box...."
    These Tool based mouse-key combinations do occasionally work as they are supposed to, so I know what the expected results are supposed to look like, but whether they work or not appears to depend on the phase of the moon, the day of the week, and the color of the president's underwear.
    Other non-tool based mouse-key combinations in Illustrator work consistently all the time - Ctrl-A for Select All as just one example that always works.
    Thanks Again

  • Cross browser testing : Modifier Keys playback actions not working in chrome and Firefox

    Hi,
    In my work flow I have to select multiple items in list.So I have recorded 'Ctrl+Click' action to select list items.In Chrome and Firefox it is not selecting multiple Items.
    Even Ctrl+A,Ctrl+C,Ctrl+V also not working in chrome and Firefox.Complete modifier keys support is not observed in chrome and Firefox.Let me Know how to automate modifier keys actions in cross browser?
    Regards,
    Nagasree.

    Hi Nagasree,
    Welcome to MSDN forums.
    First,please make sure the Chrome and Firefox is supported by cross browser testing.
    Latest version of Chrome and Firefox supported by cross browser testing are Chrome version 38.0.2125.111 and
    Firefox 33.
    I doubt whether Chrome and Firefox in cross browser testing don’t support automating modifier keys or there is anything wrong on it if you are using supported browser. Since this issue is related to the Extensions tool
    Selenium components for Coded UI Cross Browser Testing, if possible, I suggest you post this
    issue here, click “Q AND A”, and then you could post this issue there, you would get dedicated
    support there.
    Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Authorization Object is not working when report is modified.

    Hi BW Guru's
    We have Company Code as Authorization Object .and we have 3 company Codes (xxxx,yyyy,zzzz).where the users under Company code xxxx are not supposed to view company code yyyy,zzzz data etc.
    I modified an existing Report and transported to production.But the Authorization Object is not working for that report.The Report is defaultly displaying all the company codes data(xxxx,yyyy) for all the users.But for the other reports its(company code ) is working fine.
    What could be the problem?Is theproblem in transporting the objects.But i transported all the objects inluding auhorization object.
    Please send me the solution as it is very much urgent.
    The solution will be def. awarded with full points.
    Regards
    Sanjay

    hi Sanjay,
    please don't post the same question again, check and response back from your previous thread
    Re: Authorization Object is not working when report is Modified.
    hope this helps.
    would be nice if you reward for helpful answers to all of your previous postings, e.g
    docs related to RRI

  • Modify statement is not working.

    MODIFY AH(table)   FROM  wa(workarea)
       TRANSPORTING  Funct  Sh  SF (table fields)
           WHERE Funct = wa-functlr
                AND Sh = v_sh
                AND SF = wa-sf.

    I fee lthis modify syntax will not work.
    Check this link for Native SQL which will give you an idea -
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm
    ashish

  • MODIFY and SAVE_TRANSACTION not working for ZONE BO

    Hi
    I am trying to add/delete location in transportation zone through MODIFY and SAVE_TRANSACTION but the update is not happening in database. I have done deletions and additions in other business objects but for transportation zone it is not working properly. Is something wrong with BO configuration ?
    Procedure that I am following for deletion of zone:
    1. Read Zone with querybyelements method
    2. Read locations for this zone using retrieve_by_association method in edit mode
    3. Fill modification table with deletion indicator and appropriate values for location
    4. Call method Modify and then save_transaction.
    I followed similar procedure for adding/deleting region in transportation zone but this also doesn't work.
    Thanks
    Anuraag

    Hi Anuraag,
    In TM you should open the transaction /SCMTMS/ZONE. Here you select the zone you would like to modify and you execute the changes you would like to make.
    Regards,
    Nico.

  • Modify statment is not working.

    Hi Experts,
    I have a small query, modify statment is not working properly, Maybe my syntax wrong. Kindly suggest me.
          DESCRIBE TABLE it_marc1 LINES count.
          IF count = 1.
            LOOP AT it_marc INTO wa_marc where sernp ne space.
              READ TABLE it_stpo INTO wa_stpo WITH KEY idnrk = wa_marc-matnr.
              IF sy-subrc = 0.
                wa_stpo-potx2 = c_primary.
                MODIFY table it_stpo FROM wa_stpo TRANSPORTING potx2.
              ENDIF.
            ENDLOOP.
          ENDIF.
    Mohana

    Hello,
    Add the index addition and check
    DESCRIBE TABLE it_marc1 LINES count.
          IF count = 1.
            LOOP AT it_marc INTO wa_marc where sernp ne space.
              READ TABLE it_stpo INTO wa_stpo WITH KEY idnrk = wa_marc-matnr.
              IF sy-subrc = 0.
                wa_stpo-potx2 = c_primary.
                MODIFY table it_stpo FROM wa_stpo TRANSPORTING potx2 INDEX sy-index.  " here
              ENDIF.
            ENDLOOP.
          ENDIF.
    Vikranth

  • Update/Modify not working

    hi,
    i have ztable
    mandt key field
    ztest1  key field
    ztest2  key field
    ztest2  non key field
    when i'm trying to modify any key field, MODIFY keyword is actually adding a new record in the Database. it is because the new combination of key fields is unique.
    i tried using update statement . Update is not working as the combination key is creating a new record which is not present in Db and hence , its not updating.
    do we have any workaround on this ??
    if i update the key field same field should be updated with other fields intact
    please help.

    key field means unique record.
    if u try to change a key field it will add a new entry.
    to an existing entry with a key combination u can change only the non-key fields.
    else u need to delete the record combination and add the new combination.

  • I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?

    I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?

    Are you using the Adjust Date and Time option or the Batch Change option?  If it's the former try the latter.  If you get the same results  launch iPhoto with the Option key held down and create a new, test library.  Import  the same video file and check to see if the same problem persists.
    OT

Maybe you are looking for

  • 2010 Mac Mini and HDMI question

    Just bought a new Mac mini and have it hooked up to a Samsung px2370 HDMI to HDMI and as good as the picture looks I'm thinking it could look better ... And I've heard that generally a computer shouldn't be hooked up that way... The Mac mini has anot

  • Problem with msdos console

    Hi friends!, When I run my multi thread appliaction in a MSDOS console, sometimes, after some minutes the aplication stop and only run if I put the enter button on the console. The problem don't is for the code because in the editors un very good. Ca

  • Master Data Loading from APO--- BW System

    Hi Experts, I am loading master  data from the APO to bW System,after loading data into the BW System ,I found the number of data records are mismatching ex:APO (8340) --->BW (9445) and that to I tried to delet the data in InfoObject, only some recor

  • Match Code Or Trick for Old Article Number

    Hello Retail Expert,                               Can anybody know match-code or Shortcut to enter Article Display screen (TA MM43) directly with old Article number? My business people dont want to go through search help. They have always worked wit

  • Want to convert a tag add target = "_blank"

    Hello My English ability is very poor sorry I want to <a href ="www.yahoo.co.kr"> => <a href ="www.yahoo.co.kr" target="_blank"> <a href ="www.yahoo.co.kr" target="_blank"> => <a href ="www.yahoo.co.kr" target="_blank"> (same) <a href ="www.yahoo.co.