Modify POC in table EVPOC

hi, I need to update the POC values in table EVPOC. Is there a BAPI or function to do this? I don't wanna use SQL directly to the table.
Thanks.
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Feb 23, 2011 11:47 AM

Hi,
Try Thi Function Module
CNEV_03_POC_EVPOC_TO_COSR.

Similar Messages

  • Regarding the modify of internal table

    do 40 times varying lga from p0008-lga01 next p0008-lga02
    varying bet from p0008-bet01 next p0008-bet02.
    *data: bet01 type p decimals 2.
    if lga is initial.
    exit.
    endif.
    INDEX = SY-INDEX.
    amt1 = bet .
    *bet01 = 20 / 100.
    bet = ( bet * 50 ) / 100 .
    CONCATENATE ch INDEX INTO BETXX.
    assign betxx to <F2>.
    assign (betxx)  to <F1>.
    <F2> = bet.
    <u>modify p0008 index INDEX transporting F1</u>
    write:/ <F2>.
    enddo.
    *endif.
    ENDCASE.
    endform.
    can sombody tell me how to modify the p0008 table at the place vr im having the bet01 bet02 and so on fields.
    vn im using this modify statement im getting an error as
    Unable to interpret "INDEX". Possible causes of error: Incorrect

    Hi Madhvi,
    When you are posting a thread, please make sure others do not find it difficult to understand. Please don't use abbreviations like "vr" and "vn".
    If you need prompt responses, please ensure you describe your requirements in
    a proper manner.
    You are getting error because of using wrong syntax. the correct syntax is -
    MODIFY <itab> FROM <wa> [INDEX <idx>] [TRANSPORTING <f1> <f 2> ... ].
    The work area <wa> specified in the FROM addition replaces the existing line in <itab>. The work area must be convertible into the line type of the internal table.
    If you use the INDEX option, the contents of the work area overwrites the contents of the line with index <idx>. If the operation is successful, SY-SUBRC is set to 0. If the internal table contains fewer lines than <idx>, no line is changed and SY-SUBRC is set to 4.
    Without the INDEX addition, you can only use the above statement within a LOOP. In this case, you change the current loop line <idx> is implicitly set to SY-TABIX.
    When you change lines in sorted tables, remember that you must not change the contents of key fields, and that a runtime error occurs if you try to replace the contents of a key field with another value. However, you can assign the same value.
    The TRANSPORTING addition allows you to specify the fields that you want to change explicitly in a list.
    Regards
    Indrajit.

  • "CX_SY_OPEN_SQL_DB" ERROR  when modifying a custom table

    Dear friends,
    I get this runtime error "DBIF_RSQL_SQL_ERROR"
    "CX_SY_OPEN_SQL_DB" excpetion raised while am trying to modify a custome table . says deadlock detected while waiting for resourcebelow is the code snippet please suggest solution on how to avoid the error. thanks for the help in advance.
    kathy
    *Get all packspec levels
      lt_levels                            =  iv_packspec_content-levels.
      loop at lt_levels into ls_levels.
        if ls_levels-hutyp is not initial.
          ls_zpackspec-guid                =  ls_levels-guid.
          ls_zpackspec-aennr               =  ls_levels-aennr.
          ls_zpackspec-total_quan          =  ls_levels-total_quan.
          ls_zpackspec-level_type          =  ls_levels-level_type.
          ls_zpackspec-/cfscmx/nest_fc     =  ls_levels-/cfscmx/nest_fc.
          ls_zpackspec-maxstack            =  ls_levels-maxstack.
          ls_zpackspec-unit_tw             =  ls_levels-unit_tw.
          ls_zpackspec-g_weight            =  ls_levels-g_weight.
          ls_zpackspec-unit_tv             =  ls_levels-unit_tv.
          ls_zpackspec-g_volume            =  ls_levels-g_volume.
          ls_zpackspec-trgqty              =  ls_levels-trgqty.
          ls_zpackspec-flg_minimum_ps      =  ls_levels-flg_minimum_ps.
          ls_zpackspec-creadat             =  sy-datum.
          ls_zpackspec-matid               =  iv_packspec_content-content-matid.
          ls_zpackspec-hu_create           =  ls_levels-hu_create.
          ls_zpackspec-unit_gw             =  ls_levels-unit_gw.
          ls_zpackspec-g_capa              =  ls_levels-g_capa.
          ls_zpackspec-unit_gv             =  ls_levels-unit_gv.
          ls_zpackspec-hutyp               =  ls_levels-hutyp.
          ls_zpackspec-block               =  ls_levels-block.
          ls_zpackspec-length              =  ls_levels-length.
          ls_zpackspec-width               =  ls_levels-width.
          ls_zpackspec-height              =  ls_levels-height.
          ls_zpackspec-unit_lwh            =  ls_levels-unit_lwh.
          ls_zpackspec-nest_ftr            =  ls_levels-nest_ftr.
          if not ls_elementgroup is initial.
            sort ls_elementgroup by guid.
            read table ls_elementgroup assigning <ps_el_group>
                                        with key guid = ls_levels-elementgroup
                                   binary search.
            if <ps_el_group> is assigned.
              ls_elemgroup = <ps_el_group>-elements.
            endif.
            sort ls_elemgroup by hurelevant.
            read table ls_elemgroup assigning <ps_elem>
                                     with key hurelevant = 1
                                binary search.
            if sy-subrc eq 0.
              ls_zpackspec-hurelevant      =  <ps_elem>-hurelevant.
            endif.
          endif.
          append ls_zpackspec  to  lt_zpackspec.
          clear  ls_zpackspec.
        endif.
      endloop.
    **Update Packspec data for each level in the table ZPACKSPEC.*
      *if not lt_zpackspec is initial.*
        *modify zpackspec from table lt_zpackspec.*
        *ev_zpackspec  =   lt_zpackspec.*
      *endif.*

    Kathy - do you have duplicate entries for the same key fields in the internal table you are using for the update?
    Rob

  • Modify fields of table EKPV and table EKET in ME21n/ME22n

    Hi Everyone,
    I have a problem that I think you resolved in past thread. I implemented the note 303453 because I need to modify values of table EKPV (fields LEDAT and PLIFZ) and values in table EKET (field EINDT), but I can not modify this fields, I put any value into this fields and SAP always change this value for other value. I dont know what more to do.
    Please, could you tell me what have you done? I'm sending to you my code, I hope you can help me with this. In the next example I'm trying to change the fields to date '10.10.2010' as an example, but SAP always replace them with the date of today.
    Program LV50NF01
    form ZZ_SHIPPING_DATA_DETERMINE.
      fekpv-ledat = '20101010'.
      fekpv-plifz = '10'.
    endform.
    User-Exit EXIT_SAPMM06E_013
    DATA: F2(50) VALUE '(SAPLMEPO)ETT[]'.
    DATA: I_WA_XEKET TYPE BEKET.
    FIELD-SYMBOLS: <FS12> TYPE TABLE,
                   <FS22> TYPE ANY.
    ASSIGN (F2) TO <FS12>.
      LOOP AT <FS12> INTO I_WA_XEKET.
        I_WA_XEKET-EINDT = '20101010'.
        I_WA_XEKET-SLFDT = '20101010'.
        MODIFY <FS12> FROM I_WA_XEKET.
      ENDLOOP.
    Regards
    Carlos C.

    I've tried in the user-exit EXIT_SAPMM06E_013, as my example said, but I dont have any result.
    Please, anyone else can help me.
    Regards
    Carlos C.

  • What are the methods to modify SAP standard tables?

    hi
    what are the methods to modify SAP standard tables?

    .APPEND structures AND CUSTOMIZING INCLUDES.
    these are the two methods.. but customizing includes we, as a developers do not use.
    generally we use .APPEND structures to modify standard tables.
    note that we need an access key to modify atandard tables.
    we can create an apend structure and add that structure to the standard table at the end.
    note that .append structures should only be added only at the end.
    that is the reason we use .append structures to modify standard tables.as we should not include a field in the middle and disturb the original order of the standard table fields as it may effect many objects depending on the standard table.
    but Some standard tables for which there is a LONG datatype field can never be modified.
    the reason is the LONG datatype field should always be there at the end and also .APPEND strutures should always be there at the end. there will be a conflict. so, some standard tables can not be appended.

  • Modify borders in tables

    How do I modify borders in tables? It doesn't show up in the properties manager. I have version CS4 for Mac.

    wilmabrown2000 wrote:
    How do I modify borders in tables? It doesn't show up in the properties manager. I have version CS4 for Mac.
    Use css:
    Give your table a class:
    <table class="myTableBorder" cellspacing="0" cellpadding="0">
    Css selector (insert into your linked css stylesheet or into the <head></head> section of your pages code:
    .myTableBorder {
    border: 1px solid #ccc;
    or apply it to the table <td> cell
    .myTableCellBorder {
    border: 2px solid red;
    <td class="myTableCellBorder">
    if you decided to put the css selector in the <head></head> section of your pages code then use <style>  </style> tags wrapped around the selector

  • Modify an database table

    hi ,
    can we use modify command in database table .(not update command)
    if yes means how to use it . give syntax ..
    i want to modify the database table based on internal table i.e
    how to do this .
    Regards,
    kumar

    Hello Kumar,
    Always use MODIFY command rather than using INSERT or UPDATE.
    When u r using MODIFY command and u can able to update a record and insert a record inside the table.
    MODIFY - Change a database table
    Variants:
    1. MODIFY dbtab. or
    MODIFY *dbtab. or
    MODIFY (dbtabname) ... ..
    2. MODIFY dbtab FROM TABLE itab. or
    MODIFY (dbtabname) FROM TABLE itab.
    3. MODIFY dbtab VERSION vers. or
    MODIFY *dbtab VERSION vers.
    Effect
    Inserts new lines or updates existing lines in a database table (s. relational database). If a line with the specified primary key already exists, an UPDATE is executed. Otherwise, an INSERT is performed. You can specify the name of the database table either in the program itself in the form MODIFY dbtab ... or at runtime as the contents of the field dbtabname in the form MODIFY (dbtabname) ... . In both cases, the database table must be defined in the ABAP Dictionary. Normally, records are inserted or updated only in the current client. Data can only be inserted or updated using a view, if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction".
    MODIFY belongs to the Open SQL command set.
    When the statement has been executed, the system field SY-DBCNT contains the number of edited lines.
    The return code is set as follows:
    SY-SUBRC = 0:
    All lines were successfully inserted or updated.
    SY-SUBRC = 4:
    One or more lines could not be inserted or updated.
    Notes
    You cannot modify a line if there is already a line in the table with identical key field values in a UNIQUE index.
    Automatic definition of INSERT and UPDATE is expensive. You should therefore use MODIFY only if you cannot define the INSERT and UPDATE cases yourself in the program.
    Since the MODIFY statement does not perform authority checks, you have to program them yourself.
    Adding or changing lines with the MODIFY command is only completed after a database commit (see LUW) has been performed. Before the database commit has been performed, any database changes can be reversed with a database rollback (see Programming transactions).
    Synchronization of simultanous accesses by several users to the same set of data cannot be guaranteed exclusively with the lock mechanism of the database system. In several cases, you are recommended to use the SAP lock mechanism.
    Variant 1
    MODIFY dbtab. or
    MODIFY *dbtab. or
    MODIFY (dbtabname) ... .
    Additions:
    1. ... FROM wa
    2. ... CLIENT SPECIFIED
    See Short forms not allowed and * work areas not allowed.
    Effect
    Inserts a new line or updates an existing line in a database table. If you specify the name of the database table yourself, the primary key for identifying the line to be inserted or updated and the relevant values are taken from the table work area dbtab or *dbtab (see TABLES). If you specify the name of the database table directly, the program must contain a corresponding TABLES statement. If the name of the database table is not determined until runtime, you need to use the addition ... FROM wa.
    Example
    Insert or change data of the customer Robinson in the current client:
    TABLES SCUSTOM.
    SCUSTOM-ID        = '12400177'.
    SCUSTOM-NAME      = 'Robinson'.
    SCUSTOM-POSTCODE  = '69542'.
    SCUSTOM-CITY      = 'Heidelberg'.
    SCUSTOM-CUSTTYPE  = 'P'.
    SCUSTOM-DISCOUNT  = '003'.
    SCUSTOM-TELEPHONE = '06201/44889'.
    MODIFY SCUSTOM.
    Addition 1
    ... FROM wa
    Effect
    The values for the line to be inserted or updated are not taken from the table work area dbtab, but from the explicitly specified work area wa. When doing this, the data is read from left to right according to the structure of the table work area dbtab (see TABLES). Since the structure of wa is not taken into account, the work area wa must be at least as wide (see DATA) as the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the table work area. Otherwise, a runtime error occurs.
    Note
    If a work area is not explicitly specified, the values for the line to be inserted or updated are also taken from the table work area dbtab if the statement is in a FORM or FUNCTION where the table work area is stored in a formal parameter or local variable of the same name.
    Addition 2
    ... CLIENT SPECIFIED
    Effect
    Switches off automatic client handling. This allows you to edit data across all clients even when dealing with client-specific tables. The client field is treated like a normal table field that can be programmed to accept values in the table work area dbtab or *dbtab where the line to be edited occurs.
    The addition CLIENT SPECIFIED must be specified immediately after the name of the database table.
    Variant 2
    MODIFY dbtab FROM TABLE itab.or MODIFY (dbtabname) FROM TABLE itab.
    Addition:
    ... CLIENT SPECIFIED
    Effect
    Mass modify: Inserts new lines or updates existing lines of a database table. The primary keys for identifying the lines to be inserted or updated and the relevant values are taken from the internal table itab. The lines of the internal table itab must satisfy the same conditions as the work area wa in addition 1 to variant 1.
    Note
    If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0.
    Addition
    ... CLIENT SPECIFIED
    Effect
    As for variant 1.
    Variant 3
    MODIFY dbtab VERSION vers. or MODIFY *dbtab VERSION vers.
    This variant is not allowed in an ABAP Objects context. See VERSION addition not allowed.
    Note
    This variant is obsolete.
    Effect
    Inserts a new line or updates an existing line in a database table, the name of which is taken from the field vers at runtime. If no line exists with the specified primary key, an INSERT is executed. Otherwise, an UPDATE is performed. The database table must be defined in the ABAP/4 Dictionary and its name must conform to the naming conventions for R/2 ATAB tables. These stipulate that the name must begin with 'T' and may contain up to four further characters. The field vers must contain the table name without the leading 'T'. Only lines in the current client are inserted or updated. The line to be inserted is taken from the statically specified table work area dbtab or *dbtab.
    SY-SUBRC is set to 0 if the line is successfully inserted or updated. SY-SUBRC <> 0 is not possible since any other result causes a runtime error.
    Additional help
    Inserting or Changing Table Records
    If useful reward.
    Vasanth

  • How to update view  without modifying the base table ?

    Hi Experts , I need help in two qurstions
    1. How to update a view without modifying the base table ?
    2. How to write a file unix operating system in pl/sql ? is there any built in procedure is there ?
    Thank you

    Hi,
    I'm not sure what you're asking in either question. It would help if you gave a specific example of what you want to do.
    SowmyRaj wrote:
    Hi Experts , I need help in two qurstions
    1. How to update a view without modifying the base table ?You can't.
    Views don't contain any data; they just query base tables.
    You can change the definition of a view (CREATE OR REPLACE VIEW ...) so that it appears that the base table(s) have changed; that won't change the base tables.
    2. How to write a file unix operating system in pl/sql ? is there any built in procedure is there ?The package utl_file has routines for working with files.

  • How to modify the standard table

    plzzzzz answer my qestion.
    how to modify the standard table?
    in my knowedge we have the accese key is it correct or worng

    Hi
    <b>The system asks for access key only of two reasons:</b>
    1) You may be having problem of access rights. You would have to contact basis peopl.
    2) You may try to name an object not complying with the rules. You may have to check with the same.
    the process of getting access key is
    <b>the steps to get access key</b>
    you can also try via transaction OSS1
    In your Inbox, click on 'Registration', then on 'Register Objects', then you will have to choose your installation and give details about your object.
    The details you can get by going to your object and clicking on 'Change' - the pop-up screen which asks you for the access key gives you all the details you need to fill in on OSS1 to get your key.
    <b>or</b>
    U can get Access key from www.service.sap.com
    After getting into the site,select quicklinks, then click s to goto SSCR, in
    that select registration,
    after giving the proper details, u can get the access key
    <b>or</b>
    on sap support portal (sapnet)
    --> key & request
    ---> register SSCR key
    ---> registration
    ---> register developper
    and then choose your rigth installation number
    you can get the access key in this way
    <b>reward if usefull</b>

  • Modify the partition table

    Hi,
    Please let me know how to modify the partition table of the disk on to which root is mounted. I want to extend the root space, by modifying the partition table.
    Is there any other way of extending the root disk space?
    Thanks in Advance
    - Sarat.

    Take backup, re-partition, newfs, restore (you are talking about simple root, no mirroring/veritas, right?)

  • Modify dynamic internal table from dynamic work area using index...

    ASSIGN w_text TO <fs>.
        ASSIGN w_temp TO <fs1>.
        lint_tab_iw49[] = <tab>.
        lint_tab_iw49_t[] = <tab>.
        DELETE ADJACENT DUPLICATES FROM lint_tab_iw49 COMPARING aufnr.
        LOOP AT lint_tab_iw49 INTO lws_tab_iw49.
          READ TABLE lint_object_tab1 INTO lws_object_tab1
                        WITH KEY aufnr = lws_tab_iw49-aufnr.
          IF sy-subrc EQ 0.
    Collect operations in rows of an internal table.
            w_idx = 1.
            WHILE w_idx < 51.
              w_nn = w_idx.
              CONCATENATE 'lws_object_tab1-ZZOPERN' w_nn INTO w_xx.
              ASSIGN (w_xx) TO <fs>.
              CONCATENATE w_text <fs> INTO w_text SEPARATED BY ','.
              w_idx = w_idx + 1.
            ENDWHILE.
    Split operations into an internal table to get operations in rows.
            SPLIT w_text AT ',' INTO TABLE lint_vornr.
            DELETE lint_vornr WHERE vornr = ' '.
            DESCRIBE TABLE lint_vornr LINES w_lines.
    Collect costs in rows of an internal table
            CLEAR: w_idx, w_nn, w_xx, w_text.
            w_idx = 1.
            WHILE w_idx < 51.
              w_nn = w_idx.
              CONCATENATE 'lws_object_tab1-ZZCOST' w_nn INTO w_xx.
              ASSIGN (w_xx) TO <fs>.
              <fs1> = <fs>.
              CONCATENATE w_text <fs1> INTO w_text SEPARATED BY ','.
              w_idx = w_idx + 1.
            ENDWHILE.
    Split costs into an internal table to get costs in rows.
            SPLIT w_text AT ',' INTO TABLE lint_escost.
            DELETE lint_escost WHERE cost = ' '.
            DESCRIBE TABLE lint_escost LINES w_lines_cost.
           Append lines of lint_escost from 1 to w_lines to lint_escost1.
    Collect currencies in rows of an internal table
            CLEAR: w_idx, w_nn, w_xx, w_text.
            w_idx = 1.
            WHILE w_idx < 51.
              w_nn = w_idx.
              CONCATENATE 'lws_object_tab1-ZZCURR' w_nn INTO w_xx.
              ASSIGN (w_xx) TO <fs>.
              <fs1> = <fs>.
              CONCATENATE w_text <fs1> INTO w_text SEPARATED BY ','.
              w_idx = w_idx + 1.
            ENDWHILE.
    Split costs into an internal table to get costs in rows.
            SPLIT w_text AT ',' INTO TABLE lint_curr.
            DELETE lint_curr WHERE curr = ' '.
            DESCRIBE TABLE lint_curr LINES w_lines_curr.
           Append lines of lint_curr from 1 to w_lines to lint_curr1.
          ENDIF.
          PERFORM update_object_tab_for_iw49n.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " modify_object_tab
    *&      Form  update_object_tab_for_IW49N
          text
    -->  p1        text
    <--  p2        text
    FORM update_object_tab_for_iw49n .
      DATA: lws_temp TYPE string VALUE 'where aufnr = lws_tab_iw49-aufnr',
            lw_index TYPE sy-index.
      READ TABLE <tab> TRANSPORTING NO FIELDS WITH KEY ('AUFNR') =
      lws_tab_iw49-aufnr.
      IF sy-subrc EQ 0.
        lw_index = sy-tabix.
        LOOP AT <tab> INTO <wa1> FROM lw_index.
          IF <wa1>-aufnr NE lws_tab_iw49-aufnr.
            EXIT.
          ELSE.
            CLEAR lw_index.
           lw_index = sy-tabix.
            lw_index = 1.
            WHILE lw_index LE w_lines.
              READ TABLE lint_escost INTO lws_escost INDEX lw_index.
              IF sy-subrc EQ 0.
             lw_index = lw_index + 1.
                <wa1>-zzcost1 = lws_escost-cost.
              ENDIF.
              READ TABLE lint_curr1 INTO lws_curr INDEX lw_index.
              IF sy-subrc EQ 0.
                <wa1>-zzcurr1 = lws_curr-curr.
              ENDIF.
              MODIFY <tab> FROM <wa1> "TRANSPORTING ('ZZCOST1') ('ZZCURR1')
                        INDEX sy-tabix.
              IF sy-subrc EQ 0.
              ENDIF.
              lw_index = lw_index + 1.
            ENDWHILE.
          ENDIF.
        ENDLOOP.
      ENDIF. 
    ENDFORM.                    " update_object
    Hi,
    With referene to the code snippet above I want to modify <tab> from <wa1> on specific indices or with specific where condition.
    Is it achievable... How?
    Many thanks in advance.
    Thanks & Regards,
    Shreya

    You might have to split the code in to two parts to keep the formatting intact.

  • How to modify changes of table control data in PAI

    I have a table control where the columns are brought by dict fields.I am able to bring data into table control through an itab.
    Now what i want is whenever user edits data in table control and clicks on save button the corresponding changes should be made in database.
    For this according to my understanding we need to (in PAI) modify the changes in itab from the table control and then in SY-UCOMM of SAVE button we need to update in database table using itab.
    For this , I am not able to write code for modifying the changes in itab from table control. Here is my code below.Please tell me how to do this.
    PROCESS BEFORE OUTPUT.
    MODULE FILL_DATA.
    LOOP AT ITAB INTO ZEMPLOYEE_MASTER WITH CONTROL EMPTABLE CURSOR
    EMPTABLE-CURRENT_LINE.
    ENDLOOP.
    MODULE STATUS_0001.
    PROCESS AFTER INPUT.
    LOOP AT ITAB.
       MODULE MODIFY_ITAB.
    ENDLOOP.
    MODULE USER_COMMAND_0001.
    REPORT  ZDATA_FORM1.
    TABLES: ZEMPLOYEE_MASTER.
    CONTROLS EMPTABLE TYPE TABLEVIEW USING SCREEN 0001.
    data: begin of itab occurs 0,
           emp_no like zemployee_master-emp_no,
           name like zemployee_master-name,
           city like zemployee_master-city,
          end of itab,
          rowno TYPE I VALUE 1.
    *&      Module  STATUS_0001  OUTPUT
    *       text
    MODULE STATUS_0001 OUTPUT.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0001  OUTPUT
    *&      Module  USER_COMMAND_0001  INPUT
    *       text
    MODULE USER_COMMAND_0001 INPUT.
      MESSAGE 'Inside INPUT' TYPE 'I'.
    CASE SY-UCOMM.
       WHEN 'SAVE'.
         UPDATE zemployee_master.
       WHEN 'EXIT'.
         LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0001  INPUT
    *&      Module  fill_data  OUTPUT
    *       text
    MODULE fill_data OUTPUT.
      select emp_no name city from zemployee_master into TABLE itab ORDER BY emp_no.
      Describe table itab lines EMPTABLE-LINES.
    ENDMODULE.                 " fill_data  OUTPUT
    *&      Module  modify_itab  INPUT
    *       text
    MODULE modify_itab INPUT.
    * MODIFY itab from zemployee_master index
    * MESSAGE 'Inside modify_itab' TYPE 'I'.
    ENDMODULE.                 " modify_itab  INPUT

    Hi
    In the following module of your code
    MODULE modify_itab INPUT.
    MODIFY itab from zemployee_master index tc-current_line " Where TC is the name of the Table control on the Screen
    ENDMODULE.
    Table control data gets refreshed on *enter*
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2165e990-0201-0010-5cbb-b5c2ad436140
    Cheerz
    Ramchander Rao.K

  • Regarding the modifying an internal table

    hi,
       i am having an internal table,i have to modify one field and the remaining fields should remain same in the internal table while displaying the internal table.
       can any body send the solution for this issue.
    thanks in advance

    hi,
    you can see the following logic regarding modify statement with in loop or without loop.
    DATA : BEGIN OF itab OCCURS 0,
           no(10) TYPE n,
           name(10) TYPE c,
           city(20) TYPE c,
           END OF itab.
    itab-no = 001.
    itab-name = 'vijay'.
    itab-city = 'dharmavaram'.
    APPEND itab.
    itab-no = 002.
    itab-name = 'krishna'.
    itab-city = 'dharmavaram'.
    APPEND itab.
    itab-no = 003.
    itab-name = 'vijay'.
    itab-city = 'dharmavaram'.
    APPEND itab.
    itab-name = 'ram1'.
    MODIFY itab INDEX 3 TRANSPORTING name.
    LOOP AT itab.
      IF sy-tabix = 2.
        itab-no = '0012'.
        itab-name = 'krishna.v'.
        MODIFY itab INDEX 2 TRANSPORTING no name.
        CLEAR itab.
      ENDIF.
    ENDLOOP.
    LOOP AT itab.
      WRITE :/ itab-no,itab-name,itab-city.
    ENDLOOP.
    Hope this example will be usage for you.
    Reward with points if it is useful.
    Regards,
    Vijay

  • How to modify data in table control

    hi
    i have created table control where i have displayed  data into table control
    logic used
    screen 200
    PROCESS BEFORE OUTPUT.
    MODULE SELECT_RECORD.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TBC_200'
      MODULE TBC_200_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.
      LOOP AT   IT_MARA
           INTO WA_MARA
           WITH CONTROL TBC_200
           CURSOR TBC_200-CURRENT_LINE.
        MODULE TBC_200_GET_LINES.
    *&SPWIZARD:   MODULE TBC_200_CHANGE_FIELD_ATTR
      ENDLOOP.
    MODULE STATUS_0200.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TBC_200'
      LOOP AT IT_MARA.
        CHAIN.
          FIELD WA_MARA-MATNR.
          FIELD WA_MARA-ERSDA.
          FIELD WA_MARA-ERNAM.
          MODULE TBC_200_MODIFY ON CHAIN-REQUEST.
        ENDCHAIN.
        FIELD WA_MARA-MARK
          MODULE TBC_200_MARK ON REQUEST.
      ENDLOOP.
      MODULE TBC_200_USER_COMMAND.
    *&SPWIZARD: MODULE TBC_200_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.
    module -
    MODULE SELECT_RECORD.
    MODULE SELECT_RECORD OUTPUT.
    SELECT MATNR ERSDA ERNAM
            FROM MARA
            INTO CORRESPONDING FIELDS OF TABLE it_mara.
    ENDMODULE.                 " SELECT_RECORD  OUTPUT
    and
    another thing
    i have made  field  MARA-ERSDA. and  FIELD WA_MARA-ERNAM editable by
    input possible using layout
    so
    now those 2 fields contents  are editable
    i want to know how to edit and save the data
    some body guide.
    and i want to put the lock so that i can update
    can tell how to implement lock.
    Thanks
    Edited by: viju bangalore on Jan 27, 2011 10:40 AM

    Hi Viju,
    In PAI do something like this
    LOOP AT itab.
        MODULE mod_table_control.
    ENDLOOP.
    MODULE user_command_0100.
    at module mod_table_control put this
    MODULE mod_table_control INPUT.
      MODIFY itab FROM demo_conn INDEX flights-current_line.
      if sy-subrc ne 0.
           insert itab.
      endif.
    ENDMODULE.
    for saving you can create at custom gui status with a save button, and at MODULE user_command_0100 save the data.

  • How to MODIFY A CUSTOM TABLE  FROM A FLAT FILE

    Dear Friends,
                     I have a requirement where i have to upload data from excel file to my custom table  so i have used a FM
    'TEXT_CONVERT_XLS_TO_SAP' and i have collected data into a internal table , till here i am able to get data correctly , now i hae to upload this data into a custom table .
    the flat file is having  6 fields and the custom table is having
    8 fields , for uploading the data into this custom table from the internal table where i have collected above iam getting problem . Actually iam using a modify statement to update the custom table .
    the flat file which i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       Raja      4/12/2007  Delhi      Manager      HR
      102       James    4/12/2007  Delhi      Clerk          HR
    Custom table  is having the below fields
    IDNO.  Name  Date  Location Designation  Dept   Manager
    101                                                                   Raja
    now when i run the program iam getting the problem   while usign the modify statment is the ID no which is already having
    a record as  IDno = 101  and manger = Raja.......with the other fields   name , date, location,designation and dept as blank.
    if i want to fill this fields from my flat file the modify statment
    just filling all the fields  for the ID no = 101  and manager field which already having Raja as being overwritten by space .....
    becasue this field is not being there in the flat file.
    the code iam using as follows.
    The flat file is having with the below structure
    TYPES: BEGIN OF t_emp_data,
              IDNO(11) TYPE c,
             Name(13) TYPE c,
             Date(20) TYPE c,
              Location (40) TYPE c,
             Designation(40) TYPE c,
             Dept(40) TYPE c,
             end of t_emp_data.
    The Custom Table(ZEMP_DATA) is having with the below structure
    TYPES: BEGIN OF t_emp_data_table,
              IDNO(11) TYPE c,
             Name(13) TYPE c,
             Date(20) TYPE c,
              Location (40) TYPE c,
             Designation(40) TYPE c,
             Dept(40) TYPE c,
             Manager(20) type c,  -- this is the extra field in table
             end of t_emp_data_table.
    data :
    it_empdata TYPE STANDARD TABLE OF t_emp_data,
    it_empdata_tmp TYPE STANDARD TABLE OF t_empdata_tmp,
    wa_empdata_tmp  type t_empdata_tmp,
    wa_empdata type t_emp_data.
    loop at it_empdata into  wa_empdata.
      move-corresponding  wa_empdata to   wa_empdata_tmp.
      modify ZEMP_DATA  from  wa_empdata_tmp .
    endloop.
    could any one please let me know what i have to do inorder to not get the manager field data not being overwritten with the modify statment , for the IDNo. 101  . I want the data which is already ( manager = Raja) shouldnt not be get overwritten with Space.
    please help me in this regard
    Regards
    Madhuri.

    Hi,
    use a slect statement before
    "move-corresponding wa_empdata to wa_empdata_tmp."
    select manager
    from ztable
    into wa_empdata_tmp-manager
    where id = 100.
    regards,
    lavanya

Maybe you are looking for

  • Help required to help me keep the faith with apple!

    Hello, New to the apple world. Bought my first Apple Macbook in Dec 09. After 6 weeks of heavenly use, its now started to crash all the time. 14 times in the last day alone, & thats when i can get it to boot. Sometimes when I turn it on, all i get is

  • FB01 BDC Program Posting Error in a coding block

    Hi, I am trying to write a BDC for fb01 transaction with posting key 31 and 40. But I am getting a coding block as a popup in FB01 trsanction on screen number 'SAPLKACB' '0002'. I am passing costcentre and Internal Order and then passing an Enter f c

  • Creating Web Service in Eclipse with Axis and Tomcat

    Hi I'm quite new to web services. But I got a compiled class that i want to create a web service of. Since this class is compiled and lies in a package I can't just use the WTP and create a Buttom Up Web Service. So I created av wrapper class to this

  • I photo and external drive

    how do i save photos to external drive and possibly set it up that all photos go to external drive so i can save room on my hard drive

  • WorkFlowServiceClient API - error

    Hi, I am using soa suite 11.1.1.3.0. I have executed bpel flow contains human task and trying to retrieve available tasks using workflow service client api (oracle.bpel.services.workflow.query.ITaskQueryService) from jdeveloper. example code: Task ta