Clear a table

Hi,
I need to clear a table (this table is a context node and the rows are the attributes of this node) when I click on the button 'Back'.
What method can I use?
Tks...

Invalidate your node where you want to clear your table.
You can use following code.
data lo_nd_<node_name> type ref to if_wd_context_node.
lo_nd_<node_name> = wd_context->get_child_node( name = wd_this->wdctx_<node_name> ).
lo_nd_<node_name>->invalidate( ). " in place of <node_name> put name of your node which is binded to table UI.
I hope it helps.
Regars,
Rohit

Similar Messages

  • How to clear UNB table in the payroll result?

    Hi,
    We are getting the payroll error- The gross wages do not cover the negative offset that has been forwarded. Therefore, no gross up is permitted while running the Grossup.
    I see the below table "UNB table" in the last payroll result. "UNB - Unbalance table used for tax retrocalculation" .
    I think we are getting the above error because of this UNB table, can anyone help me to how to clear this table?
    When we run the regular payroll, no tax is being deducted.
    Please help
    Saurabh

    Hi Arti,
    Thanks for your reply!!..
    Seeing your reply, it gives me bit confidence to crack the existing problem, however, I'm still not clear with your answer... let me explain you the problem-
    1. Employee was given 350,000 though Taxable Bonus WT with regular pay check
    2. Later it came to know- out of the above amount, 75000 was Grossup amount
    3. So in next payroll run, they entered -75000/- in regular Taxable bonus WT and +75000 in Grossup WT and also they deleted one IT210 record of GA tax authority which was wrongly created; and ran the payroll
    4. Since then, in next payroll period- No tax is being deducted, so we are creating IT221 infotypes with Tax wagetype
    5. If we are running the Grossup wage, payroll error- The gross wages do not cover the negative offset that has been forwarded; therefore, no grossup is permitted.
    While running the regular payroll, overpayment Wagetype is being generated.
    Now, I saw this UNB table is created and the below wagetype are there in the UNB table-
    WT /5UT amount 0.00
    WT 5430 amount -75000
    WT 0200 amount 12500 ( Monthly salary)
    WT 4530 amount 350000
    Now I am thinking, if we are deducting tax through IT221,if we clear this UNB table, our problem might get resolved
    It will be a great help for me if you can tell-
    1. how to check, claims process is implemented or not?
    2. I have good HCM experiece but this claims process is very new to me- pls guide me how to do that
    Waiting for your reply, thanks in advance
    Saurabh Garg

  • Clear the table data in PDF form

    Hi all,
    I am workin gon WD ABAP, where i  have a Interactive UI elelemt, and i am calling a PDF in to it.
    The PDF has a table, of which i am able to display , read  and save the data to Database.
    But after clicking on the save button , i want the table data to be cleared, which is not happening.
    I tried with binding with an empty internal table, but that gives an error "SOM Expression....."..!!
    Can any one let me know how to clear the PDF table data after clicking on some button.?
    All replies will be appreciated...

    Hi Runal,
    I am not sure about PDF as never worked on it but we can clear the table on view by simply invalidating the node by which you have binded your table. try to invalidate if it helps...
    this is the code to invalidate....
    lo_nd_nodename->invalidate( ).
    regards
    Pranav

  • How to clear the table control content

    Hi All,
    I am doing BDC for cost estimate change. In this the transaction KKPB contains table control. So when ever i process with particular cost estimate, i need to fill the table control with the values. Here when i am doing the BDC for change, i need to clear all the contents of the table control then i need to fill with new entries.
    So my problems is how to clear the table control entriee?? please help me in this??
    Many Thanks,
    Raghu.

    Hi this might help u.
    Check the below link.
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    THis is example to upload the Bank details of the Vendor which has the TC.
    REPORT zprataptable2
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA : BEGIN OF itab OCCURS 0,
            i1 TYPE i,
            lifnr LIKE   rf02k-lifnr,
            bukrs LIKE   rf02k-bukrs,
            ekorg LIKE   rf02k-ekorg,
            ktokk LIKE   rf02k-ktokk,
            anred LIKE lfa1-anred,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            land1 LIKE lfa1-land1,
            akont LIKE lfb1-akont,
            fdgrv LIKE lfb1-fdgrv,
             waers LIKE lfm1-waers,
            END OF itab.
    DATA : BEGIN OF jtab OCCURS 0,
            j1 TYPE i,
            banks LIKE lfbk-banks,
            bankl LIKE lfbk-bankl,
            bankn LIKE lfbk-bankn,
             END OF jtab.
    DATA : cnt(4) TYPE n.
    DATA : fdt(20) TYPE c.
    DATA : c TYPE i.
    INCLUDE bdcrecx1.
    START-OF-SELECTION.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          filename = 'C:\first1.txt'
          filetype = 'DAT'
        TABLES
          data_tab = itab.
      CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
         filename                      = 'C:\second.txt'
         filetype                      = 'DAT'
        TABLES
          data_tab                      = jtab.
      LOOP AT itab.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'RF02K-LIFNR'
                                      itab-lifnr.
        PERFORM bdc_field       USING 'RF02K-BUKRS'
                                      itab-bukrs.
        PERFORM bdc_field       USING 'RF02K-EKORG'
                                       itab-ekorg.
        PERFORM bdc_field       USING 'RF02K-KTOKK'
                                       itab-ktokk.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFA1-ANRED'
                                      itab-anred.
        PERFORM bdc_field       USING 'LFA1-NAME1'
                                      itab-name1.
        PERFORM bdc_field       USING 'LFA1-SORTL'
                                      itab-sortl.
        PERFORM bdc_field       USING 'LFA1-LAND1'
                                      itab-land1.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0120'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFBK-BANKN(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        cnt = 0.
        LOOP AT jtab WHERE j1 = itab-i1.
          cnt = cnt + 1.
          CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
          PERFORM bdc_field  USING fdt jtab-banks.
          CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
          PERFORM bdc_field USING fdt jtab-bankl.
          CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
          PERFORM bdc_field   USING fdt jtab-bankn.
          IF cnt = 5.
            cnt = 0.
            PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'LFBK-BANKS(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=P+'.
            PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'LFBK-BANKN(02)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=ENTR'.
          ENDIF.
        ENDLOOP.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0210'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB1-FDGRV'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFB1-AKONT'
                                      itab-akont.
        PERFORM bdc_field       USING 'LFB1-FDGRV'
                                      itab-fdgrv.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0215'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB1-ZTERM'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0220'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB5-MAHNA'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0310'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFM1-WAERS'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFM1-WAERS'
                                      itab-waers.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0320'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RF02K-LIFNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM bdc_dynpro      USING 'SAPLSPO1' '0300'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=YES'.
        PERFORM bdc_transaction USING 'XK01'.
      ENDLOOP.
      PERFORM close_group.
    Header file:
    1     63190      0001     0001     0001     mr     bal188     b     in     31000     a1     inr
    2     63191      0001     0001     0001     mr     bal189     b     in     31000     a1     inr
    TC file:
    1     in     sb     11000
    1     in     sb     12000
    1     in     sb     13000
    1     in     sb     14000
    1     in     sb     15000
    1     in     sb     16000
    1     in     sb     17000
    1     in     sb     18000
    1     in     sb     19000
    1     in     sb     20000
    1     in     sb     21000
    1     in     sb     22000
    2     in     sb     21000
    2     in     sb     22000
    REPORT zmm_pr_upload_mat
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Standard Include for Selection Screen
    INCLUDE bdcrecx1.
    Internal Table for Upload Data
    DATA: BEGIN OF i_pr OCCURS 0,
    Header Screen
            sno(3),               " SNo
            bsart(004),           " PR Type
            epstp(001),           " Item Category
            knttp(001),           " Account Assignment
            eeind(010),           " Delivery Date
           lpein(001),          " Category of Del Date
            werks(004),           " Plant
            lgort(004),           " Storage Location
            ekgrp(003),           " Purchasing Group
            matkl(009),           " Material Group
            bednr(010),           " Tracking No
            afnam(012),            " Requisitioner
    Item Details
            matnr(018),           " Material No
            menge(017),           " Quantity
           badat(010),
           frgdt(010),
            preis(014),           " Valuation Price
           waers(005),           " Currency
           peinh(005),
           wepos(001),
           repos(001),
            sakto(010),           " GL Account
            kostl(010),           " Cost Center
           bnfpo(005),
          END OF i_pr.
    Internal Table for header Data
    DATA: BEGIN OF it_header OCCURS 0,
            sno(3),               " SNo
            bsart(004),           " PR Type
            epstp(001),           " Item Category
            knttp(001),           " Account Assignment
            eeind(010),           " Delivery Date
            werks(004),           " Plant
            lgort(004),           " Storage Location
            ekgrp(003),           " Purchasing Group
            matkl(009),           " Material Group
            bednr(010),           " Tracking No
            afnam(012),            " Requisitioner
          END OF it_header.
    Internal Table for Item Data
    DATA: BEGIN OF it_item OCCURS 0,
            sno(3),               " SNo
            matnr(018),           " Material No
            menge(017),           " Quantity
            preis(014),           " Valuation Price
            sakto(010),           " GL Account
            kostl(010),           " Cost Center
          END OF it_item.
    Data Variables & Constants
    CONSTANTS : c_x             VALUE 'X'.  " Flag
    DATA : v_l(2),                          " Counter
           v_rowno(5),                      " Row No
           v_2(2),                          " Counter
           v_rows LIKE sy-srows,            " Rows in TC
           v_field(45).                     " String
    Parameters
    PARAMETERS: p_file LIKE ibipparms-path.  " Filename
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start of Selection
    START-OF-SELECTION.
    Open the BDC Session
      PERFORM open_group.
    Upload the File into internal Table
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = i_pr
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SORT i_pr BY sno.
      LOOP AT i_pr.
        MOVE-CORRESPONDING i_pr TO it_item.
        APPEND it_item.
        CLEAR it_item.
        AT END OF sno.
          READ TABLE i_pr INDEX sy-tabix.
          MOVE-CORRESPONDING i_pr TO it_header.
          APPEND it_header.
          CLEAR it_header.
        ENDAT.
      ENDLOOP.
      SORT it_header BY sno.
      SORT it_item BY sno.
      v_rows = sy-srows - 6.
    Upload the Data from Internal Table
      LOOP AT it_header.
    Header Data
        PERFORM bdc_dynpro      USING 'SAPMM06B' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'EBAN-BEDNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'EBAN-BSART'
                                      it_header-bsart.
        PERFORM bdc_field       USING 'RM06B-EPSTP'
                                      it_header-epstp.
        PERFORM bdc_field       USING 'EBAN-KNTTP'
                                      it_header-knttp.
        PERFORM bdc_field       USING 'RM06B-EEIND'
                                      it_header-eeind.
       PERFORM bdc_field       USING 'RM06B-LPEIN'
                                     it_header-lpein.
        PERFORM bdc_field       USING 'EBAN-WERKS'
                                      it_header-werks.
        PERFORM bdc_field       USING 'EBAN-LGORT'
                                      it_header-lgort.
        PERFORM bdc_field       USING 'EBAN-EKGRP'
                                      it_header-ekgrp.
        PERFORM bdc_field       USING 'EBAN-MATKL'
                                      it_header-matkl.
        PERFORM bdc_field       USING 'EBAN-BEDNR'
                                      it_header-bednr.
        PERFORM bdc_field       USING 'EBAN-AFNAM'
                                      it_header-afnam.
    Item Details
        v_l = 0.
    To add no. of rows
        v_2 = 0 .
    As the screen is showing 13 rows defaulted to 130
        v_rowno = 130 .
        LOOP AT it_item WHERE sno = it_header-sno.
          v_l = v_l + 1.
          IF v_l = 14 .
            IF v_2 = 12 .
              v_2 = 12 .
              v_l = 2 .
    From second time onwards it is displaying 12 rows only
              v_rowno = v_rowno + 120 .
              PERFORM bdc_dynpro      USING 'SAPMM06B' '0106'.
              PERFORM bdc_field       USING 'BDC_CURSOR'
                                            'RM06B-BNFPO'.
              PERFORM bdc_field       USING 'RM06B-BNFPO'
                                            v_rowno.
              PERFORM bdc_field       USING 'BDC_OKCODE'
                                            '/00'.
              PERFORM bdc_field       USING 'BDC_OKCODE'
                                                '/00'.
            ELSE.
    V_2 initialized to 12 for second screen purpose
              v_2 = 12 .
              v_l = 2 .
              PERFORM bdc_dynpro      USING 'SAPMM06B' '0106'.
              PERFORM bdc_field       USING 'BDC_CURSOR'
                                            'RM06B-BNFPO'.
              PERFORM bdc_field       USING 'RM06B-BNFPO'
                                            v_rowno .
              PERFORM bdc_field       USING 'BDC_OKCODE'
                                            '/00'.
              PERFORM bdc_field       USING 'BDC_OKCODE'
                                                '/00'.
            ENDIF.
          ENDIF.
          PERFORM bdc_dynpro      USING 'SAPMM06B' '0106'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          CLEAR v_field.
          CONCATENATE 'EBAN-MATNR(' v_l ')' INTO v_field.
          PERFORM bdc_field   USING v_field it_item-matnr.
          CLEAR v_field.
          CONCATENATE 'EBAN-MENGE(' v_l ')' INTO v_field.
          PERFORM bdc_field   USING v_field it_item-menge.
          PERFORM bdc_dynpro      USING 'SAPMM06B' '0102'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'EBAN-PREIS'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'EBAN-PREIS'
                                      it_item-preis.
          PERFORM bdc_dynpro      USING 'SAPMM06B' '0505'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'EBKN-SAKTO'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTE'.
          PERFORM bdc_field       USING 'EBKN-SAKTO'
                                      it_item-sakto.
    Cost Center
          PERFORM bdc_dynpro      USING 'SAPLKACB' '0002'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'COBL-KOSTL'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTE'.
          PERFORM bdc_field       USING 'COBL-KOSTL'
                                        it_item-kostl.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTE'.
        ENDLOOP.
        PERFORM bdc_dynpro      USING 'SAPMM06B' '0106'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RM06B-BNFPO'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BU'.
    Call The Transaction
        PERFORM bdc_transaction USING 'ME51'.
      ENDLOOP.
    Close the BDC Session
      PERFORM close_group.
    with regards,
    Hema Sundara.

  • Clearing a Table control

    Hi
    Can anyone tell me how to clear the table control.
    I have cleared the internal table .
    But it is not getting cleared.
    Cheers
    Christina

    REPORT  ZFI_CF_PLANING
            NO STANDARD PAGE HEADING
            MESSAGE-ID Z00.
    *&  TABLE DECLARATIONS
    TABLES: ZFI_CF_PLANING,ZFI_CF_TABMAIN.
    *&  DATA DECLARATIONS
    DATA: PAYDATE TYPE ZFI_CF_PLANING-CALDATE.
    data : t_cvalue type zfi_cf_planing-cvalue,
           t_cperiod type zfi_cf_planing-cperiod,
           t_cyear   type zfi_cf_planing-calyear,
    *RES,          "To Store Response Code of Dialog Box
          V_MODE(4),    "To Store sy-ucomm
          V_buper     TYPE T009B-POPER,
          v_gjahr     TYPE T009B-BDATJ,
          V_Dbuper     TYPE T009B-POPER,
          v_Dgjahr     TYPE T009B-BDATJ,
          V_QTY_VALUE TYPE ZFI_CF_PLANING-INVALUE,
          V_RAT_VALUE TYPE ZFI_CF_PLANING-INVALUE,
          V_TOT_VALUE TYPE ZFI_CF_PLANING-INVALUE,
          V_MAT_CONS  TYPE ZFI_CF_PLANING-INVALUE,
          V_CHECK     TYPE ZFI_CF_PLANING-INVALUE,
          V_code      TYPE ZFI_CF_PLANING-code,
          R_buper     TYPE T009B-POPER,
          R_gjahr     TYPE T009B-BDATJ,
          V_ACCNO     TYPE ZFI_CF_TABMAIN-ACCNO,
          V_ACCNO1     TYPE ZFI_CF_TABMAIN-ACCNO,
          PDATUM      TYPE D.
    *--Table Control Declaration
    CONTROLS MAIN TYPE TABLEVIEW USING SCREEN 100.
    *&  INTERNAL TABLE DECLARATIONS
    data : it_final type standard table of ZFI_CF_PLANING initial size 0
    with header line.
    *data : it_final2 type standard table of ZFI_CF_PLANING initial size 0
    *with header line.
    DATA : IT_CHECK LIKE ZFI_CF_PLANING OCCURS 1 WITH HEADER LINE.
    *&  START-OF-SELECTION
    START-OF-SELECTION.
      SELECT *
      INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
      FROM mara
      up to 100 rows.
    *--Calling the Screen
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          Setting the Toolbar and Titlebar
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MENU'.
      SET TITLEBAR 'TITLE'.
      IF V_MODE = 'COPY'.
           SELECT *
             FROM ZFI_CF_PLANING
             INTO TABLE IT_FINAL
            where pyear = V_GJAHR
              and pperiod = V_BUPER
              and accno   = zfi_cf_PLANING-accno.
          SORT IT_FINAL BY BUOM DESCENDING.
          DATA : V_DES  TYPE ZFI_CF_TABMAIN-DESCRIP2.
           SELECT SINGLE
                  DESCRIP2
            FROM ZFI_CF_TABMAIN
            INTO V_DES
           WHERE CODE = 'EXSALE'
             AND ACCNO = ZFI_CF_planing-ACCNO
             or  CODE  = 'LSALE'.
            IF SY-SUBRC = 0.
              ZFI_CF_TABMAIN-DESCRIP2  = V_DES.
            endif.
    ENDIF.
      IF V_MODE = 'CLEA'.
      REFRESH IT_FINAL.
      CLEAR : V_MODE.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          Moving the modified records into other internal table
          and displaying the those in ALV POPUP GRID
    MODULE USER_COMMAND_0100 INPUT.
    *BREAK-POINT.
      CASE SY-UCOMM.
        WHEN 'EXIT' or 'CANC' OR 'BACK'.
          LEAVE PROGRAM.
        WHEN 'COPY'.
          V_MODE = SY-UCOMM.
          V_ACCNO1 = ZFI_CF_PLANING-ACCNO.
          V_Dbuper = ZFI_CF_PLANING-PPERIOD.
          v_Dgjahr = ZFI_CF_PLANING-PYEAR.
          CLEAR SY-UCOMM.
        WHEN 'PROC'.
          V_MODE = SY-UCOMM.
          V_ACCNO1 = ZFI_CF_PLANING-ACCNO.
          V_Dbuper = ZFI_CF_PLANING-PPERIOD.
          v_Dgjahr = ZFI_CF_PLANING-PYEAR.
          CLEAR SY-UCOMM.
        WHEN 'CLEA'.
          V_MODE = SY-UCOMM.
          CLEAR SY-UCOMM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  SAVE_REC  INPUT
          Modifiying the current record of table control
    MODULE SAVE_REC INPUT.
    MOVE-CORRESPONDING ZFI_CF_PLANING TO IT_FINAL.
       MODIFY IT_FINAL INDEX MAIN-CURRENT_LINE.
       IF SY-SUBRC <> 0.
       APPEND IT_FINAL.
       ENDIF.
      IF V_MODE = 'PROC'.
          IF ZFI_CF_PLANING-CODE <> '' .
              data : v_code1 type ZFI_CF_tabmain-code.
              SELECT SINgLE CODE
              FROM ZFI_CF_CATMAster
              INTO V_CODE1
              WHERE CODE = ZFI_CF_PLANING-CODE.
              IF SY-SUBRC <> 0.
                MESSAGE I001(YMSG) WITH 'Invalid code'.
              ENDIF.
           ENDIF.
    ENDIF.
    ENDMODULE.                 " SAVE_REC  INPUT
    *&      Module  DISPLAY  OUTPUT
          text
    module DISPLAY output.
    MOVE-CORRESPONDING IT_FINAL TO ZFI_CF_PLANING.
    endmodule.                 " DISPLAY  OUTPUT
    *&      Module  COPY  OUTPUT
          text
    module COPY output.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX 1.
    MOVE-CORRESPONDING IT_FINAL TO ZFI_CF_PLANING.
    IF V_MODE = 'PROC'.
           ZFI_CF_PLANING-ACCNO = V_ACCNO1.
           ZFI_CF_PLANING-PPERIOD = V_DBUPER.
           ZFI_CF_PLANING-PYEAR   = V_DGJAHR.
            SELECT SINGLE DESCRIP2
            FROM ZFI_CF_TABMAIN
            INTO ZFI_CF_TABMAIN-DESCRIP2
           WHERE ACCNO = ZFI_CF_PLANING-ACCNO.
    CLEAR : V_MODE.
    ENDIF.
    IF V_MODE = 'COPY'.
           ZFI_CF_PLANING-ACCNO = V_ACCNO1.
           ZFI_CF_PLANING-PPERIOD = V_DBUPER.
           ZFI_CF_PLANING-PYEAR   = V_DGJAHR.
    CLEAR : V_MODE.
    ENDIF.
    endmodule.                 " COPY  OUTPUT
    flow logic code in screen level
    *PROCESS BEFORE OUTPUT.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT IT_FINAL WITH CONTROL MAIN CURSOR MAIN-TOP_LINE.
    MODULE DISPLAY.
    ENDLOOP.
    MODULE COPY.
    *PROCESS AFTER INPUT.
    PROCESS AFTER INPUT.
    MODULE QUIT AT EXIT-COMMAND.
    FIELD ZFI_CF_planing-ACCNO MODULE VALIDATE_ACCNO.
    FIELD ZFI_CF_PLANING-PYEAR MODULE VALIDATE_PYEAR.
    FIELD ZFI_CF_PLANING-PPERIOD MODULE VALIDATE_PPERIOD.
    MODULE USER_COMMAND_0100.
    LOOP AT IT_FINAL.
       MODULE SAVE_REC.
    ENDLOOP.
    MODULE CALCULATE.
    *MODULE CHANGE_SCREEN2.

  • CLEAR INTERNAL TABLE

    IN WHICH CONDITION CLEAR INTERNAL TABLE,APPEND INTERNAL TABLE  STATEMENT IS USED?

    hi,
    Normally we use clear statement immediately after using append statement... so as to clear the header of internal table ..
    loop at itab.
      itab1-field1 = itab-field.
      append itab1.
      clear itab1.
    endloop.

  • Issue with clearing internal table

    Hi Gurus,
    I am working on an issue, where when we run a std. report we see social number of the employee on the output screen, when I debugged the program I found that there are 2 internal tables where we are putting this SSN. I tried to clear the SSN at the both the places like:
    loop at it_table.
    clear it_table-SSN.
    Endloop.
    but still when I ran the report I am seeing social there. so can you please give me any idea of what I am doing wrong?
    Thanks,
    Rajeev Gupta

    Hi rajeev,
    even after ur clearing if the field is still populating it means again its filling the particular field in the later place.
    1) keep ur code and while debuging just click on watchpoint and give ur field name go with f8 it will take u to the place the field is filling..
    2) below that place clear that field and modify the table..

  • Clearing Custom Table

    I have a custom table ztable, what is the best way to clear all contents ?

    megan,
        u can clear the custom table but deleting the contents.
    Go to SE11>give the table name->press F6 function key(change)--->give ctrlshiftF10 key -
    >execute, it will show the contents.
    there is an option to select all the contents and the delete button is also available in the menu.
    hope this helps u.
    Regards...
    Arun.

  • How to clear the table contents for the new selection values?

    Hi,
    Im developing some very basic web dynpro applications.I have created one application to demonstrate use of SERVICE CALL.Now in one of the COntext Nodes,I have one attributes as TABLE.I have 2 input fields and when i enter any sel critteria in these 2 fields,the table is populated accordingly.Now when i change the value in the input fields,the new output gets appended in the output TABLE.How do I clear the contents of the OUTPUT table attribute  in the method?
    Can someone tell me the common methods used with context nodes like REFRESHING,CLEARING etc?How do I know which methods to call for what action of the nodes ...like for binding internal table to any context node we use the method BIND_TABLE...
    Any inputs will be highly appreciated.
    Thanks!
    BR,
    SRM tech.

    Hi,
    To clear the contents of the node, use invalidate method.
    data: l_node type ref to if_wd_context_node.
    l_node  = wd_context->get_child_node( 'NODENAME' ).
    l_node->invalidate( ). " all the data in the node will be cleared
    To clear a single attribute you can use set_attribute_null.
    Regards,
    Radhika.

  • E3200 clears DHCP table randomly

    My E3200 has been clearing it's DHCP table at random times. When it's been cleared the router starts handing out duplicate addresses. It's running the latest (1.0.02 build 9 Sep 1, 2011) firmware and otherwise seems to be working fine. Any ideas what could cause this behavior?

    Tried one last thing
    1. Did full factory Reset
    2. Reloaded firmware
    3. Did Full Factory Reset
    4. Manualy Enter all settings.
    Still Clearing DHCP Client Table every 5 min
    Network Settings
    1. WAN DHCP Charter Buisness. (Static address) I know it is odd but it is Static asigned address via DHCP. Asigned Domain Hanseenv.net
    2. LAN 192.168.10.1
    3. Start Address: 192.168.10.175
    4. Max Number of Clients: 75
    5. Static DNS(1-3) 192.168.10.100, 192.168.10.100, 0.0.0.0
    6. WINS: 192.168.10.100

  • CSS 11500 - how to clear sticky-table entry

    Hi together,
    1. is there any possibility to clear an entry in the sticky table ?
    2. how could I find a sticky table entry, belong to a certain IP Addres or flow ?
    commands I know to find more details infos about the sticky table and the flows find below, but how could I merge these infos ?
    #sh sticky-table l3-sticky
    L3 Sticky List on Slot 1, subslot 1:
    Entries for page 1.
    Entry Hash Rule Rule Srv Srv Time(Sec) Hit Col Elem Inact
    Number Value Indx State Indx State Elapsed Cnt Cnt Type Cfg(Min)
    1 a18015a 26 ACT 23 ALIVE 659 1 0 L3 15
    2 a18015a 28 ACT 12 ALIVE 43 19 0 L3 15
    3 a18016d 28 ACT 13 ALIVE 16 22 0 L3 15
    4 a180170 26 ACT 12 ALIVE 727 1 0 L3 15
    5 a180170 28 ACT 13 ALIVE 37 20 0 L3 15
    6 a180171 28 ACT 12 ALIVE 46 24 0 L3 15
    7 a180188 26 ACT 24 ALIVE 695 1 0 L3 15
    for the flows:
    # flow-agent show active_fcbs
    Flow ID Src IP SPort Dst IP DPort Pr slot sub spt dpt Flow flg
    8499f000 172.29.149.144 443 172.21.211.155 52988 6 2 1 1 1 00000098
    83e0c860 172.19.28.47 1107 172.29.149.144 443 6 2 1 1 1 00001098
    84049a40 172.29.148.149 389 172.29.27.133 35292 6 2 1 1 1 00000119
    83b97160 172.28.19.130 4647 172.29.149.144 81 6 2 1 1 1 00001089
    84588ae0 172.29.27.133 6101 172.29.148.167 33054 6 2 1 1 1 00000508
    # flow-agent show fcb_details 0x83650080
    Fcb Details for FCB: 0x83650080
    SRC: 172.29.148.149-389 NAT: 172.29.149.136-389
    DST: 172.29.27.133-40833 NAT: 172.29.27.133-40833
    DMAC: 00-01-f4-16-e5-e6 SMAC: 00-0b-fd-be-c6-7d
    IP Hdr ChkD: 65292 TCP/UDP Hdr ChkD: 65292
    TCP SequenceD: 0 Task CE: 0
    BytesIn: 1460 Frames In: 14
    Dest VLAN: 101 Src/Dst Ports: 0/0
    Slot/SubSlot: 2/1 SmbQ/PrcSwP: 32/1
    Time Stamp / Time Out Info:
    CurSecs: 1846643:342, started: 1793589:504 last activity: 1845164
    May timeout due to inactivity: Yes , inactiveTimeout: 1048528
    Inactive Secs: 1479, will timeout in: 1047049 secs
    FCB Flags: 0x0119
    0x0001 - Natting In Use
    0x0000 - NOT L5 Aware
    0x0000 - Non-Spoofed
    0x0008 - IP/TCP Flow
    0x0010 - Remote - Egress port
    0x0100 - In LL List
    0x0000 - Server-side
    FCB FlaFlags: 0x8040
    0x0040 - Is a static FCB
    0x8000 - Handled an ACK

    1/ to clear use the comand 'sticky-purge ...' from llama mode.
    2/ To see if an entry exist of a particular ip address, use the command 'sho sticky-table l3-sticky ipaddress ...'
    Regards,
    Gilles.

  • How to clear the table data at the time of leaving fromt the page

    Hi all,
    I have requirement to clear all the table data on the page. For that i have written code like
    public void clearRunCalcPage(){
    System.out.println("Inside clearRunCalcPage");
    this.getCmProcessView().executeEmptyRowSet();
    this.getCmProcessFiveRecordsView().executeEmptyRowSet();
    But for clearing i don't have any button and i don't have next button also, based on menu navigation i will move from 1 page to another. Here my problem is where can i put this login, i tried with the constructor of the page but that time i am getting errors when i came to the page.
    Can any one suggest me.

    Call a backing bean method on click of the next page and place the below code in the backing bean
              ViewCriteria vc = myView.getViewCriteria("criteriaName");
              vc.setProperty(ViewCriteriaHints.CRITERIA_AUTO_EXECUTE, false);Morgan.

  • How to clear the table control?

    Hi experts,
      I have a table control in the selection screen of my program.When i enter some input values in the selection screen and execute it some process is done in the background and get a status message on the selection screen itself that the process is finished.Once this is done i want to clear all the lines entered in table control in the selection screen.Can anyone please tell me how to do this?
    Thanks.
    dp.

    Hi,
    If the table control is created using internal table , then in PBO just clear and refresh that table
    PROCESS BEFORE OUTPUT
    CLEAR itab.
    REFRESH ITAB.
    The <internal table> here should be the internal table that u use to diaply in the table control
    Regards,
    Priyanka.

  • Clear DB Table Buffer in J2EE Engine

    Hi all,
    Is it possible to clear specific database table buffer in Open SQL layer in J2EE engine? I'm insterested in programmatically and manually approach.
    I know that buffer is automatically refreshed after successfull INSERT, UPDATE or DELETE statement, but unfortunately is unaffected if I change data outside OpenSQL connection - for example if I change data in SQL Studio, data readed from table buffer stay unmodified.
    Regards,
    Juraj

    Hi Babu,
    if the Z table has the VBELN in the key and the only process updating this table is the USEREXIT_SAVE_DOCUMENT_PREPARE, then you do not need any additional locking for this table.
    But you should put this updating into a function module and call this function IN UPDATE TASK in the user exit.
    Then you can be sure, that the update take place with the successful save of the sales document, any errors will roll it back together with order data. Database consistency is given.
    Regards,
    Clemens

  • Have to "clear arp" table to get traffic to pass

    I have a very unusual problem that I can't figure out. We have a 2800 series router we are using as our voice gateway. It has been running fine for about 6 months but then a few days ago, it started dropping off the network every 10 minutes or so. We initially found that unplugging the patch cable and pluggint it back in would correct the problem temporarily for another 10 minutes or so. However, now we have discovered that the simply running "clear arp" on the router gets it back up and running.
    Here is what happens. The router drops off the network, not pingable by CallManager or Unity. If we do a clear arp, it is immediately back up and going again.
    We have updated the IOS, even changed from spservices to ip voice ios, moved it to a different switch, and even set the arp entries manually, but we still have to clear arp every few minutes to keep it up. When it stops responding on the network, we can console into it and look at the arp table, and its right. But until we issue a clear arp, it can't connect to certain network devices like CM and Unity.
    Any ideas?

    The problem is almost surely due to duplicate addresses somewhere. Someone has probably accidentally configured the gateway address as the static IP address on a different device on the same LAN segment. Or, the gateway address was accidentally given out via DHCP.
    Regardless, I'd bet money that something like this happened.

Maybe you are looking for