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

Similar Messages

  • Update or modify  statment is not working in the method for workflow

    hi friends,
    i am facing with a problem.
    one of my requiremetn is i need to update the ztable with update or modify statement in the method.
    when i run  by manually it is wokring fine(updating the ztable ) and  binding every thing is fine. however the table is not updateing.
    can you please let me know what i am missing.
    Thanks in advance.
    ~ysr

    Hello,
    I understand you have to close some questions when you reach more than 10; if that wasn't the case then hardly anybody would ever close a thread.
    What I'm saying is that you should give a more useful follow-up than "self". If your question was answered then say what the correct answer was. If it wasn't answered then say that.
    The purpose here is to share knowledge, not just solve your problems.
    regards
    Rick Bakker
    hanabi technology

  • 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

  • Modifier Key Mapping Not Working

    When I'm at home, I connect my MacBook Pro to a 24" LCD, along with an external keyboard and mouse. One of the small features I was looking forward to in Leopard was not having to go into System Preferences and switch the modifier keys to correctly work with my external keyboard, but I've discovered that the feature isn't working. I choose "USB Receiver" from the keyboard drop-down, re-map the Option and Command keys, click OK, and close SysPrefs. Nothing has changed; the Command key on my keyboard is still performing as Option and Option is still Command. When I go into the Keyboard & Mouse section of SysPrefs, the Modifier Keys pane is back to it's default values. I'm wondering if this is a bug in 10.5 that will be fixed with 10.5.1, or if it's just my keyboard. Any tips would be greatly appreciated!
    Message was edited by: bradbergeron
    Message was edited by: bradbergeron

    Any updates on this bug?
    On my Powerbook, I have to swap the modifier keys under the "All" setting to make the change take effect on the external USB keyboard I'm using. Changing modifier keys on just the "DELL USB KEYBOARD" (in my particular case) has no effect.
    It's just a minor annoyance (having to reset my modifier keys back to defaults when I need to use the built-in keyboard), but all the same the feature doesn't appear to work as it should.
    Or is it just me?

  • 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.

  • My 'MODIFY button' is not working

    coding is given below
    begin
         :GLOBAL.ADDNEW:=2;
         GO_BLOCK('IMPORTER_TYPE1');
         GO_ITEM('IMPORTER_TYPE1.IMP_TYPE_DESC');
         item_enable_disable('IMPORTER_TYPE',property_on);
    item_enable_disable('IMPORTER_TYPE1',property_on);
    end;
    pls tell is urgent....

    "is not working" makes it very hard to help without a bit more information. But:
    item_enable_disable('IMPORTER_TYPE',property_on);
    item_enable_disable('IMPORTER_TYPE1',property_on);... is a custom procedure in a library on YOUR system so we don't know how it works but it may be that you need to say "property_true" rather than "property_on" ....
    or it may be the parameter should be the ITEM_NAME "IMPORTER_TYPE1.IMP_TYPE_DESC" rather than the block name that you need to pass in.
    HTH
    Steve

  • IDisk not longer visible in Sidebar - Modifying Preferences did not work

    Hi there,
    I also have some problems with the side bar in Finder.
    I don´t longer have the iDisk-Icon in the side bar. I´ve unchecked and checked the box in Finder-->Preferences but that did not work...
    I also had similar problems with a not proper working network icon in the sidebar which I could solve with a forced end of Finder.
    Any ideas?
    Thanks and best wishes...
    Markus

    Try this. With the external display connected and turned on and the MBP turned on, close the MBP. Close it, not shut down. This action is supposed to send a signal to the external that it is the only live display.
    You should also check in the System Report if the external display is listed.

  • Modified system report not working which report have dataset

    Hello,
    I have modified (removed unnecessary fields) system report "Collection Report - CR (GB) ". But when ever i run the report it was asking connection for ADO.NET XML file after click on Ok buttion of referesh data.
    Collection Report - CR (GB) having two physical table name with OADM and OADP and a Dataset name with PLD__items.
    I have imported modiofed report in SAP but it showing message "Record not found" and system report working fine with same record.  
    Please let me know from where i can find reference for ADO.NET XML file.
    Thanks
    Alkesh Soni

    Hi Alkesh Soni,
    You should never removed any fields from system report. Try to hide them instead.
    Thanks,
    Gordon

  • Modifier Keys suddenly not working with Numberpads

    I favor the use of a numberpad and as such i have been using a third party USB Numberpad.  I also have a Apple wired keyboard that comes with the number pad.
    All these while, the modifier keys (shift, alt, ctrl) works with the numberpad and the numberpad section of the apple keyboard.  Somehow, recently, not sure when, it no longer works.
    I've tried to reset default on the modifier key section but it just doesn't work... This is really frustrating.  the only thing i remember installing lately is "bettertouchtool" and buying a magic mouse. 
    Bettertouchtool is not usually running unless i choose to run it, so i'm not sure how that affecs it, not am i sure if totally removing it via a third party app helps.
    Appreciate HELP! PLEASE!

    i am having the same problem.  It just started a few days ago.  Im thinkin its a problem with the most recent update.  Im goin to contact apple to let them know.   I'll post again when i hear something.  If anyone figures it out before then please let us know!

  • Join statment is not working

    Hello Experts,
    I am trying to write a below code where i will be using JOIN statment to select data from 2 table faglflexas and cepct.These two tables have only one field in common(prctr).I would also be getting the value of prctr from the user on selection screen.
    But the code syntax is not allowing me to prctr in both the places.
    SELECT faglflexapoper faglflexaryear faglflexaprctr cepctktext " FROM faglflexa
    INTO CORRESPONDING FIELDS OF TABLE gi_prctr
    FROM cepct JOIN faglflexa ON cepctprctr = faglflexaprctr
    WHERE poper IN s_period
          AND ryear EQ p_fyear.
          AND prctr in s_prctr.
    I am getting error in last line of AND prctr in s_prctr. asking that I prctr is defined in two places in the select query.
    please help.
    points will be rewarded definately.

    Hi,
    The code written by you is giving a syntax error as PRCTR field is present in both the tables and you are using a join but in the where clause you are not specifying the field with respect to a table.
    try the below syntax:
    SELECT faglflexapoper faglflexaryear faglflexaprctr cepctktext " FROM faglflexa
    INTO CORRESPONDING FIELDS OF TABLE gi_prctr
    FROM cepct JOIN faglflexa ON cepctprctr = faglflexaprctr
    WHERE poper IN s_period
    AND ryear EQ p_fyear.
    AND cepct~prctr in s_prctr.
    Thanks.

  • Select statment is not working for field TOAOM-connection

    Hi,
    I am not able to execute the below code in my System ERP2004.
    tables: toaom,TOACO.
    data lv_connection like toaom-connection.
    data OBJECTTYPE like toaom-SAP_OBJECT.
    data DOCUMENTTYPE like toaom-AR_OBJECT.
    data it_toaom like toaom occurs 0 with header line.
    select single connection from TOACO into lv_connection
                                   WHERE SAP_OBJECT = OBJECTTYPE
                                     AND AR_OBJECT  = DOCUMENTTYPE
                                     and ar_status  = 'X'.
    It gives a message that "ToAOM is is not expected"

    Hi lijo,
    1. use like this.
    2.
    REPORT abc.
    *TABLES: toaom,toaco.
    DATA : toaom LIKE TABLE OF toaom WITH HEADER LINE.
    DATA : toaco LIKE TABLE OF toaco WITH HEADER LINE.
    DATA lv_connection LIKE toaom-connection.
    DATA objecttype LIKE toaom-sap_object.
    DATA documenttype LIKE toaom-ar_object.
    DATA it_toaom LIKE toaom OCCURS 0 WITH HEADER LINE.
    SELECT * FROM toaom
    *iNTO lv_connection
    INTO TABLE toaom
    WHERE sap_object = objecttype
    AND ar_object = documenttype
    AND ar_status = 'X'.
    regards,
    amit m.

  • Modifier Keys will not work in Apple applications

    I am very puzzled by this problem. The shift, command, option , and caplock keys have no effect in any Apple program. They work fine in other applications like photoshop, illustrator, neo office, firefox and thunderbird.
    I reinstalled the tiger 10.4.3 update, repaired permissions, and used diskwarrior from another hard drive.
    The other strange thing is that the Dashboard icon no longer appears in the dock.
    Logged in as a different user and there is no problem. Is there a preference file that I need to remove?
    Please help.

    Yes Application Enhancer is a very update sensitive program. When installing anything from http://www.haxies.com/ also known as http://www.unsanity.com/ and the sites which depend on their software, always verify that your addons to the Finder are compatible with a future system update before updating to the new system.

  • 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

  • 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

Maybe you are looking for

  • FM 7.1

    I've recently installed Framemaker 7.1 and finding it an excellent ddp program. Using the table custom ruling and shading is giving me issues. When I apply a custom ruling to a cell, row or column, then apply, save close the file then open the change

  • How do i move my itouch stuff to a 2nd hand (sister's) computer that already has an itouch registered on it

    Please help! In our house we have all move around with PC's and laptops now my husband and kids have to go back to they original one to get all the stuff in ITunes how do I move there I Pod Touch stuff to a 2nd hand (sister's/mum's) computer that alr

  • Collision related "urgent"

    I'm new to Java3D. I'm going to make the object move by a interpolator after collision. However, when run the code below, it always gives an exception: javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be added at javax.me

  • Setup.app freezes when trying to install Creative Suite 4

    HI, I can't seem to get to the install window where you pick which programs to install. I click the setup.app file and it freezes seconds later. It doesn't crash and no error messages pop up. The only thing i can do is force quit and try again. All o

  • VBA problem with SAP BPC report

    Hello I have an EVDRE() SAP BPC report where one of the member id selection is derived using a VBA script. The problem I'm having is when I click on expand and refresh icon, the member id changes to #Value and the expansion and refresh fails as #Valu