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

Similar Messages

  • Insert statement will not work if select statement has less number of colum

    Hi,
    One of my thread is already resolved on the following URL : unable to insert rows into the table
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM CASE_101 WHERE 1=2;
    DECLARE
    S VARCHAR2(200);
    STMT VARCHAR2(500);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CASE%' TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    STMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT:=STMT || C.TABLE_NAME;
    EXECUTE IMMEDIATE STMT;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    i am facing now some different; almost all the tables have same number of columns except in few of tables have some additional columns. As above i am creating a table "TEMP" who has highest column temp(by doing some manual process). The table who has less columns than "TEMP" table : Insert statement will not work. 'INSERT INTO TEMP SELECT * FROM less_columns_table_name'.
    Please let me know , how can i execute proper way.
    Thanks.
    Best Regards
    Arshad

    user13360241 wrote:
    Hi,
    One of my thread is already resolved on the following URL : unable to insert rows into the table
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM CASE_101 WHERE 1=2;
    DECLARE
    S VARCHAR2(200);
    STMT VARCHAR2(500);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CASE%' TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    STMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT:=STMT || C.TABLE_NAME;
    EXECUTE IMMEDIATE STMT;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    i am facing now some different; almost all the tables have same number of columns except in few of tables have some additional columns. As above i am creating a table "TEMP" who has highest column temp(by doing some manual process). The table who has less columns than "TEMP" table : Insert statement will not work. 'INSERT INTO TEMP SELECT * FROM less_columns_table_name'.
    Please let me know , how can i execute proper way.
    Thanks.
    Best Regards
    Arshadmore often than not "TEMP" tables are NOT required & are highly inefficient in Oracle.
    Either only specify explicit column in TEMP to get data,
    or provide value for "extra" column in TEMP

  • CASE Statement is not working Derived table

    Hi All,
    in the bello SQL Statement case statement is not working in derived table. I am new to creation of derived table if any body knows plz kinldy help me out on this.
    SELECT x.market, x.droprate as med1
    FROM
    (select upper(market_name) as market, fulldate as date_value,
         (sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
              nullif(sum(CASE WHEN (month(BBHDLY.FullDate)}>= 6 and { year(BBHDLY.FullDate)} = 2011) or {fn year(IDENSLABBHDLY.FullDate)} > 2011
    THEN  BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
    from BBHDLY sla
    inner join Dim mkt
         on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
                   where fulldate >= GETDATE()-46
                   group by market_name, fulldate) x,
    (select market_name as market, fulldate as date_value,
    (sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
              nullif(sum(CASE WHEN ({fn month(BBHDLY.FullDate)}>= 6 and {fn year(BBHDLY.FullDate)} = 2011) or {fn year(BBHDLY.FullDate)} >
    2011 THEN  BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
    from BBHDLY sla
    inner join Dim mkt
         on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
                   where fulldate >=GETDATE()-46
                   group by market_name, fulldate) y
    where x.market = y.market
    GROUP BY x.droprate, x.market
    HAVING
       SUM(CASE WHEN y.droprate <= x.droprate
          THEN 1 ELSE 0 END)>=(COUNT(*)+1)/2 AND
       SUM(CASE WHEN y.droprate >= x.droprate
          THEN 1 ELSE 0 END)>=(COUNT(*)/2)+1
    Thanks

    It looks like SQL Server or Sybase given that you're using getdate().
    As such, Vinesh's comment to use decode is wrong - decode is  Oracle syntax.
    Looking at your statement again, I've noticed the following:
    you have no { to match the first } - not sure why you're using them anyway.
    you haven't given x.market a name - use x.market as market instead
    use coalesce instead of nullif if you're on SQL Server.

  • Insert statement is not working for z table.

    Hi experts,
    My insert statement is not working.
    I have used follwing code to update z table .
    INSERT ztable FROM TABLE gt_table.
    here i have checked gt_table and its filled up with all the records properly.
    now the problem is in this table i have 15 fields and it inserts 14  fields of it but
    the last field is never inserted though in gt_table i can see value for last fields also.
    I have added this field in ztable recently . so i also used se14 to adjust table but still i am facing same problem.
    please help me out.
    thanks,
    Neo

    > > Table maintainance will have nothing to do with
    > this
    > > issue.
    >
    > It does sometimes when you are trying to see the
    > values from SM30 instead of SE16. The value may be
    > there, but it may just not seen in SM30 because the
    > table maintenance hasn't registered the addition of
    > new field.
    >
    > Another place to look at is the activation log to see
    > if there are any warnings issued there.
    You shouldn't use SM30 to view table entries. You use this transaction to maintain the table entries. Pure and Simple.

  • Delete Statement is not working correctly

    Hello,
    The following delete statement is not working correctly.
    If I press delete it will delete everything in the category table
    I don't know whats wrong with it.
    ----delete row from category if there is not infrastructure to support------
    IF :P12_DFCY_SEQNO4 IS NOT NULL AND :P12_DFCY_CATG_C = '7' THEN
    DELETE FROM DFCY_CATG
    WHERE NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;
    Thanks
    Mary

    Hi,
    IF :P12_DFCY_SEQNO4 IS NOT NULL AND :P12_DFCY_CATG_C = '7' THEN
    DELETE FROM DFCY_CATG
    WHERE NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;So, if P12_DFCY_SEQNO4 does not exist, then I would expect all records to be deleted because the NOT EXISTS() function would just return TRUE for every record on the table. Somewhere in the statement, I would expect to see something that links between the table being deleted from and the NOT EXISTS() data or, perhaps, using the P12_DFCY_CATG_C value as a filter?
    Andy

  • Delete statement is not working.

    Hi,
    find the code. Here the delete statement is not working and i am getting sy-subrc = 4. although ,
    xe1edp10-idnkd = 34596 and dint_edidd -sdata = 34596.
    please help me ...
    loop at dekek_x.
    loop at dint_edidd where segnam = 'E1EDP10'.
    if dekek_x-stpin = 1 .
    CLEAR xe1edp10.
      MOVE dint_edidd-sdata TO xe1edp10.
    delete dint_edidd where sdata = xe1edp10-idnkd.
    endif.
    endloop.

    1st thing..
    i tried this :
    tables: edidd, e1edp10.
    edidd-sdata = '315934 EA 017'.
    WRITE edidd-sdata.
    move edidd-sdata to e1edp10.
    IF edidd-sdata = e1edp10-idnkd.
    WRITE: e1edp10-idnkd.
    else.
      WRITE: 'nothing'.
    ENDIF.
    output
    >315934 EA 017
    >315934 EA 017
    2nd thing,.
    your loop inside loop doesnt make any sense as they are not related any where.
    3rd thing:
    the fields are not type compatible.. this might be the reason for wrong delete statement..
    and 1 more clarification:
    TABLES: edidd, e1edp10.
    DATA :it TYPE TABLE OF edidd WITH HEADER LINE.
    edidd-sdata = '315934 EA 017'.
    WRITE edidd-sdata.
    APPEND edidd TO it.
    edidd-sdata = '315934 EA 018'.
    APPEND edidd TO it.
    LOOP AT it." where segnam = 'E1EDP10'.
      CLEAR e1edp10.
      MOVE it-sdata TO e1edp10.
      DELETE it WHERE sdata = e1edp10-idnkd.
    ENDLOOP.
    in this also delete is working perfectly fine... you run and check..

  • SORT statement is not working!

    Hi frdz,
    Below SORT statement is not working. Can any one explain me why this is happening.
    SORT i_bseg ASCENDING BY belnr bukrs
                        DESCENDING kunnr.
    I have table content as below.
    BELNR      BUKRS KUNNR   
    0016000000|CROP |         
    0016000000|CROP |0008910168
    Before and after the sort content order is same.
    I want to sort the content like below.
    0016000000|CROP |0008910168
    0016000000|CROP |       
    Is there any thing wrong with the sort statement???
    i_bseg is defined as TYPE STANDARD TABLE OF
    Sort criteria must not change i. e ascending by belnr and bukrs and descending by kunnr.
    Thanks,
    Vinod.

    hi vinod,
    this is because on your statement, you are sorting BUKRS in descending order and KUNNR in ASCENDING order.
    please take note that the sort order should come after the sorted field. if no order is given, the default which is ASCENDING will be used.
    do your sorting like this
    SORT i_bseg BY belnr bukrs kunnr DESCENDING.
    regards,
    Peter

  • 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

  • SELECT statement does not work if characters ## are contained in field

    Hi Experts,
    I have the following statement:
    select single field1
        from table1
        into var1
        where field2 = text.
    This is a very simple statement that is working for me almost always correct. However there is a situation where the system is not able to find the record in my table. If text is equal to JAN##2011 the system won't deliver a result even if I have an entry in table1 with exactly this value.
    TABLE1
    field1 field2
    rome JAN##2011
    paris JAN2011
    only if text is JAN2011 the select will find a result.
    all fields are defined as CHAR.
    Thanks in advanced

    Hi Alberto,
    probably ## is not ## :-).
    is the visible representation used by ABAP to show any non-displayable characters as control characters like TAB, CR, LF, FF and the like.
    In debugger you can switch to HEX display of values, if you see something like 0A0D you can find this using CL_ABAP_CHAR_UTILITIES constant attributes.
    Regards
    Clemens

  • Message statement is not working?

    I would like to place a message in the following method:
    It's defined like this:
    Position & cannot be delimited because the position is occupied until &
    This is in the program:
    MESSAGE: s029(zpom_001) WITH st_hrp1001-objid(8) st_hrp1001-endda(8), display like 'E'.
    I inserted the (display like 'E' ) in so I can get the RED 'X' error message.  If I take out the display like 'E', it works.
    I get the following error:
    Three-digit error number XXX required in the "MESSAGE EXXX..." statement.
    Thanks for any help you can give?
    Jeff

    Satish,
    That did not work...
    If I remove the part of the message (  Display like 'E' )  it works......  But if I want to get a RED X error message, what would I do?
    JeffG

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

  • 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

  • Cursor 'mouseover' state change not working in Chrome

    Flash novice here.
    I'd appreciate any tips on where to start looking for answers to this problem.
    Here's the basic details:
    1. 40kb banners with no audio and nothing tricky
    2. Created in Flash Pro CC 2014
    3. Opened and re-saved in Flash CS6 for delivery to client website
    4. Client IT reports that everything is fine and banners are up and running
    5. For me personally, the mouseover state for the cursor works in Safari, but not in Chrome.
    6. While the mouseover cursor state for my banner is not working in Chrome, it is working for all the other banners/ads on that page.
    7. A friend tested the banner on all major browsers and the mouseover cursor state works for him.
    Any ideas where to look would be appreciated.
    Should I be talking to the host website, examining the Flash file, or checking my version of Chrome?
    Thanks in advance.

    This forum software is very tricky; updates to forum posts sometimes need to be done three or four times until it "takes".  I have been able to update your original post.
    Now that it is actually readable, I will go and have a look at it.

  • HTML5 Canvas (in Flash CC) Button Functionality Faulty - Over, Down states do not work

    I have searched and searched and I can't find a solution.
    In Flash CC, creating in an Actionscript 3.0 canvas, buttons work as expected. Up, Over, Down and Hit states produce desired results.
    I am creating an HTML5 animated webpage and none of the buttons work as expected. Here are the flaws:
    1 - There is no hand when a button is scrolled over. This is an issue because there are multiple objects on stage, only half of which are buttons. The user needs to be able to know which are clickable.
    2 - When I have an image on the Up state, all is well. But when I add an image on the Over state, it causes a loop. Up and over just loop in the preview and after I publish regardless of the cursor position and regardless of the browser type (FF, Chrome, IE).
    I have searched the web. A lot of people have this problem but no answers have surfaced. I don't particularly want to spend another 100 hours recreating in Edge Animate--which I am not as familiar with. Is there some code that might stop all the madness?

    You can program using java script in flash.
    use the code
    exportRoot.stop();
    inside the button frame
    if not working and all becomes gray as described above then target your button from the main timeline like
    exportRoot.someClip.subClip.stop();
    But remember to change .someClip & .subClip with their correct names.

Maybe you are looking for

  • Touchpad Adobe Reader stuck at opening screen

    Hi, I downloaded the update for adobe reader version 10.3.351 and now the reader is stuck at the opening screen. I have tried opening my pdf files through quickoffice, restarted the touchpad and nothing seems to work. WebOS doctor is not giving me an

  • How to disable the Tools Button in Bex Analyzer

    Hi Guys, How do I disable the Tools button only in Bex Analyzer so as to avoid the users messing with Query Designer. Thanks, Recca

  • ISQL problem with character

    I use iSQL I used database with character AR8MSWIN1256 its correctly but I use database with character AR8ISO8859P6 the data it not correct thanks

  • Here maps and Android

    For various reasons (not connected with Nokia) my next phone has to be an Android model but I am reluctant to give up HERE maps, as I think they are much better than Google maps. I know that Nokia promised an Android version, but it doesn't seem to h

  • Opengl Lenovo t61

    Hey whenever i try to open a game it says "it failed to find an accelerated OpenGL mode." could you help me to find a solution or update the correct version for my computer? thank you very much Solved! Go to Solution.