Screen Resolution Table Control

Dear All,
I have some questions in Module pool and BDC.
1. how to handle Table Control in module pool programming as it's displaying lines in a table control differs from one system to other.
2. How to handle the same situation while uploading the data in table control in BDC.
Kindly let me know.
Many Thanks,
Ranjan

Hi,
It's opening for me.It is available in SDN download Technical Samples ABAP library.
Here is the code.
In the flow logic of the screen 9000, write the following code.
PROCESS BEFORE OUTPUT.
  MODULE set_status.
  MODULE get_t_ctrl_lines.
  LOOP AT i_makt WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.
* Dynamic screen modifications
    MODULE set_screen_fields.
  ENDLOOP.
PROCESS AFTER INPUT.
  LOOP AT i_makt.
    FIELD i_makt-pick MODULE check.
    FIELD i_makt-zmatnr MODULE zmatnr .
  ENDLOOP.
  MODULE user_command_9000.
In the program, write the following code.
PROGRAM SAPMZTC MESSAGE-ID zz.
* Tables Declaration
TABLES: zzz_makt.
* Internal table Declaration
DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.
* Table control Declaration
CONTROLS: t_ctrl TYPE TABLEVIEW USING SCREEN '9000'.
* Variable Declaration
DATA : flg,           "Flag to set the change mode
       ln TYPE i.     "No. of records
*&      Module  get_T_CTRL_lines  OUTPUT
*  Populating data
MODULE get_t_ctrl_lines OUTPUT.
  SELECT zmatnr zmaktx
         INTO CORRESPONDING FIELDS OF TABLE i_makt
         FROM zzz_makt.
  DESCRIBE TABLE i_makt LINES ln.
* To make the vertical scroll bar to come on runtime
  t_ctrl-lines = ln + 100.
ENDMODULE.                 " get_T_CTRL_lines  OUTPUT
*&      Module  USER_COMMAND_9000  INPUT
* Triggering event according to the user command
MODULE user_command_9000 INPUT.
  DATA :lv_fcode LIKE sy-ucomm,    "Function Code
        lv_answer(1) type c.       "Storing the answer
  lv_fcode = sy-ucomm.
  CASE lv_fcode.
    WHEN 'CHANGE'.
* Setting the flag to make the table control in editable mode[excluding
* primary key].
      flg = 'Y'.
    WHEN 'DELETE'.
* Setting the flag to make the table control in editable mode after
* deleting the selected line
      flg = 'Y'.
* Confirmation of delete
      CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
         TITLEBAR       = 'Confirm'
         text_question  = 'Are you sure to delete from database?'
         TEXT_BUTTON_1  = 'Yes'(001)
         TEXT_BUTTON_2  = 'No'(002)
        IMPORTING
         ANSWER         =  lv_answer.
      if lv_answer eq '1'.
* Updating the database table from the internal table
        UPDATE zzz_makt FROM TABLE i_makt.
* Deleting the selected row from the internal table
        DELETE i_makt WHERE pick = 'X'.
* Deleting the selected row from the database table
        DELETE FROM zzz_makt WHERE pick = 'X'.
        MESSAGE s005 WITH 'Deleted Successfully'.
      ENDIF.
    WHEN 'SAVE'.
* Inserting new record or updating existing record in database table
* from the internal table
      MODIFY zzz_makt FROM TABLE i_makt.
      MESSAGE s005 WITH 'Saved Successfully'.
    WHEN 'BACK'.
      SET SCREEN '0'.
    WHEN 'EXIT' OR 'CANCEL'.
* Leaving the program
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9000  INPUT
*&      Module  set_screen_fields  OUTPUT
* Setting the screen fields
MODULE set_screen_fields OUTPUT.
  LOOP AT SCREEN.
    IF flg IS INITIAL.
      screen-input = 0.
    ELSEIF ( flg EQ 'Y' ).
      IF ( ( screen-name = 'I_MAKT-ZMAKTX'
             OR screen-name = 'I_MAKT-CHECK1' )
            AND t_ctrl-current_line LE ln ) .
* Making the screen fields as editable
        screen-input = 1.
      ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )
                 AND t_ctrl-current_line LE ln ).
* Making the screen field as uneditable
        screen-input = 0.
      ENDIF.
    ENDIF.
* Modifying the screen after making changes
    MODIFY SCREEN.
  ENDLOOP.
ENDMODULE.                 " set_screen_fields  OUTPUT
*&      Module  zmatnr  INPUT
* Appending records to the internal table
MODULE zmatnr INPUT.
  MODIFY i_makt INDEX t_ctrl-current_line.
  IF t_ctrl-current_line GT ln.
    READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.
    IF sy-subrc NE 0.
* Inserting record if it does not exist in database
      APPEND i_makt.
    ELSE.
     MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.
    ENDIF.
  ENDIF.
ENDMODULE.                 " zmatnr  INPUT
*&      Module  set_status  OUTPUT
* Setting the GUI status
MODULE set_status OUTPUT.
  SET PF-STATUS 'ZSTATUS'.
  SET TITLEBAR  'ZTITLE'.
ENDMODULE.                 " set_status  OUTPUT
*&      Module  CHECK  INPUT
* Modify the internal table using the current line in table control
MODULE check INPUT.
  MODIFY i_makt INDEX t_ctrl-current_line.
ENDMODULE.                 " CHECK  INPUT

Similar Messages

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.

    Hi all
      In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.
    Thanks & Regards,
    Rajib.

    Isn't that just exactly what transaction CO02 does? CO01 is for creating production orders so what sense does it make to have it display mode only?
    Maybe your goal is to stop then end user changing the component assignment that is automatically  detected by the system. If so, personally I think a better starting point would be PP configuration or user authorizations rather than looking to change the screen by whatever method. As we don't know what you are trying to achieve it's hard to offer much more advice maybe all you need is to change transaction to CO02

  • Error when displaying a field on Screen with Table Control

    Hi,
    It is going to 'Dump' when I am trying to display data on the screen with the help of Table Control. From the dump, What I have observed is , there is a field 'ZTSV_FSRDATA-ANZFEHLER'. If this field has negative value, then it is going to 'Dump' saying that the length is not enough. If it has a positive value then it is working fine. But the type of the field in the Internal table & on the screen are same.
    Please help me to resolve this error.
    I am posting here the Dump message also:
    A conversion error occurred while the program was trying todisplay data on the screen.
    The ABAP output field and the screen field may not have the same format.
    Some field types require more characters on the screen thanin the ABAP program. For example, a date field on a screen needstwo characters more than it would in the program. When attempting to display the date on the screen, an error will occur that triggers the error message.
    Thanks,
    Sreenivas Reddy Maddi.

    Hi Sreenivas,
       Refer this thread:
    how to display negative values in a screen field of a screen
    Re: negative values not allowed
    Regards,
    Sampath

  • Selection-screen pushbutton & Table Control

    Hi Everyone
    In my program i have a pushbutton in my selection-screen; this button call a screen with a table control, the problem is when i run my report and return to the first screen, the data in the TC is cleared.
    It's possible to save the information of my TC if i run my report and return to the first screen??
    Thanks & Regards
        David

    Hi,
    Write the logic for putting data from an internal table into table control in the PBO of the called screen & not in the PAI of the calling screen. Also, when you exit that screen, retrieve data into the internal table.
    For e.g. if Screen 9002 contains table control then
    PBO of Screen 9002:
    loop at it_itab into x_itab with control table_control_name.
    module put_data.
    endloop.
    PAI of screen 9002:
    loop at it_itab into x_itab.
    module get_data.
    endloop.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • Dynamic Screen in Table Control

    Hello Guys,
    I have a problem on screen dynpro. In the screen, i have a table control and i set all the field can be input.
    But i have 2 t-code where 1 of the t-code can edited the data and another one only display.
    So in screen status, i insert this code.
      IF sy-tcode = 'ZDLKWPP3'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ZKP'.
            screen-input = 0.
            screen-output = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    ENDIF.
    but when i execute, the screen still can be input. can anyone help me please...!!!!

    That coding i put it in "MODULE STATUS 0300." Those are the coding for the screen and the module status.
    *************--code for the screen----******************
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0300.
    *&spwizard: pbo flow logic for tablecontrol 'TBL_KWPP'
      module TBL_KWPP_init.
    *&spwizard: module TBL_KWPP_change_tc_attr.
    *&spwizard: module TBL_KWPP_change_col_attr.
    module TBL_KWPP_change_tc_attr.
      loop at   g_TBL_KWPP_itab
           into g_TBL_KWPP_wa
           with control TBL_KWPP
           cursor TBL_KWPP-current_line.
    *&spwizard:   module TBL_KWPP_change_field_attr
        module TBL_KWPP_move.
        module TBL_KWPP_get_lines.
      endloop.
    module cal_sum2.
    PROCESS AFTER INPUT.
    MODULE returnexit AT EXIT-COMMAND.
    *&spwizard: pai flow logic for tablecontrol 'TBL_KWPP'
      loop at g_TBL_KWPP_itab.
        chain.
          field ZLMDL015A-ZRUMJEN.
          field ZLMDL015A-ZRUMFAED.
          field ZLMDL015A-ZRUMULA.
          field ZLMDL015A-ZRUMAKH.
          field ZLMDL015A-ZRUMAMB.
          field ZLMDL015A-ZRUMTERIMA.
          field ZLMDL015A-ZRUMBAYARAN.
          field ZLMDL015A-ZRUMAMNOM.
          field G_TBL_KWPP_WA-FLAG
               MODULE tab_vot_mark1 ON REQUEST.
          MODULE TBL_KWPP_modify ON CHAIN-REQUEST.
        endchain.
      endloop.
      module TBL_KWPP_user_command.
    *&spwizard: module TBL_KWPP_change_tc_attr.
    *&spwizard: module TBL_KWPP_change_col_attr.
    MODULE USER_COMMAND_0300.
    *******---code for the module status---**********
    MODULE STATUS_0300 OUTPUT.
      SET PF-STATUS '0300'.
    *  SET TITLEBAR 'TITLE3' WITH 'Wujud/Kemaskini'.
    *  zlmfl030-zlmtkhlaras = w_ztksej.
      perform set_tarikh.
    *  perform find_data.
      IF sy-tcode = 'ZDLKWPP1'.
        SET TITLEBAR 'TITLE' WITH 'Wujud/Kemaskini'.
        SET PF-STATUS '0300'.
      ELSE.
        SET TITLEBAR 'TITLE' WITH 'Papar'.
        SET PF-STATUS '0300' EXCLUDING 'SAVE'.
    endif.
      IF sy-tcode = 'ZDLKWPP3'.
        LOOP AT SCREEN.
          IF screen-group1 CS 'ZKP'.
            screen-input = 0.
            screen-output = 1.
            MODIFY SCREEN.
            CLEAR SCREEN.
          ENDIF.
        ENDLOOP.
    ENDIF.
    ENDMODULE.                 " STATUS_0300  OUTPUT
    and as you can see i try ashavind code, it still not working.

  • Add Custom field to standard screen with table control

    Hello,
    I need to add two custom fields to a standard screen in CAT2 transaction(not using any screen exit).I will be given SSCR key.The standard screen (screen no. 2100) only has a table control.
    How can I add the custom field such that it appears as a field on the screen when CAT2 transaction is opened.
    Do i need to write any code?
    I'm new to ABAP so could you please give a detailed explanation.
    Also, do i need to change the 'fixed columns' field in the table control?
    Regards,
    Monica.

    hi,
    1) find the screen
    2) add new fields to the screen
    3) program PBO and PAI
    regards,
    Wojciech

  • Screen with table control which works like SM30

    Hello,
    I have a screen with some parameters in order to obtain some records from
    a custom table. In the same screen I must insert a table control which
    shows the extracted records.
    This table control has to work exactly like transaction SM30, that is the
    user can modify, insert, delete or copy a record.
    Does anybody know if exists a way (or method) to include this transaction
    in the table control ? Or I have to use custom control to obtain this ?
    N.B. the user wants a screen with parameter and table control (or custom control)
    and not a call function to transaction sm30.
    I thank you in advance.                      Paolo.

    Hi Rob,
    thanks for your interest; no it's not a reason of authorization, but simply
    the user wants to modify a report that actually works with some parameters
    at the top of the screen and a customer control which shows an Alv_grid
    with the extracted record;
    Now the user needs to modify this records (insert and delete) directly from
    this list. So I don't know if there's a way to obtain this goal without replace
    the custom control with a table control.
    The screen look like this:
       Param.1  XXXXXXX
       Param.2  XXXXXXXXXXXX
    Custom Contr. with ALV_grid  (for extracted record)
                                                                             Regards.
                                                                             Paolo.

  • Bdc recording of  screen having table control

    hi all,
        how to trap scroll in bdc recording of table control.
    regards deepak

    Hi..,
    <b>I found this program in one of the BDC links  !! Hope this helps u !!</b>
    Following is a sample code of handling table control in BDC.
    REPORT Y730_BDC5 .
    *HANDLING TABLE CONTROL IN BDC
    DATA : BEGIN OF IT_DUMMY OCCURS 0,
           DUMMY(100) TYPE C,
           END OF IT_DUMMY.
    DATA : BEGIN OF IT_XK01 OCCURS 0,
           LIFNR(10) TYPE C,
           BUKRS(4)  TYPE C,
           EKORG(4)  TYPE C,
           KTOKK(4)  TYPE C,
           NAME1(30) TYPE C,
           SORTL(10) TYPE C,
           LAND1(3)  TYPE C,
           SPRAS(2)  TYPE C,
           AKONT(6)  TYPE C,
           FDGRV(2)  TYPE C,
           WAERS(3)  TYPE C,
           END OF IT_XK01,
           BEGIN OF IT_BANK OCCURS 0,
           BANKS(3)  TYPE C,
           BANKL(10) TYPE C,
           BANKN(10) TYPE C,
           KOINH(30) TYPE C,
           LIFNR(10) TYPE C,
           END OF IT_BANK.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
           IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = 'C:\VENDOR.TXT'
       FILETYPE                      = 'ASC'
    TABLES
       DATA_TAB                      = IT_DUMMY.
    LOOP AT IT_DUMMY.
      IF IT_DUMMY-DUMMY+0(2) = '11'.
        IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
        IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
        IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
        IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
        IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
        IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
        IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
        IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
        IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
        IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
        IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
        APPEND IT_XK01.
      ELSE.
        IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
        IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
        IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
        IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
        IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
        APPEND IT_BANK.
      ENDIF.
    ENDLOOP.
    LOOP AT IT_XK01.
    REFRESH IT_BDCDATA.
    perform bdc_dynpro      using 'SAPMF02K' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-REF_LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  IT_XK01-LIFNR.
    perform bdc_field       using 'RF02K-BUKRS'
                                  IT_XK01-BUKRS.
    perform bdc_field       using 'RF02K-EKORG'
                                  IT_XK01-EKORG.
    perform bdc_field       using 'RF02K-KTOKK'
                                  IT_XK01-KTOKK.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-TELX1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  IT_XK01-NAME1.
    perform bdc_field       using 'LFA1-SORTL'
                                  IT_XK01-SORTL.
    perform bdc_field       using 'LFA1-LAND1'
                                  IT_XK01-LAND1.
    perform bdc_field       using 'LFA1-SPRAS'
                                  IT_XK01-SPRAS.
    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-KOINH(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    DATA : FNAM(20) TYPE C,
           IDX      TYPE C.
      MOVE 1 TO IDX.
    LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
      CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKS.
      CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKL.
      CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKN.
      CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-KOINH.
      IDX = IDX + 1.
    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'
                                  IT_XK01-AKONT.
    perform bdc_field       using 'LFB1-FDGRV'
                                  IT_XK01-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'
                                  IT_XK01-WAERS.
    perform bdc_dynpro      using 'SAPMF02K' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'WYT3-PARVW(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    CALL TRANSACTION 'XK01' USING IT_BDCDATA
                            MODE  'A'
                           UPDATE 'S'
                         MESSAGES INTO IT_BDCMSGCOLL.
    ENDLOOP.
    FORM BDC_DYNPRO USING PROG SCR.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-PROGRAM = PROG.
      IT_BDCDATA-DYNPRO  = SCR.
      IT_BDCDATA-DYNBEGIN = 'X'.
      APPEND IT_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-FNAM = FNAM.
      IT_BDCDATA-FVAL  = FVAL.
      APPEND IT_BDCDATA.
    ENDFORM.
    regards,
    sai ramesh

  • Table control in PAI of a screen.

    Hi all..
    Here i am having a scenario where in i have to display header details and item details(in table control) in a screen. At first, screen should not display any contents but after choosing a value for key field of the header table from provided search help, it should populate my table in the screen depending upon the chosen key field value. How to handle this in PAI of the screen.
           please provide me some sample code.
    regards,
    Jalendhar

    Hi Jalendar,
                 When you a value in the header table and pressing any button or enter it immediately takes to the PAI. In the PAL module populate the internal table.
    the cursor then goes to the PBO to show the screen. So here in PBO write like this
    LOOP AT <internal table> CURSOR <scroll-var>
    [WITH CONTROL <table-control> ]
    [FROM <line1> ] [TO <line2> ].
    ...<actions>...
    ENDLOOP.
    The above syntax is to display the data on the screen for table control.
    Br,
    Laxmi.

  • Checkbox Within Table Control At Selection Screen

    Hello, there.
    In my selection screen (dialog) I'm using a table control which is based on an internal table.
    In that internal table I have a simple Yes/No field (declared as type XNULL for example).
    The problem is that I want it to be displayed as checkbox on the selection screen's table control and not as a simple string with size = 1 like it is..
    I hope it's clear and understood ...
    Thanks in advance,
    Rebeka

    Rebeka,
    Its very simple,
    In that field of table control just drag & drop the  checkbox.
    In Screen modules ,
    loop at itab.
    If Field = 'YES'.
    Checkbox = 'X'.
    else .
    clear checkbox.
    endif.
    endloop.
    Regards,
    TAlwinder

  • More columns in table control and occupy space left on screen

    Hi,
    How to put more no of coulums in table control.
    on my screen i am getting 10 coulums.for further
    i have to scrool.but on my customer screen it is displaying
    8 columns, but on his system,  left side more space is remaining,he asking to increase the table control so that he can able to to see more columns,but on my system it is saying table control length is 115.it is not allowing to increase it.
    Is there any option to occupy space left on customer screen,on my system it is showing no space left
    Plz give some solution .
    Thanks and Regards
    Ramakrisnaia y

    Hi,
    i observed that in order to put screen in synch for both customer and for us ,i  modified the screen attributes.
    that mean length and witdh.
    if u write BDC then we have to use one strcture in order to take defualt screen size.in my case i am using noram screen and table control.
    Thanks .
    Ramki.

  • About table control in the selection screen

    i want to create a table control in the selection screen of my report.i can create the table control using SE51.but how to program with the table control in the report.for example i should fetch the data for the personnel nos entered in the table control of the selection screen.how to do this.can any of u provide sample code for this.
    thanks.

    Hi vadivel,
    Create internal table and create table control using same internal table
    e.g.
    data : begin of it,
           end of it.
    start-of-selection.
    call screen 100.
    If you create table control using wizard then code automatically come here.
    Now, Put one push button in same screen where table control is available. let's say push button Display report.
    Now, use export <IT> to memory id <ID> and submit report <report name> and return. now, define same internal table in this submitted report and use import <IT> from memory id <ID>. Now, table control data is available in internal table, use that data and make code as per your requirement. If you dont want to use push button then use menu bar and at user-command event.
    Hope this help
    Regards,
    Parag

  • TABLE CONTROL AND SCREEN

    HI Gurus,
    i have to following requirement,
    i have to make a screen  in which there would be four fields
    name          xxx
    age               x
    date          xx.xx.xx
    time          xx xx xx
    the screen fields are to by filled by the user at the run time and this data should be saved in the data base table(say ztable)
    so as far i have understood i need to create a screen with a table control and a database table  to save the data of the table control (after the user press save buttom)
    please help me how to create a table control
    and also
    help me with the logic of calling the screen(this screen with table control)
    also the logic of save butoom too
    please help as soon as possible
    points will be surely awarded ..
    thanks in advance
    anuj

    use this eg to your requirement
    PROGRAM YTABLEDML .
    TABLES : KNA1.
    DATA : ITAB LIKE KNA1 OCCURS 0 WITH HEADER LINE.
    CONTROLS : VCONTROL TYPE TABLEVIEW USING SCREEN '100'.
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'INSERT'.
    MOVE KNA1 TO ITAB.
    APPEND ITAB.
    INSERT INTO KNA1 VALUES ITAB.
    IF SY-SUBRC = 0.
    MESSAGE I000(0) WITH 'INSERTED'.
    ELSE.
    MESSAGE E001(0) WITH 'NOTINSERTED'.
    ENDIF.
    WHEN 'UPDATE'.
    MOVE KNA1 TO ITAB.
    APPEND ITAB.
    UPDATE KNA1 FROM TABLE ITAB.
    IF SY-SUBRC = 0.
    MESSAGE I000(0) WITH 'UPDATED'.
    ELSE.
    MESSAGE E001(0) WITH 'NOTUPDATED'.
    ENDIF.
    WHEN 'DELETE'.
    MOVE KNA1 TO ITAB.
    APPEND ITAB.
    DELETE FROM KNA1 WHERE KUNNR = ITAB-KUNNR.
    MESSAGE I000(0) WITH 'DELETED'.
    IF SY-SUBRC = 0.
    ELSE.
    MESSAGE E001(0) WITH 'NOTDELETED'.
    ENDIF.
    ENDCASE.
    ENDMODULE.
    MODULE USER_EXIT INPUT.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    CALL TRANSACTION 'SE38'.
    ENDCASE.
    ENDMODULE.
    *PROCESS BEFORE OUTPUT.
    *LOOP WITH CONTROL VCONTROL.
    *ENDLOOP.
    MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *LOOP WITH CONTROL VCONTROL.
    MODULE USER_COMMAND_0100.
    ENDLOOP.
    *MODULE USER_EXIT.
    TCODE IS YDMLTAB.

  • How to display a table control in a report

    hi
    how to display a table control in a report

    create a screen in your report.
    Call that screen in your report.
    While designing your screen, use Table control creation wizard to create table control on that screen.
    http://www.planetsap.com/online_pgm_main_page.htm

  • How to clear table control view lines?

    Dear Experts,
    I created one ALV Report with push buttons. User can select multiple line. After select the lines, when user clicks push button in ALV, then am calling POPUP screen 1100 with save and cancel button. which ever line user selected in ALV, that will appear in the POPUP screen 1100 with table control view.
    issue :
    Ex :
    In ALV user selected 3 lines , that appeared in POPUP screen 1100 table control view. Now user wants to select some more line in ALV. so user clicked cancel and reached ALV screen. user selected 2 more line in ALV (total 5 lines). Again user clicked same push button in ALV, But now same 3 lines (old record) are appearing in POPUP screen 1100, new records (5 lines) are not appearing.
    Code :
    My PBO internal table is having 5 records. but in table control only 3 records are appearing.
    PROCESS BEFORE OUTPUT.
      MODULE status_1100.
      LOOP AT git_prq_items1 INTO gwa_prq_items1
                             WITH CONTROL ctl_pr_items.    
    ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE user_command_1100.
      LOOP AT git_prq_items1.
        MODULE read_table_control. " if any changes happened in table control - read table control.
      ENDLOOP.
    MODULE status_1100 OUTPUT.
      SET PF-STATUS ''.
    ENDMODULE.                 " status_1100  OUTPUT
    git_prq_items1 -  this internal table is having 5 records.
    Please suggest where should i correct.
    Regards
    chessleo.
    Edited by: sapleo on May 6, 2011 9:59 AM

    Hi.,
    Clear the records and populate new records., also use refresh table display if u are using oo alv.
    check  BCALV_GRID_05 report.,
    Hope this helps u.,
    Thanks & Regards
    Kiran

Maybe you are looking for

  • Using Flex components within Flash CS3

    I'm new to Flex and I enjoy all of the components that it has to offer, but I am wondering about their availability within Flash. My plan is to make a highly animated and interactive menu and I have reached a point where I have to ask two questions:

  • Changes in screen brightness after Windows update

    I recently purchased my Lenovo IdeaPad P500. The screen was fine until an automatice Windows update occurreced. Now it is hard to see the screen because it has darkened. No matter what I try I cannot get it to brighten up and it is hard to view in we

  • Best practices for using the knowledge directory

    Anyone know when it is best to store docs in the Knowledge Directory versus Collab? They are both searchable, but I guess you can publish from the Publisher to the KD. Anyone have any best practices for using the KD or setting up taxonomies in the KD

  • Live Cache R/3 or Non-R/3 DB?

    Hi, Is Live Cache a R/3 or Non-R/3 database? This might be a very basic question but still I like to know the answer for this. Thanks, Siva.

  • ESX 24... ??? HELP.

    I have Logic Pro/Logic 8. I am a noob and I am going to order the vidz from macpro... for logic. I wanted to feel it out first and I was trying to access the ESX24 instrument editor. I can not seem to find it. In the Tuts they have on expert village