MODIFY DB TABLE IS WRKING IN 4.7 BUT NOT IN ECC6

Hi all,
My belowe code is working in 4.7 BUT nOT IN ecc6.
I am modifying the MARA-BISMT value as Blank.
Pls suggest.
REPORT  zmara_update.
TABLES:mara.
DATA: gt_mara TYPE STANDARD TABLE OF mara,
           gw_mara TYPE mara.
SELECT-OPTIONS:so_matnr FOR mara-matnr.
START-OF-SELECTION.
  LOOP AT so_matnr.
    SELECT SINGLE * FROM mara INTO gw_mara
      WHERE matnr = so_matnr-low.
    gw_mara-bismt =  ''.
    MOVE-CORRESPONDING gw_mara TO mara.
    MODIFY mara.
IF SY-SUBRC = 0.
  COMMIT WORK.
  ENDIF.
  ENDLOOP.

Hi ,
Dont write select statement with in a loop.
Declare a separete internal table and  validate the material the pass the value for Bismt.
MODIFY MARA FROM table itab.
COMMIT WORK.
Rgds,
Arun
Edited by: Arun Prasath on Jun 22, 2010 8:59 AM
Moderator message: DO NOT FOLLOW THIS ADVICE See below for reasons.

Similar Messages

  • I have web dynpor alv tables set up for multiple selections but not working

    Hi ,
    I have numerous alv tables within my application and i have following the steps needed to set them up for multiple selection.
    The context node selection property is set up as 0..n
    I also have the modify method set up with the method call
    CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode
        EXPORTING
          value = cl_wd_table=>e_selection_mode-MULTI_NO_LEAD.
    I also have the no lead selection option set so initially there is no entry selected
    I can select one entry without a problem.
    I can also select one entry and then if i use the shift button when selecting another record it will select all the records in between.
    However i cant pick numerous individual records at the same time.
    I try by selecting a record and the n using the control button to select a second record but it wont work.
    Any ideas what i am missing or what i am doing wrong.
    Any help is greatly appreciated.
    Regards
    Brian

    I tried the code listed above but it throws nothing but error messages
    The exact code i have in my modifyview method is as follows
    data lo_cmp_usage type ref to if_wd_component_usage.
    data lr_config TYPE REF TO cl_salv_wd_config_table.
    data lr_column TYPE REF TO cl_salv_wd_column.
    data lr_link TYPE REF TO cl_salv_wd_uie_link_to_action.
    data lr_column_settings type ref to if_salv_wd_column_settings.
    data lr_column_header type ref to cl_salv_wd_column_header.
    data lr_table_settings type ref to if_salv_wd_table_settings.
    data lr_columns type ref to cl_salv_columns_table.
    lo_cmp_usage =   wd_this->wd_cpuse_my_act_alv( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      lo_cmp_usage->create_component( ).
    endif.
    DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
    lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_my_act_alv( ).
      DATA lo_value TYPE ref to cl_salv_wd_config_table.
      lo_value = lo_interfacecontroller->get_model(
    CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode
        EXPORTING
          value = cl_wd_table=>e_selection_mode-MULTI_NO_LEAD.
    lo_value->if_salv_wd_std_functions~set_aggregation_allowed( abap_true ).
    lo_value->if_salv_wd_std_functions~set_group_aggregation_allowed( abap_true ).
    lr_column_settings ?= lo_value.
    lr_table_settings ?= lo_value.
    lr_column = lr_column_settings->get_column( 'ACTIVITY_NO' ).
    CREATE OBJECT lr_link.
    lr_link->set_text_fieldname( 'ACTIVITY_NO' ).
    lr_column->set_cell_editor( lr_link ).
    lr_column = lr_column_settings->get_column( 'ACTIVITY_DESCR' ).
    lr_column->set_width( '160' ).
    lr_column->delete_header( ).
    lr_column_header = lr_column->create_header( ).
    lr_column_header->set_text( ls_dashboard_display-ACTIVITY_DESCR ).
    More code to set up individual columns  *********************
    lr_table_settings->set_visible_row_count( -1 ).
    lr_table_settings->set_footer_visible( 0 ).
    endmethod.
    The code listed in the note looks completely different to what i currently have , i dont read any nodes when setting up the alv table . Am i putting the code in the wrong place?
    Edited by: Brian Ramsell on Nov 10, 2009 2:21 PM

  • Table of Contents Showing on Desktop, but not in iPad preview

    The table of contents was working just fine, meaning that it showed in both the work on the desktop and then when I sent a preview to the iPad.
    I'm not sure what I have done, but now, while the TOC shows on the desktop version, it doesn't show up in the iPad preview.
    Not sure where to start to solve this. Any help or tips would be great.

    Update: I don't know why, but it has started working again on its own. I suspect that shutting down everything and restarting helped, but I don't know for sure. I'm just glad it is working again! Peace.

  • Updating a view after modifying a table...

    Hello,
    Here is the scenario.
    I have a a table in HANA with 50+ columns of data.  I have created both Attribute and Analytical views of that data.  These views have been activated and deployed.  Now I need to modify my table to add two new columns that I will want to included in my existing Attribute and Analytical views.  How can I accomplish this?  It seems that when I modify my table, the views in HANA studio do not have the ability to be updated.  It seems I have to re-create my voews from scratch to now include my two new columns.  Hopefully I am missing something simple.
    Thanks in advance!

    Hi Matt, no way you need to recreate your views after a DDL change on the underlying tables.
    When the table structure changes, you usually need to close any information view editors on the model in question and then reopen the model for editing after the change, but otherwise should be fine. I have done this many times.
    What revision are you working on? Can you give the exact sequence of steps?
    Regards,
    Justin

  • SQVI - Join tables using similar fields (but not same)

    Hi folks!
    I would like to know if there is a way to do a join between two tables thru fields that are similar but not exactly the same. For example, I need to join tables EKKO and CDHDR, where the PO numbers do exist in both the tables (EKKO-EBELN and CDHDR-OBJECTID), but the fields are different. Is it possible to achieve such kind of a join?
    Appreciate your help.
    Regards,
    Anwar.

    >
    Mohammad Anwar wrote:
    though their data type is the same (CHAR).
    unfortunately it is not enough... You have to select separately from the two tables and merge the data somehow in the program.

  • Issue in Modifying custom table

    Hi Experts
    Program Y00_MM modifying custom table Y00_IFS074 using internal table.
    we have a sales company code field in table.
    Internal table company code value is 00021345 .
    But in custom table it updated as 21345. It should be 00021345.
    few days back no problem with table updation. Now only i'am getting this issue. There is no changes in Report.
    Kindly help me.

    Hi,
    Please use the below FM for the field BUKRS.
    FM : CONVERSION_EXIT_ALPHA_OUTPUT.
    This FM will add the leading zeros according to the field length.
    Hope this will resolve your problem...

  • How to modify  a table without  setting system to modifiable

    Hi All
    Is there a way to modify a table without setting the system to modifiable either in SCC4 or SE06.
    We locked SCC4 in our system , however one tables are not able to modify.
    table name YAUTM
    Is there a way to bypass this?
    Edited by: Shou Woon Wee on Jan 11, 2008 3:09 AM

    Hi Shou......
    if it gives you a message....."the client is not modifiable"/ ALIAS "table not modifiable"  ...then from a security perspective....you cant, and you might not want to bypass it!
    SCC4 settings are meant to be for that!  Contact your Basis team for this.
    The only way to bypass this is thru ....sending changes through a transport request.
    Curiosity: what environment are you trying this out ? cant be sandbox or DEV!
    Regards
    Abhishek

  • How to modify a table?

    hi
    i want to modify a table
    how do i write the command if i want to modify it according to the table's keys ????
    thanks

    Hi,
    To change a single line, use the following statement:
    MODIFY TABLE <itab> FROM <wa> [TRANSPORTING <f1> <f 2> ...].
    The work area <wa>, which must be compatible with the line type of the internal table, plays a double role in this statement. Not only it is used to find the line that you want to change, but it also contains the new contents. The system searches the internal table for the line whose table key corresponds to the key fields in <wa>.
    The system searches for the relevant lines as follows:
    Standard tables
    Linear search, where the runtime is in linear relation to the number of table entries. The first entry found is changed.
    Sorted tables
    Binary search, where the runtime is in logarithmic relation to the number of table entries. The first entry found is changed.
    Hashed tables
    The entry is found using the hash algorithm of the internal table. The runtime is independent of the number of table entries.
    To change one or more lines using a condition, use the following statement:
    MODIFY <itab> FROM <wa> TRANSPORTING <f1> <f 2> ... WHERE <cond>.
    This processes all of the lines that meet the logical condition <cond>. The logical condition can consist of more than one comparison. In each comparison, the first operand must be a component of the line structure. If the table lines are not structured, the first operand can also be the expression TABLE LINE. The comparison then applies to the entire line.
    Regards,
    Swapna.

  • How to modify a table column name

    Hi all,
    How to modify a table column name...
    Thanks

    could type the command here... but will not do that..because you are supposed to read the docs.
    You can find the command here..
    http://www.faqs.org/docs/ppbook/r22871.htm
    Regards,
    G.

  • Modify database table from internal table

    Hi All,
    I need to update database table from internal table which is having around 30000 records.
    I am using MODIFY tabname FROM TABLE int_tabname...
    Using this statement, I can modify the databse records very well. But user has some additional requirement.
    He wants that the table should be modified from the internal table and after modification we should have the erroneous records to be displayed if any.
    e.g. if 1500 records out of 30000 are erroneous then only 28500 records should be updated and 1500 records should be displayed as erroneous records so that the user can correct them and use them again for executing the program.
    Is there any FM which imports the database table name and internal table, modifies the database and exports an internal tanle with erroneous records?
    Any help will be appriciated,
    Regards,
    Neha

    Hi
    modifying datbase table useing internal table
    <b>advises</b> before updating this datbase table plz lock that table to avoid incosistency
    write the logic for modifying
    Modify the database table as per new dunning procedure
      MODIFY fkkvkp FROM TABLE lt_fkkvkp   .
    and finally unlock the table
    <b>example</b>
    *To lock table for further operations
      constants: lc_tabname TYPE  rstable-tabname  VALUE 'FKKVKP'  . "FKKVKP
      CALL FUNCTION 'ENQUEUE_E_TABLE'
        EXPORTING
          tabname        = lc_tabname
        EXCEPTIONS
          foreign_lock   = 1
          system_failure = 2
          OTHERS         = 3.
      IF sy-subrc EQ 0.
      To fetch all the contract accounts for customers of the segment
      Households/SME.
        PERFORM fetch_contract_accounts using lc_tabname .
      ENDIF.                    " IF sy-subrc EQ 0.
    *wrote the logic
    Modify the database table as per new dunning procedure from internal table
      MODIFY fkkvkp FROM TABLE lt_fkkvkp   .
    *unlock the tbale
      CALL FUNCTION 'DEQUEUE_E_TABLE'
       EXPORTING
         TABNAME   =  uc_tabname .
    <b>Reward if usefull</b>

  • Another User Modified the table

    Hi,
    I have a user defined form, which is bound to Master-Data UDO.
    I have matrices in the form which is bound to its child objects.
    Following problem happens once in a while:
    When I press update button, I get the error message 'Another User Modified the table'.
    This is not consistent, but happens once in a while.
    My SBO version is 2007.
    In what situations you will get the error - "Another User Modified the table" ?
    Please help me with this.
    I'll appreciate your help.
    Thanks.
    -Geetha

    Hi Mahendra,
    Thanks for your reply.
    In my case, I take back-up of the database from client site and bringing into our in-house.
    If clients complained about record# 25, then the same record# has the 'Another user' issue in in-house also. (By record# I mean the Master UDO DocEntry#).
    So, I think the locking is stored in the database, rather than in a PC specific place.
    Please tell me any ideas you get in this angle.
    Regards,
    Geetha

  • Problem in modifying a table through modify statement

    Hi,
    I am trying to update a 'Z' table in which there are 5 fields comprising of primary key. Out of them 2 key fields are defined as a part of seconadry index with 'Unique' option selected.
    As per the requirement, I am trying to update the table using modify statement so whenever this statement occurs it will check the primary keys and accordingly try to modify a record or insert a new record.
    But as there is Unique Index defined on 2 of the key fields the Modify query is

    Hi,
    Your syntax for MODIFY is not correct.
    As other friends suggested you can have index and you can modify the internal table.
    Whenever we are modifying internal table inside LOOP, we can omit index as system will take current row by default. So MODIFY statement should be written as follows:
    MODIFY T_ITPO5 from W_ITPO5 transporting AUFNR
    You can LOOP FROM INDEX also for the same to improve performance.
    data: wv_index like sy-tabix.
    sort T_ITPO5 by aufnr.
    sort T_ITPO4 by aufnr.
    wv_index = 1.
    LOOP AT T_ITPO5 INTO W_ITPO5.
         LOOP AT T_ITPO4 INTO W_ITPO4 from wv_index.
         if W_ITPO4-aufnr eq W_ITPO5-aufnr.
              IF ITPO4-NTGEW 0 .
                  CALL FUNCTION 'ZGET_ITEM_WEIGHT'
                    EXPORTING
                       P_BUID = W_ITPO4-WERKS
                       P_ITEMID = W_ITPO4-MATNR
                       P_QTY = 1
                       P_UOM = W_ITPO4-MEINS
                       P_UOM1 = 'KG'
                   IMPORTING
                      P_RETVAL = W_ITPO4-WTKG.
    TOTWT1 = W_ITPO4-WTKG * W_ITPO4-MENGE.
    IF W_ITPO4-BWART = '261'.
    W_ITPO5-I_QTY = W_ITPO5-I_QTY + TOTWT1.
    ELSEIF W_ITPO4-BWART = '101' OR W_ITPO4-BWART = '531'.
    W_ITPO5-I_QTY = W_ITPO5-I_QTY - TOTWT1.
    ENDIF.                    " IF W_ITPO4-BWART = '261'.
    endif.
    elseif W_ITPO4-aufnr gt W_ITPO5-aufnr.
       move sy-tabix to wv_index.
       exit.
    endif.                      " if W_ITPO4-aufnr eq W_ITPO5-aufnr.
    ENDLOOP.
    MODIFY T_ITPO5 FROM W_ITPO5 transporting aufnr.
    ENDLOOP.

  • Transaction to modify a table

    Hi,
    What is the transaction to modify a table  (oracle) ?
    Thanks in advance

    Dear Jean,
    Sometime,Changes to the Table data without analyzing its data dependency may lead to Data Inconsistency. So, be careful.
    Changes to the production system always require comprehensible documentation.
    If you are changing your Table Data using SE16N, the accompanying changes are logged as well as the responsible users are logged. The data changes are stored in the table SE16N_CD_DATA. And The responsible user is listed in the table SE16N_CD_KEY, together with the modification date and time.
    Regards,
    Bhavik G. Shroff

  • How to modify the table control?

    Hi all,
    How to modify the table control after setting the lines  = 1. ie tbl_ctr-lines = 1.(tbl_ctr is the table control).
    Can anyone explain this with an example?
    Thanks.

    hi
    http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
    Regards
    pavan

  • Using module pool pgm, Con't modify the table field valus

    Hello frnds,
    i m create one rpt using module pool pgm, click display button display the table values .
    Iwant to modify some fields that changes is update to table.
    Bellow coding is correct or not, how can modify the fields with save changes.
    TABLES : ZRFIM1.
    DATA: ZREPNO TYPE ZRFIM1-ZREPNO,
    ZPLANT TYPE ZRFIM1-ZPLANT,
    ZRIMNO TYPE ZRFIM1-ZRIMNO,
    ZRIMDAT TYPE ZRFIM1-ZRIMDAT,
    DISPLAY TYPE C,
    CLEAR TYPE C,
    EXIT TYPE C,
    SAVE TYPE C,
    OK_CODE LIKE SY-UCOMM.
    data : itab type table of zrfim1 with default key.
    data : wa_itab type zrfim1.
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    text
    SET PF-STATUS 'SAVE'.
    AT USER-COMMAND.
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE PROGRAM.
    WHEN 'DISPLAY'.
    SELECT SINGLE ZREPNO ZPLANT ZRIMNO ZRIMDAT FROM ZRFIM1
    INTO (ZRFIM1-ZREPNO, ZRFIM1-ZPLANT, ZRFIM1-ZRIMNO, ZRFIM1-ZRIMDAT)
    WHERE ZREPNO = ZRFIM1-ZREPNO.
    WHEN 'CLEAR'.
    CLEAR ZRFIM1.
    WHEN 'SAVE'.
    select single * from zrfim1 into wa_itab where ZREPNO = ZRFIM1-ZREPNO.
    wa_itab-zrepno = ZREPNO.
    wa_itab-zplant = ZPLANT.
    wa_itab-zrimno = ZRIMNO.
    wa_itab-zrimdat = ZRIMDAT.
    modify zrfim1 from wa_itab.
    ENDCASE.
    endmodule.
    Thanks in advance.

    hello,
    change the code like:
    (IF ZRFIM1 is the structure has been used on screen)
    wa_itab-zrepno = ZRFIM1-ZREPNO.
    wa_itab-zplant = ZRFIM1-ZPLANT.
    wa_itab-zrimno = ZRFIM1-ZRIMNO.
    wa_itab-zrimdat = ZRFIM1-ZRIMDAT.
    modify zrfim1 from wa_itab.
    thanks
    K.

Maybe you are looking for

  • Windows update error: Code 80072F8F

    CODE 800A1391       80072F8F

  • HT203433 ITunes not automatically downloading Episodes

    Heres the short version: I bought Continuum Season 2 "Pass" for like 34.99 USD The 2nd Episode when it was available; since I got the email; upon turning on computer, launching Itunes; and signing into my acct; it didnt auto download that episode.  E

  • What do I need to do (if anything) to continue to receive my E-Mail?

    I loaded Firefox yesterday and so far haven't received any E-Mails. Do I need to change anything to receive E-mail. That is, does it make any difference that I had I.E. before?

  • Soundtrack 1.2 Won't Open

    Help. I have Soundtrack 1.2, and at open the registration card comes up, then a message saying "coreFoundationUnkown.Err" comes up with an endlessly spinning beachball. The only way to quit out of it then is to force quit. I've cleared .plst, run fix

  • Parallels Desktop 9 for Mac

    I just purchased Parallels and when I open my Windows, there was a notice to install an AntiVirus program. After doing some reading on the Net and calling Parallels Customer Support, what I read and what the Cust Support recommended was that I should