Change fields in avl

Hey,
I'm trying to create a simple alv list but i'm not able to change anything.  I'm surfing already a whole day on this site and still didn't find the awnser. 
So, what do i want to do.  I have a database-table created.  With another program i filled the fields of different records in this table. 
Now i need an avl-grid, with an extra checkbox in it, and all the fields of that table.  So far no problem.  Once i click on that checkbox, some other fields in the avl should be changed in the avl and in the database... 
I read already alot about user_command and so, but when i debug, i just don't get into that part of my code...
Is there anyone who has a small example on changing values in a database with an avl-list in a report?
Thanks in advance,
Greetz,
Tom

This is the code :
REPORT  ztc_upload_file.
TYPE-POOLS: slis.
DATA: alv_fieldcat TYPE slis_t_fieldcat_alv,
      alv_layout TYPE slis_layout_alv.
TYPES: BEGIN OF l_screen_rec,
         l_ztc_cid TYPE /bic/pztc_lv-/bic/ztc_cid ,
         l_ztc_cgr TYPE /bic/pztc_lv-/bic/ztc_cgr ,
         l_ztc_aid TYPE /bic/pztc_lv-/bic/ztc_aid ,
         l_ztc_lv TYPE /bic/pztc_lv-/bic/ztc_lv ,
         l_ztc_cd TYPE /bic/pztc_lv-/bic/ztc_cd ,
         l_ztc_ct TYPE /bic/pztc_lv-/bic/ztc_ct ,
         l_ztc_cuid TYPE /bic/pztc_lv-/bic/ztc_cuid ,
         l_ztc_rd TYPE /bic/pztc_lv-/bic/ztc_rd ,
         l_ztc_rt TYPE /bic/pztc_lv-/bic/ztc_rt ,
         l_ztc_ruid TYPE /bic/pztc_lv-/bic/ztc_ruid ,
         l_ztc_rld TYPE /bic/pztc_lv-/bic/ztc_rld ,
         l_ztc_ald TYPE /bic/pztc_lv-/bic/ztc_ald ,
         l_ztc_dind TYPE /bic/pztc_lv-/bic/ztc_dind ,
         filename(60) TYPE c,
         l_ztc_rel(1) TYPE c,
       END OF l_screen_rec.
DATA: my_screen TYPE l_screen_rec OCCURS 0.
DATA: wa_my_screen TYPE l_screen_rec.
PERFORM manage_records.
FORM manage_records.
  DATA: l_path(60) TYPE c.
  SELECT /bic/ztc_lv /bic/ztc_aid /bic/ztc_cid /bic/ztc_cgr /bic/ztc_cd
         /bic/ztc_ct /bic/ztc_cuid /bic/ztc_rd /bic/ztc_rt /bic/ztc_ruid
         /bic/ztc_rld /bic/ztc_ald /bic/ztc_dind
  FROM /bic/pztc_lv
  INTO (wa_my_screen-l_ztc_lv, wa_my_screen-l_ztc_aid, wa_my_screen-l_ztc_cid ,
       wa_my_screen-l_ztc_cgr, wa_my_screen-l_ztc_cd, wa_my_screen-l_ztc_ct,
       wa_my_screen-l_ztc_cuid, wa_my_screen-l_ztc_rd, wa_my_screen-l_ztc_rt ,
       wa_my_screen-l_ztc_ruid, wa_my_screen-l_ztc_rld, wa_my_screen-l_ztc_ald,
       wa_my_screen-l_ztc_dind)
  WHERE /bic/ztc_cid = l_co_id AND
        /bic/ztc_cgr = l_co_grp AND
        /bic/ztc_aid = l_app_id.
    SELECT SINGLE txtlg
    FROM /bic/tztc_lv
    INTO l_path
    WHERE /bic/ztc_cid = l_co_id AND
          /bic/ztc_cgr = l_co_grp AND
          /bic/ztc_aid = l_app_id.
    wa_my_screen-filename = l_path.
    wa_my_screen-l_ztc_rel = ''.
    APPEND wa_my_screen TO my_screen.
  ENDSELECT.
  PERFORM fieldcat_init USING alv_fieldcat.
  alv_layout-colwidth_optimize = 'X'.
  alv_layout-zebra = 'X'.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
      i_callback_program                = sy-repid
      I_CALLBACK_USER_COMMAND           = 'MY_USER_COMMAND'
      i_grid_title                      = 'Loaded versions'
      is_layout                         = alv_layout
      it_fieldcat                       = alv_fieldcat
      i_default                         = 'X'
      i_save                            = 'A'
      is_variant                        = stru_disvar
    TABLES
      t_outtab                          = my_screen
    EXCEPTIONS
      program_error                     = 1
      OTHERS                            = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    "manage_records
*&      Form  fieldcat_init
      text
     -->P_FIELDCAT text
FORM fieldcat_init USING p_fieldcat TYPE slis_t_fieldcat_alv.
  DATA: ls_fieldcat TYPE slis_fieldcat_alv.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_CID'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_CID'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_CGR'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_CGR'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_AID'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_AID'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_LV'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_LV'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_CD'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_CD'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_CT'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_CT'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_CUID'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_CUID'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'FILENAME'.
  ls_fieldcat-ref_fieldname = 'TXTLG'.
  ls_fieldcat-ref_tabname = '/BIC/TZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTV_REL'.
  ls_fieldcat-edit = 'X'.
  ls_fieldcat-input = 'X'.
  ls_fieldcat-checkbox = 'X'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_RD'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_RD'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_RT'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_RT'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_RUID'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_RUID'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_RLD'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_RLD'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_ALD'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_ALD'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
  CLEAR ls_fieldcat.
  ls_fieldcat-fieldname = 'L_ZTC_DIND'.
  ls_fieldcat-ref_fieldname = '/BIC/ZTC_DIND'.
  ls_fieldcat-ref_tabname = '/BIC/PZTC_LV'.
  APPEND ls_fieldcat TO p_fieldcat.
ENDFORM.                    "fieldcat_init
*&      Form  change_of_fields
      text
     -->P_UCOMM    text
     -->P_SELFLD   text
FORM my_user_command USING
    whatcomm TYPE sy-ucomm
    whatrow TYPE slis_selfield.
  WRITE 'We just print something on the screen'.
ENDFORM.                    "my_user_command
I already took a look at the examples you're mentioning, but the problem is that they al work with screens, en i'm not allowed to use those...

Similar Messages

  • Changing field length of a standard field in standard table VBEP

    Hi,
    Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
    Thanks & Rgds,
    Pradeep

    No you cannot change the field length
    thanks
    G. Lakshmipathi

  • How to find out Last Changed Fields for a line item of a PO

    Dear All,
    Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?

    Hello,
    Check the table CDHDR,CDPOS for PO items,
    Check this code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.  " Purchase order number
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 2
    *   OTHERS                        = 3
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    Vasanth

  • How to change field VBAK-CMNUP using VA02

    Hi EXPERTS,
    How to change field VBAK-CMNUP (Date of next credit check of document) using VA02?
    Seems it is hard to find it on the screen of VA02.
    Thanks in advance.

    Hi,
    Check these notes:
    Note 635727 - VBAK is filled with date only if block is set
    Note 588649 - Next date (CMNGV) - meaning and function
    Regards,
    Eduardo
    PD: I forgot the Note 588649 - Next date (CMNGV) - meaning and function.
    Edited by: Eduardo Hinojosa on Jun 11, 2009 11:39 AM

  • Changing fields color in CL_GUI_ALV_GRID using class

    Hi,
    I've written a lot of posts but still I have problem with changing color for CL_GUI_ALV_GRID.
    I have class ZKSL_CL_4_17_ALV_GRID_OO with 3 methods : SELECT, HANDLE_DBL_CLICK AND DISPLAY_ALV
    I want to change fields color every time I double click on IT.
    METHOD SELECT.
       DATA:
             lt_sflight                TYPE TABLE OF           zkslt_sflight,
             ls_layout                 TYPE                    lvc_s_layo,
             lr_custom_container       TYPE REF TO             cl_gui_custom_container,
             lr_my_class               TYPE REF TO             zksl_cl_4_17_alv_grid_oo.
       SELECT *  FROM zkslt_sflight  INTO TABLE mt_sflight
          WHERE carrid    = iv_carrid AND
              ( fldate    IN it_date  OR
                price     IN it_price OR
                planetype IN it_type )
    CALL FUNCTION 'Z_KSL_SCREEN'.
    ENDMETHOD.
    from FM z_ksl_screen i call screen 400 and from status_400 output  I call method DISPLAY_ALV
    METHOD display_alv.
       DATA:
              lr_custom_container       TYPE REF TO             cl_gui_custom_container,
              lt_sflight                TYPE TABLE OF           zkslt_sflight,
              lt_catalog                TYPE STANDARD TABLE OF  lvc_s_fcat,
              ls_catalog                LIKE LINE OF            lt_catalog,
              ls_layout                 type                    slis_layout_alv,
              lr_my_class               TYPE REF TO             zksl_cl_4_17_alv_grid_oo.
       CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
         EXPORTING
           i_structure_name = 'ZKSLT_SFLIGHT'
         CHANGING
           ct_fieldcat      = lt_catalog[].
    ************BULID LAYOUT
       ls_layout-no_input = 'X'.
       ls_layout-colwidth_optimize = 'X'.
       ls_layout-totals_text       = 'Totals(201)'.
       ls_layout-info_fieldname    = 'LINE_COLOR'.
       IF mr_gui_alv_grid IS INITIAL.  "-----------------------------------if----------------------&
         CREATE OBJECT: lr_custom_container
           EXPORTING
             container_name = 'DISPLAY',
             lr_my_class.
         CREATE OBJECT mr_gui_alv_grid
           EXPORTING
             i_parent = lr_custom_container.
         SET HANDLER lr_my_class->handle_dbl_click FOR mr_gui_alv_grid.
         CALL METHOD mr_gui_alv_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZKSLT_SFLIGHT'
            is_layout        =   ls_layout
             i_save           = 'A'
           CHANGING
             it_outtab        = Mt_sflight
             it_fieldcatalog  = lt_catalog.
       ELSE.     "-------------------------------------------------ELSE---------------------&
         mr_gui_alv_grid->refresh_table_display( ) .
       ENDIF.
    ENDMETHOD.
    In handler i am trying to change fields color and call method display sending new out_table
    CALL METHOD me->display_alv
         CHANGING
           ct_fieldcat = lt_fieldcat.
    Please give me some easy advice how to do that.
    thank you in advice.

    Thank you Klaus for your reply,
    The problem is that I need to make this using classes.
    I tried to make my structure data with LVC_T_SCOL as you wrote,
    a field of table type LVC_T_SCOL in the structure of your output table
    DATA BEGIN OF lt_data. 
           INCLUDE STRUCTURE sflight.
           DATA cellcolors  TYPE lvc_t_scol .
       DATA END OF lt_data.
    TYPES: BEGIN OF mtt_tab.
    *         INCLUDE STRUCTURE ZKLST_sflight.  " I get error that I cannot use ref to abap dic
               INCLUDE TYPE ZKSLT_SFLIGHT.
               TYPES: cellcolors  TYPE lvc_t_scol ,
                 END OF mtt_tab.
    After making type mtt_tab
    i declare data   lt_tab                    TYPE STANDARD TABLE OF  mtt_tab.
    and when I try to copy table mt_sflight (it is atribut of calss) like below
    LOOP AT mt_sflight INTO ls_mt .
    *   READ TABLE lt_tab INDEX sy-tabix ASSIGNING <ls_tab>.
    *   MOVE-CORRESPONDING <ls_mt> TO <ls_tab>.
    *    UPDATE lt_tab FROM TABLE mt_sflight.
         MOVE-CORRESPONDING ls_mt to lt_tab.
       ENDLOOP.
    I am getting error "lt_tab is not internal str or table with header"
    Can you help me with this? 

  • In sets (t-code GS01-04): How to change Field name

    HI,
    I have created sets for rule in validation by t-code GS01. Where I have given Tbale name BSEG and Field name KOSTL(Cost Center No). Now, I want to change field name SAKNR (GL NO) instead of cost center. When I am trying to change field name t-code GS02, there is field name is in display mode and no way to change it.
    As I have lot of entries in each set, so that creation of new sets is very hard job again. Further when I trying to create new sets by reference it didnt change the table name and field name.
    Please provide me a solution.
    Khalid

    Hi,
    Hope it is not possible, logically total field is changing and the dependent entrie will not stay as it is. I don't think this is possible.
    Eventhough the values are same but the fields are different.
    VVR

  • Changing Field Labels of module pool screen dynamically

    Hi All,
    Can anybody tell me how to change field label of text field in dialog screen dynamically.
    The Screen/Transaction is standard one.
    I have created a Enhancement point for this change in one of PBO module's subroutine for this screen.
    This Field label is defined as a 'Text' field only. We can't change it any more as it is standard one.
    Can anybody tell me the solution for the same.
    I have to change this label value as per some validations and its corresponding text field value will remain as is.
    Thanks,
    Deep.

    Hello,
    I think it is not possible, but try changing the name by Looping on screen table on PBO,
    Bye
    Gabriel

  • How to change field text in standard trasaction

    Hi,
    In XD01 transaction i need to change the standard field label, How difficult/easy is it to change field label of a SAP standard field? Is there any other way to change the screen text. please let me know.
    regards
    Jaya

    Hi Jaya,
    You can change the label on the screen directly - BUT this would be a modification.
    There is a way to change field labels without a modification, but that has to be done on the data element level.
    For that just find out the data element that is referenced and create a Text Enhancement for that Data Element which is NOT a modification.
    - Goto transaction CMOD
    - Choose Menu 'Goto'
    - 'Text Enhancements'
    - 'Keywords'
    - 'Change'
    - Put in the data Element Name and confirm
    - You'll have the possibility to change the Label texts for
         Short, Medium and Long Field Label
         Heading
         Short Description
    - Make your Changes and save
    - Done
    Where ever that data element is referenced you'll see your own text.
    Hope that helps,
    Michael

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Buyer not able to change fields of SC in sourcing cockpit in SRM 7.0

    Hi
    We are on SRM 7.0 , SP 07 . We are in classic mode.
    Buyer is not able to change fields of shopping cart in sourcing cockpit like delivery date and quantity . He is able to add supplier and create PO . Even when he creates draft PO , he is not able to edit the fields of shopping cart like delivery date and quantity. Is it a standard Bug , is their any OSS SAP Note for this
    Regards
    Ashish

    As per SAP Standard BUYER can only vendor and Enter price and create  a follow on document.
    Buyer does not have a control to edit other data.
    Buyer wants to they can do it in ME21N ..PO
    not in the shopping cart

  • Change field contents

    Hi...
    How can I change field contents in ABAP New debugger..?
    Thanks,
    Naveen.I

    Hi,
    There a column named Change...beside the field(Pencil mark).
    Double click on it,
    field content will change to editable mode...
    change the content and hit ENTER.

  • Get value of changed field of create_decision_popup window in lineedit mode

    Hi there,
    i'm calling a create_decision_popup popup in lineedit mode.
    So i could edit the values of the selected line.
    How could i acces the value of the changed fields after closing the popup window in the event_sel event.
    Here my code:
    v_popup = comp_controller->window_manager->create_decision_popup( iv_title = 'Window title'
                                                                        iv_selection_mode    = 'LINEEDIT'
                                                                        iv_display_table     = gt_table
                                                                        iv_visible_columns   = lt_visible_columns
                                                                        iv_visible_row_count = lv_row_count ).
    v_popup->set_on_close_event( iv_event_name = 'event_sel' iv_view = me ).
    v_popup->open( ).
    DATA: lr_outputnode TYPE REF TO  cl_bsp_wd_context_node.
    lr_outputnode ?= v_popup->get_context_node( 'OUTPUTNODE' )
    Thanks,
    Regards TomSd

    You want to edit the selected value from popup, so first populate the selected row in table and then edit in the table.
    Open the popup using :
    CALL METHOD me->comp_controller->window_manager->create_decision_popup
           EXPORTING
             iv_title             = 'Route'
             iv_description       = 'Route' 
             iv_selection_mode    = 'SINGLE'
             iv_visible_row_count = '10'
             iv_display_table     = gt_route
             iv_visible_columns   = lt_table
           RECEIVING
             rv_result            = gr_popup.
    gr_popup->set_on_close_event( iv_event_name = 'DEC_POPUP_CLOSED' iv_view = me ).
    gr_popup->open( ).
    Now on close event i.e. DEC_POPUP_CLOSED write the code to transfer the selected row into the table.
    lv_outputnode ?= gr_popup->get_context_node( 'OUTPUTNODE' ).
    lv_index = lv_outputnode->get_selectedrowindex( ).
         IF lv_index IS NOT INITIAL.
           READ TABLE gt_route INTO ls_route INDEX lv_index.
           lr_col ?= me->typed_context->zroute->collection_wrapper.
           CREATE DATA lr_tab_data.
           CREATE OBJECT lr_valuenode
             EXPORTING
               iv_data_ref = lr_tab_data.
           lr_valuenode->set_properties( is_attributes = ls_route ).
           lr_col->add( EXPORTING iv_entity    = lr_valuenode ).
           REFRESH: gt_route.
           CLEAR: gr_popup.
    endif.
    Now you can see the selected row in your table view and the popup will be closed.
    To make the row editable go to htm page on which table view is created, and then modify
    editMode              = "ALL"
    in  <chtmlb:configCellerator>

  • Changing fields of Logical database BRF

    Hi;
    I have a changing problem
    I use brf logical database in my program but I want to change attributes of some selection fields.
    Ex:I want to do mandotary year field.I can't dı it.I can add new field but I can't change fields of BRF.
    How can I do?

    try this:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        CASE SCREEN-NAME.
          WHEN 'BR_GJAHR'.
            SCREEN-REQUIRED = 1.
            MODIFY SCREEN.
        ENDCASE.
      ENDLOOP.
    hope tha helps
    Andreas

  • Changing field labels

    I need to change the description of three fields, VKBUR, VKGRP and BZIRK so that the terminolgy aligns iteself with our business processes.
    I have used SE80 to modify the Data Elements descriptions, short, mid and long.  I have registered the change through SAP.
    The changes have been activated. Though the log reported that a number of tables could not be modified because the enhancement category for some obscure tables was missing.  Most of the tables were adjusted.
    Viewing transaction VA22 - Quotations the sales header screen has the correct new description for only one of the three fields!  Why this should be one of three is a mystery.
    I think that the structure DD04D is filled with the short, mid and long descriptions. 
    Any ideas?

    Hi Nigel,
    You can change field labels, in tx CMOD->Go to->Text Enhancements-> Keyword->Change.
    Here you can enter the Data Element of the field you want to change the text, and the language. Also, you should look at the screen where the text field is. Because if the text has the attribute "Modify" to "F" (Fixed), you cannot modify this text.
    Thanks
    Warm Regards,
    Mohammed Hussain.

  • Changing Fields Historically on Billing Documents - Sales District

    Hi
    Is it possible to change fields historically on a billing document ?
    I wish to change the sales district (VBRK-BZIRK) on Historic Billing documents.
    This is due to an external reporting system we use - Business Objects.
    I am able to change the same field on the sales order VBKD-BZIRK, but not on the Billing document
    Is there a MASS change program available to use at all ?
    Please advise
    Many thanks
    Tony

    Hi,
    Yes,you are right.
    We cannot change them in billing document.
    There are two options.
    1)Cancel all those billing documents using VF11 T.code.and mass change the sales order.Recreate the billing document using VF04 T.Code.
    2)Develop a program for this.Using Batch job I think you can change.
    Regards,
    Krishna.

Maybe you are looking for

  • Error while running JSP with custom tag

    I am trying to run a jsp with a tag and I am getting the following error when I run the jsp: "Unable to open taglibrary /WEB-INF/jsp/mytaglib.tld : Parse Error in the tag library descriptor: External parameter entity "%(DOCTYPE);" has characters afte

  • Change language on the security warning popup when using signed applets

    Hi Today when we use a signed applet the user get a security warning popup box where the langauge is English. Is it possible to change the language to other that English and if possible how can this be done ? Thanks in Advance, Henrik Rasmussen Denma

  • How can I change the font size in the menu-, bookmark-, tabs and status-bar?

    I want to change the text font size in the Firefox-window, other than the text in the Web-page.

  • Rman  restoration hangs with no errors

    Hi, Platform:solaris 10 oracle version:oracle 10g I am restoring the backup from tape using RMAN. iWe have production instances in /data1 to /data11; it is connected to TAPE through fibre cable with the speed of 256MBS/sec. Our restoration is /aux_da

  • Updates not functioning correctly

    Whenever I try to download system updates from the APP Store, here are the screens I get: I've rebuilt the OS because I'm also having trouble with Mail.  Is this a known problem or am I on my own. Also, I get the notification that iMovie fails to dow