Table Control Text  fields problem , help plz

Hello Anand , Rich , John & All
  I hav problem with Text 3 fields( type c)(either L or R aligned )  , it is not geting updated , otherwise everything else is perfectly fine(scrolling,sorting etc ....) .
Fields giving problem are
1. Status(20) type c
2. Fdat  type date
3. Remark(100) type c
All numerical fields are working fine .
<u><b> My yahoo messenger-id is [email protected]</b></u>
<b>Any light on this will be awarded plz .</b>
FLOW LOGIC
PROCESS BEFORE OUTPUT.
MODULE SET_STATUS.
LOOP AT      ITAB
      WITH    CONTROL TCL1
      CURSOR  TCL1-CURRENT_LINE .
   MODULE SET_LINE_COUNT .
ENDLOOP.
PROCESS AFTER INPUT.
MODULE UPD_OK_COD.
MODULE EXIT_COMAND AT EXIT-COMMAND.
MODULE SCROLL_SORT.
LOOP AT ITAB.
      MODULE UPDATE_ITAB.
ENDLOOP.
MODULE UPDATE_TABLE.
REPORT ZSD_REP_ORDER_BANK_CHANGE NO STANDARD PAGE HEADING LINE-SIZE 255.
TABLES: VBAK,VBAP,VBRK,ZSD_TABL_ORDBANK,MARA,KONV.
CONTROLS: TCL1 TYPE TABLEVIEW USING SCREEN 0200.
DATA: ITAB LIKE ZSD_TABL_ORDBANK OCCURS 0 WITH HEADER LINE,
      WA_ITAB LIKE ZSD_TABL_ORDBANK,
      OK_CODE LIKE SY-UCOMM,
      SAVE_OK_CODE LIKE SY-UCOMM,
      UPD_OK_CODE LIKE SY-UCOMM,
      ANSWER TYPE C,
      I LIKE SY-LOOPC ,
      J LIKE SY-LOOPC,
      V_LINES LIKE SY-LOOPC,
      LINE_COUNT LIKE SY-LOOPC,
      STS  TYPE N,
      EMGRP LIKE MARA-EXTWG,
      QTY LIKE ZSD_TABL_ORDBANK-QTY,
      UPRICE LIKE ZSD_TABL_ORDBANK-UPRICE,
      TOT LIKE ZSD_TABL_ORDBANK-TOT,
      INO LIKE VBAP-POSNR,
      COL TYPE CXTAB_COLUMN,
      COPIED_ONCE ,
      FLDNAME(100),HELP(100).
FIELD-SYMBOLS:
     <FS_ITAB> LIKE LINE OF ITAB,
     <FS_TCL1> LIKE LINE OF TCL1-COLS.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
  SELECT-OPTIONS: S_CCODE FOR ZSD_TABL_ORDBANK-CCODE
                          NO INTERVALS NO-EXTENSION  OBLIGATORY,
                  S_SORG  FOR ZSD_TABL_ORDBANK-SORG
                          NO INTERVALS NO-EXTENSION  OBLIGATORY,
                  S_DCHAN FOR ZSD_TABL_ORDBANK-DISTCHAN,
                  S_DIV FOR ZSD_TABL_ORDBANK-DIV,
                  S_MATNO FOR ZSD_TABL_ORDBANK-MATNO,
                  S_CUSTNO FOR ZSD_TABL_ORDBANK-CUSTNO ,
                  S_QTNO FOR ZSD_TABL_ORDBANK-QTNO,
                  S_QTDAT FOR ZSD_TABL_ORDBANK-QTDAT,
                  S_QTVDAT FOR ZSD_TABL_ORDBANK-QTVALDAT,
                  S_SONO   FOR ZSD_TABL_ORDBANK-SONO.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN.
   SELECT * FROM  ZSD_TABL_ORDBANK
               INTO  TABLE ITAB
               WHERE CCODE IN S_CCODE
                 AND SORG IN  S_SORG
                 AND DISTCHAN IN  S_DCHAN
                 AND DIV IN S_DIV
                 AND MATNO IN  S_MATNO
                 AND CUSTNO IN  S_CUSTNO
                 AND QTNO IN  S_QTNO
                 AND QTDAT IN  S_QTDAT
                 AND QTVALDAT IN  S_QTVDAT
                 AND SONO IN  S_SONO .
      IF SY-SUBRC EQ 0.
         REFRESH ITAB.
         CLEAR COPIED_ONCE.
         CALL SCREEN 0200.
      ELSE.
         MESSAGE E012(ZQOTBANK) .
      ENDIF.
*&      Module  SET_STATUS  OUTPUT
*       text
MODULE SET_STATUS OUTPUT.
  SET PF-STATUS '0200'.
  SET TITLEBAR '0200'.
    IF COPIED_ONCE IS INITIAL.
      SELECT * FROM  ZSD_TABL_ORDBANK
               INTO  TABLE ITAB
               WHERE CCODE IN S_CCODE
                 AND SORG IN  S_SORG
                 AND DISTCHAN IN  S_DCHAN
                 AND DIV IN S_DIV
                 AND MATNO IN  S_MATNO
                 AND CUSTNO IN  S_CUSTNO
                 AND QTNO IN  S_QTNO
                 AND QTDAT IN  S_QTDAT
                 AND QTVALDAT IN  S_QTVDAT
                 AND SONO IN  S_SONO .
      IF SY-SUBRC EQ 0.
        DESCRIBE TABLE ITAB LINES V_LINES.
        TCL1-LINES = V_LINES.
      ENDIF.
      COPIED_ONCE = 'X'.
      REFRESH CONTROL 'TCL1' FROM SCREEN '0200'.
   ENDIF.
      LOOP AT ITAB.
         QTY = ITAB-QTY.
         UPRICE  = ITAB-UPRICE.
         TOT = QTY * UPRICE .
         ITAB-TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         QTY = ITAB-CGL_QTY.
         UPRICE  = ITAB-CGL_UPRICE.
         TOT = QTY * UPRICE .
         ITAB-CGL_TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         QTY = ITAB-BHEL_QTY.
         UPRICE  = ITAB-BHEL_UPRICE.
         TOT = QTY * UPRICE .
         ITAB-BHEL_TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         QTY = ITAB-ALSTOM_QTY.
         UPRICE  = ITAB-ALSTOM_UPRICE.
         TOT = QTY * UPRICE .
         ITAB-ALSTOM_TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         QTY = ITAB-SIEMENS_QTY.
         UPRICE  = ITAB-SIEMENS_UPRICE.
         TOT = QTY * UPRICE .
         ITAB-SIEMENS_TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         QTY = ITAB-TELK_QTY.
         UPRICE  = ITAB-TELK_UPRICE.
         TOT = QTY * UPRICE .
         ITAB-TELK_TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         QTY = ITAB-OTH_QTY.
         UPRICE  = ITAB-OTH_UPRICE.
         TOT = QTY * UPRICE .
         ITAB-OTH_TOT = TOT .
         CLEAR: QTY, UPRICE, TOT.
         MODIFY ITAB.
      ENDLOOP.
ENDMODULE.                 " SET_STATUS  OUTPUT
*&      Module  SET_LINE_COUNT  INPUT
*       text
MODULE SET_LINE_COUNT OUTPUT.
  LINE_COUNT = SY-LOOPC.
ENDMODULE.                 " SET_LINE_COUNT  INPUT
*&      Module  UPD_OK_CODE  INPUT
*       text
MODULE UPD_OK_COD INPUT.
IF OK_CODE = 'SAVE'.
    UPD_OK_CODE = OK_CODE.
*    CLEAR OK_CODE.
ENDIF.
ENDMODULE.                 " UPD_OK_CODE  INPUT
*&      Module  EXIT_COMAND  INPUT
*       text
MODULE EXIT_COMAND INPUT.
SAVE_OK_CODE = OK_CODE.
CLEAR OK_CODE.
CASE SAVE_OK_CODE.
    WHEN 'BACK'.
      CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
          TITLEBAR       = 'Order Bank Entry'
          TEXT_QUESTION  = 'Do you want to Go BacK ?'
          TEXT_BUTTON_1  = 'Yes'
          TEXT_BUTTON_2  = 'No'
          DEFAULT_BUTTON = '2'
        IMPORTING
          ANSWER         = ANSWER.
      IF ANSWER = '1'.
        LEAVE TO SCREEN 0.
      ELSE.
      ENDIF.
    WHEN '%EX'.
      CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
          TITLEBAR       = 'Order Bank Entry'
          TEXT_QUESTION  = 'Do you want to Exit ?'
          TEXT_BUTTON_1  = 'Yes'
          TEXT_BUTTON_2  = 'No'
          DEFAULT_BUTTON = '2'
        IMPORTING
          ANSWER         = ANSWER.
      IF ANSWER = '1'.
        LEAVE TO SCREEN 0.
      ELSE.
      ENDIF.
  ENDCASE.
ENDMODULE.                 " EXIT_COMAND  INPUT
*&      Module  UPDATE_MOD  INPUT
*       text
MODULE UPDATE_ITAB INPUT.
    MODIFY TABLE ITAB FROM ITAB.
ENDMODULE.                 " UPDATE_MOD  INPUT
*&      Module SCROLL INPUT
*       text
MODULE SCROLL_SORT INPUT.
SAVE_OK_CODE = OK_CODE.
CLEAR OK_CODE.
CASE SAVE_OK_CODE.
  WHEN 'P--'.
      TCL1-TOP_LINE = 1.
  WHEN 'P-'.
      TCL1-TOP_LINE = TCL1-TOP_LINE - LINE_COUNT.
      IF TCL1-TOP_LINE LE 0.
         TCL1-TOP_LINE = 1.
      ENDIF.
  WHEN 'P+'.
      I = TCL1-TOP_LINE + LINE_COUNT.
      J = TCL1-LINES - LINE_COUNT + 1.
      IF J LE 0.
         J = 1.
      ENDIF.
      IF I LE J.
         TCL1-TOP_LINE = I.
      ELSE.
         TCL1-TOP_LINE = J.
      ENDIF.
  WHEN 'P++'.
      TCL1-TOP_LINE = TCL1-LINES - LINE_COUNT + 1.
      IF TCL1-TOP_LINE LE 0.
          TCL1-TOP_LINE = 1.
      ENDIF.
  WHEN 'SORTUP'.
      READ TABLE TCL1-COLS ASSIGNING <FS_TCL1> WITH KEY SELECTED = 'X'.
      IF SY-SUBRC = 0.
          SPLIT <FS_TCL1>-SCREEN-NAME AT '-' INTO HELP FLDNAME.
          SORT ITAB ASCENDING BY (FLDNAME).
      ENDIF.
  WHEN 'SORTDN'.
      READ TABLE TCL1-COLS ASSIGNING <FS_TCL1> WITH KEY SELECTED = 'X'.
      IF SY-SUBRC = 0.
          SPLIT <FS_TCL1>-SCREEN-NAME AT '-' INTO HELP FLDNAME.
          SORT ITAB DESCENDING BY (FLDNAME).
      ENDIF.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND  INPUT
*&      Module  TABL_UPD  INPUT
*       text
  MODULE UPDATE_TABLE INPUT.
   CASE UPD_OK_CODE.
   WHEN 'SAVE'.
     UPDATE ZSD_TABL_ORDBANK FROM TABLE ITAB .
     IF SY-SUBRC EQ 0.
         MESSAGE I002(ZQOTBANK) .
         CLEAR  UPD_OK_CODE.
     ELSE.
         MESSAGE E003(ZQOTBANK) .
     ENDIF.
   ENDCASE.
  ENDMODULE.                 " TABL_UPD  INPUT
Thnx
moni<b></b><b></b>
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman

Hi Moni,
The problem as I had replied in your earlier post is with the MODIFY statement.
MODIFY TABLE ITAB FROM ITAB. This statement will do the modifications based on the table key. When you have character fields as editable, then some problems are to be anticipated. In such a scenario, you must update the internal table based on the <i>index</i>, rather than based on <i>key</i>.
So consider using
MODIFY ITAB FROM ITAB INDEX TCL-CURRENT_LINE.
Where TCL is the name of the Table Control. Also observe the difference in syntax here, don't use the TABLE keyword for the MODIFY statement.
Please try it out and let me know.
Regards,
Anand Mandalika.

Similar Messages

  • Want a Dictionary Icon next to Text field??plz help

    i am using jdev 11.1.2.4.0 and i want dictionary icon next to text field for searching words in dictionary....plzz help

    Hi,
    Are you need dictionary image next to text field ? Searching words in dictionary means after click the dictionary image it need to call call any bean methods ?..

  • Table Control Dropdown List Problem

    Hi,
    I have this problem with my table control.
    I now have an input field (with input help) called: Reference Table, as well as a table control.
    What i need is to select the table names (select from the Reference table input help) and the field names will be populated inside the table control (according to the field names inside the respective tables) as a dropdown list.
    Refer to this diagram if unclear: http://img166.imageshack.us/img166/1066/tablecontrolwt4.png
    Please give me sample codes as i really need help.
    Will reward marks if useful.
    thanks a lot.
    Below is my codes:
    *& Report  ZHERA_TABLE3
    REPORT  ZHERA_TABLE3_EVONNE.
    DATA: P_HERA TYPE DNTAB-TABNAME VALUE 'Z07P4_REF',
           ITAB_HERA TYPE TABLE OF Z07P4_REF,
           FIELD_COUNT TYPE I,
           WA_HERA LIKE LINE OF ITAB_HERA.
    SELECT * INTO TABLE ITAB_HERA FROM Z07P4_REF.
    START-OF-SELECTION.
    CALL SCREEN 3000.
    MODULE STATUS_3000 OUTPUT.
      SET PF-STATUS 'UI'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                    "STATUS_8000 OUTPUT
    MODULE USER_COMMAND_8000 INPUT
    MODULE USER_COMMAND_3000 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK' OR 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'SAVE'.
          PERFORM UPDATE_TABLE.
      ENDCASE.
    ENDMODULE.                    "USER_COMMAND_8000 INPUT
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'ZTABLE' ITSELF
    CONTROLS: ZTABLE TYPE TABLEVIEW USING SCREEN 3000.
    *&SPWIZARD: LINES OF TABLECONTROL 'ZTABLE'
    DATA:     G_ZTABLE_LINES  LIKE SY-LOOPC.
    DATA:     OK_CODE LIKE SY-UCOMM.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR
    MODULE ZTABLE_CHANGE_TC_ATTR OUTPUT.
      DESCRIBE TABLE ITAB_HERA LINES ZTABLE-lines.
    ENDMODULE.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: GET LINES OF TABLECONTROL
    MODULE ZTABLE_GET_LINES OUTPUT.
      G_ZTABLE_LINES = SY-LOOPC.
    ENDMODULE.
    *&SPWIZARD: INPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: MODIFY TABLE
    MODULE ZTABLE_MODIFY INPUT.
      MODIFY ITAB_HERA
        FROM WA_HERA
        INDEX ZTABLE-CURRENT_LINE.
    ENDMODULE.
    *&SPWIZARD: INPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: PROCESS USER COMMAND
    MODULE ZTABLE_USER_COMMAND INPUT.
      OK_CODE = SY-UCOMM.
      PERFORM USER_OK_TC USING    'ZTABLE'
                                  'ITAB_HERA'
                         CHANGING OK_CODE.
      SY-UCOMM = OK_CODE.
    ENDMODULE.
      INCLUDE TABLECONTROL_FORMS                                         *
    *&      Form  USER_OK_TC                                               *
    FORM USER_OK_TC USING    P_TC_NAME TYPE DYNFNAM
                              P_TABLE_NAME
                              P_MARK_NAME
                     CHANGING P_OK      LIKE SY-UCOMM.
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA: L_OK              TYPE SY-UCOMM,
             L_OFFSET          TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
    *&SPWIZARD: Table control specific operations                          *
    *&SPWIZARD: evaluate TC name and operations                            *
       SEARCH P_OK FOR P_TC_NAME.
       IF SY-SUBRC <> 0.
         EXIT.
       ENDIF.
       L_OFFSET = STRLEN( P_TC_NAME ) + 1.
       L_OK = P_OK+L_OFFSET.
    *&SPWIZARD: execute general and TC specific operations                 *
       CASE L_OK.
         WHEN 'INSR'.                      "insert row
           PERFORM FCODE_INSERT_ROW USING    P_TC_NAME
                                             P_TABLE_NAME.
           CLEAR P_OK.
         WHEN 'DELE'.                      "delete row
           PERFORM FCODE_DELETE_ROW USING    P_TC_NAME
                                             P_TABLE_NAME
                                             P_MARK_NAME.
           CLEAR P_OK.
         WHEN 'P--' OR                     "top of list
              'P-'  OR                     "previous page
              'P+'  OR                     "next page
              'P++'.                       "bottom of list
           PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
                                                 L_OK.
           CLEAR P_OK.
        WHEN 'L--'.                       "total left
          PERFORM FCODE_TOTAL_LEFT USING P_TC_NAME.
        WHEN 'L-'.                        "column left
          PERFORM FCODE_COLUMN_LEFT USING P_TC_NAME.
        WHEN 'R+'.                        "column right
          PERFORM FCODE_COLUMN_RIGHT USING P_TC_NAME.
        WHEN 'R++'.                       "total right
          PERFORM FCODE_TOTAL_RIGHT USING P_TC_NAME.
         WHEN 'MARK'.                      "mark all filled lines
           PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME
                                             P_TABLE_NAME
                                             P_MARK_NAME   .
           CLEAR P_OK.
         WHEN 'DMRK'.                      "demark all filled lines
           PERFORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
                                               P_TABLE_NAME
                                               P_MARK_NAME .
           CLEAR P_OK.
        WHEN 'SASCEND'   OR
             'SDESCEND'.                  "sort column
          PERFORM FCODE_SORT_TC USING P_TC_NAME
                                      l_ok.
       ENDCASE.
    ENDFORM.                              " USER_OK_TC
    *&      Form  FCODE_INSERT_ROW                                         *
    FORM fcode_insert_row
                   USING    P_TC_NAME           TYPE DYNFNAM
                            P_TABLE_NAME             .
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_LINES_NAME       LIKE FELD-NAME.
       DATA L_SELLINE          LIKE SY-STEPL.
       DATA L_LASTLINE         TYPE I.
       DATA L_LINE             TYPE I.
       DATA L_TABLE_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>                 TYPE CXTAB_CONTROL.
       FIELD-SYMBOLS <TABLE>              TYPE STANDARD TABLE.
       FIELD-SYMBOLS <LINES>              TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: get looplines of TableControl                              *
       CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
       ASSIGN (L_LINES_NAME) TO <LINES>.
    *&SPWIZARD: get current line                                           *
       GET CURSOR LINE L_SELLINE.
       IF SY-SUBRC <> 0.                   " append line to table
         L_SELLINE = <TC>-LINES + 1.
    *&SPWIZARD: set top line                                               *
         IF L_SELLINE > <LINES>.
           <TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
         ELSE.
           <TC>-TOP_LINE = 1.
         ENDIF.
       ELSE.                               " insert line into table
         L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
         L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
       ENDIF.
    *&SPWIZARD: set new cursor line                                        *
       L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
    *&SPWIZARD: insert initial line                                        *
       INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
       <TC>-LINES = <TC>-LINES + 1.
    *&SPWIZARD: set cursor                                                 *
       SET CURSOR LINE L_LINE.
    ENDFORM.                              " FCODE_INSERT_ROW
    *&      Form  FCODE_DELETE_ROW                                         *
    FORM fcode_delete_row
                   USING    P_TC_NAME           TYPE DYNFNAM
                            P_TABLE_NAME
                            P_MARK_NAME   .
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_TABLE_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>         TYPE cxtab_control.
       FIELD-SYMBOLS <TABLE>      TYPE STANDARD TABLE.
       FIELD-SYMBOLS <WA>.
       FIELD-SYMBOLS <MARK_FIELD>.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: delete marked lines                                        *
       DESCRIBE TABLE <TABLE> LINES <TC>-LINES.
       LOOP AT <TABLE> ASSIGNING <WA>.
    *&SPWIZARD: access to the component 'FLAG' of the table header         *
         ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
         IF <MARK_FIELD> = 'X'.
           DELETE <TABLE> INDEX SYST-TABIX.
           IF SY-SUBRC = 0.
             <TC>-LINES = <TC>-LINES - 1.
           ENDIF.
         ENDIF.
       ENDLOOP.
    ENDFORM.                              " FCODE_DELETE_ROW
    *&      Form  COMPUTE_SCROLLING_IN_TC
          text
         -->P_TC_NAME  name of tablecontrol
         -->P_OK       ok code
    FORM COMPUTE_SCROLLING_IN_TC USING    P_TC_NAME
                                           P_OK.
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_TC_NEW_TOP_LINE     TYPE I.
       DATA L_TC_NAME             LIKE FELD-NAME.
       DATA L_TC_LINES_NAME       LIKE FELD-NAME.
       DATA L_TC_FIELD_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>         TYPE cxtab_control.
       FIELD-SYMBOLS <LINES>      TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get looplines of TableControl                              *
       CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
       ASSIGN (L_TC_LINES_NAME) TO <LINES>.
    *&SPWIZARD: is no line filled?                                         *
       IF <TC>-LINES = 0.
    *&SPWIZARD: yes, ...                                                   *
         L_TC_NEW_TOP_LINE = 1.
       ELSE.
    *&SPWIZARD: no, ...                                                    *
         CALL FUNCTION 'SCROLLING_IN_TABLE'
              EXPORTING
                   ENTRY_ACT             = <TC>-TOP_LINE
                   ENTRY_FROM            = 1
                   ENTRY_TO              = <TC>-LINES
                   LAST_PAGE_FULL        = 'X'
                   LOOPS                 = <LINES>
                   OK_CODE               = P_OK
                   OVERLAPPING           = 'X'
              IMPORTING
                   ENTRY_NEW             = L_TC_NEW_TOP_LINE
              EXCEPTIONS
                 NO_ENTRY_OR_PAGE_ACT  = 01
                 NO_ENTRY_TO           = 02
                 NO_OK_CODE_OR_PAGE_GO = 03
                   OTHERS                = 0.
       ENDIF.
    *&SPWIZARD: get actual tc and column                                   *
       GET CURSOR FIELD L_TC_FIELD_NAME
                  AREA  L_TC_NAME.
       IF SYST-SUBRC = 0.
         IF L_TC_NAME = P_TC_NAME.
    *&SPWIZARD: et actual column                                           *
           SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
         ENDIF.
       ENDIF.
    *&SPWIZARD: set the new top line                                       *
       <TC>-TOP_LINE = L_TC_NEW_TOP_LINE.
    ENDFORM.                              " COMPUTE_SCROLLING_IN_TC
    *&      Form  FCODE_TC_MARK_LINES
          marks all TableControl lines
         -->P_TC_NAME  name of tablecontrol
    FORM FCODE_TC_MARK_LINES USING P_TC_NAME
                                   P_TABLE_NAME
                                   P_MARK_NAME.
    &SPWIZARD: EGIN OF LOCAL DATA----
      DATA L_TABLE_NAME       LIKE FELD-NAME.
      FIELD-SYMBOLS <TC>         TYPE cxtab_control.
      FIELD-SYMBOLS <TABLE>      TYPE STANDARD TABLE.
      FIELD-SYMBOLS <WA>.
      FIELD-SYMBOLS <MARK_FIELD>.
    &SPWIZARD: END OF LOCAL DATA----
      ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: mark all filled lines                                      *
      LOOP AT <TABLE> ASSIGNING <WA>.
    *&SPWIZARD: access to the component 'FLAG' of the table header         *
         ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
         <MARK_FIELD> = 'X'.
      ENDLOOP.
    ENDFORM.                                          "fcode_tc_mark_lines
    *&      Form  FCODE_TC_DEMARK_LINES
          demarks all TableControl lines
         -->P_TC_NAME  name of tablecontrol
    FORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
                                     P_TABLE_NAME
                                     P_MARK_NAME .
    &SPWIZARD: BEGIN OF LOCAL DATA----
      DATA L_TABLE_NAME       LIKE FELD-NAME.
      FIELD-SYMBOLS <TC>         TYPE cxtab_control.
      FIELD-SYMBOLS <TABLE>      TYPE STANDARD TABLE.
      FIELD-SYMBOLS <WA>.
      FIELD-SYMBOLS <MARK_FIELD>.
    &SPWIZARD: END OF LOCAL DATA----
      ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: demark all filled lines                                    *
      LOOP AT <TABLE> ASSIGNING <WA>.
    *&SPWIZARD: access to the component 'FLAG' of the table header         *
         ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
         <MARK_FIELD> = SPACE.
      ENDLOOP.
    ENDFORM.                                          "fcode_tc_mark_lines
    FORM UPDATE_TABLE.
      "Update physical database table
      UPDATE Z07P4_REF FROM TABLE ITAB_HERA.
    ENDFORM.                    "UPDATE_TABLE
    Edited by: Evonne Gow on Jan 4, 2008 2:52 AM

    hey gary help me lei...
    Edited by: Evonne Gow on Jan 4, 2008 2:55 AM

  • Input text field problem

    I am VERY new at this...I'm following directions in "Hands On
    Training Flash 8 book...
    When creating an input text field the book instructs me to
    embed the font using the embed button that is in the Property
    Inspector...When I do this and test the movie there is no cursor in
    the text box and I am not allowed to type in it..
    If I do not embed the font then when I test the movie the
    input field works. I click on it and get a cursor and am able to
    enter information.
    Is the book I'm using wrong here or is there something I'm
    missing? Thank you.

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • IOS text field problem.

    I need the user to enter a word, so I added a simple text field to the stage.  However, it behaves strangely on the actual device (iPod Touch). Attached are two screenshots that show how the font size increases when the input is activated.  Has anybody seen this problem?

    Hi,
    I believe you have specified a textFormat for the text. You need to add the following
    // Assuming this is the format
    var txtFormat:TextFormat = new TextFormat();
    txtFormat.size = 20;
    t1 = new TextField();
    t1.defaultTextFormat = txtFormat;
    // Apply the default text format that we just set to the text that's already in the text field ("g")
    // Otherwise the default text format will only be applied to *new* text that's *typed* into the text field!
    // Without this, the initial text in the text fields ("g") will use the default for a
    // flash text field (Times New Roman 12pt), rather than the defaultTextFormat (Times New Roman 20pt).
    t1.setTextFormat(t1.defaultTextFormat);
    addChild(t1);
    This sets all of the existing text in the text field to the specified format (making it the same as the default). Now when the text field is first rendered it uses the default format that you set, and when you type it also uses that same format, and so the format no longer appears to change.
    Hope this helps.
    Sanika

  • Layers / Text Field Problem!

    Hey, whenever i center my designs, after or before - the text
    fields stay stuck as if the design was still attached to the left
    side. I viewed in IE and Safari and i got other people to view it.
    They reported the same issue. Any help would be appreciated.
    Thanks,
    -Kurrupted.Designs

    Hello,
    I'm assuming you are using layers, from the subject line.
    Building a layout using layers (AP Divs) will cause you a lot
    of
    frustration.
    Please read this link.
    Scroll down to the "Trouble With Layers" section.
    Specifically, the part that say's "My Layers Move".
    You should also check out the "Overlapping Text" section as
    you probably
    have that problem, too, and haven't noticed it yet.
    http://apptools.com/examples/pagelayout101.php
    Take care,
    Tim
    "Virginia Carter" <[email protected]>
    wrote in message
    news:g45at8$jme$[email protected]..
    > It would be helpful if we could see your page/code. Do
    you have a url you
    > can post?
    >
    > --
    >
    > Virginia Carter
    > Carolina Web Creations
    > ======================
    > www.carolinawebcreations.biz
    >
    > Kurrupted.Designs wrote:
    >> Hey, whenever i center my designs, after or before -
    the text fields stay
    >> stuck as if the design was still attached to the
    left side. I viewed in
    >> IE and Safari and i got other people to view it.
    They reported the same
    >> issue. Any help would be appreciated. Thanks,
    >>
    >> -Kurrupted.Designs
    >>

  • Expand Table Control with Fields for Purchase Order Item Overview

    Hi Gurus.
    Hereu2019s something easy for you, I hope/ think. We just want to additionally show the field u201CMFRPNu201D in the purchase order item overview. See structure MEPO1211 for the table control.
    How can we do this? Is it possible without a modification? Is there anything to pay attention to?
    Lot's of questions, because we donu2019t find any complete solutions yet. It seems there are no official SAP suggestions for this issue.
    Thanks in advance!
    Regards
    Patric

    Is there no one out there who can answer my question?

  • Text Field Problems

    Subject: Creating a form for user input.
    The text field allows the user to type in more information than the visible portion of the text field. I see where I can limit the number of characters however this is not a good option. Depending on the character or if it is capitalized the total length of the string will change where some text will be hidden or leave too much space before the end. How can the text field stop the user from adding more text when reaching the end?
    Another question:
    My form asks a question where the answer starts on the same line and then continues below. The text field below is much wider (width of the page) where I can't find the option of an odd shape text field to accommodate this. So far I will place a text field on the short line and add another text field on the line below. I can't find where the two text fields can be joined and the text cascade from one to the other.
    My impressioin:
    So far I am not very impressed with the from option as the text fields cannot be sized through the properties.
    You cannot change the text box that the form adds to a check box without deleting the text field and creating a check box. Additionally if you copy and paste a check box multiple times it creates a new check box that is connected to the original. You have to rename each check box otherwise if the user selects a check box all check boxes that was copied and paste will receive a check.
    Similarly if you copy a text field and paste into the form without renaming the field anything you type into the first text field will automatically be shown in all text fields that were paste into the form.
    The text box height does not resize when selecting a font size. You have to go out of edit and type into the text field to see if the  complete font will be shown or there is too much extra space.
    There has to be a better form making software available. Can anyone provide information towards other software that may be more suitable and eliminate the issues pointed out above?
    Thanks for your help

    To prevent the user from entering text beyond the size of the field - set the font's size to anything other than 'Auto', and uncheck the 'Scroll long text' and 'Multiline' checkboxes in the 'Options' tab. If you need multiline text, the text will always scroll. Setting the size to 'Auto' will reduce the text to fit the box (it will fit to one line if multiline is off, or to the entire box if multiline is on)
    Most of your complaints I don't agree with. Why should the field resize when you change the font size? That's up to you to decide the size/position/properties of the field. You do have the ability to select multiple fields and set them to the same height/width/both.
    And copy pasting a field shares the same value, that's a good thing. That allows you to show the same information in multiple areas easily. You need to change the field's name if you want to have a different value (shouldn't the field's name be different if the value it represents is different?).
    There is an alternative to Acrobat PDF forms, you can use Adobe Livecycle to create dynamic PDF forms. It is much more advanced (you can create dynamic fields which change size, can be added as line items, and much more). It's also a much larger learning curve.
    If you think using Acrobats form features a problem, try creating a form in Microsoft Word.

  • Subform with table with expanding fields - please help!

    I am a new user of LiveCycle Designer ES and need help with a form.  I've made so many changes within the form that I have now lost track and don't know where to start to fix the following two issues:
    The form itself is one Master Page that needs to repeat, based on the amount of data entered.  This is not happening.
    Within the form is a Table with expanding fields.  It is when the last field is full that I need a new page created.Also, as the table expands, it overwrites the Footer, which is a subform.  The footer is set to have a top margin (.25).
    Any assistance would be much appreciated.  Thank you!

    Looks like a cross post.  see other thread here...
    http://forums.adobe.com/thread/489453?tstart=0

  • Text field Problem

    I created a form in Acrobat 9 Pro. When I type in the text fields to test my form, the text enters itself twice--laid on top of one another. The top set of text is bold. I checked properties and cannot find a solution. Any ideas??? Thanks.

    You probably made two copies of the same field, one on top of another.
    Look in the Fields panel and see if that field appears twice. If so, delete
    one instance.

  • Nokia 5220 WHITE SCREEN PROBLEM *Help plz*

    hello guys ... my phone's (5220) screen has gone White ... !! i have absolutely no idea what the problem is ! i took out the battery and put it back again .. but when i turn it on ..after the nokia logo the screen goes white again !! i cant do anything except for looking at the white screen...! the phone doesnt even turn off until you take out the battery !
    I tried to connect it to my PC (via data cable) but the phone does not get connected with the PC suite !!  PLZ HELP ME  !!

    Jimmyireland is right - anything that you could do yourself requires the phone to at least boot up properly, at the moment your phone is like PC with no Windows involved, it can't find its OS to start.
    The 5220 is a series 40 phone, there is facility for a forced reboot, it needs its software to be reflashed which is why you need the Nokia service point.

  • BDC Recording : Longetxt Text Field Problem

    Hi Experts,
    I was recording a BDC with Transaction PFCG. I want to record the LONGTEXT field in description Tab. but it is not. Can anybody tell me that how I can do it or if there is any FM or BAPI  available to update database table for that LONGTEXT?
    Thanks a lot in advance

    Hi Moni,
    * splie the text into line lengths of 132 or less and keep in internal table and put loop and endloop.
    and call the FM save_text..as given below..
    see the example how to SAve long text in BDC..
    *           Fill header work area
    *           Set Language Name, Text Object and ID
              w_thead-tdspras = t_texts-spart.         "Text language.
              w_thead-tdname = t_kunnr-kunnr.      "Customer Number
              w_thead-tdobject = c_kna1.               "Table Name KNA1
              w_thead-tdid = c_pick.                      "Picking Header ex:-'ZPIK'
    * Call the function to save text to the customer
              CALL FUNCTION 'SAVE_TEXT'
                EXPORTING
                  client          = sy-mandt
                  header          = w_thead
                  savemode_direct = 'X'
                TABLES
                  lines           = t_lines
                EXCEPTIONS
                  id              = 1
                  language        = 2
                  name            = 3
                  object          = 4
                  OTHERS          = 5.
              IF sy-subrc = 0.
            endif.
    Regards,
    Prabhudas

  • Annoying iphone problems, help plz?

    well, I'm having two annoying problems with my iphone, the first is that when I record a video or a photo, it does not save and the second is that it does not appear as a removable drive on the pc, SOMEBODY HELP ME PLZ :/

    You should try to restore the iPhone using iTunes make sure you back up, see if it helps.
    iPhones won't show as removable device if you are referring to be able to copy/transfer files similar to a usb flash drive. It is restricted based on Apple's specification altho it should appear as "Digital Camera Device" having access to your captured photo's or "camera roll" you should unlock your iPhone first before connecting to PC or Mac if you do have a password.
    As of saving issues, try to restore the firmware by itunes or resetting through iPhone settings as reset or restore.
    It should fix and work as normal, if it doesnt you can always go back from where you purchased it but it will. Goodluck.

  • WRH54G linksys setup problem help plz

    i just bought the WRH54G linksys wireless-G home router. I put the cd rom in and i followed every step and i have everything in the right place but when it is at step 9 when u have to choose between DHCP, PPPoE, or Static Ip i dont know which one to choose so i go with DHCP then step 10 after i put in the passwords and click next and it is checking internet connection it says the router is not able to connect to the internet. try turning cable/dsl modem off and back on again. do you want to try again?. that is where i get stuck and i have tried to turn it off and back on again and i doesnt work. can anyone help me out?

    I HAVE A DSL .. ROUTER PROBLEM
    STAYS IN STEP 9 AS WELL .. 
    checking internet connection it says the router is not able to connect to the internet. try turning cable/dsl modem off and back on again. do you want to try again?
    after some research am going to try to put MY MODEM in brigde Mode. maybe that'll fix the problem... Since it apears the linksys WRH54G is trying to connect to the internet DIRECTLY...  i dont knoe .... first time newbe  , i have a high level of computer experties.. but am having pro with dis NAW 25$ discounted outer.lol
    I have DSL from verizon... in there instusction on how to.. the first thing is to put the MODEM that they issued A WESTELL into brigde mode .. and setup..
    if anione gat this thing working after u gat this CANT CONECT TO INTERNET
    the router is not able to connect to the internet. try turning cable/dsl modem off and back on again. do you want to try again?
    please e-mail me with anifinding..
    .thanks in advance

  • Annoying podcast problem help plz

    hi guys,
    first if this is in the wrong place, i apologise, as you can see a new user.
    anyway, heres my problem,
    i just got hold of an ipod mini, and i use my itunes extensively for podcast listening,and i have a problem regarding when it comes to syncing them with my ipod.
    basically i would like my ipod to put any podcast that is listed as new in itunes on my ipod when i connect it.
    and yes it does that fine.
    but what problem i have is, when i come to syncing again, it will get the new ones ok, but it will remove all the ones previously put on there, and its annoying, as there are some i have not listened to yet.
    is there a setting were i can get my ipod/itunes to put all new podcasts on automatically, but leave them on until i decide to remove them.
    i have tried all the settings in the ipod/podcast settings, but none do that.
    so any help guys appreciated.
    is there a way to get my new podcasts on my ipod, but leave the others on.(and then what would be the easiest way to remove them when i do want them off??)

    You should try to restore the iPhone using iTunes make sure you back up, see if it helps.
    iPhones won't show as removable device if you are referring to be able to copy/transfer files similar to a usb flash drive. It is restricted based on Apple's specification altho it should appear as "Digital Camera Device" having access to your captured photo's or "camera roll" you should unlock your iPhone first before connecting to PC or Mac if you do have a password.
    As of saving issues, try to restore the firmware by itunes or resetting through iPhone settings as reset or restore.
    It should fix and work as normal, if it doesnt you can always go back from where you purchased it but it will. Goodluck.

Maybe you are looking for

  • Need help in BAPI_ACC_DOCUMENT_POST.

    Hi Friends, Can any one help me in passing on the TAX parameters and currency parameters to BAPI_ACC_DOCUMENT_POST. this is the code i am using . it is posting the document and a TAX line is not created . LOOP AT IT_ITEM WHERE HEAD_COL = IT_HEADER-FI

  • Creating a Report that Does Not Require a Target

    I have several reports I'm building that work across all systems of a particular type. For example, I want to create a table of all of the systems with all of their software versions, another table with all of the systems and all of their free capaci

  • HELP ios 5.0.1 bug contacts

    I currently have an iPhone 4s and of course the ios 5.0.0. was preinstalled with ATT network, with no real problems.  I update this program Over the Air (OTA) with 5.0.1 and lost all my contacts and bad battery life now.  I get my contacts from Yahoo

  • BADi called from transaction FB60

    Hi all I am looking for a BADi called from transaction FB60 in ECC 6.0. This is needed due to the fact we will develope a solution where we transfer the cost from an invoice booked to an intern order and transfer the cost and currency to CRM 7.0. Ple

  • Should We Upgrade To The 9.2.0.5 Patchset

    Hi, I notice that the 9.2.0.5 patchset is now available on Metalink, using patch number 3501955. It comes with an upgraded version of Oracle OLAP, which brings it up to 9.2.0.5 Should we upgrade to this new version? If we do, will the AWM and the OWB